/* Live MedReviews block. Uses the color tokens each page defines on :root. */

.review-grid > * { min-width: 0; }

.mr-panel {
  display: flex;
  flex-direction: column;
}

.mr-panel-head {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mr-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: .92rem;
  font-weight: 800;
  white-space: nowrap;
}

.mr-panel-title::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.mr-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mr-nav[hidden],
.mr-track[hidden],
.mr-fallback[hidden],
.mr-live[hidden],
.mr-more[hidden] { display: none; }

.mr-nav-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}

.mr-nav-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.mr-nav-btn:disabled {
  opacity: .35;
  cursor: default;
}

.mr-nav-btn svg { width: 18px; height: 18px; }
html[dir="ltr"] .mr-nav-btn svg { transform: scaleX(-1); }

.mr-counter {
  min-width: 52px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  direction: ltr;
}

.mr-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 14px;
  outline: none;
  transition: height .35s ease;
}

.mr-track::-webkit-scrollbar { display: none; }
.mr-track:focus-visible { box-shadow: 0 0 0 3px rgba(86, 54, 99, .22); }

.mr-card {
  flex: 0 0 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.mr-card::before {
  content: "“";
  height: 34px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 4.4rem;
  line-height: 1;
}

.mr-card-stars {
  margin: 0 0 12px;
  color: #d59e3b;
  font-size: 1.02rem;
  letter-spacing: 3px;
}

.mr-quote {
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  color: #3e3741;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.8;
  white-space: pre-line;
}

.mr-card.expanded .mr-quote {
  display: block;
  -webkit-line-clamp: unset;
}

.mr-more {
  align-self: flex-start;
  margin: -8px 0 20px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(86, 54, 99, .26);
  color: var(--primary);
  background: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.mr-more:hover { border-color: var(--accent); }

.mr-author {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.mr-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #80598b);
  font-size: 1.05rem;
  font-weight: 800;
}

.mr-who strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.3;
}

.mr-meta {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.mr-live {
  margin-bottom: 22px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .1);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
}

.mr-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5fe0a8;
  animation: mrPulse 2.2s ease-out infinite;
}

.mr-fade-in { animation: mrFadeIn .45s ease both; }

@keyframes mrPulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 224, 168, .55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(95, 224, 168, 0); }
}

@keyframes mrFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 590px) {
  .mr-panel-head { margin-bottom: 14px; }
  .mr-nav-btn { width: 38px; height: 38px; }
  .mr-quote { -webkit-line-clamp: 7; }
}

@media (prefers-reduced-motion: reduce) {
  .mr-track { scroll-behavior: auto; transition: none; }
  .mr-live-dot,
  .mr-fade-in { animation: none; }
}
