/* TCE Google reviews. Tokens come from .tce-rv (reviews.css, DESIGN.md); the slider is the
   review slider (.tce-rv-gallery). Stars use Google's own 1–5 scale and colour. */
.tce-gr {
    --tce-gr-star: #FBBC04;
    --tce-gr-star-empty: #DADCE0;
    --tce-gr-lines: 6;
    --tce-gr-cols: 3;
    --tce-gr-justify: flex-start;
    gap: 16px;
}

/* Stars: a yellow row clipped over a grey one, so 4.8 shows as 4.8 stars. */
.tce-gr-stars { position: relative; display: inline-flex; flex: none; line-height: 0; vertical-align: middle; }
.tce-gr-stars svg { display: block; max-width: none; }
.tce-gr-stars__bg { fill: var(--tce-gr-star-empty); }
.tce-gr-stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; fill: var(--tce-gr-star); }
.tce-gr-logo { display: block; flex: none; }

/* Score line */
.tce-gr-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: var(--tce-gr-justify); gap: 8px 10px; }
.tce-gr-summary__score { font-family: var(--tce-rv-heading-font); font-size: 24px; font-weight: 700; line-height: 1; }
.tce-gr-summary__count { font-size: 15px; color: var(--tce-rv-muted); }
.tce-gr-summary__count a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tce-gr-summary__count a:hover { color: var(--tce-rv-accent); }

/* Card */
.tce-gr-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    border-radius: var(--tce-rv-radius);
    border: var(--tce-rv-border);
    background: var(--tce-rv-card-bg);
    box-shadow: var(--tce-rv-shadow);
    color: var(--tce-rv-text);
}
.tce-rv-gallery--cards.is-equal .tce-gr-card,
.tce-gr-grid .tce-gr-card { height: 100%; }
.tce-gr-card__head { display: flex; align-items: center; gap: 12px; }
.tce-gr-card__head .tce-gr-logo { margin-left: auto; }
.tce-gr-card__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tce-gr-card__avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tce-rv-chip);
    font-family: var(--tce-rv-heading-font);
    font-weight: 700;
    font-size: 17px;
}
.tce-gr-card__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tce-gr-card__name {
    font-family: var(--tce-rv-heading-font);
    font-weight: 600;
    font-size: 16px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.tce-gr-card__name:hover { color: var(--tce-rv-accent); }
.tce-gr-card__date { font-size: 13px; color: var(--tce-rv-muted); }
.tce-gr-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--tce-gr-lines);
    line-clamp: var(--tce-gr-lines);
    overflow: hidden;
}

.tce-gr-card.is-open .tce-gr-card__text { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
/* "Lees meer": a text link. The extra .tce-gr beats the theme's button resets (Hello: pink border/background). */
.tce-gr .tce-gr-card__more,
.tce-gr .tce-gr-card__more:hover,
.tce-gr .tce-gr-card__more:focus {
    align-self: flex-start;
    margin: -4px 0 0;
    padding: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--tce-rv-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.tce-gr .tce-gr-card__more[hidden] { display: none; }

/* Grid layout */
.tce-gr-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--tce-gr-cols), minmax(0, 1fr));
    gap: var(--tce-rv-gap, 16px);
}
@media (max-width: 1024px) { .tce-gr-grid { --tce-gr-cols: 2; } }
@media (max-width: 767px)  { .tce-gr-grid { --tce-gr-cols: 1; } }

/* Attribution (required by Google) */
.tce-gr-source { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--tce-rv-muted); justify-content: var(--tce-gr-justify); }
