/* Businesses & Services directories. Builds on app.css tokens and the
   categories page language; mobile first. Card types are deliberately
   distinct: classified listing = photo-first with price, business = cover
   band + square logo, service provider = round portrait + availability. */

:root { --dir-ink: #002f34; --dir-muted: #5d766e; --dir-line: #e0e7e1; --dir-soft: #f3f7f4; }
.directory-shell { padding-bottom: 0; } /* the footer's own 48px margin is the gap */
.directory-page h1, .directory-page h2, .directory-page h3 { color: var(--dir-ink); }
/* The dark "Offer a service? / Looking for work?" banner keeps its white title. */
.directory-page .category-sell h2 { color: #fff; }

/* ── Hero + search ── */
.dir-hero { margin-top: 20px; border-radius: 24px; padding: 32px 22px 24px; background: #e7f4ed; display: grid; gap: 22px; }
.dir-hero--service { background: #fbf3dc; }
.dir-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.05em; margin: 0 0 12px; font-weight: 800; }
.dir-hero h1 em { font-style: normal; color: #1b8068; }
.dir-hero--service h1 em { color: #a86f00; }
.dir-hero-copy > p:last-child { margin: 0; color: #486660; font-size: 15px; line-height: 1.6; max-width: 520px; }
/* Reuse the homepage fields and responsive layout inside the directory shell. */
.search-bar.dir-search { width: 100%; max-width: none; margin: 0; padding: 0; }
.search-bar.dir-search--compact { margin: 18px 0 8px; }
.dir-search .search-go:hover { background: #01554e; }
.dir-search .search-q:focus-within,
.dir-search .search-loc:focus-within { outline: 2px solid #218a70; outline-offset: -2px; }

/* ── Sections ── */
.dir-section { margin-top: 36px; }
.dir-section .category-section-head { margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.dir-section .category-section-head h2 { font-size: 22px; }
.dir-more { font-size: 13px; font-weight: 800; color: #0f6d58; white-space: nowrap; }
.dir-more:hover { text-decoration: underline; }
.dir-near-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dir-muted); }
.dir-near-pick select { min-height: 38px; border: 1px solid #dce5df; border-radius: 10px; padding: 0 10px; background: #fff; font-weight: 700; color: var(--dir-ink); }

.dir-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dir-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--dir-line); border-radius: 14px; transition: border-color .15s, background .15s; }
.dir-tile:hover { background: #eef6f1; border-color: #a7c8b2; }
.dir-tile strong { font-size: 15px; letter-spacing: -.01em; }
.dir-tile small { font-size: 12px; color: var(--dir-muted); }

.dir-browse { display: grid; gap: 22px; }
.dir-browse-group h3 { font-size: 15px; margin: 0 0 8px; }
.dir-browse-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dir-browse-group li a, .dir-cities a { font-size: 14px; color: #3e5f58; }
.dir-browse-group li a:hover, .dir-cities a:hover, .dir-browse-group h3 a:hover { color: #00634e; text-decoration: underline; }
.dir-browse small, .dir-cities small { font-size: 11px; color: #8aa097; }
.dir-cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }

/* ── Listing pages ── */
.dir-list-head h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; line-height: 1.1; margin: 0 0 8px; }
.dir-lead { color: #52706a; margin: 0; max-width: 680px; }
.dir-filters { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 4px; }
.dir-filters .search-filter { max-width: 320px; display: flex; flex-direction: column; gap: 6px; }
/* search.css (which styles .search-filter on /search) isn't loaded on directory pages. */
.dir-filters .search-filter span { font-size: 11px; font-weight: 700; color: #5f766d; }
.dir-filters .search-filter select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #dce5df; border-radius: 12px; background: #fff; font: inherit; font-size: 13px; color: inherit; }
.dir-filters .search-filter select:focus { outline: none; border-color: #218a70; box-shadow: 0 0 0 3px #218a7018; }
.dir-chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dir-chip { flex: none; border: 1px solid #dfe6e1; border-radius: 22px; padding: 8px 14px; font-size: 13px; font-weight: 600; background: #fff; white-space: nowrap; }
.dir-chip:hover { background: #eaf2ec; }
.dir-chip.is-on { background: #003b37; border-color: #003b37; color: #fff; }
.dir-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 0; font-size: 14px; }
.dir-page-link { font-weight: 800; padding: 10px 16px; border: 1px solid #dce5df; border-radius: 10px; background: #fff; }
.dir-page-link:hover { background: #eef6f1; }
.dir-page-status { color: var(--dir-muted); }

/* ── Cards ── */
.dir-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .dir-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; } }

/* One card for businesses, providers, businesses in Services and jobs:
   header photo with the logo/portrait tile on its corner, name + verified,
   one line of context, divider, then dot-separated facts. */
.pcard { display: flex; flex-direction: column; border-radius: 20px; }
.pcard-media { position: relative; display: block; aspect-ratio: 5 / 2; background: #e3eee8; overflow: hidden; }
.pcard-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pcard:hover .pcard-media > img { transform: scale(1.04); }
.pcard-media--blank { background: radial-gradient(circle at 85% 20%, #ffffff80 0 18%, transparent 19%), radial-gradient(circle at 70% 90%, #ffffff55 0 24%, transparent 25%), linear-gradient(135deg, #cfe9dc, #eaf5ef); }
.pcard--provider .pcard-media--blank { background: radial-gradient(circle at 85% 20%, #ffffff80 0 18%, transparent 19%), radial-gradient(circle at 70% 90%, #ffffff55 0 24%, transparent 25%), linear-gradient(135deg, #f6e3b4, #fbf3dc); }
.pcard--job .pcard-media--blank { background: radial-gradient(circle at 85% 20%, #ffffff80 0 18%, transparent 19%), radial-gradient(circle at 70% 90%, #ffffff55 0 24%, transparent 25%), linear-gradient(135deg, #d5def7, #eef2fc); }
.pcard-tile { position: absolute; left: 14px; bottom: 10px; width: 44px; height: 44px; padding: 3px; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px #00302f26; display: grid; place-items: center; }
.pcard-tile img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.pcard-tile span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9px; background: #eaf4ef; color: #1b6b58; font-size: 14px; font-weight: 800; }
.pcard--provider .pcard-tile span { background: #fbecc4; color: #8a5a00; }
.pcard--job .pcard-tile span { background: #e8eefb; color: #2b4a8a; }
.pcard-flags { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.pcard-flag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .01em; background: #002f34e0; color: #fff; }
.pcard-flag--urgent { background: #b3261ee6; }
.pcard-flag--muted { background: #ffffffe6; color: #5d6b67; }
.pcard-body { flex: 1; padding: 14px 18px 12px; min-width: 0; }
.pcard-body h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.pcard-body h3 a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dir-ink); text-decoration: none; }
.pcard-verified { display: inline-flex; flex: none; color: #2f80ed; }
.pcard-verified .ui-icon { width: 19px; height: 19px; }
.pcard-verified--sm .ui-icon { width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px; }
.pcard-sub { margin: 0; font-size: 14px; line-height: 1.4; color: #23312e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Business cards run taller: a 16:9 cover and a two-line description. */
.pcard--business .pcard-media { aspect-ratio: 16 / 9; }
.pcard--business .pcard-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.8em; }
.pcard-foot { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 18px 14px; border-top: 1px solid #edf1ef; font-size: 14px; font-weight: 600; color: #23312e; }
.pcard-meta { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; white-space: nowrap; }
/* A fact too long for the row shortens with an ellipsis instead of running into the next one. */
.pcard-meta-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pcard-status { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: #0a7d5c; }
.pcard-status .ui-icon { width: 16px; height: 16px; flex: none; }
.pcard-status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-meta .ui-icon { width: 18px; height: 18px; flex: none; color: #46656a; }
.pcard-meta--star .ui-icon { color: #f5a524; }
.pcard-meta--muted { color: #7d918c; font-weight: 500; }
.pcard-meta--muted .ui-icon { color: #b9c4c0; }
.pcard-meta--good { color: #0a7d5c; }
.pcard-meta--good .ui-icon { color: #0a7d5c; }
.pcard-meta--bad { color: #b3261e; }
.pcard-meta--bad .ui-icon { color: #b3261e; }
.pcard-dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #cdd6d2; }
.dir-card { position: relative; background: #fff; border: 1px solid var(--dir-line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.dir-card:hover { border-color: #aac8b5; box-shadow: 0 10px 24px #193e3010; }
.dir-card h3 { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 4px; }
.dir-card h3 a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.dir-card-kind { display: flex; align-items: center; gap: 5px; margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #5f7a72; text-transform: uppercase; }
.dir-card-kind .ui-icon { width: 14px; height: 14px; }
.dir-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 13px; color: var(--dir-muted); }
.dir-card-meta .ui-icon { width: 15px; height: 15px; margin-right: 4px; flex: none; }
.dir-card-meta > span { display: inline-flex; align-items: center; }
.dir-card-headline { margin: 0 0 6px; font-size: 13px; color: #3f5e57; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.dir-card-foot:empty { display: none; }
.dir-card-price { margin: 0; font-size: 13px; color: var(--dir-muted); }
.dir-card-price strong { color: var(--dir-ink); }
.dir-verified { display: inline-flex; color: #0b8a6c; }
.dir-verified .ui-icon { width: 17px; height: 17px; }
.dir-unclaimed { font-size: 11px; font-weight: 700; color: #7a6a3a; background: #fbf3dc; padding: 3px 8px; border-radius: 6px; }


.dir-chips { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dir-chips li { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--dir-soft); color: #36554e; }
.dir-chip-more { background: transparent !important; color: var(--dir-muted) !important; }

.dir-avail { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #3b5a53; }
.dir-avail i { width: 8px; height: 8px; border-radius: 50%; background: #9aaca5; }
.dir-avail--available i { background: #13b37f; box-shadow: 0 0 0 3px #13b37f22; }
.dir-avail--busy i { background: #e5a100; }

.dir-badges { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dir-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--dir-soft); color: #36554e; }
.dir-badge .ui-icon { width: 14px; height: 14px; }
.dir-badge--business { background: #dff5ea; color: #0b6b53; }
.dir-badge--professional { background: #e6efff; color: #1f4f9a; }
.dir-badge--identity { background: #efeafb; color: #53408f; }

/* ── Profile ── */
.dir-profile { margin-top: 4px; }
.dir-profile-head { background: #fff; border: 1px solid var(--dir-line); border-radius: 20px; overflow: hidden; }
.dir-profile-cover { height: 120px; background: linear-gradient(135deg, #cfeee0, #e9f6ef 60%, #fbf3dc); }
.dir-profile--provider .dir-profile-cover { background: linear-gradient(135deg, #fbe7b3, #fbf3dc 60%, #e7f4ed); }
.dir-profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.dir-profile-id { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 0 16px; margin-top: -36px; }
.dir-profile-logo { width: 84px; height: 84px; border-radius: 18px; border: 4px solid #fff; background: #eaf4ef; display: grid; place-items: center; overflow: hidden; font-size: 26px; font-weight: 800; color: #1b6b58; box-shadow: 0 6px 18px #00302f14; }
.dir-profile-logo--round { border-radius: 50%; background: #fbecc4; color: #8a5a00; }
.dir-profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.dir-profile-title { padding-top: 42px; min-width: 0; }
.dir-profile-title h1 { display: flex; align-items: center; gap: 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.04em; line-height: 1.1; margin: 0 0 8px; }
.dir-profile-title h1 .ui-icon { width: 24px; height: 24px; }
.dir-profile-headline { margin: -2px 0 8px; color: #3f5e57; font-size: 15px; }
.dir-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.dir-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #d5e0da; background: #fff; font-size: 14px; font-weight: 800; color: var(--dir-ink); }
.dir-action .ui-icon { width: 18px; height: 18px; }
.dir-action:hover { background: #eef6f1; }
.dir-action--primary { background: #003b37; border-color: #003b37; color: #fff; }
.dir-action--primary:hover { background: #01554e; }
.dir-action--wa { background: #e3f8ec; border-color: #bfe9d0; color: #0b6b3f; }
.dir-action[disabled] { opacity: .6; cursor: progress; }

.dir-claim { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 18px; border-radius: 16px; background: #fbf3dc; border: 1px solid #f0e2b3; }
.dir-claim h2 { margin: 0 0 4px; font-size: 18px; }
.dir-claim p { margin: 0; color: #6a5a2c; font-size: 14px; max-width: 560px; }
.dir-claim-panel { flex-basis: 100%; background: #fff; border-radius: 12px; padding: 16px; border: 1px solid #f0e2b3; }
.dir-claim-panel h3 { margin: 0 0 10px; font-size: 16px; }
.dir-claim-options { display: grid; gap: 8px; margin: 0 0 12px; }
.dir-claim-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #e3e9e5; border-radius: 10px; cursor: pointer; }
.dir-claim-option:has(input:checked) { border-color: #0f6d58; background: #f2faf6; }
.dir-claim-option input { margin-top: 3px; }
.dir-claim-option small { display: block; color: var(--dir-muted); margin-top: 2px; }
.dir-claim-field { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; font-weight: 700; }
.dir-claim-field input, .dir-claim-field select, .dir-claim-field textarea { min-height: 44px; border: 1px solid #dce5df; border-radius: 10px; padding: 8px 12px; font-weight: 500; background: #fff; }
.dir-claim-msg { margin: 10px 0 0; font-size: 14px; }
.dir-claim-msg.is-error { color: #b3261e; }
.dir-claim-msg.is-ok { color: #0b6b53; font-weight: 700; }

.dir-profile-grid { display: grid; gap: 8px; }
.dir-profile-main .dir-section:first-child { margin-top: 28px; }
.dir-prose p { margin: 0 0 12px; line-height: 1.65; color: #34524c; }
/* Services & pricing: each service is a card — what it is, then a divider, then the price and a quote button on one line. */
.dir-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dir-service { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--dir-line); border-radius: 16px; background: #fff; }
.dir-service-cover { display: block; width: calc(100% + 36px); margin: -18px -18px 0; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 15px 15px 0 0; background: #eef3f0; }
.dir-service-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.015em; color: var(--dir-ink); }
.dir-service-cat { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #eaf4ef; color: #0f6d58; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.dir-service-cat:hover { background: #dcefe5; }
.dir-service-desc { margin: 8px 0 0; max-width: 62ch; font-size: 14px; line-height: 1.6; color: var(--dir-muted); }
.dir-service-aside { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #eef2ef; }
.dir-service-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0; }
.dir-service-price small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a6d4b; }
.dir-service-price strong { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #b5531c; overflow-wrap: anywhere; }
.dir-service-quote { display: inline-flex; justify-content: center; align-items: center; flex: none; min-height: 40px; padding: 0 20px; border: 0; border-radius: 10px; background: #003b37; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dir-service-quote:hover { background: #0b5a51; }
.dir-service-quote:focus-visible { outline: 3px solid #27a486; outline-offset: 2px; }
.dir-branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dir-branches li { display: grid; gap: 2px; padding: 14px; background: #fff; border: 1px solid var(--dir-line); border-radius: 12px; font-size: 14px; }
.dir-branches span { color: var(--dir-muted); }
.dir-branches a { color: #0f6d58; font-weight: 700; }
.dir-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dir-gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; width: 100%; }
.dir-quals { margin: 0 0 8px; padding-left: 18px; }
.dir-quals li { margin-bottom: 6px; }
.dir-note { font-size: 12px; color: var(--dir-muted); }

.dir-profile-side { display: grid; gap: 12px; align-content: start; margin-top: 28px; }
.dir-side-card { background: #fff; border: 1px solid var(--dir-line); border-radius: 14px; padding: 16px; }
.dir-side-card h2 { font-size: 15px; margin: 0 0 10px; }
.dir-side-card p { margin: 0; color: #3e5d56; }
.dir-contact { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.dir-contact dt { color: var(--dir-muted); }
.dir-contact dd { margin: 0; overflow-wrap: anywhere; }
.dir-contact a { color: #0f6d58; font-weight: 700; }
.dir-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px !important; font-size: 13px; }
.dir-socials a { color: #0f6d58; font-weight: 700; }
.dir-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.dir-hours th { text-align: left; font-weight: 600; color: var(--dir-muted); padding: 4px 0; }
.dir-hours td { text-align: right; padding: 4px 0; }

/* ── Unified search (on /search) ── */
.search-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid #e3eae5; overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab { position: relative; padding: 12px 14px; font-size: 14px; font-weight: 800; color: #5d766e; white-space: nowrap; }
.search-tab small { font-weight: 700; color: #8aa097; margin-left: 4px; }
.search-tab[aria-selected="true"] { color: #002f34; }
.search-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); }
.search-page[data-type="services"] .search-market-only,
.search-page[data-type="businesses"] .search-market-only { display: none !important; }
.search-market-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.search-market-head h2 { margin: 0; font-size: 22px; }
.search-market-head h2 small, .dir-search-block h2 small { font-size: 14px; color: #8aa097; font-weight: 700; margin-left: 4px; }
.dir-search-block { margin-top: 32px; }
.dir-search-block .category-section-head { margin-bottom: 10px; }
.dir-search-block .dir-chip-row { margin-bottom: 12px; }

.dir-not-found { margin-top: 40px; }

/* ── Larger screens ── */
@media (min-width: 720px) {
  .dir-hero { padding: 40px 40px 32px; }
  .dir-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dir-browse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dir-cities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dir-filters { flex-direction: row; align-items: end; }
  .dir-profile-cover { height: 180px; }
  .dir-profile-id { grid-template-columns: 112px 1fr; gap: 20px; padding: 0 24px; margin-top: -48px; }
  .dir-profile-logo { width: 112px; height: 112px; font-size: 34px; }
  .dir-profile-title { padding-top: 56px; }
  .dir-actions { padding: 18px 24px 22px; }
  .dir-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .dir-profile-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
}
@media (max-width: 720px) {
  .directory-shell { padding-left: 16px; padding-right: 16px; }
  .dir-actions .dir-action { flex: 1 1 calc(50% - 8px); }
  .dir-service { gap: 12px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .dir-card, .dir-tile { transition: none; } }
.search-market-head[hidden] { display: none; }
.directory-page .category-crumbs { white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.directory-page .category-crumbs::-webkit-scrollbar { display: none; }

/* ── Phase 3: ratings, reviews, quotes, save, report ── */
.dir-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #6b5a1c; }
.dir-rating b { color: #8a5a00; font-weight: 800; }
.dir-rating small { color: var(--dir-muted); }
.dir-rating--lg { margin: -2px 0 8px; font-size: 15px; }
.dir-rating--lg:hover small { text-decoration: underline; }
.dir-stars { color: #e0a100; letter-spacing: 1px; }
.dir-indicators { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.dir-indicators span { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: #eef6f1; color: #1d5f4e; }
.dir-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; font-size: 13px; font-weight: 700; color: #0f6d58; background: none; }
.dir-link:hover { text-decoration: underline; }
.dir-link .ui-icon { width: 15px; height: 15px; }
.dir-link.is-on { color: #8a5a00; }
.dir-side-report { margin: 4px 2px 0; }
.dir-side-report .dir-link { color: #7a8b85; font-weight: 600; }
.dir-action.is-saved { background: #fdecef; border-color: #f5c6d0; color: #a3243f; }

.dir-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dir-sort { display: flex; gap: 4px; font-size: 13px; }
.dir-sort a { padding: 6px 12px; border-radius: 999px; font-weight: 700; color: #4d6b63; }
.dir-sort a[aria-current] { background: #003b37; color: #fff; }

.dir-review-summary { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 16px; padding: 16px; background: #fff; border: 1px solid var(--dir-line); border-radius: 14px; }
.dir-review-score { display: grid; justify-items: center; gap: 2px; min-width: 96px; }
.dir-review-score strong { font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.dir-review-score small { color: var(--dir-muted); font-size: 12px; }
.dir-hist { display: grid; gap: 4px; }
.dir-hist-row { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; color: var(--dir-muted); }
.dir-hist-row i { height: 8px; border-radius: 99px; background: #edf2ef; overflow: hidden; }
.dir-hist-row b { display: block; height: 100%; background: #e0a100; border-radius: 99px; }
.dir-review-empty { margin: 0 0 12px; }
.dir-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dir-review { padding: 14px 16px; background: #fff; border: 1px solid var(--dir-line); border-radius: 14px; }
.dir-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.dir-review-head time { margin-left: auto; font-size: 12px; color: var(--dir-muted); }
.dir-review p { margin: 8px 0 0; line-height: 1.55; color: #34524c; }
.dir-review-photos { display: flex; gap: 6px; margin-top: 10px; }
.dir-review-photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.dir-review-response { margin-top: 10px; padding: 10px 12px; border-left: 3px solid #bfe0d2; background: #f5faf7; border-radius: 0 10px 10px 0; font-size: 14px; }
.dir-review-response p { margin-top: 4px; }
.dir-review-actions { display: flex; gap: 16px; margin-top: 10px; }
.dir-review-actions .dir-link { font-weight: 600; color: #5f7a72; }
.dir-reviews [data-reviews-more] { margin-top: 12px; }
.dir-review-form { margin: 0 0 16px; padding: 16px; background: #fff; border: 1px solid var(--dir-line); border-radius: 14px; }

.dir-form { display: grid; gap: 12px; }
.dir-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #36554e; }
.dir-form input:not([type="radio"]), .dir-form select, .dir-form textarea { min-height: 44px; border: 1px solid #dce5df; border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 500; background: #fff; width: 100%; }
.dir-form textarea { resize: vertical; }
.dir-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.dir-form legend { font-size: 13px; font-weight: 700; color: #36554e; margin-bottom: 4px; }
.dir-form .dir-radio { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.dir-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dir-star-input { display: inline-flex !important; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.dir-star-input legend { width: 100%; }
.dir-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.dir-star-input label { font-size: 30px; line-height: 1; color: #d4dcd8; cursor: pointer; }
.dir-star-input input:checked ~ label, .dir-star-input label:hover, .dir-star-input label:hover ~ label { color: #e0a100; }
.dir-star-input input:focus-visible + label { outline: 2px solid #0b997b; border-radius: 4px; }

.dir-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px #00302f33; }
.dir-dialog::backdrop { background: #00302f66; }
.dir-dialog h2 { margin: 0 32px 14px 0; font-size: 20px; letter-spacing: -.02em; }
.dir-dialog-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.dir-dialog-close button { width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: #45645c; }
.dir-dialog-close button:hover { background: #eef5f1; }
@media (max-width: 720px) {
  .dir-review-summary { grid-template-columns: 1fr; }
  .dir-form-row { grid-template-columns: 1fr; }
  .dir-dialog { padding: 18px; }
}

/* ── Phase 4: featured placement ── */
.dir-featured-strip { margin: 8px 0 18px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #fff7df, #fbfcfa 70%); border: 1px solid #f0e2b3; }
.dir-featured-strip .category-eyebrow { margin: 0 0 10px; color: #8a5a00; }
.dir-featured-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #fbe7b3; color: #7a4f00; }

/* ── Phase 5: cross-discovery ── */
.dir-related { margin: 0; padding: 18px; border-radius: 18px; background: #fbf7ea; border: 1px solid #f0e2b3; }
.dir-related-head { margin-bottom: 12px; }
.dir-related-head .category-eyebrow { margin: 0 0 4px; color: #8a5a00; }
.dir-related-head h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.02em; color: var(--dir-ink); }
.dir-related-head p:last-child { margin: 0; font-size: 13px; color: var(--dir-muted); }
.dir-related .dir-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.dir-related .dir-chip-row { margin-top: 12px; }
.dir-related-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 8px; padding: 14px 16px; border-radius: 14px; background: #fbf7ea; border: 1px solid #f0e2b3; font-size: 14px; color: var(--dir-ink); }
.dir-related-chips .dir-chip-row { padding: 0; }
.dir-provided-by { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px; font-size: 14px; color: var(--dir-muted); }
.dir-provided-by .ui-icon { width: 16px; height: 16px; }
.dir-provided-by a { font-weight: 800; color: #0f6d58; }
.dir-provided-by a:hover { text-decoration: underline; }
.listing-related:empty { display: none; }
.listing-related { margin: 0 0 16px; }

/* ── Jobs (its own module; shares the directory page language) ── */
.dir-hero--jobs { background: #e8eefb; }
.dir-hero--marketplace { background: #e6f0f5; }
/* Homepage: no hero card — the search bar and the category circles sit on the page, as on the original homepage. */
.home-intro { margin: 28px 0 20px; }
.home-intro h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.05em; }
.home-intro h1 em { font-style: normal; color: #1b8068; }
.home-intro p { max-width: 560px; margin: 0; color: #486660; font-size: 15px; line-height: 1.6; }
.mk-home .search-bar.dir-search { margin: 0 0 8px; }
.directory-shell .cat-circles { max-width: none; padding: 0; }
.dir-section .cat-circles { margin-bottom: 8px; }

.dir-hero--manufacturers { background: #f4ece0; }
.dir-hero--manufacturers h1 em { color: #9a5418; }
.dir-hero--opportunities { background: #e6f3f1; }
.dir-hero--professionals { background: #efe9f6; }
.dir-hero--professionals h1 em { color: #6c3f99; }
.dir-tile.is-soon { color: var(--dir-muted); border-style: dashed; cursor: default; }
.dir-tile.is-soon:hover { transform: none; box-shadow: none; }

.job-post-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; background: var(--teal, #23e5db); color: var(--dir-ink); font-weight: 800; text-decoration: none; }
.job-post-cta .ui-icon { width: 18px; height: 18px; }
.job-post-cta:hover { background: #7ff5ee; }
.jobs-page .search-panel-go { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: #003b37; color: #fff; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; }
.jobs-page .search-panel-go:hover { background: #00514c; }

.job-head-employer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #264f49; }
.job-head-employer a { color: inherit; }
.job-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: 13px; color: var(--dir-muted); }
.job-card-meta > span { display: inline-flex; align-items: center; }
.job-card-meta .ui-icon { width: 15px; height: 15px; margin-right: 4px; }
.job-salary { color: #0a6b53; font-weight: 700; }
.job-logo { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 12px; background: #e8eefb; color: #2b4a8a; font-weight: 800; }
.job-logo--sm { width: 48px; height: 48px; font-size: 16px; }
.job-logo--lg { width: 72px; height: 72px; font-size: 24px; border-radius: 16px; }
.job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #0a6b53; }
.job-verified .ui-icon { width: 14px; height: 14px; }
.job-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.job-tag--featured { background: #fbf3dc; color: #7a5200; }
.job-tag--urgent { background: #fde8e4; color: #9b2c1c; }
.job-featured { margin: 0 0 14px; padding: 12px; border-radius: 18px; background: #fbf7ea; border: 1px solid #f0e2b3; }
.job-featured-label { margin: 0 0 8px 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #7a5200; }

.job-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.job-filter select { min-height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--dir-line); border-radius: 999px; background: #fff; color: var(--dir-ink); font: inherit; font-size: 14px; }
.job-filters-clear { font-size: 14px; font-weight: 700; color: var(--dir-ink); }

.job-banner { margin: 12px 0; padding: 12px 16px; border-radius: 12px; background: #fdf1e2; color: #7a4a00; font-weight: 600; }
.job-layout { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 900px) { .job-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .job-apply-card { position: sticky; top: calc(86px + var(--vertical-nav-h, 44px)); } }
.job-main { min-width: 0; }
.job-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.job-head h1 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.job-facts { display: flex; flex-wrap: wrap; margin: 0 0 20px; border: 1px solid var(--dir-line); border-radius: 14px; overflow: hidden; background: #fff; }
/* Items grow to fill each row; right/bottom rules on the outer edge are clipped by the container. */
.job-facts div { flex: 1 1 150px; padding: 12px 14px; box-shadow: 1px 1px 0 var(--dir-line); }
.job-facts dt { font-size: 12px; color: var(--dir-muted); }
.job-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--dir-ink); }
.job-block { margin: 0 0 20px; }
.job-block h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.job-block p, .job-block li { font-size: 15px; line-height: 1.6; color: #22403b; }
.job-block ul { margin: 0; padding-left: 20px; }
.job-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.job-skills span { padding: 4px 10px; border-radius: 999px; background: var(--dir-soft); font-size: 13px; font-weight: 600; color: #264f49; }

.job-apply-card { display: grid; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--dir-line); border-radius: 18px; }
.job-apply-salary { margin: 0; font-size: 20px; font-weight: 800; color: #0a6b53; }
.job-apply { width: 100%; }
.job-apply-note, .job-deadline { margin: 0; font-size: 13px; color: var(--dir-muted); }
.job-deadline { display: flex; align-items: center; gap: 6px; }
.job-deadline .ui-icon { width: 16px; height: 16px; }
.job-applied { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; color: #0a6b53; }
.job-applied .ui-icon { width: 18px; height: 18px; }
.job-secondary { font-weight: 700; color: var(--dir-ink); }
.job-closed-note { margin: 0; font-weight: 600; color: #7a4a00; }
.job-actions { display: flex; gap: 8px; }
.job-action { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 1px solid var(--dir-line); border-radius: 10px; background: #fff; color: var(--dir-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.job-action .ui-icon { width: 18px; height: 18px; }
.job-action[aria-pressed="true"] { background: #fdecef; border-color: #f5c2cc; color: #9b1c3c; }
.job-safety { padding: 12px; border-radius: 12px; background: var(--dir-soft); font-size: 13px; line-height: 1.5; color: #3f5e57; }
.job-report-link { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: #9b2c1c; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

.job-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 64px #002f3440; }
.job-dialog::backdrop { background: #002f3466; }
.job-dialog-form { display: grid; gap: 12px; padding: 22px; }
.job-dialog-form h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; color: var(--dir-ink); }
.job-dialog-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--dir-ink); }
.job-dialog-form input:not([type="checkbox"]), .job-dialog-form select, .job-dialog-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--dir-line); border-radius: 10px; font: inherit; font-size: 15px; }
.job-dialog-form .muted, .job-dialog-form small { font-weight: 400; color: var(--dir-muted); }
.job-dialog-form p { margin: 0; font-size: 14px; }
.job-apply-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.job-apply-profile { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--dir-soft); font-size: 14px; }
.job-apply-profile a { font-size: 13px; font-weight: 700; color: var(--dir-ink); }
.job-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.job-dialog-actions button:not(.search-panel-go) { min-height: 44px; padding: 0 16px; border: 1px solid var(--dir-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.job-dialog-actions a { margin-right: auto; font-weight: 700; color: var(--dir-ink); }
.job-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 1100; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: #003b37; color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.job-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .job-toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.dir-business-jobs .job-list { margin-top: 4px; }

/* ── Jobs in the account ── */
.job-acc-line { margin: 0 0 8px; font-size: 14px; }
.job-acc-line a { color: var(--dir-ink, #002f34); }
.job-acc-note { white-space: pre-line; padding: 12px; border-radius: 10px; background: #f3f7f4; }
.job-acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid #e7eeea; color: inherit; text-decoration: none; }
.job-acc-row:hover { background: #f7faf8; }
.job-acc-row-main { display: grid; gap: 2px; min-width: 0; }
.job-acc-row-main small { font-size: 13px; color: #5d766e; }
.job-acc-saved, .job-acc-posted { display: grid; gap: 8px; padding: 14px 4px; border-bottom: 1px solid #e7eeea; }
.job-acc-saved > span { display: flex; align-items: center; gap: 12px; }
@media (min-width: 720px) { .job-acc-posted { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .job-acc-posted .account-list-actions { grid-column: 1 / -1; } }
.job-acc-posted-side { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.job-acc-posted-side a { color: inherit; }
.job-acc-new { color: #0a6b53; font-weight: 800; }
.job-acc-warn { color: #9b2c1c; }
.job-acc-radio { display: flex !important; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #e0e7e1; border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.job-acc-radio span { display: grid; gap: 2px; }
.job-acc-radio small { font-weight: 400; color: #5d766e; }
/* Job form cover: previewed at the job card's 5:2 shape. */
.job-acc-cover { display: grid; gap: 8px; }
.job-acc-cover-label { font-weight: 700; }
.job-acc-cover-preview { aspect-ratio: 5 / 2; max-width: 520px; border-radius: 14px; overflow: hidden; background: #eef2fc; }
.job-acc-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-acc-cover-preview.is-empty { display: grid; place-items: center; border: 1px dashed #c9d3ea; color: #6c7da3; font-size: 13px; }
.job-acc-cover .dir-acc-add { cursor: pointer; }
.job-acc-cover-remove { display: inline-flex !important; align-items: center; gap: 6px; font-size: 13px; }
.job-acc-radio:has(input:checked) { border-color: #0a8f6f; background: #f0f8f6; }
.job-acc-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.job-acc-checks label, .job-acc-inline { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500; }
.job-acc-entry { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0 0 10px; padding: 12px; border: 1px solid #e0e7e1; border-radius: 12px; }
.job-acc-entry .account-span { grid-column: 1 / -1; }
.job-acc-salary { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.job-acc-salary legend { grid-column: 1 / -1; }
.job-acc-cv { margin: 0 0 12px; padding-left: 18px; }
.job-acc-cv p { margin: 2px 0 0; color: #3f5e57; }
.job-acc-decide { margin-bottom: 12px; }
.job-acc .job-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.job-acc .job-skills span { padding: 4px 10px; border-radius: 999px; background: #f3f7f4; font-size: 13px; font-weight: 600; }

/* Job Profile */
.job-profile-page { color: #18352f; }
.job-profile-progress { display: grid; gap: 11px; padding: 16px 18px; border: 1px solid #ffffffa8; background: #ffffff9c; }
.job-profile-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.job-profile-progress strong { color: #003b37; font-size: 25px; letter-spacing: -.04em; }
.job-profile-progress span { color: #54706b; font-size: 11px; font-weight: 700; }
.job-profile-progress i { height: 5px; overflow: hidden; background: #d5e5e0; }
.job-profile-progress b { display: block; height: 100%; background: #0a8f6f; }
.job-profile-form { gap: 18px; }
.job-profile-panel { min-width: 0; padding: 24px; border: 1px solid #dce6e3; background: #fff; box-shadow: 0 1px 2px #003b3708; }
.job-profile-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.job-profile-section-head h2 { margin: 0; color: #18352f; font-size: 20px; letter-spacing: -.025em; }
.job-profile-section-head p { max-width: 590px; margin: 6px 0 0; color: #6a8182; font-size: 13px; line-height: 1.45; }
.job-profile-section-head > a { flex: none; color: #006d60; font-size: 12px; font-weight: 800; }
.job-profile-visibility-panel { padding-bottom: 20px; }
.job-acc-visibility { min-width: 0; margin: 0; padding: 0; border: 0; }
.job-profile-visibility-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.job-profile-visibility-options .job-acc-radio { position: relative; min-height: 116px; margin: 0; padding: 16px; border-color: #dce6e3; background: #fbfcfc; }
.job-profile-visibility-options .job-acc-radio input { width: 17px; height: 17px; min-height: 0; margin-top: 2px; accent-color: #087c66; }
.job-profile-visibility-options .job-acc-radio strong { color: #18352f; font-size: 14px; }
.job-profile-visibility-options .job-acc-radio small { margin-top: 5px; font-size: 11px; line-height: 1.45; }
.job-profile-visibility-options .job-acc-radio:has(input:checked) { border-color: #087c66; background: #eef8f5; box-shadow: inset 0 0 0 1px #087c66; }
/* Professional profile: photo beside the wide cover, then the fields. */
.job-profile-images { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0 0 6px; }
.job-profile-images .lf-photo-field { margin: 0; }
.job-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.job-profile-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.job-profile-two-column .job-profile-panel { height: fit-content; }
/* Preferences hold many choices; give them the room and keep the CV panel compact beside them. */
.job-profile-two-column--bottom { grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); align-items: start; }
.job-profile-two-column .job-profile-section-head { margin-bottom: 16px; }
.job-profile-panel .job-acc-entry { position: relative; padding: 16px; border-color: #e2eae7; background: #fafcfb; }
.job-profile-panel .job-acc-entry > [data-entry-remove] { justify-self: start; }
.job-profile-panel .dir-acc-add { min-height: 40px; padding: 8px 13px; border: 1px solid #bad7cf; background: #eff8f5; color: #006d60; font-weight: 800; }
.job-profile-panel .job-acc-checks { gap: 8px; margin-bottom: 12px; }
.job-profile-panel .job-acc-checks label { flex-direction: row; min-height: 34px; padding: 6px 12px; border-radius: 999px; line-height: 1.2; cursor: pointer; border: 1px solid #dce6e3; background: #fbfcfc; color: #35514c; font-size: 12px; }
.job-profile-panel .job-acc-checks label:has(input:checked) { border-color: #7fbaab; background: #eaf7f3; color: #005f52; }
.job-profile-panel .job-acc-checks input { width: 15px; height: 15px; min-height: 0; accent-color: #087c66; }
.job-profile-cv { display: flex; flex-direction: column; }
.job-profile-cv-status { display: grid; gap: 6px; margin-bottom: 14px; padding: 16px; border: 1px dashed #bfcfca; background: #fafcfb; }
.job-profile-cv-status.has-file { border-style: solid; border-color: #a9d2c7; background: #eef8f5; }
.job-profile-cv-status strong { font-size: 14px; overflow-wrap: anywhere; }
.job-profile-cv-status > span { color: #6a8182; font-size: 12px; }
.job-profile-cv-status .dir-acc-link { justify-self: start; }
.job-profile-upload { margin-top: auto; }
.job-profile-upload input { padding: 8px; background: #fff; }
.job-profile-save { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px 18px; border: 1px solid #a7cfc5; background: #f3faf8f2; box-shadow: 0 14px 36px #003b371a; backdrop-filter: blur(12px); }
.job-profile-save > div { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; }
.job-profile-save strong { font-size: 14px; }
.job-profile-save span { color: #6a8182; font-size: 12px; }
.job-profile-save .auth-submit { flex: none; width: auto; min-width: 200px; margin: 0; padding: 0 24px; }
.job-profile-choices { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.job-profile-choices legend { margin-bottom: 8px; padding: 0; color: #35514c; font-size: 12px; font-weight: 800; }
.job-profile-panel .job-acc-checks label:has(input:focus-visible) { outline: 2px solid #087c66; outline-offset: 2px; }

@media (max-width: 980px) {
  .job-profile-two-column { grid-template-columns: 1fr; }
  .job-profile-visibility-options { grid-template-columns: 1fr; }
  .job-profile-visibility-options .job-acc-radio { min-height: 0; }
}
@media (max-width: 620px) {
  .job-profile-progress { width: 100%; box-sizing: border-box; }
  .job-profile-panel { padding: 20px 18px; }
  .job-profile-fields { grid-template-columns: 1fr; }
  .job-profile-images { grid-template-columns: 1fr; }
  .job-profile-section-head { flex-direction: column; }
  .job-profile-save { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .job-profile-save .auth-submit { width: 100%; }
}

/* Phones: the apply card sits after the description, so offer a jump to it. */
.job-apply-jump { display: none; }
@media (max-width: 899px) {
  .job-apply-jump { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #003b37; color: #fff; text-decoration: none; }
  .job-apply-jump span { font-weight: 700; color: #bff3e6; }
  .job-apply-jump strong { margin-left: auto; font-size: 15px; }
  .job-apply-card { scroll-margin-top: 120px; }
}

.job-alert-row { margin: -6px 0 16px; }
.job-alert-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--dir-line); border-radius: 999px; background: #fff; color: var(--dir-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.job-alert-btn .ui-icon { width: 17px; height: 17px; }
.job-alert-btn:disabled { color: #0a7d5c; border-color: #bfe9d0; background: #effaf4; cursor: default; }
.job-invite-form { display: grid; gap: 10px; }
.job-invite-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.job-invite-form select { min-height: 42px; padding: 0 10px; border: 1px solid var(--dir-line); border-radius: 10px; font: inherit; }

.job-acc-actions { display: flex; align-items: center; gap: 16px; }
.job-acc-actions > a:not(.btn-teal) { font-weight: 700; color: var(--dir-ink); }
.job-acc-promo { align-self: center; font-size: 12px; font-weight: 700; color: #7a5200; background: #fbf3dc; padding: 3px 8px; border-radius: 6px; }
.job-acc-promote { grid-column: 1 / -1; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #f7faf8; }
.job-acc-promote p { margin: 0; }
.job-acc-product { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e0e7e1; border-radius: 10px; background: #fff; font: inherit; cursor: pointer; text-align: left; }
.job-acc-product:hover { border-color: #0a8f6f; }
.job-acc-product span { font-weight: 800; color: #0a6b53; white-space: nowrap; }

/* Marketplace ad cards on directory pages ("For sale on Afrocurve Marketplace",
   business products). Mirrors the search page grid in search.css, which these
   pages don't load. */
/* Cards take the homepage .ad-card design from app.css; only the grid lives here. */
.directory-page .search-ad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .directory-page .search-ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .directory-page .search-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Town links as chips (hubs and "in other towns"), matching the detail-page check chips. */
.dir-cities { display: flex; flex-wrap: wrap; gap: 10px; }
.dir-cities li { display: flex; }
.dir-cities a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid #edf0ee; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(16, 40, 34, .06); font-size: 14px; font-weight: 600; color: #13302b; }
.dir-cities a:hover { border-color: #aac8b5; color: #00634e; text-decoration: none; }
.dir-cities li:has(> a + small) a { padding-right: 44px; }
.dir-cities li { position: relative; }
.dir-cities li > small { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); min-width: 24px; padding: 2px 7px; border-radius: 999px; background: #e3f4ec; color: #0c6446; font-size: 11px; font-weight: 700; text-align: center; pointer-events: none; }

/* Directory and jobs cards align with the square 4px search-form corners. */
.dir-hero,
.dir-tile,
.pcard,
.dir-card,
.dir-profile-head,
.dir-claim,
.dir-claim-panel,
.dir-service,
.dir-side-card,
.dir-review-summary,
.dir-review,
.dir-review-form,
.dir-featured-strip,
.dir-related,
.dir-related-chips,
.job-featured,
.job-banner,
.job-facts,
.job-apply-card,
.job-safety { border-radius: 4px; }

.dir-action,
.dir-service-quote,
.dir-page-link,
.job-post-cta,
.jobs-page .search-panel-go,
.job-action,
.job-apply,
.job-dialog-actions :is(a, button),
.dir-dialog :is(button, .search-panel-go):not(.dir-dialog-close button),
.dir-form button { border-radius: 4px; }

.dir-near-pick select,
.dir-filters .search-filter select,
.dir-claim-option,
.dir-claim-field :is(input, select, textarea),
.dir-branches li,
.dir-gallery img,
.dir-dialog,
.job-dialog,
.job-dialog-form :is(input:not([type="checkbox"]), select, textarea),
.job-apply-profile,
.job-acc-radio,
.job-acc-cover-preview,
.job-acc-entry,
.job-apply-jump,
.job-alert-btn,
.job-invite-form select,
.job-acc-promote,
.job-acc-product,
.dir-cities a { border-radius: 4px; }

/* Shown to the owner on their own provider/business page (directory.js). */
.dx-owner-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #e2f4f1; color: #13302b; font-size: 14px; font-weight: 600; }
.dx--mine [data-quote], .dx--mine [data-save], .dx--mine [data-message-business], .dx--mine [data-follow-business],
.dx--mine [data-review-write], .dx--mine .dx-report, .dx--mine .dx-pills { display: none !important; }
.dx--mine .biz-actions { grid-template-columns: 1fr; }
.dx--mine .biz-visitor { display: none !important; }
.biz-manage, .dx-owner-bar:not(.is-mine) { display: none !important; }
.dx--mine .biz-manage { display: flex !important; }
.dx-owner-bar a { padding: 8px 16px; border-radius: 999px; background: #002f34; color: #fff; font-weight: 800; text-decoration: none; }
/* Clear the bottom tab bar (shown up to 768px: 62px + the home-indicator inset). */
@media (max-width: 768px) { .job-profile-save { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); } }
/* No picture on a card's tile: a blank icon, never initials. */
.pcard-tile .pcard-tile-blank { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9px; background: #eaf4ef; color: #1b6b58; }
.pcard-tile .pcard-tile-blank .ui-icon { width: 22px; height: 22px; }

/* ── B2B discovery: supplier catalogue, offerings and buyer requests ── */
.b2b-rfq-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.b2b-rfq-card { display: grid; align-content: start; gap: 8px; padding: 18px 0 0; border: 1px solid var(--dir-line); border-radius: 4px; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.b2b-rfq-card:hover { box-shadow: 0 10px 28px rgba(0, 47, 52, .1); transform: translateY(-2px); }
.b2b-rfq-card > *:not(.pcard-foot) { margin: 0 18px; }
.b2b-rfq-card h3 { margin-top: 2px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.b2b-rfq-card h3 a { color: inherit; text-decoration: none; }
.b2b-rfq-card h3 a::after { content: ''; position: absolute; inset: 0; }
.b2b-rfq-card { position: relative; }
.b2b-rfq-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.b2b-rfq-cat, .b2b-rfq-closes { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--dir-soft); color: #36574f; }
.b2b-rfq-cat .ui-icon, .b2b-rfq-closes .ui-icon { width: 15px; height: 15px; }
.b2b-rfq-closes.is-soon { background: #fff1e6; color: #b4530a; }
.b2b-rfq-buyer { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: #23312e; }
.b2b-rfq-buyer.is-muted { color: var(--dir-muted); font-weight: 500; }
.b2b-rfq-desc { color: #486660; font-size: 14px; line-height: 1.5; }
.b2b-rfq-card .pcard-foot { flex-wrap: wrap; row-gap: 6px; margin-top: 6px; }
.b2b-closes-big { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--dir-ink); }
.b2b-closes-big.is-soon { color: #b4530a; }
.b2b-files { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.b2b-files li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--dir-line); border-radius: 4px; }
.b2b-files li > span:not(.b2b-file-icon) { display: grid; flex: 1; min-width: 0; }
.b2b-files strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2b-files small { color: var(--dir-muted); text-transform: capitalize; }
.b2b-file-get { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--dir-ink); border-radius: 999px; background: #fff; color: var(--dir-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.b2b-file-get:disabled { opacity: .5; }
.b2b-specs { display: grid; gap: 0; margin: 0; }
.b2b-specs div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #edf1ef; }
.b2b-specs dt { color: var(--dir-muted); font-weight: 600; }
.b2b-specs dd { margin: 0; font-weight: 600; color: #23312e; }
.b2b-business-offerings .dir-grid { margin-top: 12px; }
.b2b-dialog label { display: grid; gap: 6px; font-weight: 700; color: var(--dir-ink); }
.b2b-dialog label[hidden] { display: none; }
.b2b-dialog select, .b2b-dialog textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--dir-line); border-radius: 4px; font: inherit; }
@media (max-width: 640px) {
  .b2b-page .job-filters { position: relative; flex-wrap: nowrap; overflow-x: auto; min-width: 0; width: calc(100% + 32px); max-width: calc(100% + 32px); box-sizing: border-box; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .b2b-page .job-filters > * { flex: none; }
  .b2b-rfq-list { grid-template-columns: 1fr; }
  .b2b-files li { flex-wrap: wrap; }
}
/* Offerings carry three facts (price · MOQ · markets): let them wrap rather than clip. */
.pcard--product .pcard-foot { flex-wrap: wrap; row-gap: 6px; column-gap: 14px; }
.pcard--product .pcard-dot { display: none; }
.pcard--product .pcard-meta:last-child { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; }
.job-logo > .ui-icon { width: 46%; height: 46%; }

/* ── B2B marketplace: homepage, catalogue, product, manufacturers, create ── */
.mk-product-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.mk-product-card { min-width: 0; overflow: hidden; border: 1px solid #d8e0dc; border-radius: 4px; background: #fff; color: #003b3d; transition: border-color .18s, box-shadow .18s, transform .18s; }
.mk-product-card:hover { border-color: #b8cbc1; box-shadow: 0 10px 26px rgba(0, 47, 52, .09); transform: translateY(-2px); }
.mk-product-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #edf2ef; color: #789087; }
.mk-product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mk-product-card:hover .mk-product-photo img { transform: scale(1.025); }
.mk-product-photo > .ui-icon { width: 48px; height: 48px; opacity: .55; }
.mk-product-photo .promo-badges { position: absolute; top: 12px; left: 12px; }
.mk-product-card-body { padding: 22px 26px 20px; }
.mk-product-card h3 { margin: 0; color: #003b3d; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.mk-product-card h3 a { color: inherit; text-decoration: none; }
.mk-product-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mk-product-card-price { margin: 28px 0 0; color: #003b3d; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.mk-product-card-moq { margin: 7px 0 0; color: #658078; font-size: 13px; font-weight: 600; }
.mk-product-card-supplier { display: flex; align-items: center; gap: 3px; margin: 17px 0 0; color: #4d6d65; font-size: 14px; font-weight: 600; }
.mk-product-card-place { display: flex; align-items: center; gap: 9px; margin: 25px 0 0; color: #42656a; font-size: 15px; }
.mk-product-card-place .ui-icon { width: 19px; height: 19px; flex: none; }
.mk-product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; margin-top: 26px; padding-top: 16px; border-top: 1px solid #e5e9e7; color: #698279; font-size: 13px; }
.mk-product-save { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: #f2f6f3; color: #527b6b; cursor: pointer; }
.mk-product-save .ui-icon { width: 27px; height: 27px; }
.mk-product-save:hover { background: #e6f0ea; color: #176d58; }
.mk-product-save:focus-visible { outline: 3px solid #218a70; outline-offset: 2px; }
.mk-product-save.is-saved { background: #dff2e8; color: #0b765c; }
@media (max-width: 559px) {
  .mk-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mk-product-card-body { padding: 14px 14px 12px; }
  .mk-product-card h3 { font-size: 16px; }
  .mk-product-card-price { margin-top: 16px; font-size: 19px; }
  .mk-product-card-supplier { margin-top: 12px; }
  .mk-product-card-place { margin-top: 16px; font-size: 13px; }
  .mk-product-card-foot { margin-top: 18px; padding-top: 12px; font-size: 11px; }
  .mk-product-save { width: 38px; height: 38px; }
  .mk-product-save .ui-icon { width: 23px; height: 23px; }
}
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip { padding: 9px 14px; border: 1px solid var(--dir-line); border-radius: 999px; background: #fff; color: var(--dir-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.mk-chip.is-soon { color: var(--dir-muted); border-style: dashed; }
.mk-soon { color: var(--dir-muted); margin: 10px 0 0; }
.mk-empty { padding: 18px; }
.mk-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mk-countries a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--dir-line); border-radius: 4px; background: #fff; color: var(--dir-ink); font-weight: 700; text-decoration: none; }
.mk-countries a span { font-size: 22px; line-height: 1; }
.mk-more-countries { margin: 10px 0 0; }
.mk-more-countries select, .mk-ccy select { min-height: 34px; border: 1px solid var(--dir-line); border-radius: 999px; padding: 0 10px; background: #fff; font: inherit; font-size: 14px; }
.mk-ccy { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mk-subcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 12px; padding-bottom: 2px; }
.mk-subcats a { flex: none; padding: 8px 14px; border: 1px solid var(--dir-line); border-radius: 999px; background: #fff; color: var(--dir-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.mk-subcats a[aria-current="page"] { background: var(--dir-ink); color: #fff; border-color: var(--dir-ink); }
.mk-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--dir-line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.mk-toggle input { accent-color: #1b8068; }
.mk-price-original { margin: -4px 0 12px; color: var(--dir-muted); font-size: 13px; }
.mk-offers { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.mk-offers li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mk-offers li .ui-icon { width: 18px; height: 18px; }
.mk-offers li.is-yes .ui-icon { color: #0a7d5c; }
.mk-offers li.is-no { color: var(--dir-muted); font-weight: 500; }
.mk-gallery { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0; }
.mk-gallery img { width: 110px; height: 82px; object-fit: cover; border-radius: 4px; border: 1px solid var(--dir-line); }
.mfr-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mfr-card { display: grid; gap: 10px; align-content: start; padding: 18px; border: 1px solid var(--dir-line); border-radius: 4px; background: #fff; }
.mfr-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.mfr-logo { display: grid; place-items: center; width: 54px; height: 54px; flex: none; overflow: hidden; border-radius: 14px; background: #eef3f1; color: #7d918c; }
.mfr-logo img { width: 100%; height: 100%; object-fit: cover; }
.mfr-logo .ui-icon { width: 26px; height: 26px; }
.mfr-id { display: grid; min-width: 0; }
.mfr-id strong { display: flex; align-items: center; gap: 4px; font-size: 17px; color: var(--dir-ink); }
.mfr-id small { color: var(--dir-muted); font-size: 13px; }
.mfr-types { margin: 0; font-size: 13px; font-weight: 700; color: #1b8068; }
.mfr-caps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.mfr-caps span { padding: 4px 9px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: 12px; font-weight: 700; }
.mfr-products { display: grid; gap: 4px; margin: 0; padding: 10px 0 0; border-top: 1px solid #edf1ef; list-style: none; font-size: 14px; }
.mfr-products a { color: var(--dir-ink); }
.mfr-makes { margin: 0; color: #486660; font-size: 14px; }
.mk-create { display: grid; gap: 10px; max-width: 720px; }
.mk-create-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--dir-line); border-radius: 4px; background: #fff; color: var(--dir-ink); text-decoration: none; }
.mk-create-opt:hover { box-shadow: 0 8px 22px rgba(0, 47, 52, .08); }
.mk-create-opt > span:last-child { display: grid; }
.mk-create-opt small { color: var(--dir-muted); font-size: 14px; }
.mk-create-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: #e7f4ed; color: #1d5a47; }
.biz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.biz-actions .biz-visitor, .biz-actions .biz-manage { grid-column: 1 / -1; }
.biz-actions .dx-cta small { font-weight: 600; opacity: .7; }
.biz-follow[aria-pressed="true"] { background: #e7f4ed; border-color: #1b8068; color: #1b8068; }
.biz-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px; border: 1px solid var(--dir-line); border-radius: 4px; background: #fff; }
.biz-tabs a { flex: none; padding: 8px 12px; border-radius: 4px; color: var(--dir-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.biz-tabs a:hover { background: var(--dir-soft); }
.dx-who-types { font-weight: 700; color: #1b8068; }
@media (max-width: 720px) {
  .mk-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-page .job-filters { position: relative; flex-wrap: nowrap; overflow-x: auto; min-width: 0; width: calc(100% + 32px); max-width: calc(100% + 32px); box-sizing: border-box; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .mk-page .job-filters > * { flex: none; }
}
/* /locations: places without a directory page of their own are plain text in the same pill. */
.dir-cities .dir-city-plain { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--dir-line); border-radius: 4px; background: #fff; color: var(--dir-ink); font-weight: 600; }
.dir-cities li:has(> .dir-city-plain + small) .dir-city-plain { padding-right: 44px; }
.dir-browse-note { margin: -4px 0 8px; color: var(--dir-muted); font-size: 13px; }
.dir-browse-group { scroll-margin-top: 120px; }
/* Professional profiles (Phase 3): actions under the name, team and experience lists. */
.pro-actions { display: grid; gap: 8px; margin-top: 14px; }
.pro-actions[hidden] { display: none; }
.pro-teams, .pro-experience { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pro-experience p { margin: 4px 0 0; color: var(--dir-muted); font-size: 14px; }
.dx-link { padding: 0; border: 0; background: none; color: #0c6446; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
/* Opportunity details (Phase 4): the type's own fields. */
.b2b-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin: 0 0 6px; }
.b2b-detail-row dt { color: var(--dir-muted); font-size: 12px; font-weight: 700; }
.b2b-detail-row dd { margin: 2px 0 0; font-weight: 700; color: var(--dir-ink); }
.pro-actions [hidden] { display: none !important; }

/* Universal search (roadmap Phase 7): one row of type filters with counts. */
.search-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.search-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #dbe5e3; border-radius: 4px; background: #fff; color: #18352f; font-size: 14px; font-weight: 600; text-decoration: none; }
.search-tabs a small { color: #6a8182; font-weight: 600; }
.search-tabs a[aria-current="page"] { border-color: #003b37; background: #003b37; color: #fff; }
.search-tabs a[aria-current="page"] small { color: #cfe3de; }
/* Boosted opportunities (roadmap Phase 8). */
.b2b-rfq-card.is-promo { border-color: #e7c66a; box-shadow: 0 0 0 1px #f3dc97 inset; }
.b2b-rfq-card > .promo-badges { position: static; display: flex; margin: -6px 16px 0; }
/* Jobs ↔ Professionals cross-link (they stay separate sections). */
.dir-cross { margin: 8px 0 0; color: #4d6662; font-size: 14px; }
.dir-cross a { color: #006d60; font-weight: 700; }

/* "Where?" — one country, several, or anywhere in Africa (site-chrome.js AfrocurveWhere). */
.where { display: grid; gap: 10px; }
.b2b-where-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--dir-ink, #0f2a26); }
.where-modes { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--dir-line, #e4ded2); border-radius: 4px; background: #fff; justify-self: start; }
.where-mode { position: relative; margin: 0; }
.where-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.where-mode span { display: block; padding: 7px 12px; border-radius: 4px; font-size: 14px; font-weight: 700; color: #3e5f58; white-space: nowrap; }
.where-mode input:checked + span { background: #003b37; color: #fff; }
.where-mode input:focus-visible + span { outline: 2px solid #23e5db; outline-offset: 1px; }
.where-one select { width: 100%; }
.where-many { display: grid; gap: 8px; }
.where-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.where-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 999px; background: #e3f4ea; color: #003b37; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.where-chip:hover { background: #cfeadb; }
.where-hint, .where-any { font-size: 13px; color: var(--dir-muted, #6b7f78); margin: 0; }
.where-search { width: 100%; }
.where-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; max-height: 220px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--dir-line, #e4ded2); border-radius: 4px; background: #fff; }
.where-list label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.where-list label[hidden] { display: none; }
/* Form styles (labels as stacked blocks, full-size inputs) must not reach inside the control. */
.where .where-list label { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 8px; margin: 0; padding: 5px 0; font-size: 14px; font-weight: 500; color: inherit; }
.where .where-list input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: #003b37; box-shadow: none; }
.where .where-mode { display: block; margin: 0; }
.where .where-mode input { width: auto; height: auto; min-height: 0; padding: 0; }

/* Portfolio projects and the photo lightbox (directory.js). */
.dx-portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .dx-portfolio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dx-project { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: zoom-in; }
.dx-project-img { position: relative; display: block; margin-bottom: 6px; }
.dx-project-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #efebe4; }
.dx-project-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 700; }
.dx-project-count .ui-icon { width: 14px; height: 14px; }
.dx-project strong { font-size: 15px; line-height: 1.3; }
.dx-project small { color: #5d6b69; font-size: 13px; }
.dx-project:focus-visible .dx-project-img img, .dir-gallery img:focus-visible { outline: 3px solid #002f34; outline-offset: 2px; }
.dir-gallery img { cursor: zoom-in; }
.dx-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; background: rgba(8, 14, 13, .94); }
.dx-lightbox[hidden] { display: none !important; }
body.has-dx-lightbox { overflow: hidden; }
.dx-lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1100px, 100%); max-height: 100%; }
.dx-lb-stage img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 4px; }
.dx-lb-stage figcaption { display: flex; flex-direction: column; gap: 4px; max-width: 640px; color: #e9eeed; text-align: center; font-size: 14px; white-space: pre-line; }
.dx-lb-stage figcaption strong { color: #fff; font-size: 16px; }
.dx-lb-stage figcaption small { color: #aab6b4; }
.dx-lb-close, .dx-lb-nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.dx-lb-close:hover, .dx-lb-nav:hover { background: rgba(255, 255, 255, .26); }
.dx-lb-close { top: 12px; right: 12px; }
.dx-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.dx-lb-next { right: 12px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.dx-lb-nav[hidden] { display: none; }
@media (max-width: 640px) { .dx-lb-nav { top: auto; bottom: 16px; transform: none; } .dx-lb-next { transform: rotate(180deg); } }
.dx-lb-stage figcaption[hidden] { display: none; }
