/**
 * Theme Reviews archive + single.
 */

.dd-tr-primary {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  color: var(--color-text, #0f172a);
  box-sizing: border-box;
}

.dd-tr-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 8px 0 22px;
  font-size: 14px;
  color: #64748b;
}

.dd-tr-crumbs a {
  color: #334155;
  text-decoration: none;
}

.dd-tr-crumbs a:hover {
  color: #008060;
}

.dd-tr-kicker {
  margin: 0 0 8px;
  color: #008060;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dd-tr-h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dd-tr-lead {
  margin: 0;
  max-width: 42rem;
  color: #64748b;
  font-size: 17px;
  line-height: 1.65;
}

.dd-tr-header {
  margin: 0 0 36px;
}

.dd-tr-grid,
.dd-tr-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.dd-tr-card {
  margin: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dd-tr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.dd-tr-card-link,
.dd-tr-related-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dd-tr-card-media {
  aspect-ratio: 16 / 10;
  background: #e8eef0;
  overflow: hidden;
}

.dd-tr-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dd-tr-card-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008060;
  font-weight: 700;
  letter-spacing: 0.16em;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 128, 96, 0.18), transparent 42%),
    linear-gradient(145deg, #e7f5f0 0%, #f4f7f8 55%, #dce8e4 100%);
}

.dd-tr-card-body {
  padding: 16px 18px 20px;
}

.dd-tr-card-kicker {
  margin: 0 0 4px;
  color: #008060;
  font-size: 13px;
  font-weight: 600;
}

.dd-tr-card-title,
.dd-tr-related-card strong {
  display: block;
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 700;
}

.dd-tr-card-verdict,
.dd-tr-card-for {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.dd-tr-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 4px 0;
}

.dd-tr-star {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: #cbd5e1;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.dd-tr-star-full {
  background: #008060;
}

.dd-tr-star-half {
  background: linear-gradient(90deg, #008060 50%, #cbd5e1 50%);
}

.dd-tr-score {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dd-tr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin: 0 0 40px;
}

.dd-tr-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.dd-tr-meta {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dd-tr-meta li {
  display: grid;
  gap: 2px;
  font-size: 15px;
}

.dd-tr-meta span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.dd-tr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dd-tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.dd-tr-btn-primary {
  background: #008060;
  color: #fff !important;
}

.dd-tr-btn-primary:hover {
  background: #006b4f;
  color: #fff !important;
}

.dd-tr-btn-ghost {
  background: #fff;
  color: #0f172a !important;
  border-color: #cbd5e1;
}

.dd-tr-btn-ghost:hover {
  border-color: #008060;
  color: #008060 !important;
}

.dd-tr-prose {
  max-width: 48rem;
  margin: 0 0 56px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.dd-tr-prose h2 {
  margin: 2rem 0 0.75rem;
  color: #0f172a;
  font-size: 1.45rem;
}

.dd-tr-related,
.dd-tr-compare,
.dd-tr-cta {
  margin: 0 0 48px;
}

.dd-tr-related h2,
.dd-tr-compare h2,
.dd-tr-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.dd-tr-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.dd-tr-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.dd-tr-table th,
.dd-tr-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  font-size: 14px;
}

.dd-tr-table th {
  background: #f8fafc;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.dd-tr-table tr:last-child td {
  border-bottom: 0;
}

.dd-tr-table tr.is-current {
  background: #f0fdf8;
}

.dd-tr-table-sub {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
}

.dd-tr-table a {
  color: #008060;
  font-weight: 700;
  text-decoration: none;
}

.dd-tr-now {
  color: #64748b;
  font-size: 13px;
}

.dd-tr-cta {
  background: linear-gradient(145deg, #06382d 0%, #008060 70%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
}

.dd-tr-cta .dd-tr-kicker,
.dd-tr-cta h2,
.dd-tr-cta p {
  color: #fff;
}

.dd-tr-cta p {
  max-width: 40rem;
  margin: 0;
  opacity: 0.92;
  line-height: 1.6;
}

.dd-tr-cta .dd-tr-btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
}

.dd-tr-cta .dd-tr-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.dd-tr-cta .dd-tr-btn-primary {
  background: #fff;
  color: #008060 !important;
}

.dd-tr-pagination {
  margin-top: 36px;
}

.dd-tr-empty {
  color: #64748b;
}

@media (max-width: 960px) {
  .dd-tr-grid,
  .dd-tr-related-grid,
  .dd-tr-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dd-tr-primary {
    padding: 1rem 1rem 3rem;
  }

  .dd-tr-table {
    min-width: 0;
  }

  .dd-tr-table thead {
    display: none;
  }

  .dd-tr-table,
  .dd-tr-table tbody,
  .dd-tr-table tr,
  .dd-tr-table td {
    display: block;
    width: 100%;
  }

  .dd-tr-table tr {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .dd-tr-table td {
    padding: 6px 16px;
    border: 0;
  }

  .dd-tr-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
  }
}
