/* ============================================================
   PetFinds — Guides / comparison template
   Builds on style.css (brand tokens, nav, footer, buttons, quote).
   Used by every /guides/ page. Readability-first for older readers.
   ============================================================ */

/* Keep the nav links visible + wrapping on mobile for static (no-JS)
   guide pages, instead of the homepage's JS-driven dropdown. */
@media (max-width: 860px) {
  .guide-page .nav__links {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background: none;
    box-shadow: none;
    padding: 0;
    margin-left: 0;
    gap: .6rem 1rem;
  }
  .guide-page .nav__links a { width: auto; padding: .2rem 0; border-bottom: 0; }
  .guide-page .nav__links a::after { display: block; }
}

/* ---------- Layout ---------- */
.guide {
  max-width: 760px;          /* comfortable measure for body reading */
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) 1.25rem 1rem;
}
.guide p { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.guide h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -.01em;
  margin: 2.4rem 0 .8rem;
  scroll-margin-top: 84px;
}
.guide h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.4rem 0 .4rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-hidden] { margin: 0 .4rem; opacity: .6; }

/* ---------- Title block ---------- */
.guide__title {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
}
.guide__updated {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.guide__updated::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

/* ---------- TL;DR callout ---------- */
.tldr {
  background: rgba(0, 102, 255, .06);
  border: 1px solid rgba(0, 102, 255, .18);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.25rem;
  margin: 1.6rem 0 2rem;
}
.tldr__label {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .4rem;
}
.tldr p { margin: 0; font-size: 1.08rem; line-height: 1.7; }

/* ---------- Ranked picks list ---------- */
.guide__ranked {
  list-style: none;
  counter-reset: pick;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.guide__ranked li {
  counter-increment: pick;
  position: relative;
  padding: .85rem 1rem .85rem 3.2rem;
  background: var(--card);
  border: 1px solid rgba(26, 26, 46, .08);
  border-radius: var(--radius-card);
  font-size: 1.05rem;
  line-height: 1.6;
}
.guide__ranked li::before {
  content: counter(pick);
  position: absolute;
  left: .8rem; top: .8rem;
  width: 1.8rem; height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: .95rem;
  border-radius: 50%;
}
.guide__ranked strong { font-weight: 800; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(26, 26, 46, .1);
}
.cmp-table caption {
  caption-side: top;
  text-align: left;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .5rem;
}
.cmp-table th,
.cmp-table td {
  padding: .8rem .9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(26, 26, 46, .08);
  line-height: 1.5;
}
.cmp-table thead th {
  background: var(--primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: .92rem;
}
.cmp-table tbody th {
  font-weight: 800;
  color: var(--text);
  background: rgba(0, 102, 255, .04);
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:nth-child(even) td { background: rgba(26, 26, 46, .015); }

/* ---------- Per-pick block ---------- */
.pick {
  border: 1px solid rgba(26, 26, 46, .1);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.25rem 1.4rem;
  margin: 1.4rem 0;
  background: var(--card);
}
.pick__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, #E8F0FF, #F0F4FF);
}
.pick__name {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 .15rem;
}
.pick__role {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0047B3;
  background: #E6EEFF;
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}
.pick__price {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: .2rem 0 .8rem;
}
.pick__price span { font-size: .85rem; font-weight: 600; color: var(--muted); }
/* Reuse the homepage speech-bubble look for pet-voice quotes. */
.pick__quote {
  margin: .9rem 0;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid rgba(0, 102, 255, .35);
  padding: .6rem .85rem;
  font-size: 1.02rem;
  line-height: 1.6;
  background: rgba(0, 102, 255, .05);
  border-radius: 0 6px 6px 0;
}
.pick__quote cite { display: block; font-style: normal; color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.pick .btn--amazon { width: auto; display: inline-flex; }

/* ---------- Inline affiliate disclosure ---------- */
.disclosure-inline {
  font-size: .9rem;
  line-height: 1.6;
  color: #4A5060;
  background: rgba(26, 26, 46, .035);
  border-radius: 10px;
  padding: .7rem .9rem;
  margin: 1rem 0 1.6rem;
}

/* ---------- Choose-X / Choose-Y (comparison) ---------- */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.choose-card {
  border: 1px solid rgba(26, 26, 46, .1);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--card);
}
.choose-card h3 { margin-top: 0; }
.choose-card ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.choose-card li { margin: .4rem 0; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq__q {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  margin: 1.4rem 0 .35rem;
}
.faq__a { margin: 0; }

/* ---------- Watch related (video slot) ---------- */
.watch-related {
  border: 1px dashed rgba(0, 102, 255, .4);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.25rem;
  margin: 1.8rem 0;
  background: rgba(0, 102, 255, .04);
}
.watch-related__label {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 .4rem;
}
.watch-related__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-top: .7rem;
}
.watch-related__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Related guides ---------- */
.related {
  margin: 2.4rem 0 1rem;
  border-top: 1px solid rgba(26, 26, 46, .1);
  padding-top: 1.6rem;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}
.related__card {
  display: block;
  border: 1px solid rgba(26, 26, 46, .1);
  border-radius: var(--radius-card);
  padding: 1rem 1.1rem;
  background: var(--card);
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.related__card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 26, 46, .08);
}
.related__kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.related__title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.02rem; margin-top: .25rem; line-height: 1.35; }
