/* GC Review Carousel — full-width band of review cards that slides several at a
   time. All appearance flows through the --rc-* variable contract. */

.gc-rc {
	--rc-per: 3;
	--rc-gap: 24px;
	--rc-head-gap: 48px;
	--rc-card-radius: 4px;
	--rc-card-bw: 1px;
	--rc-clamp: 0;
	--rc-star-size: 16px;
	--rc-overlay: rgba(8,12,16,0.55);
	--rc-eyebrow: #FFFFFF;
	--rc-heading: #5BA7DB;
	--rc-card-bg: #FFFFFF;
	--rc-card-border: #E4EBF1;
	--rc-name: #14212B;
	--rc-stars: #F2994A;
	--rc-star-empty: rgba(20,33,43,0.15);
	--rc-date: #5A6B75;
	--rc-divider: #E4EBF1;
	--rc-text: #3A4A55;
	--rc-ctrl: #5BA7DB;
	--rc-ctrl-over: #14212B;
	position: relative;
	font-family: var(--gc-font-body, "Inter", system-ui, sans-serif);
}
.gc-rc *, .gc-rc *::before, .gc-rc *::after { box-sizing: border-box; }
.gc-rc--full { width: 100vw; margin-left: calc(50% - 50vw); }

.gc-rc__wrap { max-width: var(--gc-container, 1312px); margin: 0 auto; }

/* Header */
.gc-rc__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--rc-head-gap); }
.gc-rc__head { flex: 1 1 auto; }
.gc-rc__eyebrow { display: block; font-style: italic; font-size: 16px; color: var(--rc-eyebrow); margin-bottom: 14px; }
.gc-rc__heading { margin: 0; font-family: var(--gc-font-heading, "Manrope", sans-serif); font-weight: 800; font-size: clamp(32px, 4vw, 56px); line-height: 1.04; color: var(--rc-heading); }
.gc-rc__heading-1, .gc-rc__heading-2 { display: block; color: inherit; }

/* Carousel */
.gc-rc__carousel { position: relative; }
/* overflow-x: clip is the one non-visible value that can pair with a visible
   y axis without the browser coercing it to auto (which is what grew a
   scrollbar when this was overflow-x: hidden). Cards keep their glow above and
   below the band, and the clip margin lets it bleed sideways within the gap. */
.gc-rc__viewport { overflow: hidden; overflow-x: clip; overflow-y: visible; overflow-clip-margin: calc(var(--rc-gap, 24px) - 2px); }
.gc-rc__track { display: flex; gap: var(--rc-gap); will-change: transform; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.gc-rc--static .gc-rc__track { transition: none; }
.gc-rc__slide { flex: 0 0 calc((100% - (var(--rc-per) - 1) * var(--rc-gap)) / var(--rc-per)); min-width: 0; }
.gc-rc--equal .gc-rc__slide { display: flex; }

/* Card */
.gc-rc__card { width: 100%; background: var(--rc-card-bg); border: var(--rc-card-bw) solid var(--rc-card-border); border-radius: var(--rc-card-radius); padding: 24px 26px; text-align: left; }
.gc-rc--shadow .gc-rc__card { box-shadow: 0 22px 50px -26px rgba(20,33,43,.35); }
.gc-rc--equal .gc-rc__card { display: flex; flex-direction: column; }
.gc-rc__name { margin: 0 0 8px; font-family: var(--gc-font-heading, "Manrope", sans-serif); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--rc-name); }
.gc-rc__stars { display: inline-flex; gap: 2px; font-size: var(--rc-star-size); line-height: 1; letter-spacing: 1px; }
.gc-rc__star { color: var(--rc-star-empty); }
.gc-rc__star.is-on { color: var(--rc-stars); }
.gc-rc__date { display: block; margin-top: 6px; font-size: 13px; color: var(--rc-date); }
.gc-rc__date--divider { padding-bottom: 14px; border-bottom: 1px solid var(--rc-divider); }
.gc-rc__rule { display: block; margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rc-divider); }
.gc-rc__text { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--rc-text); }
.gc-rc--italic .gc-rc__text { font-style: italic; }
.gc-rc--equal .gc-rc__text { flex: 1 1 auto; }
.gc-rc--clamp .gc-rc__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--rc-clamp); line-clamp: var(--rc-clamp); overflow: hidden; }

