/* ==========================================================================
   Buying Guides hub (/best/) — fidelity: mockups/pages/buying-guides/
   ========================================================================== */

.drc-guides-hub {
  padding: 18px 0 calc(96px + env(safe-area-inset-bottom, 0px));
}

.drc-guides-hub .drc-crumbs {
  margin: 0 0 0;
  padding: 0;
}

.drc-guides-hub .drc-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.drc-guides-hub .drc-crumbs li {
  display: flex;
  align-items: center;
}

.drc-guides-hub .drc-crumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--line-strong, var(--stone));
}

.drc-guides-hub .drc-crumbs a {
  color: inherit;
  text-decoration: none;
}

.drc-guides-hub .drc-crumbs a:hover {
  text-decoration: underline;
}

.drc-guides-hub .drc-crumbs [aria-current] {
  color: var(--ink, var(--espresso));
  font-weight: 500;
}

.drc-guides-hub .ic {
  width: 20px;
  height: 20px;
  flex: none;
}

.drc-guides-hub .ic-sm {
  width: 16px;
  height: 16px;
}

/* ---- Hero ---- */
.drc-gh-hero {
  padding: 30px 0 var(--s8, 64px);
}

.drc-gh-eyebrow {
  font: 600 12.5px / 1 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust-deep, var(--forest));
  margin: 0 0 10px;
  display: block;
}

.drc-gh-h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.06;
  max-width: 17ch;
  color: var(--forest);
  letter-spacing: -0.015em;
  font-weight: 600;
}

.drc-gh-lede {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #2b3833;
  max-width: 62ch;
}

.drc-gh-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.drc-gh-disclosure {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--warm, var(--cream));
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 66ch;
  margin-top: 28px;
}

.drc-gh-disclosure .ic {
  color: var(--rust-deep, var(--forest));
  margin-top: 1px;
  width: 18px;
  height: 18px;
  flex: none;
}

.drc-gh-disclosure p {
  margin: 0;
}

.drc-gh-disclosure a {
  color: var(--forest);
  font-weight: 600;
}

/* ---- Sections ---- */
.drc-gh-mod {
  padding: var(--s8, 64px) 0;
  border-top: 1px solid var(--line, var(--stone));
  scroll-margin-top: calc(var(--header-h, 60px) + 16px);
}

.drc-gh-h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  color: var(--forest);
  font-weight: 600;
}

.drc-gh-sub {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 58ch;
}

/* ---- Featured ----
   Lead banner on top, two compact companions below — avoids the tall empty span-2 void. */
.drc-gh-feat-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 720px) {
  .drc-gh-feat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .drc-gh-gcard--lead {
    grid-column: 1 / -1;
  }
}

.drc-gh-gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--stone) 80%, transparent);
  border-radius: var(--r-panel, 16px);
  background: var(--white, var(--milk));
  overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--milk) 70%, white);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.drc-gh-gcard:hover {
  border-color: color-mix(in srgb, var(--forest) 35%, var(--stone));
  box-shadow: 0 22px 44px -28px rgba(23, 35, 31, 0.42);
  transform: translateY(-2px);
}

.drc-gh-gcard__media {
  flex: none;
  aspect-ratio: 2.1 / 1;
  max-height: 148px;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(188, 219, 240, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(120, 134, 101, 0.22), transparent 50%),
    linear-gradient(145deg, #152820 0%, #1e3a2f 42%, #2a4d3c 78%, #24352a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--warm, var(--cream));
  overflow: hidden;
}

.drc-gh-gcard__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 251, 245, 0.07) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}

.drc-gh-gcard__media::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 242, 230, 0.12), transparent 65%);
  pointer-events: none;
}

.drc-gh-gcard__ph {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 11px;
  box-sizing: content-box;
  border-radius: 50%;
  background: color-mix(in srgb, var(--milk) 12%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--cream) 28%, transparent),
    0 12px 28px -16px rgba(0, 0, 0, 0.45);
  opacity: 0.88;
  transition: transform 0.22s var(--ease, ease), opacity 0.22s;
}

.drc-gh-gcard:hover .drc-gh-gcard__ph {
  transform: scale(1.05);
  opacity: 1;
}

