/* BizTrail: styles for server-rendered data (screenshots, category photos, post FAQ). */

/* Initials fallback when a website screenshot is unavailable */
.bt-initials {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--color-ink);
    color: var(--color-lime);
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 700;
}
.bt-initials--sm { font-size: 22px; border-radius: var(--radius-sm); }
.work-strip__item .bt-initials { min-height: 100%; }

/* Category photos in the A-Z tile slots (never icons) */
.category-tile__icon.bt-tile-photo { overflow: hidden; background-color: var(--color-cream); }
.category-tile__icon.bt-tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.bt-tile-count { font-family: var(--font-body); font-size: 13px; font-weight: 500; opacity: 0.6; }
.widget__list a.is-active { color: var(--color-red); }

/* Sidebar listing thumbnails */
.bt-nearby-shot { display: block; width: 70px; height: 70px; overflow: hidden; border-radius: var(--radius-sm); }
.bt-nearby-shot img, .bt-nearby-shot .bt-initials { width: 70px; height: 70px; object-fit: cover; object-position: top; }
.bt-nearby-view { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--color-red); }
.bt-nearby-view i { font-size: 11px; margin-left: 2px; }

/* Business name links to the website */
.bt-name-link:hover { color: var(--color-red); }
.listing-hero__title .bt-name-link { color: inherit; }

/* Toolbar sort works as a small form */
form.toolbar { margin-bottom: 30px; }

/* Video embed */
.bt-video iframe { aspect-ratio: 16 / 9; height: auto; }

/* Blog post FAQ: + when closed, − when open */
.bt-post-faq { margin-top: 40px; }
.bt-post-faq h2 { margin-bottom: 20px; }
.bt-post-faq .accordion__item { border: 1px solid var(--color-line); }
.bt-post-faq .accordion__btn i::before { content: "+"; font-style: normal; font-size: 22px; line-height: 1; }
.bt-post-faq .accordion__item.is-open .accordion__btn i { transform: none; }
.bt-post-faq .accordion__item.is-open .accordion__btn i::before { content: "\2212"; }
.bt-post-faq .accordion__panel p:first-child { margin-top: 0; }
