/* Adams Directory — dynamic theme additions */
html, body { overflow-x: clip; }
.layout > *, .duo > *, .lcards > *, .post-grid > *, .cells > * { min-width: 0; }

/* Website screenshots fill the design's thumb boxes, top of the page first */
.lcard .thumb.is-photo, .feat-logo.is-photo, .ad-side-shot { position: relative; padding: 0; }
.lcard .thumb.is-photo img, .feat-logo.is-photo img, .ad-side-shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: top center; }
.ad-side-shot { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--grey); border: 1px solid var(--line); }
.feat-logo.is-photo { height: 150px; max-width: none; }
.ad-initials { position: absolute; inset: 0; display: grid; place-items: center; background: var(--yellow); color: #000; font: 800 2.4rem/1 var(--font); letter-spacing: -.03em; }
.dark .ad-initials { background: var(--green); }

/* Names link to the business website */
a.ad-name-link { color: inherit; }
.lhero h1 a.ad-name-link { display: inline; }
.ad-tagline { margin: -1rem 0 2rem; color: #cfcfcf; max-width: 60ch; }
.lcard .meta .ad-view { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }

/* Category photos in the hero strip and the A–Z tiles */
.tile.ad-tile { padding: 0; overflow: hidden; }
.tile.ad-tile img { width: 100%; height: 100%; object-fit: cover; }
.ctile .mono.ad-mono { overflow: hidden; padding: 0; }
.ctile .mono.ad-mono img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ: + / − */
.faq details[open] summary::after { transform: none; background: linear-gradient(#000,#000) center/100% 2px no-repeat; }
.dark .faq details[open] summary::after { background: linear-gradient(#fff,#fff) center/100% 2px no-repeat; }
.ad-post-faq { margin-top: 3rem; }
.ad-post-faq .faq details > div { padding-left: 60px; }

/* Single listing */
.ad-rating-solo { grid-template-columns: 1fr; }
.ad-rating-solo .rating-big { border-right: 0; }
.duo.ad-duo-one { grid-template-columns: 1fr; }
.side-block li.small { text-transform: uppercase; }

/* Search sidebar: current category */
.side-block ul a.is-on { color: var(--orange); font-weight: 700; }

/* Journal search results */
.post-grid.ad-post-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .post-grid.ad-post-grid-2 { grid-template-columns: 1fr; } }

/* Footer latest articles */
.ad-flatest { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ad-flatest a { color: #cfcfcf; font-size: .92rem; }
.ad-flatest a:hover { color: var(--yellow); }

/* Pagination */
.ad-pager { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 2.5rem; width: max-content; max-width: 100%; }
.ad-pager .page-numbers { min-width: 46px; height: 46px; padding: 0 .9rem; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; font-size: .85rem; background: #fff; }
.ad-pager a.page-numbers:hover { background: var(--yellow); }
.ad-pager .page-numbers.current { background: #000; color: #fff; }

/* Post and page content */
.article img { max-width: 100%; height: auto; }
.legal ul { padding-left: 1.2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }

/* Listing hero: as many columns as there are real facts / actions */
.lhero-meta[data-n="1"], .lactions[data-n="1"] { grid-template-columns: 1fr; }
.lhero-meta[data-n="2"], .lactions[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.lhero-meta[data-n="3"], .lactions[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
  .lhero-meta[data-n="3"], .lhero-meta[data-n="4"], .lactions[data-n="3"], .lactions[data-n="4"] { grid-template-columns: 1fr 1fr; }
  .lactions[data-n="3"] a:last-child { grid-column: 1 / -1; }
}

/* The search page's inline four-column bar would squeeze phones */
@media (max-width: 700px) { .lsearch[style] { grid-template-columns: 1fr !important; } }