.drc-gh-gcard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font: 700 11.5px / 1.3 var(--font-ui);
  z-index: 2;
  backdrop-filter: blur(8px);
}

.drc-gh-gcard__badge.is-live {
  background: color-mix(in srgb, var(--milk) 92%, transparent);
  color: var(--forest);
  box-shadow: 0 1px 0 rgba(23, 35, 31, 0.06);
}

.drc-gh-gcard__badge.is-demo {
  background: color-mix(in srgb, var(--milk) 92%, transparent);
  color: var(--cocoa, #624536);
  box-shadow: inset 0 0 0 1px var(--line-strong, var(--stone));
}

.drc-gh-gcard__body {
  flex: 1 1 auto;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drc-gh-gcard__cat {
  margin: 0;
  font: 600 11px / 1.2 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust-deep, var(--forest));
}

.drc-gh-gcard__title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink, var(--espresso));
  font-weight: 600;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.drc-gh-gcard__title a {
  color: inherit;
  text-decoration: none;
}

.drc-gh-gcard__title a:hover {
  color: var(--forest);
}

.drc-gh-gcard__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 46ch;
  flex: 1 1 auto;
}

.drc-gh-gcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--stone) 70%, transparent);
}

.drc-gh-gcard__meta {
  font-size: 12px;
  color: var(--muted);
}

.drc-gh-gcard__foot .btn {
  flex: none;
}

