/* Business directory: compact filters, solid brand accents and consistent result cards. */
.workshop-directory {
    background: #edf2fa;
}
.workshop-directory [hidden] { display: none !important; }
.wd-filter-toggle { display: none; }
.wd-mobile-filters { display: none; }
.wd-filter-dialog { display: none; }
body.wd-filters-open { overflow: hidden; }
.wd-header { background: #fff; border-bottom: 1px solid #e2d9eb; padding: 16px 0 0; }
.wd-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; font-size: 11px; color: #77707f; }
.wd-breadcrumb a { color: #675f70; }
.wd-breadcrumb i { font-size: 8px; color: #a498ae; }
.wd-header__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.wd-header__main > div { min-width: 0; }
.enterprise-site .wd-header__main > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; }
.enterprise-site .wd-header__main > .btn i { position: static; margin: 0; line-height: 1; flex-shrink: 0; }
.enterprise-site .wd-header h1 { font-size: clamp(24px, 2.5vw, 32px) !important; margin: 0 0 6px; overflow-wrap: anywhere; }
.wd-header p { font-size: 13px; margin: 0; }
.wd-header .eyebrow { margin-bottom: 6px; }
.wd-summary { display: flex; align-items: center; gap: 28px; border-top: 1px solid #ded5e7; padding: 12px 0; font-size: 12px; color: #675f70; }
.wd-summary strong { color: var(--brand-purple); font-size: 18px; margin-inline-end: 6px; }
.wd-summary > span + span { border-inline-start: 1px solid #d5cedd; padding-inline-start: 28px; }
.wd-summary > a { display: inline-flex; gap: 12px; align-items: center; margin-inline-start: auto; color: var(--brand-purple); font-size: 11px; font-weight: 700; }
.wd-summary > a i { color: var(--brand-orange); }
.wd-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 28px; padding-block: 32px 64px; align-items: start; }
.wd-sidebar { display: grid; gap: 20px; min-width: 0; }
.wd-filters { background: #fff; border: 1px solid #e7e1ec; border-radius: 8px; overflow: hidden; }
.wd-filters > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; list-style: none; font-weight: 700; font-size: 14px; cursor: pointer; }
.wd-filters > summary::-webkit-details-marker { display: none; }
.wd-filters > summary span { display: inline-flex; gap: 12px; align-items: center; }
.wd-filters > summary span i { color: var(--brand-purple); }
.wd-filters > summary > i { font-size: 10px; color: #8c7d97; }
.wd-filters[open] > summary { border-bottom: 1px solid #eee9f2; }
.wd-filters[open] > summary > i { transform: rotate(180deg); }
.wd-filters__body { padding: 20px 14px; }
.enterprise-site .wd-filters h2 { font-size: 12px; margin: 0 6px 14px; color: #675f70; }
.wd-towns { display: grid; gap: 4px; max-height: 350px; overflow-y: auto; }
.wd-town { display: flex; gap: 10px; align-items: center; width: 100%; padding: 11px 10px; border: 1px solid transparent; border-radius: 5px; background: #fff; color: #675f70; text-align: right; font: inherit; font-size: 12px; cursor: pointer; }
.wd-town::before { content: ''; flex-shrink: 0; width: 14px; height: 14px; border: 1px solid #cfc3db; border-radius: 50%; background: #fff; }
.wd-town:hover { background: #faf8fc; }
.wd-town.is-active { background: #f2ebf9; color: var(--brand-purple); border-color: #e2d5ef; font-weight: 700; }
.wd-town.is-active::before { background: var(--brand-purple); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--brand-purple); }
.wd-town__name { min-width: 0; overflow-wrap: anywhere; }
.wd-town__count { margin-inline-start: auto; flex-shrink: 0; background: #f3eff7; color: #77707f; border-radius: 4px; padding: 1px 6px; font-size: 10px; }
.wd-town.is-active .wd-town__count { background: #fff; color: var(--brand-purple); }
.wd-subcategories { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eee9f2; }
.wd-subcategories a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px; font-size: 12px; color: #675f70; }
.wd-subcategories i { color: #a498ae; font-size: 8px; }
.wd-help { background: #fff; border: 1px solid #e2d5ef; border-radius: 8px; padding: 22px; }
.wd-help .enterprise-icon { background: #fff; color: var(--brand-purple); width: 36px; height: 36px; font-size: 15px; margin-bottom: 16px; }
.enterprise-site .wd-help h2 { font-size: 16px; margin-bottom: 10px; }
.wd-help p { font-size: 12px; margin-bottom: 18px; }
.wd-results { min-width: 0; }
.wd-search { padding: 22px; background: #fff; border: 1px solid #e7e1ec; border-radius: 8px; margin-bottom: 28px; }
.wd-search > label { display: block; font-size: 12px; margin-bottom: 10px; }
.wd-search__row { display: flex; gap: 10px; }
.wd-search__field { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; border: 1px solid #d5cedd; border-radius: 6px; padding: 0 14px; }
.wd-search__field:focus-within { border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgb(77 20 140 / 8%); }
.wd-search__field i { color: #95899f; font-size: 14px; }
.wd-search__field input { border: 0; outline: 0 !important; min-width: 0; width: 100%; height: 48px; background: transparent; color: #292236; font: inherit; font-size: 12px; }
.wd-results__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.enterprise-site .wd-results__heading h2 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 10px; }
.wd-results__heading h2 span { color: var(--brand-purple); background: #fff; padding: 2px 9px; border-radius: 5px; font-size: 12px; }
.wd-results__heading > span { display: flex; align-items: center; gap: 7px; color: #77707f; font-size: 10px; }
.wd-active-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #f2ebf9; border: 1px solid #e2d5ef; border-radius: 6px; margin-bottom: 18px; font-size: 11px; color: var(--brand-purple); }
.wd-active-filters span { overflow-wrap: anywhere; }
.wd-active-filters button { border: 0; background: transparent; color: var(--brand-purple); white-space: nowrap; font: inherit; cursor: pointer; padding: 4px 0; }
.wd-active-filters button i { margin-inline-end: 6px; }
.wd-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.wd-cards[aria-busy=true] { opacity: .55; }
.wd-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e7e1ec; border-radius: 8px; padding: 22px; transition: border-color .18s, box-shadow .18s; }
.wd-card:hover, .wd-card:focus-within { border-color: #b795d6; box-shadow: 0 4px 16px #29223608; }
.wd-card__identity { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.wd-card__identity > div { min-width: 0; }
.wd-card__icon { display: grid; place-items: center; width: 46px; height: 46px; background: #f3eff7; border: 1px solid #e7e1ec; border-radius: 8px; font-size: 19px; color: var(--brand-purple); flex-shrink: 0; }
.wd-card__label { color: #8c7d97; font-size: 10px; display: block; margin-bottom: 4px; }
.enterprise-site .wd-card h3 { font-size: 16px; margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.wd-card__meta { margin-top: auto; }
.wd-card__category { display: inline-block; background: #faf8fc; border: 1px solid #eee9f2; border-radius: 4px; padding: 3px 8px; color: #675f70; font-size: 10px; margin-bottom: 12px; overflow-wrap: anywhere; }
.wd-card__meta p { display: flex; gap: 8px; align-items: baseline; font-size: 11px; margin: 0 0 20px; }
.wd-card__meta i { color: var(--brand-orange); font-size: 11px; }
.wd-card__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid #eee9f2; font-size: 12px; font-weight: 700; color: var(--brand-purple); }
.wd-card__link i { font-size: 11px; }
.wd-empty { text-align: center; padding: 52px 24px; background: #fff; border: 1px dashed #d5cedd; border-radius: 8px; }
.wd-empty > i { font-size: 26px; color: #a18cb5; margin-bottom: 20px; }
.enterprise-site .wd-empty h3 { font-size: 18px; }
.wd-empty p { font-size: 12px; margin: 0; }
.wd-error { padding: 20px; margin-top: 18px; border: 1px solid #f0c9bc; background: #fff5ef; color: #8a351e; border-radius: 6px; font-size: 12px; }
.wd-error button { background: transparent; color: #8a351e; border: 0; text-decoration: underline; font: inherit; cursor: pointer; }
.wd-pagination { text-align: center; padding-top: 28px; }
.wd-pagination p { font-size: 11px; margin-bottom: 12px; }
.wd-catalog { padding-block: 36px 64px; }
.workshop-directory .directory-category { height: 100%; border-top: 3px solid var(--brand-purple); display: flex; flex-direction: column; }
.workshop-directory .directory-category > .text-link { margin-top: auto; }
.workshop-directory .directory-grid { align-items: stretch; }
.workshop-directory .directory-category__heading .enterprise-icon { background: #f2ebf9; color: var(--brand-purple); }
.workshop-directory .directory-search { margin: 0; width: 100%; max-width: 460px; }
@media (max-width: 991.98px) {
    .wd-layout { grid-template-columns: 230px minmax(0,1fr); gap: 20px; }
    .wd-cards { grid-template-columns: 1fr; }
    .wd-header__main { gap: 24px; }
}
@media (max-width: 767.98px) {
    .wd-layout { grid-template-columns: 1fr; padding-block: 24px 44px; }
    .wd-help { display: none; }
    .wd-towns { max-height: 220px; }
    .wd-header__main { flex-direction: column; align-items: flex-start; }
    .wd-summary { flex-wrap: wrap; gap: 12px 20px; }
    .wd-summary > span + span { padding-inline-start: 20px; }
    .wd-summary > a { width: 100%; margin: 4px 0 0; }
    .wd-breadcrumb { font-size: 10px; gap: 8px; margin-bottom: 24px; }
    .wd-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .wd-search { padding: 18px; margin-bottom: 24px; }
    .wd-search__field { padding-inline: 10px; gap: 8px; }
    .wd-search__field input { font-size: 11px; }
    .wd-search__row { gap: 8px; }
    .enterprise-site .wd-search .btn { padding-inline: 14px; }
    .wd-active-filters { align-items: flex-start; }
}
@media (max-width: 575.98px) {
    .wd-cards { grid-template-columns: 1fr; }
    .wd-card { padding: 20px; }
    .wd-header p { font-size: 12px; }
    .wd-header__main { margin-bottom: 24px; }
    .wd-summary { font-size: 11px; }
    .wd-summary strong { font-size: 16px; }
}

.enterprise-site .wd-catalog h2 { font-size: 24px; margin: 0; }
.workshop-directory .wd-summary .directory-search { margin-inline-start: auto; }

/* Keep the mobile directory focused on finding businesses. */
@media (max-width: 767.98px) {
    .wd-mobile-filters { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 20px; }
    .enterprise-site .wd-filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; margin: 0; padding: 8px 12px; font-size: 11px; white-space: nowrap; }
    .enterprise-site .wd-filter-toggle i { position: static; margin: 0; line-height: 1; flex-shrink: 0; }
    .wd-town-pills { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 5px 4px; scrollbar-width: thin; scrollbar-color: #d5cedd transparent; }
    .wd-town-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #e2d5ef; border-radius: 999px; background: #fff; color: #675f70; font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; }
    .wd-town-pill:hover { background: #faf8fc; border-color: #b795d6; }
    .wd-town-pill.is-active { background: #f2ebf9; color: var(--brand-purple); border-color: var(--brand-purple); font-weight: 700; }
    .wd-town-pill .wd-town__count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; border-radius: 999px; margin: 0; }
    .wd-town-pill.is-active .wd-town__count { background: var(--brand-purple); color: #fff; }
    .wd-sidebar:has(> .wd-help:only-child) { display: none; }
    .wd-filter-dialog[open] {
        display: flex; flex-direction: column; position: fixed; inset: 0 0 0 auto;
        width: min(100%, 380px); max-width: 100%; height: 100%; height: 100dvh; max-height: 100%;
        margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #292236;
        box-shadow: -8px 0 32px rgb(22 16 32 / 18%); animation: wd-filter-slide-in .25s ease-out;
    }
    .wd-filter-dialog::backdrop { background: rgb(22 16 32 / 55%); }
    .wd-filter-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #eee9f2; }
    .enterprise-site .wd-filter-dialog__header h2 { margin: 0; font-size: 17px; }
    .wd-filter-dialog__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e7e1ec; border-radius: 6px; background: #fff; color: var(--brand-purple); cursor: pointer; }
    .wd-filter-dialog__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
    .wd-filter-dialog .wd-search { padding: 0 0 20px; margin-bottom: 20px; border: 0; border-bottom: 1px solid #eee9f2; border-radius: 0; }
    .wd-filter-dialog .wd-filters { border: 0; border-radius: 0; }
    .wd-filter-dialog .wd-filters > summary { display: none; }
    .wd-filter-dialog .wd-filters__body { padding: 0; }
    .wd-filter-dialog .wd-towns { max-height: none; }
    .wd-filter-dialog__footer { padding: 16px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #eee9f2; }
    .wd-filter-dialog__footer .btn { width: 100%; }
    .wd-header { padding-top: 12px; }
    .wd-breadcrumb { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; margin-bottom: 12px; }
    .wd-breadcrumb > * { flex-shrink: 0; }
    .wd-breadcrumb > span, .wd-breadcrumb > i:last-of-type { display: none; }
    .wd-header__main { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 12px; }
    .wd-header__main > div { flex: 1; }
    .wd-header .eyebrow, .wd-header__main p { display: none; }
    .enterprise-site .wd-header h1 { font-size: 23px !important; line-height: 1.6; margin: 0; }
    .enterprise-site .wd-header__main > .btn { padding: 8px 12px; min-height: 44px; font-size: 11px; text-align: center; white-space: nowrap; }
    .wd-summary { gap: 8px 16px; padding: 10px 0; font-size: 10px; }
    .wd-summary strong { font-size: 14px; }
    .wd-summary > span + span { padding-inline-start: 16px; }
    .wd-summary > a { display: none; }
    .wd-layout { padding-top: 16px; }
}
@keyframes wd-filter-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .wd-filter-dialog[open] { animation: none; }
}
