/* retrobowldalton client overrides. Loaded after static-overrides.css.
   Nothing here restyles a captured section; each rule restores a measured live behaviour. */

/* Scroll-down-reveal header. Live (measured 2026-11-09 at 1440/1024/990/989/768): the header
   is hidden for the first 50px of scroll (opacity 0, margin-top -250px), then appears solid
   white. At 767px and below it is an ordinary in-flow header. The shared Avia override pins
   this header visible for sites built before the scroll toggle existed; this puts Enfold's
   own rule back for this site. */
@media only screen and (min-width: 768px) {
  #top #header.av_header_scrolldown.av_header_transparency {
    opacity: 0 !important;
    margin-top: -250px !important;
  }
}

/* Blog shells (/blog and /blog/<slug>), built by 08-blog-migration/build-blog-widget.py. */
.ym-seo-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ym-blog-status { text-align: center; padding: 40px 0; }
#blog-pagination[hidden] { display: none; }
/* the list thumbnail is the post's full image in Enfold's square 81px frame */
#blog-list .small-preview img { width: 100%; height: 100%; object-fit: cover; }

/* SEO pass 2026-11-09: live ships six <h1>; five section headings are now <h2>
   (one h1 per page). Enfold sizes these from the bare tag (h1 34px, h2 28px),
   so the demoted headings are pinned to the measured h1 size. Verified 0 diffs
   vs live by 05-review/probes/heading-parity.mjs. */
#top #wrap_all .av-special-heading-h1 h2.av-special-heading-tag{font-size:34px}

/* SEO pass 2026-11-09: the legal-links row is injected after the socket
   container, so it sat flush against the window edge. Give it the socket
   container's own geometry (1310px column, 50px gutters; 85% on phones),
   measured by 05-review/probes/legal-align.mjs. Legal prose keeps the same column. */
#socket .ym-legal-links{max-width:1310px;margin:0 auto;padding:0 50px 15px;box-sizing:border-box;font-size:11px;line-height:1.65em}
#socket .ym-legal-links a{text-decoration:none}
#socket .ym-legal-links a:hover{text-decoration:underline}
@media only screen and (max-width:767px){#socket .ym-legal-links{max-width:85%;padding:0 0 15px}}
.ym-util.ym-util--legal{max-width:1310px;margin:0 auto;padding-left:50px;padding-right:50px}
@media only screen and (max-width:767px){.ym-util.ym-util--legal{max-width:85%;padding-left:0;padding-right:0}}

/* SEO pass 2026-11-09: blog post "Share this entry" is an <h2> now (was <h5>,
   a skipped level). Pinned to the measured h5 look: 16px / 600 / 17.6px line,
   20px below. Verified by 05-review/probes/share-heading.mjs. */
#top #wrap_all .av-share-box h2.av-share-link-description{font-size:16px;font-weight:600;line-height:1.1em;margin:0 0 20px;text-transform:none;letter-spacing:normal}

/* Walkthrough 2026-11-10: a menu click landed the section underneath the fixed
   header. Live stops 167px short (its header height); measured live vs build in
   05-review/probes/nav-offset.mjs (About 432 vs 599, Gallery 2466 vs 2632).
   The header is only fixed at 768px and up; phones already matched. */
@media only screen and (min-width:768px){html{scroll-padding-top:167px}}

/* Operator decision 2026-11-10: "Review Us On Facebook" band darkened from the
   live #49b8ea (white label 2.25:1) to #199dd9, the nearest shade of the same hue
   that reaches 3:1 for large text (3.06:1). The Uber/Lyft cell keeps #49b8ea. */
#top #wrap_all .flex_cell.av-jvcis6j6-8-b1475b15fec529466c6f11d5af441118{background-color:#199dd9}
#top #wrap_all .avia-button.av-jvcirwiw-7-2ad35dbd2bd14434e241a76b3658c49c,
#top #wrap_all .avia-button.av-jvcirwiw-7-2ad35dbd2bd14434e241a76b3658c49c:hover{background-color:#199dd9;border-color:#199dd9}

/* Second SEO pass 2026-11-10 (Lighthouse on the blog + legal pages):
   - the post body loads after the shell, so the share box and footer jumped down
     (layout shift 0.256). Hold a screen of space while the body is still empty.
   - the post body opened with an <h1> repeating the title; it is an <h2> now,
     pinned to the measured h1 size and spacing (34px, 14px below).
   - links inside legal prose were told apart by colour alone. */
#post-content:empty{min-height:100vh}
#top #wrap_all .entry-content h2.ym-post-title-repeat{font-size:34px;margin-bottom:14px}
#top .ym-util--legal .ym-util-prose a{text-decoration:underline !important}

/* Operator decisions 2026-11-12:
   - the home page keeps ONE blue: the Uber/Lyft cell (live #49b8ea) now matches
     the darkened Facebook band (#199dd9). This supersedes the "keeps #49b8ea"
     note above.
   - the blog date (list + post) was #969696 on white (2.96:1); it is #767676,
     the nearest neutral grey that reaches 4.5:1. Nothing else grey is touched. */
#top #wrap_all .flex_cell.av-jvciquiu-b4d12928b7205385e7a2dcf7a50bf212{background-color:#199dd9}
#top #wrap_all time.date-container.minor-meta{color:#767676}

/* Go-live 2026-11-25 (operator: "fix band after"): the shared Avia overrides now pin
   the review row to the active slide's height (persiangalleries Run 57). Here Enfold's
   phone rule gives each review margin-bottom:20px, which used to spill out below the
   auto-height row and was measured as MATCHING live on phone (walkthrough 2026-11-10).
   The pinned row swallows it, so the band came out 20px short below 768px. Give the
   row that 20px back; desktop/tablet (margin 0) are untouched. */
@media only screen and (max-width: 767px){
  #top #reviews .avia-testimonial-row{margin-bottom:20px}
}

/* Operator 2026-11-25:
   - the blue + orange cells above the gallery have been empty since their 2019
     "View Lane Schedule" / "View League Standings" buttons were removed (Wayback
     2022 vs 2024). The whole grid row is hidden. It also carries id="leagues", but
     the "League Info" menu target is the FIRST #leagues (the league-times column),
     so the jump is unaffected. Enfold's responsive rules re-show the cells on phones,
     hence !important on the row itself.
   - the awards strip (8 thumbs at 12.5%) becomes a 4 x 2 grid; each thumb opens the
     shared lightbox (avia-static-overrides.js). 2x thumbs via srcset (inject-fixes 9). */
#top #wrap_all .av-layout-grid-container.av-130en-b0c71fdea3a7b9cf9632bacc37ab8452{display:none !important}
#top #wrap_all .avia-gallery.av-k10u3w71-ceb8b92a874d578d571a30a1e8a300c3 .avia-gallery-thumb a{width:25%}
