/* Suggest Sites: styles for the dynamic (WordPress) markup. */

/* Initials tile when a listing has no website screenshot (design's placeholder look) */
.ss-initials { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--color-primary); background: radial-gradient(circle at 30% 30%, rgba(140, 211, 74, 0.22), transparent 60%), var(--color-tint); }
.ss-initials--project { position: absolute; inset: 0; font-size: 5rem; }

/* Website screenshots fill their boxes from the top */
.listing-card__media img, .project-card > img, .post-card__media img { object-position: top; }
.listing-card h3 a, .project-card__foot h3 a, .listing-head__title a { color: inherit; }
.listing-head__logo.ss-logo { overflow: hidden; }
.listing-head__logo.ss-logo img { width: 100%; height: 100%; object-fit: cover; object-position: top; animation: none; }
.listing-head__logo.ss-logo .ss-initials { font-size: 2.2rem; }
.ss-preview { display: block; margin-top: 14px; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.ss-preview img { display: block; width: 100%; height: 420px; object-fit: cover; object-position: top; }
.ss-preview .ss-initials { height: 260px; }

/* Category photos in the design's cut-corner icon squares */
.icon-cut.ss-cat-photo { overflow: hidden; }
.icon-cut.ss-cat-photo img { width: 100%; height: 100%; object-fit: cover; }

/* "Listings per category" chart: bar heights from real counts */
.is-visible .bar-chart__bar[style] { height: var(--h); }

/* Reviews: initials instead of reviewer photos */
.ss-review-initial { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-weight: 700; color: var(--color-white); background-color: var(--color-primary); }
.ss-stars { margin: 4px 0 6px; color: #f5b301; letter-spacing: 2px; }
.ss-video { position: relative; aspect-ratio: 16 / 9; height: auto; }
.ss-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-content p + p { margin-top: 14px; }

/* Articles, legal pages, sitemap */
.ss-post-body > * + *, .ss-legal > * + * { margin-top: 16px; }
.ss-post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.ss-legal h2 { margin-top: 34px; }
.ss-legal h3 { margin-top: 22px; }
.ss-legal ul { padding-left: 20px; list-style: disc; }
.ss-post-faq { margin-top: 36px; }
.ss-post-faq h3 { margin-bottom: 14px; }
.ss-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-sitemap-wide { margin-top: 30px; }

/* Grid/flex children must be allowed to shrink on phones */
.with-sidebar > *, .split > *, .footer-main > * { min-width: 0; }

/* Slide-in reveals start 100px off to the side; never let them widen the page */
html, body { overflow-x: clip; }
