/* 13 Nov 2026 (w6-show-profile): the directory, company profile and quote-request pages' own rules. The Tailwind bundle is prebuilt, so
   what it lacks lives here, loaded only by these pages (never by the shared layout). Colours are the bundle's own emerald and greys. */

/* Phone and tablet: every chip, page number and small link on these pages is at least 44 px tall (the 390 px check found 30 px chips,
   36 px page numbers and 16 px "Clear all" links). */
@media (max-width: 1023.98px) {
    .dir-tap { min-height: 44px; display: inline-flex; align-items: center; }
    /* A flex chip drops the space between a town and its count ("Nairobi148"): put it back as a gap. */
    .dir-chips > a.dir-tap { gap: .3em; }
    /* A link that is its own line stays its own line. */
    .dir-tap.block { display: flex; }
    /* The map's zoom buttons (Leaflet draws them 30 px). */
    .leaflet-container.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
    .dir-tap-sq { min-height: 44px; min-width: 44px; }
    /* Padding, not flex: a summary that is not a list item loses its disclosure triangle. */
    details.dir-tap-d > summary { padding-top: .75rem; padding-bottom: .75rem; }
}

/* Phone: the profile's header. The logo tile is smaller so a long name keeps its width, and the buttons that the fixed phone bar
   already carries (ask for a quote, call) are not drawn twice. */
@media (max-width: 767.98px) {
    .dir-logo { width: 3.5rem; height: 3.5rem; border-radius: .875rem; }
    .dir-logo > span { font-size: 1.25rem; }
    .dir-bar-dup { display: none !important; }
}

/* The owner's panel: how much of the listing is filled in. */
.dir-meter { height: .5rem; border-radius: 9999px; background: rgba(148, 163, 184, .25); overflow: hidden; }
.dir-meter > span { display: block; height: 100%; border-radius: 9999px; background: #10b981; }

/* Map pins on the profile and branch pages: drawn, not Leaflet's default picture (which this site does not carry). */
.dir-pin { background: #10b981; border: 3px solid #fff; border-radius: 9999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .55); }

/* Photos of work open full size in a new tab. */
a.dir-photo { display: block; cursor: zoom-in; }
a.dir-photo:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; border-radius: .75rem; }
