/* Dynamic additions for the WordPress build. */

/* Website screenshots + initials fallback */
.wd-shot { position: relative; overflow: hidden; }
.listing-card .thumb .wd-shot { display: block; width: 100%; height: 100%; }
.wd-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wd-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font: 700 3rem var(--ff-head);
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--accent) 140%);
}
.xo-hero-main.wd-shot > img { position: absolute; inset: 0; }
.xo-team.wd-shot > img { position: absolute; inset: 0; }
.wd-name-link { color: inherit; }
.wd-name-link:hover { color: var(--accent); }
.xo-hero-main h1 .wd-name-link:hover { color: var(--primary-2); }

/* Ratings */
.stars .wd-off { opacity: 0.25; }
.wd-unrated { color: var(--muted); font-size: 0.85rem; }
.listing-card .wd-view { margin-top: 12px; }

/* Category photos in the design's icon circles and pills */
.cat-card .wd-cat-photo { overflow: hidden; padding: 0; }
.cat-card .wd-cat-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat-pill .wd-thumb { width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cat-pill { display: flex; align-items: center; }
.cat-pill .count { margin-left: auto; }

/* Pagination (WordPress markup) */
.wd-pager .page-numbers { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font: 600 .95rem var(--ff-head); color: var(--ink); }
.wd-pager .page-numbers.on, .wd-pager a.page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.wd-pager .dots { border-color: transparent; }
.wd-pager .prev, .wd-pager .next { width: auto; padding: 0 18px; border-radius: 999px; }
.wd-empty { grid-column: 1 / -1; padding: 30px; border-radius: var(--radius); background: var(--soft); }

/* Listing details */
.wd-prose p + p { margin-top: 14px; }
.wd-prose h2, .wd-prose h3 { margin-top: 30px; }
.wd-prose ul { padding-left: 20px; list-style: disc; }
.wd-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.wd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wd-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.wd-socials a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); }
.wd-socials a:hover { border-color: var(--accent); color: var(--accent); }
.xs-fact a { word-break: break-word; }

/* Blog post FAQ */
.wd-post-faq { margin-top: 40px; }
.wd-post-faq h2 { margin-bottom: 18px; }
.xo-brands .wd-strip-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.xo-brands a.b { color: inherit; }
