/* ===========================================================================
   Region archive: member reviews
   ===========================================================================

   blocks/region-editorial-reviews.php, near the foot of templates/region-template.php: a
   "What our members say" heading, three Google reviews for this market side by side, each
   name followed by the Google mark and that review's stars, and a strip under them with the
   market's Google score and review count.

   This file is section 11 of css/location-editorial.css on the `amenities-bar` branch (as of
   2026-11-11), brought over as it stands with the body class swapped for `.tax-region`.
   Everything else is on the `.lerv-*` namespace, which only the two reviews partials print,
   and inc/region-page.php loads the file on lucid_is_region_page() alone.

   Nothing here may borrow `.testimonial-*`, `.slider-block` or `.slider-pager`: those belong
   to the shared testimonial block, js/more.js binds the carousel to them on every page, and
   ~70 rules in style.css style them.

   @see blocks/region-editorial-reviews.php
   @see inc/region-page.php
   --------------------------------------------------------------------------- */

.lerv-reviews {
    --lerv-gap: 40px;
}

/* The group padding above the band is the site-wide 100px the pattern's wrapper had here
   before. Below it, the rating strip is a single short line, and 100px under it plus the
   FAQ's own 100px left 200px of empty page between the strip and "Frequently Asked
   Questions". Desktop only: under 881px the site-wide padding is already 60px a side. The
   selectors carry `.site-inner .content` to outrank the site-wide group rule (style.css,
   `.site-inner .content .wp-block-group`). */
@media only screen and (min-width: 881px) {

    .tax-region .site-inner .content .lerv-reviews {
        padding-bottom: 56px;
    }

    .tax-region .site-inner .content .lerv-reviews + hr + #faq.page-section {
        padding-top: 64px;
    }
}

.lerv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--lerv-gap);

    /* Three columns and no overflow, in that order. The slider's own pager is gone and no
       track scrolls here; a quote longer than the others simply makes its column taller, and
       `align-items: start` keeps each card's attribution directly under its own last line
       rather than pushed to the tallest card's baseline. */
    align-items: start;
}

/* No rule, no box, no card chrome of any kind. A hairline over each column was tried and
   removed: three lines across an otherwise unruled band read as a table header rather than as
   grouping, and the FAQ below already owns that treatment on this page. The gold quote mark
   opens each column and the grid gap separates them. */

.lerv-mark {
    display: block;
    margin-bottom: 20px;
}

/* Down a step from the slider's --fs-body-lg (18-24px): a third of the width holds a third of
   the characters per line, so the same quote at the same size would run to twelve lines.
   Italic sets the member's words apart from the page's own copy, which is roman throughout. */
.lerv-quote p {
    font-size: var(--fs-body-md);
    font-style: italic;
    font-weight: 400;
    line-height: 165%;
    letter-spacing: -0.16px;
    margin: 0;
}

.lerv-quote p + p {
    margin-top: 12px;
}

/* The attribution line: the name, then the Google mark and the review's own stars beside it.
   It wraps as a pair, so a long name in a narrow column drops the stars under it instead of
   squeezing them. `.google-rating` (style.css:23030) brings the badge's row and sizes; the
   stars here are whole, so they are filled flat instead of through the strip's partial-fill
   gradients. */
.lerv-attribution {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: 20px;
}

.lerv-attribution .lerv-name {
    margin-top: 0;
}

.lerv-card-rating {
    gap: 8px;
}

.lerv-card-rating .star-svg {
    fill: var(--color-text-accent, #D2AF6B);
}

.lerv-card-rating .star-svg.is-off {
    opacity: 0.3;
}

.entry-content a.lerv-card-rating:hover .google-rating-stars,
.entry-content a.lerv-card-rating:focus-visible .google-rating-stars {
    opacity: 0.8;
}

/* The slider's attribution treatment, one step smaller to match the quote. Plain text: the
   Google mark and stars beside it are the link to the review. */
.lerv-name {
    display: inline-block;
    margin-top: 20px;
    text-transform: uppercase;
    color: #EDEAE3;
    font-size: var(--fs-body-sm);
    font-weight: 400;
    line-height: 25px;
    letter-spacing: 2.4px;
    text-decoration: none;
}

/* The rating strip, centred under all three columns rather than aligned to the first: the
   three quotes are a sample, the score counts every review behind them, so it belongs to the
   band and not to a column. It clears the tallest card by more than the quotes clear their own
   attributions, which is what keeps it from reading as a fourth line of the last card. */
.lerv-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 56px;
}

/* `.google-rating` arrives with the hero's layout (style.css:23030). Only the spacing changes:
   its 10px gap sits the score and the count as far from the stars as the strip's own halves
   are from each other, which breaks the line into four pieces instead of two. */
.lerv-rating {
    gap: 8px;
}

/* Its text colours are set for the light hero: the count is --color-text-primary at 0.75,
   which on this band is near-black on near-black. Both the count and the separator take the
   quotes' own ink instead. The score keeps the gold it has everywhere else. */
.lerv-rating .google-rating-count,
.lerv-rating .lerv-dot {
    color: #EDEAE3;
    opacity: 0.75;
}

/* The attribution treatment from .lerv-name, so the link and the three names are one voice.
   .with-arrow (style.css:19642) is a single class, so these two-class selectors beat its
   font-size and 2.8px letter-spacing without !important - the same override sections 6 and 8
   make. Its gold chevron is a background image on :after and survives untouched. */
.entry-content a.lerv-all,
.entry-content a.lerv-all.with-arrow {
    color: #EDEAE3;
    font-size: var(--fs-body-sm);
    font-weight: 400;
    line-height: 25px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    text-decoration: none;
}

.entry-content a.lerv-all.with-arrow:hover,
.entry-content a.lerv-all.with-arrow:focus-visible {
    color: var(--color-bg-accent);
    text-decoration: none;
}

/* One column from the site breakpoint down, still with nothing to scroll. Stacked, the quotes
   need more air between them than they did side by side - the gap is the only thing dividing
   one from the next - so it opens rather than closes. */
@media only screen and (max-width: 880px) {

    .lerv-reviews {
        --lerv-gap: 48px;
    }

    .lerv-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The strip follows the wider gap for the same reason the quotes do. Its two halves wrap
       onto separate lines on a narrow phone and stay centred. */
    .lerv-footer {
        margin-top: 48px;
        gap: 16px;
    }
}
