@import url("/dtm-product-roundup.css");

.guide-route {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.route-step {
  align-items: center;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 12px;
}

.route-step span {
  background: #11161d;
  border-radius: 999px;
  color: var(--gold);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  height: 32px;
  place-items: center;
  width: 32px;
}

.guide-card-grid {
  display: grid;
  gap: 14px;
}

.guide-video-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  margin-top: 18px;
}

.guide-video {
  background: #11161d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(3, 8, 14, 0.14);
}

.guide-video iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  width: 100%;
}

.guide-video figcaption {
  color: #d8ded5;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px 12px;
}

.guide-section-image {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0 0;
  overflow: hidden;
}

.guide-section-media-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.guide-section-media-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.guide-section-media-grid .guide-section-image {
  margin: 0;
}

.guide-section-image img {
  display: block;
  height: auto;
  width: 100%;
}

.guide-section-image figcaption {
  color: #62676e;
  font-size: 13px;
  line-height: 1.7;
  padding: 10px 14px 12px;
}

.guide-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
}

.guide-card--with-image {
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  padding: 0;
}

.guide-card-image {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.guide-card--affiliate-product {
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
}

.guide-card--affiliate-product:not(.guide-card--with-image) {
  grid-template-columns: 1fr;
}

.guide-card--affiliate-product:not(.guide-card--with-image) .guide-card-body {
  padding: 18px;
}

.guide-card--affiliate-product .guide-card-image {
  align-self: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  padding: 16px;
}

.guide-card--product-placeholder {
  background: #fffefa;
}

.guide-card-placeholder {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(32, 124, 113, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(11, 17, 23, 0.98), rgba(16, 23, 31, 0.92));
  border-right: 1px solid rgba(18, 24, 31, 0.08);
  color: #fffaf0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.guide-card-placeholder::before {
  border: 1px solid rgba(255, 250, 238, 0.18);
  border-radius: 999px;
  bottom: -34px;
  content: "";
  height: 116px;
  position: absolute;
  right: -28px;
  width: 116px;
}

.guide-card-placeholder::after {
  background: rgba(202, 162, 75, 0.84);
  border-radius: 999px;
  bottom: 20px;
  content: "";
  height: 14px;
  position: absolute;
  right: 22px;
  width: 14px;
}

.guide-card-placeholder span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.guide-card-placeholder strong {
  color: #fffaf0;
  font-size: 18px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.guide-card--diagram {
  align-items: center;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr);
}

.guide-card--diagram .guide-card-image {
  align-self: center;
  aspect-ratio: auto;
  background: #fff;
  height: auto;
  max-height: none;
  object-fit: contain;
  padding: 14px;
}

.guide-card--step.guide-card--with-image {
  grid-template-columns: 1fr;
}

.guide-card--step .guide-card-image {
  aspect-ratio: auto;
  background: #11161d;
  border-bottom: 1px solid var(--line);
  height: auto;
  max-height: 420px;
  object-fit: contain;
  padding: 0;
}

.guide-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.guide-card:not(.guide-card--with-image) .guide-card-body {
  padding: 0;
}

.guide-card-meta {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.guide-card h3 {
  font-size: 19px;
}

.guide-card p,
.guide-body {
  color: #3f454c;
  line-height: 1.9;
  white-space: pre-line;
}

.sampling-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.sampling-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  overflow: hidden;
}

.sampling-card-image {
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.2), rgba(9, 10, 13, 0.72)),
    var(--sampling-image) center / cover;
  min-height: 100%;
}

