/* client-overrides.css — wigpalace per-client rules (static-overrides.css is refreshed
 * from shared/templates by inject-fixes.py; anything client-specific lives here). */

/* Blog list page: the captured archive has no h1 (cards are h2). Visually hidden h1 for SEO/a11y. */
.ym-seo-h1, .ym-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Blog shim status line while the feed loads / when the tenant is empty. */
.ym-blog-status { padding: 25px 10px; font-style: italic; }

/* Card thumbnails: the theme serves a 390x224 crop; keep that frame when a post only has a full-size image. */
div.blog-item-holder .blog-item3 .blog-thumbnail-image img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 224; object-fit: cover; }


/* Home notes (inject-fixes.py Fix 6): the two centered h5 "notes" are not headings and
   ship as p.ym-note with the theme's exact h5 metrics, measured 2026-11-10. */
.gdl-page-content p.ym-note, p.ym-note { font-family: "Droid Serif"; font-size: 16px; line-height: 16px; font-weight: 400; color: #803aa1; margin: 0 0 15px; padding: 0; }

/* Footer legal row (Privacy / Terms, build-utility-pages.py) inside the dark copyright
   bar: inherit the bar's gray instead of the brand purple (2.9:1 on #202020), underline
   for affordance. */
.copyright-left .ym-legal-links a { color: inherit; text-decoration: underline; }
.copyright-left .ym-legal-links a:hover, .copyright-left .ym-legal-links a:focus { color: #ffffff; }

/* Hours and Directions map (operator decision 2026-11-18): the Google map iframe is a
   fixed 600px wide, which made a 390px phone lay the whole page out 655px wide and load
   it zoomed out (same on the live site). Let it shrink to its column; desktop unchanged. */
.gdl-page-content iframe[src*="google.com/maps"] { max-width: 100%; }

/* Blog list (operator 2026-11-20): three cards per row, twelve per page (four rows), every
   card in a row the same height with Read More and the date line pinned to the bottom so
   the rows line up. The theme's own grid is four floated columns of uneven height. */
div.blog-item-holder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; padding: 30px 10px 10px; }
div.blog-item-holder > .ym-blog-status { grid-column: 1 / -1; }
.container div.blog-item-holder .blog-item3.columns { float: none; width: auto; margin: 0; padding: 0; display: flex; flex-direction: column; }
/* room for a four-line title (15px lines), so every excerpt in the grid starts at the same height */
div.blog-item-holder .blog-item3 .blog-thumbnail-title { min-height: 60px; }
div.blog-item-holder .blog-item3 .blog-thumbnail-context { display: flex; flex-direction: column; flex: 1 1 auto; }
div.blog-item-holder .blog-item3 a.blog-continue-reading { margin-top: auto; }
@media (max-width: 959px) { div.blog-item-holder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { div.blog-item-holder { grid-template-columns: minmax(0, 1fr); } }

/* About gallery (operator 2026-11-20): the WordPress gallery floats each photo in a 33%
   column, leaving wide gaps across and narrow gaps down. Same gap in both directions. */
div#gallery-1.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 154px)); gap: 20px; margin: 20px 0; }
div#gallery-1.gallery .gallery-item { float: none; width: auto; margin: 0; }
div#gallery-1.gallery .gallery-item img { display: block; max-width: 100%; height: auto; box-sizing: border-box; }
div#gallery-1.gallery > br { display: none; }

/* SEO pass 2026-11-20 (Lighthouse on the live site). While the posts load, hold the height
   the twelve cards will take, so the footer does not jump when they arrive (CLS 0.75 -> ~0). */
div.blog-item-holder:has(> .ym-blog-status) { min-height: 2570px; align-content: start; }
@media (max-width: 959px) { div.blog-item-holder:has(> .ym-blog-status) { min-height: 3800px; } }
@media (max-width: 599px) { div.blog-item-holder:has(> .ym-blog-status) { min-height: 7430px; } }

/* Contrast (WCAG AA 4.5:1): the copyright bar's grey on #202020 was 4.12:1, the mobile
   menu's grey on white 4.47:1. Nearest passing greys. */
div.copyright-container-wrapper .copyright-left, div.copyright-container-wrapper .copyright-right, div.copyright-container-wrapper .copyright-left a { color: #909090; }
div.responsive-menu-wrapper select.dropdown-menu { color: #6b6b6b; }
