/* SourcingPromo — the buying-guides index and its two taxonomies (/buying-guides/,
   a guide category, a guide tag). Every selector is prefixed `guide-index-` so nothing here
   reaches another page, and every value comes from tokens.css. Mobile first: one column, then two
   from 640px and three from 1000px.

   There is no image placeholder in this file on purpose. A guide holds a 16:9 cover or it holds
   nothing, and most hold nothing yet: the card is written so the text version is the finished
   layout rather than a hole where a picture would go. */

/* ---------- page head ---------- */
.guide-index-head p{margin:0}
.guide-index-body{padding-top:0}
.guide-index-nav{display:block}
.guide-index-nav--tags{margin-top:.35rem}

/* ---------- category and tag rows ---------- */
.guide-index-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.guide-index-chip{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.4rem .8rem;border:1px solid var(--line-strong);border-radius:var(--radius-pill);
  background:var(--paper);color:var(--ink-2);font-size:var(--step--1);font-weight:560;
  line-height:1.3;text-decoration:none;
}
.guide-index-chip:hover{border-color:var(--ink);color:var(--ink);background:var(--sand)}
.guide-index-chip.is-current{border-color:var(--brand);background:var(--brand-tint);color:var(--brand-dark);font-weight:650}
.guide-index-chip:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.guide-index-chip__count{
  font-size:.75rem;color:var(--ink-3);font-variant-numeric:tabular-nums;
  background:var(--sand-2);border-radius:var(--radius-pill);padding:0 .4rem;
}
.guide-index-chip.is-current .guide-index-chip__count{background:var(--paper);color:var(--brand-dark)}
.guide-index-chips--tags .guide-index-chip{padding:.3rem .65rem;font-size:.8125rem}

/* ---------- the collection heading ---------- */
.guide-index-bar{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.4rem;
  border-bottom:1px solid var(--line);padding-bottom:.7rem;margin-bottom:1.25rem;
}
.guide-index-bar__title{margin:0;font-size:var(--step-2);letter-spacing:-.01em}
.guide-index-bar__count{margin:0}

/* ---------- the grid: 1 / 2 / 3 ---------- */
.guide-index-grid{display:grid;gap:1.15rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:640px){
  .guide-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1000px){
  .guide-index-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---------- one guide ----------
   The card is a surface with the title as its only interactive element; a stretched-link ::after
   covers the card, so a click anywhere opens the guide while the tab stop and the accessible name
   stay on the title alone. No second link and no button lives on the card. */
.guide-index-card{
  position:relative;display:flex;flex-direction:column;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);
  overflow:hidden;transition:border-color .15s,box-shadow .15s;
}
.guide-index-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow)}
.guide-index-card:focus-within{outline:2px solid var(--focus);outline-offset:3px}

.guide-index-card__media{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--sand-2)}
.guide-index-card__img{display:block;width:100%;height:100%;object-fit:cover}

.guide-index-card__body{display:flex;flex-direction:column;gap:.4rem;flex:1;padding:1rem 1.1rem 1.15rem}
.guide-index-card__topic{
  margin:0;font-size:.75rem;font-weight:650;letter-spacing:.07em;text-transform:uppercase;
  color:var(--brand);
}
.guide-index-card__title{
  margin:0;font-size:var(--step-1);font-weight:var(--weight-title);line-height:1.35;
  letter-spacing:-.01em;overflow-wrap:break-word;
}
.guide-index-card__link{color:var(--ink);text-decoration:none}
.guide-index-card__link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.guide-index-card__link:focus-visible{outline:none}
.guide-index-card:hover .guide-index-card__link{color:var(--brand-dark)}
.guide-index-card__summary{margin:0;color:var(--ink-2);font-size:.9375rem;line-height:1.55}
.guide-index-card__more{
  margin:auto 0 0;padding-top:.9rem;
  display:flex;align-items:center;gap:.35rem;
  color:var(--ink);font-size:.9375rem;font-weight:600;
}
.guide-index-card__arrow{color:var(--brand);transition:transform .15s}
.guide-index-card:hover .guide-index-card__arrow{transform:translateX(3px)}

/* ---------- empty states ---------- */
.guide-index-empty{max-width:none;margin-inline:auto}
.guide-index-empty p{margin:0}

/* ---------- pager ---------- */
.guide-index-pager{margin-top:2rem}
.guide-index-pager__list{
  list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;
}
.guide-index-pager__link{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:2.5rem;min-height:2.5rem;padding:.3rem .6rem;
  border:1px solid var(--line-strong);border-radius:var(--radius);
  background:var(--paper);color:var(--ink);
  font-size:var(--step--1);font-weight:600;text-decoration:none;line-height:1.2;
}
a.guide-index-pager__link:hover{border-color:var(--ink);background:var(--sand)}
.guide-index-pager__link.is-current{background:var(--brand);border-color:var(--brand);color:#fff}
.guide-index-pager__link--step{min-width:auto;font-weight:650}
.guide-index-pager__gap{padding:0 .2rem;color:var(--ink-3)}

/* ---------- back to the index ---------- */
.guide-index-back{margin-top:1.5rem}
