/* RankLuma Reviews v1.1 – front end. No web fonts, no images except reviewer photos. */
.rlr {
  --rlr-cols: var(--rlr-cols-d, 3);
  --rlr-gap: 16px;
  --rlr-card: var(--rlr-u-card, #fff);
  --rlr-text: var(--rlr-u-text, #1f2328);
  --rlr-muted: var(--rlr-u-muted, #5f6368);
  --rlr-line: var(--rlr-u-line, #e3e6ea);
  --rlr-star-off: #d5d8dc;
  --rlr-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  font-family: var(--rlr-font, inherit);
  font-size: var(--rlr-fs, 15px);
  line-height: 1.55;
  color: var(--rlr-text);
  text-align: left;
  box-sizing: border-box;
}
.rlr *, .rlr *::before, .rlr *::after { box-sizing: border-box; }
.rlr--dark {
  --rlr-card: var(--rlr-u-card, #1c1f2b);
  --rlr-text: var(--rlr-u-text, #eef0f6);
  --rlr-muted: var(--rlr-u-muted, #b0b5c6);
  --rlr-line: var(--rlr-u-line, #33384a);
  --rlr-star-off: #4a4f63;
  --rlr-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
@media (max-width: 1024px) { .rlr { --rlr-cols: min(var(--rlr-cols-d, 3), 2); } }
@media (max-width: 640px)  { .rlr { --rlr-cols: 1; } }

/* Keep the theme's global p / a / button styles out of the widget */
.rlr p { margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
.rlr a { color: inherit; }
.rlr button {
  -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: inherit; font: inherit; line-height: inherit;
  letter-spacing: normal; text-transform: none; min-height: 0; min-width: 0; width: auto; height: auto; cursor: pointer;
}
.rlr a:focus-visible, .rlr button:focus-visible, .rlr .rlr-track:focus-visible {
  outline: 2px solid var(--rlr-accent, #1a73e8); outline-offset: 2px;
}
.rlr-sr {
  position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Stars: one element, painted with a mask */
.rlr-stars {
  --s: 18px;
  display: inline-block; flex: none; vertical-align: middle;
  width: calc(var(--s) * 5); height: var(--s);
  background: linear-gradient(90deg, var(--rlr-star, #fbbc04) var(--p, 100%), var(--rlr-star-off) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.85 6.05 6.65.8-4.9 4.56 1.27 6.57L12 17.3l-5.87 3.28 1.27-6.57L2.5 9.45l6.65-.8z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.85 6.05 6.65.8-4.9 4.56 1.27 6.57L12 17.3l-5.87 3.28 1.27-6.57L2.5 9.45l6.65-.8z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x;
}
.rlr-stars--sm { --s: 16px; }
.rlr-stars--lg { --s: 24px; }
@media (forced-colors: active) { .rlr-stars { forced-color-adjust: none; } }

/* Google "G" icon */
.rlr-g {
  display: inline-block; flex: none; width: 18px; height: 18px; vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Summary */
.rlr-summary { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rlr-summary__label { font-size: 1.25em; font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.rlr-summary__text { color: var(--rlr-muted); font-size: .94em; }
.rlr-summary__text strong { color: var(--rlr-text); font-weight: 700; }
.rlr-summary__text a { text-decoration: underline; text-underline-offset: 2px; }
.rlr-summary__source { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .94em; color: var(--rlr-muted); }
.rlr .rlr-btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 6px; padding: 9px 16px; border-radius: 999px;
  background: var(--rlr-accent, #1a73e8); color: var(--rlr-on-accent, #fff); font-weight: 600; font-size: .9em; line-height: 1.3; text-decoration: none;
}
.rlr .rlr-btn:hover { box-shadow: inset 0 0 0 99px rgba(255, 255, 255, .12); }

.rlr--summary-top .rlr-summary { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 16px; }
.rlr--summary-top .rlr-btn { margin: 0 0 0 auto; }
.rlr--summary-left:not(.rlr--list) { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 24px; align-items: center; }
.rlr--summary-left .rlr-summary { align-items: center; text-align: center; }
@media (max-width: 640px) {
  .rlr--summary-left:not(.rlr--list) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rlr--summary-top .rlr-btn { margin-left: 0; }
}

/* Cards */
.rlr-body { position: relative; min-width: 0; }
.rlr-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px;
  background: var(--rlr-card); color: var(--rlr-text);
  border: 1px solid var(--rlr-line); border-radius: var(--rlr-radius, 12px);
}
.rlr--shadow .rlr-card { box-shadow: var(--rlr-shadow); border-color: transparent; }
.rlr--soft .rlr-card { border-color: transparent; background: var(--rlr-card-soft, color-mix(in srgb, var(--rlr-text) 4%, var(--rlr-card))); }
.rlr-card__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rlr .rlr-card__avatar { width: 40px; height: 40px; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 50%; box-shadow: none; object-fit: cover; flex: none; background: var(--rlr-line); }
.rlr-card__avatar--initial { display: inline-grid; place-items: center; background: var(--rlr-accent, #1a73e8); color: var(--rlr-on-accent, #fff); font-weight: 700; font-size: 17px; }
.rlr-card__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rlr-card__name { font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlr-card__date { color: var(--rlr-muted); font-size: .86em; line-height: 1.3; }
.rlr-card__source { display: inline-flex; flex: none; align-self: flex-start; padding: 2px; border-radius: 4px; }
.rlr-card__text { overflow-wrap: anywhere; }
.rlr-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--rlr-lines, 4); line-clamp: var(--rlr-lines, 4); overflow: hidden; }
.rlr-clamp.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.rlr .rlr-more { align-self: flex-start; margin-top: -4px; color: var(--rlr-muted); font-size: .9em; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rlr .rlr-more:hover { color: var(--rlr-text); }
.rlr-card__reply { border-left: 3px solid var(--rlr-line); padding-left: 12px; color: var(--rlr-muted); font-size: .92em; }
.rlr-card__reply-title { font-weight: 600; color: var(--rlr-text); }

/* Grid + list */
.rlr--grid .rlr-track { display: grid; grid-template-columns: repeat(var(--rlr-cols), minmax(0, 1fr)); gap: var(--rlr-gap); }
.rlr--list .rlr-track { display: flex; flex-direction: column; gap: var(--rlr-gap); }

/* Slider: native scroll snap, swipe on touch, arrows on larger screens */
.rlr--slider .rlr-track {
  display: grid; grid-auto-flow: column; align-items: stretch;
  grid-auto-columns: calc((100% - (var(--rlr-cols) - 1) * var(--rlr-gap)) / var(--rlr-cols));
  gap: var(--rlr-gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 4px 2px 8px; margin: -4px -2px -8px;
}
.rlr--slider .rlr-track::-webkit-scrollbar { display: none; }
.rlr--slider .rlr-card { scroll-snap-align: start; }
.rlr--slider .rlr-body { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px 8px; }
.rlr--slider .rlr-track { grid-column: 1 / -1; grid-row: 1; }
.rlr .rlr-nav {
  grid-row: 2; width: 36px; height: 36px; border-radius: 50%;
  background: var(--rlr-card); color: var(--rlr-text); border: 1px solid var(--rlr-line);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .14); display: grid; place-items: center;
}
.rlr .rlr-nav::before {
  content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateX(-2px) rotate(45deg);
}
.rlr .rlr-nav--prev { grid-column: 2; }
.rlr .rlr-nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.rlr .rlr-nav--next { grid-column: 3; }
.rlr .rlr-nav:hover { color: var(--rlr-accent, #1a73e8); }
.rlr .rlr-nav[disabled] { opacity: .35; cursor: default; }
.rlr .rlr-play { grid-row: 2; grid-column: 4; margin-left: 8px; font-size: .85em; color: var(--rlr-muted); text-decoration: underline; }
.rlr .rlr-play::before { content: "Pause"; }
.rlr .rlr-play[aria-pressed="true"]::before { content: "Play"; }
@media (hover: none), (max-width: 640px) { .rlr .rlr-nav { display: none; } }

/* Badge */
.rlr .rlr-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--rlr-card); border: 1px solid var(--rlr-line); color: var(--rlr-text); text-decoration: none;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}
.rlr-badge__score { font-weight: 700; font-size: 1.15em; }
.rlr-badge__text { color: var(--rlr-muted); font-size: .9em; white-space: nowrap; }

.rlr-empty, .rlr-notice { color: #5f6368; font-size: 14px; }
.rlr-notice { padding: 12px 14px; border: 1px dashed #c3c4c7; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) { .rlr--slider .rlr-track { scroll-behavior: auto; } }
@media (max-width: 640px) { .rlr--slider .rlr-track { grid-auto-columns: 86%; } }
