/* Avant Directory: styles for the dynamic WordPress templates. */

/* Admin bar */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header.is-scrolled { top: 0; } }

/* Website screenshots and initials */
.av-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.av-initials {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
  font-family: var(--font-display); font-stretch: var(--stretch); font-weight: 800; font-size: clamp(34px, 5vw, 60px); letter-spacing: .02em;
  color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-deep, #4a12b0));
}
.listing-card .thumb .av-img, .post-card .thumb .av-img, .work-card .av-img { transition: transform .7s var(--ease); }
.listing-card:hover .thumb .av-img { transform: scale(1.05); }
.listing-card .thumb { display: block; }
.post-card .thumb { display: block; }
.work-card.av-work-card { background: #fff; }
.work-card .av-initials { font-size: clamp(48px, 8vw, 110px); }
.pcard .pic.av-pic { overflow: hidden; aspect-ratio: 1; }
.pcard .pic.av-pic .av-img, .pcard .pic.av-pic .av-initials { border-radius: 15px; aspect-ratio: 1; }
.pcard .pic.av-pic .av-initials { font-size: 40px; }

/* Initials in place of the design's sample logos */
.av-logo, .av-logo-sq, .av-idx-logo {
  display: grid; place-items: center; font-family: var(--font-display); font-stretch: var(--stretch); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep, #4a12b0));
}
.listing-card .logo.av-logo { font-size: 16px; }
.b3-title .logo-sq.av-logo-sq { font-size: 22px; }
.av-idx-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }

/* Business name opens the website */
.av-name-link { color: inherit; }
.av-name-link:hover { color: var(--violet); }
.work-cap .c .av-name-link { display: block; font-weight: 700; }
.work-cap .r a { color: inherit; }

/* Category thumbs in text lists */
.av-thumb { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.av-side-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.side-links a { gap: 10px; }
.av-clear { margin-top: 8px; }
.cat-card .go { z-index: 2; }

/* Empty states rendered by PHP are always visible */
.empty-state.av-empty { display: block; }
.empty-state.av-empty .btn { margin-top: 14px; }

/* Pagination */
.pagination { flex-wrap: wrap; }
.pagination .av-dots { display: grid; place-items: center; min-width: 30px; color: var(--muted); }

/* Footer: replaces the newsletter */
.av-footer-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* Detail page */
.b3-photo > img.av-hero-shot { object-position: top center; }
.b3-chips .chip { text-decoration: none; }
.av-b3-info { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.av-b3-big { font-family: var(--font-display); font-stretch: var(--stretch); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3vw, 44px); line-height: .95; }
.av-b3-host { overflow-wrap: anywhere; font-size: clamp(20px, 2vw, 28px) !important; text-transform: none !important; }
.b3-rating { color: inherit; text-decoration: none; }
.av-lead p { margin: 0 0 1em; }
.av-lead p:last-child { margin-bottom: 0; }
.av-fact-text { font-size: 20px !important; line-height: 1.15 !important; }
.av-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.av-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: #000; }
.av-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.av-claim { align-items: center; }
.av-claim-right { display: flex; align-items: center; justify-content: flex-start; }
.week .bar[style*="--c:0"] i { display: none; }

/* Blog */
.av-progress { position: fixed; top: 0; left: 0; z-index: 200; width: 100%; height: 3px; pointer-events: none; }
.admin-bar .av-progress { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .av-progress { top: 46px; } }
.av-progress span { display: block; width: 0; height: 100%; background: var(--violet); }
.article-layout.av-no-toc { grid-template-columns: minmax(0, 760px) 1fr; }
.av-post-faq { margin: 12px 0 28px; }
.av-post-tags { margin: 28px 0; }
.av-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.av-pn a { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--mist); text-decoration: none; color: inherit; transition: background .25s; }
.av-pn a:hover { background: var(--lilac); }
.av-pn small { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.av-pn strong { font-family: var(--font-display); font-stretch: var(--stretch); text-transform: uppercase; font-size: 17px; line-height: 1.1; }
.av-pn__next { text-align: right; grid-column: 2; }
.av-pn__next small { justify-content: flex-end; }

/* Sitemap */
.av-sitemap-wide { grid-column: 1 / -1; }
.av-sitemap-listings { columns: 3 220px; column-gap: 12px; }
.av-sitemap-listings li { break-inside: avoid; }

/* Grid children must be allowed to shrink at phone width */
.dir-layout > *, .listing-grid > *, .sl3-layout > *, .bento3 > *, .talk-grid > *, .news-layout > *, .faq-layout > * { min-width: 0; }

@media (max-width: 640px) {
  .av-pn { grid-template-columns: 1fr; }
  .av-pn__next { grid-column: auto; }
}
.cat-card > span:last-child { margin-top: auto; }
.listing-card .logo.av-logo { background: linear-gradient(135deg, var(--violet), var(--violet-deep, #4a12b0)); color: #fff; }
.week li { grid-template-columns: 52px 1fr 150px; }
.week-scale { padding-right: 176px; }
@media (max-width: 560px) { .week li { grid-template-columns: 40px 1fr 118px; } }
