/* DirectoryNinja — dynamic theme additions */
html, body { overflow-x: clip; }
.category-single-listing-layout > *, .renvia-blog-details__layout > *, .single-listing-tabs-layout > *, .search-results-grid > *, .renvia-news__grid > * { min-width: 0; }

/* Website screenshots fill the card image box, top of the page first */
.homz-project-image.dn-shot { padding: 0; }
.homz-project-image.dn-shot::before { z-index: 1; }
.homz-project-image.dn-shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: top center; mix-blend-mode: normal; filter: none; }
.listing-detail-logo-card.dn-shot { padding: 0; overflow: hidden; position: relative; }
.listing-detail-logo-card.dn-shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: top center; }
.dn-initials { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink, #080d0e); color: #fff; font-family: var(--serif, serif); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.homz-project-category { position: relative; z-index: 2; }

/* Names link to the business website */
a.dn-name-link { color: inherit; }
.listing-detail-title-row h1 a.dn-name-link { text-decoration: none; }
.dn-detail-tagline { margin: -4px 0 18px; }

/* Category photo in the sidebar list */
.category-single-sidebar__icon.dn-cat-thumb { width: 30px; height: 30px; border-radius: 6px; overflow: hidden; }
.category-single-sidebar__icon.dn-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-single-sidebar__link.is-active .category-single-sidebar__title { font-weight: 600; }

/* Toolbar sort + pager + empty */
.dn-sort select { border: 1px solid var(--line-strong, #ccc); border-radius: 999px; padding: 8px 14px; background: #fff; font: inherit; font-size: .875rem; }
.pb-toolbar { flex-wrap: wrap; gap: 12px; }
.dn-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.dn-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border: 1px solid var(--line-strong, #ccc); border-radius: 999px; font-weight: 600; background: #fff; }
.dn-pager a.page-numbers:hover { border-color: var(--ink, #080d0e); }
.dn-pager .page-numbers.current { background: var(--ink, #080d0e); color: #fff; border-color: var(--ink, #080d0e); }
.dn-empty { margin-top: 24px; color: var(--muted); }

/* Listing page */
.dn-review-solo { grid-template-columns: 1fr; }
.dn-open-state { margin-left: 10px; font-size: .875rem; font-weight: 600; color: #2d7a4f; }
.dn-open-state.is-closed { color: #b3261e; }
.single-listing-reference-hours-list > div.is-today { font-weight: 600; }
.listing-reference-left .breadcrumb { margin-bottom: 18px; }
.dn-detail-socials { margin-top: 18px; }

/* Blog post, privacy and plain pages */
.dn-post-meta { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.dn-prose { font-size: 1.0625rem; line-height: 1.75; }
.dn-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 2.2rem 0 .8rem; }
.dn-prose h3 { font-size: 1.35rem; margin: 1.8rem 0 .6rem; }
.dn-prose p, .dn-prose ul, .dn-prose ol { margin: 0 0 1.1rem; }
.dn-prose ul, .dn-prose ol { padding-left: 1.3rem; }
.dn-prose ul { list-style: disc; }
.dn-prose ol { list-style: decimal; }
.dn-prose img { max-width: 100%; height: auto; }
.dn-prose a { text-decoration: underline; text-underline-offset: 3px; }
.dn-post-faq { margin-top: 2.5rem; }
.dn-post-faq h3 { margin-bottom: 1rem; }
.dn-post-tags { margin-top: 1.5rem; color: var(--ink); }
.dn-post-tags a, .dn-detail-socials a { color: var(--ink, #080d0e); border-color: var(--line-strong, #ccc); }
.dn-blog-search { width: 100%; }
.dn-legal__layout { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.dn-legal__toc { position: sticky; top: calc(var(--header-h, 84px) + 24px); }
.dn-legal__toc h2 { font-size: 1.1rem; margin-bottom: 12px; }
.dn-legal__toc ol { list-style: decimal; padding-left: 1.2rem; display: grid; gap: 8px; font-size: .9rem; }
.dn-legal .dn-prose section:first-child h2 { margin-top: 0; }
@media (max-width: 900px) { .dn-legal__layout { grid-template-columns: 1fr; } .dn-legal__toc { position: static; } }

/* Contact form confirmation */
.dn-form-msg { grid-column: 1 / -1; margin: 12px 0 0; font-weight: 600; color: #2d7a4f; }
.dn-404-search { margin: 24px 0; }
.dn-check { color: var(--ink, #080d0e); display: grid; place-items: center; }
.dn-results-head { flex-wrap: wrap; gap: 12px; }
.dn-sort { margin-left: auto; }
.dn-detail-tagline { margin: -6px 0 18px; }

/* Category doors: a small photo in the icon slot (the full photo still fades in on hover) */
.dn-cat__icon.dn-cat__thumb { overflow: hidden; padding: 0; }
.dn-cat__icon.dn-cat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-detail-hero .breadcrumb, .listing-detail-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.listing-detail-hero .breadcrumb span { color: #fff; }