.drc-gh-gcard.is-highlight {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

/* Lead banner — split visual + copy, content-tight height */
.drc-gh-gcard--lead {
  isolation: isolate;
  background: #152820;
  border-color: transparent;
}

@media (min-width: 720px) {
  .drc-gh-gcard--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    min-height: 0;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__media {
    aspect-ratio: auto;
    max-height: none;
    min-height: 100%;
    height: 100%;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__ph {
    width: 52px;
    height: 52px;
    padding: 16px;
    opacity: 0.7;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__body {
    padding: 28px 30px;
    gap: 10px;
    justify-content: center;
    background: linear-gradient(135deg, #18332c 0%, #1c2f27 55%, #24352a 100%);
  }

  .drc-gh-gcard--lead .drc-gh-gcard__cat {
    color: color-mix(in srgb, var(--cream) 78%, #fff);
  }

  .drc-gh-gcard--lead .drc-gh-gcard__title,
  .drc-gh-gcard--lead .drc-gh-gcard__title a {
    color: #fff;
    font-size: clamp(24px, 2.4vw, 32px);
  }

  .drc-gh-gcard--lead .drc-gh-gcard__title a:hover {
    color: var(--cream);
  }

  .drc-gh-gcard--lead .drc-gh-gcard__desc {
    color: #cfe0d7;
    max-width: 42ch;
    font-size: 15px;
    flex: 0 0 auto;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__foot {
    border-top-color: rgba(255, 255, 255, 0.16);
    margin-top: 10px;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__meta {
    color: #a9c1b4;
  }

  .drc-gh-gcard--lead .btn-outline {
    border-color: rgba(255, 251, 245, 0.45);
    color: #fff;
    background: transparent;
  }

  .drc-gh-gcard--lead .btn-outline:hover {
    background: var(--milk);
    border-color: var(--milk);
    color: var(--forest);
  }
}

@media (max-width: 719px) {
  .drc-gh-gcard--lead .drc-gh-gcard__media {
    aspect-ratio: 16 / 9;
    max-height: 180px;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__body {
    background: linear-gradient(180deg, #1c2f27 0%, #24352a 100%);
    padding: 18px 18px 20px;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__cat {
    color: color-mix(in srgb, var(--cream) 78%, #fff);
  }

  .drc-gh-gcard--lead .drc-gh-gcard__title,
  .drc-gh-gcard--lead .drc-gh-gcard__title a {
    color: #fff;
    font-size: 22px;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__desc {
    color: #cfe0d7;
  }

  .drc-gh-gcard--lead .drc-gh-gcard__foot {
    border-top-color: rgba(255, 255, 255, 0.16);
  }

  .drc-gh-gcard--lead .drc-gh-gcard__meta {
    color: #a9c1b4;
  }

  .drc-gh-gcard--lead .btn-outline {
    border-color: rgba(255, 251, 245, 0.45);
    color: #fff;
    background: transparent;
  }
}

/* ---- Category tiles ---- */
.drc-gh-cat-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .drc-gh-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .drc-gh-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.drc-gh-cat-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line, var(--stone));
  border-radius: var(--r-card, 14px);
  background: var(--white, var(--milk));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.drc-gh-cat-tile:hover {
  border-color: var(--forest);
  box-shadow: 0 18px 36px -28px rgba(23, 35, 31, 0.4);
  transform: translateY(-1px);
}

.drc-gh-cat-tile__ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--tile, var(--milk));
  color: var(--forest);
  display: grid;
  place-items: center;
}

.drc-gh-cat-tile__ic .ic {
  width: 22px;
  height: 22px;
}

.drc-gh-cat-tile__name {
  font: 600 15px / 1.3 var(--font-ui);
  color: var(--ink, var(--espresso));
}

.drc-gh-cat-tile__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: -4px;
}

.drc-gh-cat-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest);
  margin-top: auto;
}

.drc-gh-cat-tile:hover .drc-gh-cat-tile__link {
  color: var(--rust-deep, var(--forest));
}

/* ---- All guides ---- */
.drc-gh-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.drc-gh-legend__item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.drc-gh-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: none;
}

.drc-gh-legend__dot.is-live {
  background: var(--forest);
}

.drc-gh-legend__dot.is-demo {
  background: var(--line-strong, var(--stone));
}

.drc-gh-all-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .drc-gh-all-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1050px) {
  .drc-gh-all-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.drc-gh-acard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, var(--stone));
  border-radius: var(--r-card, 14px);
  background: var(--white, var(--milk));
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s, outline-color 0.15s;
}

.drc-gh-acard:hover {
  border-color: var(--line-strong, var(--stone));
  box-shadow: 0 16px 32px -26px rgba(23, 35, 31, 0.4);
  transform: translateY(-1px);
}

.drc-gh-acard.is-highlight {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.drc-gh-acard__media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, color-mix(in srgb, var(--blue) 35%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--forest) 8%, var(--milk)) 0%, var(--tile, var(--milk)) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  position: relative;
}

.drc-gh-acard__media .ic {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.drc-gh-acard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font: 700 11px / 1.3 var(--font-ui);
  z-index: 1;
}

.drc-gh-acard__badge.is-live {
  background: var(--forest-tint, #e8efeb);
  color: var(--forest);
}

.drc-gh-acard__badge.is-demo {
  background: var(--white, var(--milk));
  color: var(--cocoa, #624536);
  box-shadow: inset 0 0 0 1px var(--line-strong, var(--stone));
}

.drc-gh-acard__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.drc-gh-acard__cat {
  margin: 0;
  font: 600 11px / 1.2 var(--font-ui);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rust-deep, var(--forest));
}

.drc-gh-acard__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, var(--espresso));
  line-height: 1.3;
}

.drc-gh-acard__title a {
  color: inherit;
  text-decoration: none;
}

.drc-gh-acard__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drc-gh-acard__desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.drc-gh-acard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line, var(--stone));
}

.drc-gh-acard__meta {
  font-size: 11.5px;
  color: var(--muted);
}

.drc-gh-acard__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.drc-gh-acard__cta.is-disabled {
  color: var(--muted);
}

.drc-gh-acard:hover .drc-gh-acard__cta:not(.is-disabled) {
  color: var(--rust-deep, var(--forest));
}

.drc-gh-mod .drc-gh-disclosure {
  margin-top: 20px;
}

/* ---- Finder CTA ---- */
.drc-gh-finder {
  margin-top: var(--s8, 64px);
  padding: var(--s7, 48px) var(--s6, 32px);
  border-radius: var(--r-panel, 16px);
  background: var(--forest);
  color: var(--warm, var(--cream));
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.drc-gh-finder h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  max-width: 26ch;
  font-weight: 600;
}

.drc-gh-finder p {
  margin: 8px 0 0;
  color: #cfe0d7;
  font-size: 14px;
  max-width: 48ch;
}

.drc-gh-finder .btn-primary {
  flex: none;
}
