/* == Reviews Page ========================================== */
/* ── Layout ──────────────────────────────────────────────── */
.page-template-template-reviews .reviews-page .container { max-width: 100%; padding: 0; }
.page-template-template-reviews :is(.page-hero-content,.reviews-controls,.reviews-grid-wrapper) { padding-left: 2rem; padding-right: 2rem; }
@media only screen and (min-width: 1000px) {
.page-template-template-reviews :is(.page-hero-content,.reviews-controls,.reviews-grid-wrapper) { padding-left: 40px; padding-right: 40px; /*<-- match to Salient settings*/ }
}
/* ── Hero ────────────────────────────────────────────────── */
.hero-banner { padding-top: var(--s-lg); }
.hero-banner h5 { color: var(--c-blue-400) !important; font-size: var(--fs-2xl) !important; text-transform: uppercase; margin-bottom: 1rem; }
.hero-banner h1 { font-size: var(--fs-4xl); font-weight: var(--fw-b); max-width: 19ch; margin-bottom: 3rem; }
.hero-banner h1 strong { color: var(--c-blue-400);  }
.hero-banner p { font-size: var(--fs-xl); line-height: 1.5; text-align: center; max-width: 48ch; margin-bottom: 2rem;  }
/* ── Controls ────────────────────────────────────────────── */
.reviews-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.controls-left { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; flex: 1; justify-content: space-between; }
.search-wrapper { position: relative; flex: 1; min-width: 200px; }
#review-search { width: 100%; padding: 0.6rem 2.2rem 0.6rem 0.9rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.search-clear { position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); cursor: pointer; color: #999; display: none; font-size: 0.85rem; line-height: 1; }
.search-clear:hover { color: #333; }
.category-filters { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 1.4667rem + 0.5333vw, 2rem); }
.filter-btn { padding: 0; border: none; background: none; cursor: pointer; font-size: 16px; font-weight: 500; color: #666; position: relative; padding-bottom: 8px; transition: color 0.2s ease; }
.filter-btn:hover { color: #333; }
.filter-btn.active { color: #333; }
.filter-btn.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--c-blue-400); }

/* ── Search ──────────────────────────────────────────────── */
.search-wrapper { min-width: 200px; max-width: 250px; margin-left: auto; }
.product-search-input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
.product-search-input:focus { outline: none; border-color: var(--c-blue-400); box-shadow: 0 0 0 1px var(--c-blue-400); }
.results-info { color: #666; font-size: 14px; white-space: nowrap; }

/* ── Reset Button ────────────────────────────────────────── */
.search-reset-btn { padding: 12px 20px; border: 1px solid #ddd; background: white; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; }
.search-reset-btn:hover:not(:disabled) { border-color: #333; background: #f5f5f5; }
.search-reset-btn:disabled { opacity: 0.4; cursor: not-allowed; }
/* ── Grid ────────────────────────────────────────────────── */
.reviews-grid-wrapper { background-color: var(--c-blue-25); }
.reviews-grid {  padding: 2rem 0;}
.review-card {  box-sizing: border-box; float: left; /* Masonry expects floated or inline-block children */; }

/* Columns Handling */
/* 
7   calc(14.285% - 20.57px)
6   calc(16.666% - 20px)
5   calc(20% - 19.2px)
4   calc(25% - 18px)
3   calc(33.333% - 16px)
2   calc(50% - 12px) 
*/

.review-card, .grid-sizer {  width: calc(16.666% - 20px); /* 6 cols, .grid-sizer & .review-card widths must match exactly */ }
@media (max-width: 2100px) {
    .review-card, .grid-sizer {  width: calc(20% - 19.2px); /* 5 cols */ }
}
@media (max-width: 1600px) {
    .review-card, .grid-sizer {  width: calc(25% - 18px); /* 4 cols */ }
}
@media (max-width: 1150px) {
    .review-card, .grid-sizer {  width: calc(33.333% - 16px); /* 3 cols */ }
}
@media (max-width: 900px) {
    .review-card, .grid-sizer { width: calc(50% - 12px); /* 2 cols */ }
}
/* 1 column at mobile */
@media (max-width: 560px) {
    .review-card, .grid-sizer { width: 100%; }
}

/* ── Card ────────────────────────────────────────────────── */
.review-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 1.5rem; margin: 0 0 24px 0; /*<-- match to gutter set in review.js*/ position: relative; transition: box-shadow 0.2s ease; scroll-margin-top: 120px; /* match headerOffset in JS */; }
.review-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.review-card--featured { border-color: var(--c-blue-300); border-width: 1px; }
blockquote.review-card::before { content: none;}
/* ── Leading Question ────────────────────────────────────── */
.review-question { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-blue-500); margin: 0 0 .75em; padding-bottom: .75em; border-bottom: 1px solid #dbdbdb; }
/* ── Review Body ─────────────────────────────────────────── */
.review-body { font-size: 1rem; line-height: 1.65; color: #1a1a1a; margin-bottom: 1.25rem; }
.review-body p:last-child { margin-bottom: 0; padding-bottom: 0;}
.review-snippet::before,
.review-full::before { content: '\201C'; display: block; font-size: 2.5em; line-height: 1; margin-bottom: -0.5em; color: var(--c-blue-400); font-family: Georgia, serif; }
/*.review-full :last-child::after { content: '\201D'; font-size: 2.5em; line-height: 0; vertical-align: -0.5em; color: #1a1a1a; font-family: Georgia, serif; position: relative; bottom: .1em; left: .1em; }*/
/* ── Snippet & Full Text ─────────────────────────────────── */
/* Full text hidden by default when a snippet exists */
.review-full { display: none; }
/* Full text on reviews with no snippet — always visible */
.review-full--visible { display: block; }
/* ── Expand / Collapse Button ────────────────────────────── */
.review-expand-btn { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; background: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: #1a1a1a; /* swap for brand color */ text-decoration: underline; text-underline-offset: 2px; transition: opacity 0.15s ease; text-decoration: none; border: 1px solid var(--c-gray-200); padding: .25em .75em;}
.review-expand-btn:hover { opacity: 0.7; }
.review-expand-icon { display: inline-block; font-size: 1.25em; transition: transform 0.2s ease; text-decoration: none; }
.review-expand-btn--open .review-expand-icon { transform: rotate(180deg); }
/* ── Attribution ─────────────────────────────────────────── */
.review-attribution { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; margin-top: 1.25rem; }
.review-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid #e8e8e8; }
.review-meta { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.review-name { font-style: normal; font-weight: 600; font-size: 0.95rem; }
.review-role { font-size: 0.85rem; color: #777; }
/* ── Permalink Icon ──────────────────────────────────────── */
.review-permalink { opacity: 0; transition: opacity 0.15s ease; font-size: 1rem; text-decoration: none; color: #aaa; margin-left: auto; flex-shrink: 0; }
.review-card:hover .review-permalink,
.review-card:focus-within .review-permalink { opacity: 1; }
.review-permalink:hover { color: #555; }
/* ── Hash Highlight Animation ────────────────────────────── */
@keyframes review-flash { 0% { background-color: #fff; } 20% { background-color: #fff9c4; } 100% { background-color: #fff; }; }
.review-highlight { animation: review-flash 1.6s ease forwards; }
/* ── Misc ────────────────────────────────────────────────── */
.results-info { /*font-size: 0.9rem; color: #888; margin-bottom: 1.25rem;*/ display: none;}
.no-results { text-align: center; padding: 3rem 1rem; color: #999; font-size: 1rem; }