/* Controls */
.gc-rc__controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 28px; }
.gc-rc__nav { display: inline-flex; align-items: center; gap: 14px; }
.gc-rc__arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--rc-ctrl), transparent 84%); color: var(--rc-ctrl); cursor: pointer; flex: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.gc-rc__arrow:hover { transform: scale(1.08); background: var(--rc-ctrl); color: #fff; }
.gc-rc__arrow:focus-visible { outline: 2px solid var(--rc-ctrl); outline-offset: 3px; }
.gc-rc__arrow svg { width: 22px; height: 22px; }
.gc-rc__arrow[disabled] { opacity: .35; cursor: default; pointer-events: none; }

.gc-rc__dots { display: flex; align-items: center; gap: 9px; }
.gc-rc__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--rc-ctrl), transparent 60%); cursor: pointer; transition: transform .2s ease, background .2s ease, width .2s ease; }
.gc-rc__dot[aria-selected="true"] { background: var(--rc-ctrl); width: 24px; border-radius: 5px; }

/* Arrows over the sides of the cards */
.gc-rc--arrows-sides .gc-rc__nav--sides { position: absolute; inset: 0; pointer-events: none; }
.gc-rc--arrows-sides .gc-rc__nav--sides .gc-rc__arrow { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: auto; background: #fff; color: var(--rc-ctrl-over); box-shadow: 0 10px 30px -10px rgba(20,33,43,.45); }
.gc-rc--arrows-sides .gc-rc__nav--sides .gc-rc__arrow:hover { background: var(--rc-ctrl); color: #fff; transform: translateY(-50%) scale(1.08); }
.gc-rc--arrows-sides .gc-rc__arrow--prev { left: -18px; }
.gc-rc--arrows-sides .gc-rc__arrow--next { right: -18px; }

/* Arrows in the header */
.gc-rc__nav--header { flex: none; align-self: center; }

.gc-rc--static .gc-rc__controls,
.gc-rc__controls.is-idle { display: none; }

/* Not enough cards to scroll: centre them instead of leaving a gap on the end. */
.gc-rc--fits .gc-rc__track { justify-content: center; transform: none; }

/* Arrows either side of the dots, one balanced cluster rather than two
   competing groups sat next to each other. */
.gc-rc__controls { gap: 18px; }
.gc-rc__nav--bottom { display: contents; }
.gc-rc__nav--bottom .gc-rc__arrow--prev { order: 1; }
.gc-rc__dots { order: 2; }
.gc-rc__nav--bottom .gc-rc__arrow--next { order: 3; }

.gc-rc__controls .gc-rc__arrow {
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid color-mix(in srgb, var(--rc-ctrl) 35%, transparent);
  color: var(--rc-ctrl);
  box-shadow: none;
}
.gc-rc__controls .gc-rc__arrow svg { width: 17px; height: 17px; }
.gc-rc__controls .gc-rc__arrow:hover {
  transform: none;
  background: var(--rc-ctrl);
  border-color: var(--rc-ctrl);
  color: #fff;
}

@media (max-width: 1024px) {
	.gc-rc__header { flex-direction: column; align-items: inherit; }
	.gc-rc__nav--header { align-self: flex-start; }
	.gc-rc--arrows-sides .gc-rc__arrow--prev { left: 4px; }
	.gc-rc--arrows-sides .gc-rc__arrow--next { right: 4px; }
}
@media (max-width: 640px) {
	.gc-rc { --rc-per: 1; --rc-gap: 14px; --rc-head-gap: 28px; }
	.gc-rc__header { gap: 14px; }
	.gc-rc__eyebrow { font-size: 13px; margin-bottom: 8px; }
	.gc-rc__heading { font-size: clamp(22px, 5.4vw, 26px); }
	.gc-rc__card { padding: 18px 18px 20px; }
	.gc-rc__name { margin-bottom: 6px; font-size: 17px; }
	.gc-rc__date { font-size: 12px; }
	.gc-rc__date--divider { padding-bottom: 10px; }
	.gc-rc__rule { margin-top: 10px; padding-bottom: 10px; }
	.gc-rc__text { margin-top: 12px; font-size: 14.5px; line-height: 1.55; }
	.gc-rc__arrow { display: none; }
	.gc-rc--arrows-sides .gc-rc__nav--sides { display: none; }
	.gc-rc__controls { margin-top: 20px; gap: 0; }
	.gc-rc__dot { position: relative; }
	.gc-rc__dot::after { content: ""; position: absolute; inset: -16px -4px; }
}
@media (max-width: 480px) {
	.gc-rc__heading { font-size: 23px; }
	.gc-rc__card { padding: 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.gc-rc__track { transition: none; }
}
