/* Rotating Google reviews carousel for homepage #reviews (js/google-reviews.js?v=2), v2.
   Loaded right after css/styles.css, before the inline #google-reviews-css. Scoped with .grc- prefix.
   css/** and js/** are served "immutable" for 1 year: bump ?v= in homepage_reviews.py on every edit. */
.gr-feed[data-state="live"] { max-width: 760px; }
.grc { position: relative; margin: 6px 0 0; }
.grc-crest {
  position: absolute; z-index: 2; top: -13px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--gold); border: 1.5px solid var(--gold); box-shadow: 0 2px 8px rgba(20,27,38,.18);
}
.grc-viewport { display: grid; }
.grc-slide {
  grid-area: 1 / 1; position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 38px 44px 26px;
  background: var(--navy);
  color: var(--off-white);
  border: 1px solid rgba(188, 156, 114, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateX(14px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}
.grc-slide::before { /* inner hairline, a quiet plated-armor edge */
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(188, 156, 114, 0.16);
  border-radius: calc(var(--radius-lg) - 4px); pointer-events: none;
}
.grc-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease, visibility 0s; }
.grc-quote {
  position: absolute; top: 6px; left: 22px; font-family: var(--font-display); font-size: 84px; line-height: 1;
  color: var(--gold); opacity: .22; pointer-events: none;
}
.grc-stars { color: var(--gold); font-size: 20px; letter-spacing: 4px; line-height: 1; }
.grc-text {
  margin: 0; max-width: 600px;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: #EEF1F5;
  white-space: pre-line; overflow-wrap: anywhere;
}
.grc-text--clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.grc-more { font-size: 14px; font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; margin-top: -4px; }
.grc-more:hover, .grc-more:focus-visible { color: var(--gold-light); }
.grc-foot {
  margin-top: auto; padding-top: 14px; width: 100%;
  border-top: 1px solid rgba(188, 156, 114, 0.22);
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.grc-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: var(--navy-card); border: 2px solid rgba(188, 156, 114, 0.6);
  display: inline-flex; align-items: center; justify-content: center;
}
.grc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grc-avatar__initials { color: var(--gold-light); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.grc-who { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.grc-name { font-weight: 700; color: var(--off-white); text-decoration: none; }
a.grc-name:hover, a.grc-name:focus-visible { color: var(--gold-light); text-decoration: underline; }
.grc-date { font-size: 13px; color: var(--steel); }
.grc-gmark {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(169,177,188,.25);
  font: 500 12px/1 Roboto, Arial, sans-serif; color: #D5DBE3; white-space: nowrap;
}
.grc-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.grc-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 1.5px solid rgba(188, 156, 114, 0.6); background: var(--surface-white, #fff);
  color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.grc-btn:hover, .grc-btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.grc-btn:focus-visible, .grc-dot:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.grc-play { width: 30px; height: 30px; border-color: rgba(74, 84, 98, 0.3); }
.grc-play::before { /* pause glyph */
  content: ""; width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box;
}
.grc-play.is-paused::before { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.grc-dots { display: flex; align-items: center; gap: 8px; }
.grc-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--gold-dark); background: transparent; transition: background-color .25s, transform .25s;
}
.grc-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
@media (max-width: 640px) {
  .grc-slide { padding: 34px 20px 20px; gap: 12px; }
  .grc-quote { font-size: 64px; left: 12px; }
  .grc-text--clamped { -webkit-line-clamp: 6; line-clamp: 6; }
  .grc-gmark { margin-left: 0; }
  .grc-foot { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .grc-slide, .grc-slide.is-active { transition: none; transform: none; }
  .grc-dot { transition: none; }
}