.sampling-card-image--empty {
  background:
    radial-gradient(circle at 78% 72%, rgba(202, 162, 75, 0.9) 0 9px, transparent 10px),
    radial-gradient(circle at 76% 72%, transparent 0 42px, rgba(255, 250, 238, 0.16) 43px 44px, transparent 45px),
    linear-gradient(135deg, rgba(32, 124, 113, 0.26), transparent 42%),
    linear-gradient(180deg, #121820, #20232d 58%, #10151c);
  color: #fffaf0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.sampling-card-image--empty::before {
  border: 1px solid rgba(255, 250, 238, 0.16);
  border-radius: 999px;
  bottom: -36px;
  content: "";
  height: 124px;
  position: absolute;
  right: -30px;
  width: 124px;
}

.sampling-card-image--empty span,
.sampling-card-image--empty strong,
.sampling-card-image--empty small {
  position: relative;
  z-index: 1;
}

.sampling-card-image--empty span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.sampling-card-image--empty strong {
  font-size: 19px;
  line-height: 1.28;
}

.sampling-card-image--empty small {
  color: rgba(255, 250, 238, 0.72);
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
}

.sampling-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.sampling-card h3 {
  font-size: 22px;
  line-height: 1.35;
}

.sampling-card p {
  color: #3f454c;
  line-height: 1.8;
  white-space: pre-line;
}

.sampling-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.sampling-meta {
  color: #5b6269;
  font-size: 14px;
  margin-top: -6px;
}

.sample-source-box {
  background: #eef2ed;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.sample-source-box strong {
  color: #171b21;
  font-size: 18px;
  line-height: 1.4;
}

.sample-source-box span {
  color: #5b6269;
  font-size: 14px;
}

.guide-section-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.guide-section-list li {
  background: #eef2ed;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  line-height: 1.7;
  padding: 12px 14px;
}

.guide-section-list--nested {
  margin-top: 0;
}

.check-panel {
  background: #f8f1df;
  border-left: 6px solid var(--gold);
}

.guide-cta {
  background: #11161d;
  border-radius: 8px;
  color: var(--text-inverse);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.guide-cta p {
  color: var(--muted-inverse);
  line-height: 1.7;
}

.guide-cta .button-row {
  margin-top: 2px;
}

.hero-card .guide-summary {
  display: grid;
  gap: 12px;
}

.guide-summary strong {
  font-size: 18px;
  line-height: 1.5;
}

#links .link-card.has-image {
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.14), rgba(9, 10, 13, 0.66)),
    linear-gradient(90deg, rgba(12, 16, 19, 0.38), rgba(12, 16, 19, 0.1)),
    var(--card-image) center / cover;
  border-color: rgba(255, 250, 238, 0.18);
  box-shadow: 0 18px 36px rgba(10, 12, 16, 0.18);
  min-height: 176px;
  overflow: hidden;
  position: relative;
}

#links .link-card.has-image::after {
  background:
    linear-gradient(135deg, rgba(202, 162, 75, 0.12), transparent 48%),
    linear-gradient(90deg, rgba(21, 91, 82, 0.1), transparent 62%),
    linear-gradient(0deg, rgba(255, 250, 238, 0.04), transparent 54%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

#links .link-card.has-image span,
#links .link-card.has-image strong,
#links .link-card.has-image small {
  position: relative;
  z-index: 1;
}

#links .link-card.has-image span,
#links .link-card.has-image small {
  color: rgba(255, 250, 238, 0.84);
}

#links .link-card.has-image strong {
  color: #fffaf0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (max-width: 760px) {
  .route-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .sampling-card {
    grid-template-columns: 1fr;
  }

  .guide-card--with-image {
    grid-template-columns: 1fr;
  }

  .guide-card-image {
    max-height: 240px;
  }

  .guide-card--diagram .guide-card-image {
    max-height: none;
    padding: 10px;
  }

  .guide-card--step .guide-card-image {
    max-height: none;
  }

  .guide-card--affiliate-product .guide-card-image {
    max-height: 180px;
    padding: 18px;
  }

  .guide-video-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .guide-section-media-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-placeholder {
    min-height: 150px;
  }

  .sampling-card-image {
    min-height: 150px;
  }

  #links .link-card.has-image {
    min-height: 148px;
  }
}
