.dwpgr {
  --dwpgr-ink: #171412;
  --dwpgr-muted: #6d655d;
  --dwpgr-line: rgba(23, 20, 18, 0.14);
  --dwpgr-paper: #fbfaf6;
  --dwpgr-card: #ffffff;
  --dwpgr-gold: #d5a24a;
  --dwpgr-red: #c90812;
  color: var(--dwpgr-ink);
  font-family: inherit;
}

.dwpgr--theme-dark {
  --dwpgr-ink: #ffffff;
  --dwpgr-muted: rgba(255, 255, 255, 0.72);
  --dwpgr-line: rgba(255, 255, 255, 0.2);
  --dwpgr-paper: #171412;
  --dwpgr-card: #25211e;
}

.dwpgr-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--dwpgr-paper);
  border: 1px solid var(--dwpgr-line);
  border-radius: 8px;
}

.dwpgr-provider {
  display: block;
  margin-bottom: 4px;
  color: var(--dwpgr-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dwpgr-summary h2 {
  margin: 0;
  color: var(--dwpgr-ink);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.dwpgr-score {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 10px;
  align-items: center;
  text-align: right;
}

.dwpgr-score strong {
  color: var(--dwpgr-ink);
  font-size: 2rem;
  line-height: 1;
}

.dwpgr-score span,
.dwpgr-stars {
  color: var(--dwpgr-gold);
  letter-spacing: 0;
  white-space: nowrap;
}

.dwpgr-score small {
  grid-column: 1 / -1;
  color: var(--dwpgr-muted);
  font-weight: 800;
}

.dwpgr-google-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--dwpgr-red);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.dwpgr-track {
  display: grid;
  grid-template-columns: repeat(var(--dwpgr-cols), minmax(0, 1fr));
  gap: 14px;
}

.dwpgr-card {
  min-height: 220px;
  padding: 20px;
  background: var(--dwpgr-card);
  border: 1px solid var(--dwpgr-line);
  border-radius: 8px;
  color: var(--dwpgr-ink);
}

.dwpgr-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dwpgr-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.dwpgr-card h3 {
  margin: 0 0 3px;
  font-size: 1rem;
  line-height: 1.2;
}

.dwpgr-card h3 a {
  color: inherit;
  text-decoration: none;
}

.dwpgr-card h3 a:hover,
.dwpgr-card h3 a:focus {
  color: var(--dwpgr-red);
}

.dwpgr-author-meta {
  margin: 2px 0 2px;
  color: var(--dwpgr-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.dwpgr-text {
  margin: 0;
  color: var(--dwpgr-ink);
  font-weight: 650;
}

.dwpgr-date {
  margin: 16px 0 0;
  color: var(--dwpgr-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.dwpgr--list .dwpgr-track {
  grid-template-columns: 1fr;
}

.dwpgr--list .dwpgr-card {
  min-height: 0;
}

.dwpgr--spotlight .dwpgr-track {
  grid-template-columns: 1fr;
}

.dwpgr--spotlight .dwpgr-card {
  min-height: 280px;
  padding: clamp(22px, 4vw, 42px);
}

.dwpgr--spotlight .dwpgr-text {
  font-size: clamp(1.2rem, 3vw, 2.1rem);
  line-height: 1.22;
}

.dwpgr--badge .dwpgr-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 0;
}

.dwpgr--badge .dwpgr-google-link {
  display: none;
}

.dwpgr-carousel-shell {
  position: relative;
}

.dwpgr--carousel .dwpgr-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.dwpgr--carousel .dwpgr-card {
  flex: 0 0 min(360px, 86vw);
  scroll-snap-align: start;
}

.dwpgr-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--dwpgr-line);
  border-radius: 50%;
  background: var(--dwpgr-card);
  color: var(--dwpgr-ink);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.dwpgr-carousel-btn--prev {
  left: -18px;
}

.dwpgr-carousel-btn--next {
  right: -18px;
}

.dwpgr-admin-notice {
  padding: 14px 16px;
  border-left: 4px solid #c90812;
  background: #fff8e5;
  color: #171412;
}

@media (max-width: 860px) {
  .dwpgr-summary {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .dwpgr-score {
    justify-content: start;
    text-align: left;
  }

  .dwpgr-track {
    grid-template-columns: 1fr;
  }

  .dwpgr-carousel-btn {
    display: none;
  }
}
