/* Smash Listings — WordPress additions */

/* Admin bar: keep the header below it */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.is-sticky { top: 0; } }

/* Server-rendered website screenshots (thum.io, then mShots, then initials) */
.shot__view img.sl-img { opacity: 1; }
.sl-initials { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), #0b2a8a); color: var(--cyan); font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: .02em; }
.sl-frame-link { display: block; position: relative; z-index: 2; }
.spot__shot { display: block; }

/* Business name links to the business website; image and "View listing" go to the listing page */
.l-cell h3 a.sl-name-link::after { content: none; }
.sl-name-link { color: inherit; }
.sl-name a.sl-name-link, h1 .sl-name-link { color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: .15em; text-decoration-thickness: 1px; }
.sl-name a.sl-name-link:hover, h1 .sl-name-link:hover { color: var(--cyan); }
.spot__slide h2 a { color: inherit; }
.sl-cell-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; position: relative; z-index: 2; }
.sl-more { font-size: .9rem; }
.l-row .sl-more { margin-top: 1rem; }
.l-row__facts a { color: inherit; }
.l-row__facts svg { width: 15px; height: 15px; }

/* Sort links (category page) */
.sl-sort { display: flex; gap: 1rem; align-items: center; font-family: var(--display); margin-bottom: 1.6rem; }
.sl-sort a { color: var(--muted); border-bottom: 1px solid transparent; }
.sl-sort a[aria-current] { color: var(--royal); border-bottom-color: currentColor; }
.pager .sl-dots { border: 0; min-width: 24px; padding: 0; }

/* Category photo thumbs in text lists */
.a-list .sl-alink { color: inherit; display: inline-flex; align-items: center; gap: .7rem; }
.sl-athumb { width: 30px; height: 30px; object-fit: cover; flex: none; display: inline-block; }
.map-cols a.sl-map-cat { display: flex; align-items: center; gap: .7rem; }

/* Blog list with a sidebar */
.posts--2 .post--wide { grid-column: span 2; }
@media (max-width: 1024px) { .posts--2 .post--wide { grid-column: auto; display: block; } }
.post__img { display: block; }
.sl-side { display: grid; gap: 1.5rem; align-self: start; }
.sl-side .aside { position: static; }
.sl-toc .a-list a { font-size: .95rem; }

/* Post extras */
.sl-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.sl-progress span { display: block; height: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .sl-progress { top: 32px; }
.sl-prose > * + * { margin-top: 1.1em; }
.sl-prose img { max-width: 100%; height: auto; }
.sl-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.sl-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.sl-prose .aligncenter { display: block; margin-inline: auto; }
.sl-post-faq { margin-top: 3rem; }
.sl-post-faq h2 { margin-bottom: 1.4rem; }
.sl-faq-ans { padding: 0 60px 1.8rem 76px; }
.sl-faq-ans p { margin: 0 0 .8em; }
@media (max-width: 767px) { .sl-faq-ans { padding: 0 0 1.4rem; } }
.sl-tags { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 2.5rem; font-family: var(--display); }
.sl-tags a { color: var(--royal); }
.sl-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.sl-pn a { border: 1px solid var(--line); padding: 1.4rem; display: grid; gap: .4rem; transition: border-color .3s; }
.sl-pn a:hover { border-color: var(--royal); }
.sl-pn a.next { text-align: right; }
.sl-pn small { color: var(--muted); }
.sl-pn strong { font-family: var(--display); font-weight: 500; color: var(--ink); }
@media (max-width: 600px) { .sl-pn { grid-template-columns: 1fr; } .sl-pn a.next { text-align: left; } }

/* FAQ: plus when closed, minus when open */
.faq details[open] summary i { transform: none; background: var(--mist); }
.faq details[open] summary i::after { opacity: 0; }

/* Listing page */
.sl-reviews { display: grid; gap: 1rem; }
.sl-review { border: 1px solid var(--line); padding: 1.5rem 1.6rem; background: #fff; }
.sl-review__top { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.sl-review__top strong { display: block; font-family: var(--display); font-weight: 500; color: var(--ink); }
.sl-review__top small { color: var(--muted); font-size: .82rem; }
.sl-review__top .sl-stars { margin-left: auto; }
.sl-review__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cyan); font-family: var(--display); font-size: .9rem; flex: none; }
.sl-review p { margin: 0; }
.sl-stars { color: #d7d9e1; letter-spacing: .05em; white-space: nowrap; }
.sl-stars .is-on { color: #f5b301; }
.sl-claim svg { color: #f5b301; }
.sl-video { position: relative; aspect-ratio: 16 / 9; background: var(--soft); }
.sl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sl-open { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); color: #1a8f4a; margin-bottom: 1rem; }
.sl-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sl-open.is-closed { color: #c62839; }
.sl-hours .is-today { color: var(--royal); font-weight: 600; }
.sl-gallery .photo { display: block; }
.sl-gallery figure { min-width: 0; }
@media (min-width: 768px) { .sl-gallery { grid-template-columns: repeat(3, 1fr); } .sl-gallery figure:first-child { grid-column: span 2; grid-row: span 2; } }

/* Footer "Get listed" block */
.f-sub-wrap h3 { color: #fff; }
.f-sub-wrap p { margin-bottom: 1.2rem; }
.cell__img { display: block; }
.cta__grid { padding-left: var(--gutter); padding-right: var(--gutter); }
.sl-body { padding-left: var(--gutter); padding-right: var(--gutter); }
.with-aside > *, .l-row > *, .sl-body > *, .ch > div { min-width: 0; }
.sl-side > *, .aside > * { min-width: 0; }
