/* Product cards: full covers, equal-height rows, tight boxes, 2-up mobile. 2026-11-25 */
:root{--pc-soft:#f4f7fa;--pc-line:#e3e7ee;--pc-ink:#0f1b2d}

/* ---- Image frames: show the whole cover, never crop ---- */
html body .card .im,
html body .bk-card .im,
html body .picks .im,
html body .bf-card > a.im,
html body .bf-card a.im{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--pc-soft);
  overflow:hidden;
  box-sizing:border-box;
}
html body .card .im,
html body .bk-card .im,
html body .picks .im{
  aspect-ratio:5/8;
}
html body .card .im.book,
html body .bk-card .im.book{aspect-ratio:5/8}
html body .card .im.wide,
html body .picks .im.wide{aspect-ratio:1/1}
html body .card .im.sq,
html body .picks .im.sq{aspect-ratio:1/1}
html body .card .im.tool{aspect-ratio:4/3}

html body .card .im img,
html body .card .im.book img,
html body .card .im.wide img,
html body .card .im.sq img,
html body .bk-card .im img,
html body .picks .im img,
html body .bf-card a.im > img,
html body .bf-im,
html body img.bf-im{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain !important;
  object-position:center;
  aspect-ratio:auto !important;
  background:transparent;
}

/* Keep fanned bundle stacks as a collage, not a cropped 5:8 tile */
html body .bf-card a.im:has(.bf-stack){
  aspect-ratio:auto;
  display:block;
  background:transparent;
}
html body .bf-stack{background:transparent}
html body .bf-stack img{
  object-fit:contain !important;
  background:#fff;
}

/* ---- Equal-height cards; price + buttons sit on one baseline ---- */
html body .picks .pcard,
html body .card.bk-card,
html body .bf-card,
html body .kcard,
html body li.card,
html body article.kcard{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:auto;
  overflow:visible;
  box-sizing:border-box;
}
html body .picks .ds,
html body .kcard > p,
html body .bk-card .ds,
html body .card .ds{
  flex:0 1 auto;
}
html body .picks .pr,
html body .bf-card .bf-price,
html body .bk-card .pr,
html body .card .pr,
html body .kcard .meta{
  margin-top:auto;
}

/* Tight boxes: no giant min-heights, modest padding */
html body .picks .pcard{padding:0 0 12px;min-height:100%;overflow:visible}
html body .picks .im{margin:0;padding:8px 8px 0}
html body .picks .pcard h3{margin:10px 12px 4px}
html body .picks .ds{margin:0 12px 6px}
html body .picks .pr{margin:auto 12px 8px}
html body .picks .us-buy-actions{margin:0 12px 4px}
html body .picks .us-buy-fine,
html body .picks .more-stores{margin:4px 12px 0}
html body .card .im{margin-bottom:8px;padding:8px}

/* Merch banner: full art, no crop */
.mb-band{background:#05060a;margin:0;padding:0;width:100%}
.mb-link{position:relative;display:block;line-height:0;overflow:hidden;color:#fff!important;text-decoration:none!important}
.mb-img{display:block;width:100%;height:auto;object-fit:contain;object-position:center;background:#05060a}
.mb-link:focus-visible{outline:3px solid #02CEFC;outline-offset:-3px}

/* ---- Mobile: 2 cards per row (not one), tighter type ---- */
@media(max-width:640px){
  html body .picks-grid,
  html body .kits .grid,
  html body .line-grid,
  html body .kit-full,
  html body .feats,
  html body .also .grid3,
  html body .cards,
  html body .cards.m-grid,
  html body .bf-grid,
  html body .bf-grid.sm{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  /* hero copy + preview stay a single column so they do not overlap */
  html body .hero-grid{grid-template-columns:minmax(0,1fr);gap:20px}

  html body .picks .pcard h3,
  html body .kcard h3,
  html body .bf-card h3,
  html body .bk-card h3,
  html body .card h3{font-size:.9rem;line-height:1.25;overflow-wrap:anywhere;hyphens:auto}
  html body .picks .ds,
  html body .kcard p,
  html body .bf-card p,
  html body .bk-card .ds,
  html body .card .ds{font-size:.78rem;line-height:1.35}
  html body .picks .pr,
  html body .kcard .meta,
  html body .bf-card .bf-price,
  html body .card .pr{font-size:.88rem}
  html body .kcard{padding:12px 10px 12px}
  html body .kit-full .kcard .go-row{gap:6px}
  html body .kit-full .kcard .go,
  html body .kcard .go{min-height:40px;font-size:.78rem;padding:6px 8px;text-align:center}
  html body .picks .us-buy-btn,
  html body .picks .us-buy-view,
  html body .us-buy-btn,
  html body .us-buy-view{min-height:40px;font-size:.82rem;padding:6px 8px;text-align:center}
  html body .bf-card{padding:10px 10px 12px}
}

@media(max-width:560px){
  /* Override BF's old 1-column breakpoint so rows stay doubles */
  html body .bf-grid,
  html body .bf-grid.sm{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Sale-page buy buttons: always readable label + price; align across each row */
html body a.us-buy-btn,
html body .us-buy-btn,
html body .bf-hero a.btn-main,
html body .bf-course-card a.us-buy-btn{
  background:#02CEFC !important;
  color:#05060c !important;
  -webkit-text-fill-color:#05060c !important;
  border:2px solid #00a9d1 !important;
  text-decoration:none !important;
  opacity:1 !important;
  visibility:visible !important;
}
html body a.us-buy-view,
html body .us-buy-view{
  background:#fff !important;
  color:#0f1b2d !important;
  -webkit-text-fill-color:#0f1b2d !important;
  border:2px solid #00718f !important;
  text-decoration:none !important;
  opacity:1 !important;
  visibility:visible !important;
}
html body .bf-card .bf-price,
html body .bf-course-card .price,
html body .picks .pr,
html body .bk-card .pr,
html body .card .pr,
html body .kcard .meta{
  margin-top:auto !important;
}
html body .bf-card .us-buy-actions,
html body .bf-course-card .us-buy-actions,
html body .picks .us-buy-actions,
html body .card .us-buy-actions{
  margin-top:8px !important;
  margin-bottom:0;
  flex:0 0 auto;
  width:auto;
  align-self:stretch;
  box-sizing:border-box;
  max-width:100%;
}
html body .bf-card .us-buy-fine,
html body .picks .us-buy-fine{
  flex:0 0 auto;
}


/* Equal-height rows so buy buttons share one baseline */
html body .picks-grid,
html body .bf-grid,
html body .bf-grid.sm,
html body .cards,
html body .cards.m-grid,
html body .kit-full,
html body .kits .grid{
  align-items:stretch;
}
html body .picks .pcard,
html body .bf-card{
  overflow:visible;
  min-height:100%;
  height:100%;
}
html body .bf-grid{
  display:grid;
}
html body .bf-cell{
  display:grid;
  grid-template-rows:subgrid;
  grid-row:span 2;
  align-items:stretch;
  min-width:0;
}
html body .bf-cell > .bf-card{
  height:100%;
  min-height:100%;
}
html body .bf-price .off,
html body .picks .rf-off,
html body .picks .pr small{
  white-space:normal;
  overflow-wrap:anywhere;
}
html body .picks .pr,
html body .bf-card .bf-price{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}


/* FINAL 20261125d: covers stay full, buttons share a baseline, no clip */
html body .picks .im,
html body .card .im,
html body .bk-card .im,
html body .bf-card > a.im,
html body .bf-card a.im{
  flex:0 0 auto;
}

html body .picks .pcard,
html body .card.bk-card,
html body .bf-card,
html body li.card,
html body article.kcard,
html body .kcard{
  overflow:visible !important;
}

/* Desktop first-picks: 4 fuller columns so labels fit and buttons line up */
html body .picks-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
}
@media(max-width:1100px){
  html body .picks-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:860px){
  html body .picks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  html body .picks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Keep image, title, copy on top; price + buttons share the bottom baseline.
   "More stores" (sometimes between price and buttons) always goes last. */
html body .picks .pcard > .im{order:1}
html body .picks .pcard > h3{order:2}
html body .picks .pcard > .ds{order:3}
html body .picks .pcard > .pr{order:4;margin-top:auto !important}
html body .picks .pcard > .us-buy-actions{order:5;margin-top:8px !important}
html body .picks .pcard > .us-buy-fine{order:6}
html body .picks .pcard > .more-stores{order:7}

html body a.us-buy-btn,
html body a.us-buy-view,
html body .us-buy-btn,
html body .us-buy-view,
html body a.go.buy,
html body a.go.bk-buy,
html body a.bk-buy,
html body .bk-card .bk-buy,
html body .bk-card a.go{
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
  white-space:normal !important;
  overflow:visible;
  text-align:center;
  justify-content:center;
  word-break:break-word;
}
html body a.go.bk-buy,
html body a.bk-buy,
html body .bk-card .bk-buy{
  background:#02CEFC !important;
  color:#05060c !important;
  -webkit-text-fill-color:#05060c !important;
  border:2px solid #00a9d1;
  text-decoration:none !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* Books / merch catalog cards: price then button at the bottom of the box */
html body .card .pr,
html body .bk-card .pr,
html body li.card .pr{
  margin-top:auto !important;
}


/* FINAL 20261125f: even first-picks rows, tight internals, samples inside BF cards */
/* 6 picks: 3 columns on desktop, 2 on mobile — every row fills */
html body .picks-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
@media(max-width:1100px){
  html body .picks-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:860px){
  html body .picks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  html body .picks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Same image-box height in every first-picks card so titles and prices line up
   without a tall empty gap under short copy (VBS, gift card). Covers stay whole. */
html body .picks .im,
html body .picks .im.wide,
html body .picks .im.sq{
  aspect-ratio:5/8;
  flex:0 0 auto;
  padding:8px 8px 0;
}

/* Tight stack: image, title, text, then price/buttons at the bottom with small gaps */
html body .picks .pcard h3{margin:8px 12px 2px;line-height:1.25}
html body .picks .ds{margin:0 12px 0}
html body .picks .pr{margin-top:8px !important;margin-right:12px;margin-bottom:6px;margin-left:12px}
html body .picks .us-buy-actions{margin:0 12px 4px}
html body .picks .us-buy-fine,
html body .picks .more-stores{margin:4px 12px 0}

/* BF sample links live inside the card, under the fine print, as a tidy line */
html body .bf-card .bf-read{
  margin:8px 0 0;
  padding:0;
  font-size:.82rem;
  line-height:1.4;
  flex:0 0 auto;
  order:8;
  color:#334;
}
html body .bf-cell{
  display:flex;
  flex-direction:column;
  grid-template-rows:none;
  grid-row:auto;
}
html body .bf-cell > .bf-card{
  height:100%;
  min-height:100%;
}


/* FINAL 20261125g: equalize title/description blocks so price sits close under the text.
   Use block + min-height (not -webkit-box) so the reserved space is inside the text box. */
html body .picks .pcard h3{
  display:block;
  min-height:calc(1.25em * 2);
  overflow:hidden;
}
html body .picks .ds{
  display:block;
  min-height:calc(1.35em * 3);
  margin-bottom:0;
  overflow:hidden;
}
html body .picks .pr{
  min-height:calc(1.2em * 2);
  margin-top:8px !important;
}
@media(max-width:640px){
  html body .picks .pcard h3{min-height:calc(1.25em * 3)}
  html body .picks .ds{min-height:calc(1.35em * 4)}
}

html body .picks .us-buy-actions{
  min-height:calc(44px * 2 + 6px);
}


/* 13 trade cards stay even in the 2-col grid; All-Trades sits below as a slim full-width banner */
html body .kit-full{
  align-items:stretch;
}
/* 13 cards in 2 columns: center the leftover card at one-column width so no empty slot remains */
html body .kit-full > :last-child:nth-child(odd){
  grid-column:1 / -1;
  justify-self:center;
  width:calc((100% - 16px) / 2);
  max-width:100%;
}
@media(max-width:640px){
  /* Full-width leftover card on phones so side gutters do not look like empty slots */
  html body .kit-full > :last-child:nth-child(odd){
    width:100%;
    justify-self:stretch;
  }
}
html body .kit-agency{
  margin:20px 0 8px;
  padding:14px 18px;
  background:#eefbfe;
  border:1px solid rgba(0,113,143,.22);
  border-radius:12px;
}
html body .kit-agency h2{
  margin:0 0 8px;
  font-size:1.05rem;
  letter-spacing:-.02em;
  font-weight:800;
  color:var(--ink,#04121a);
  line-height:1.3;
}
html body .kit-agency-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 16px;
}
html body .kit-agency p{
  margin:0;
  color:var(--muted,#425466);
  font-size:.95rem;
  flex:1 1 auto;
}
html body .kit-agency a.go.buy{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none !important;
  white-space:nowrap;
  background:#02CEFC !important;
  color:#04121a !important;
  -webkit-text-fill-color:#04121a !important;
  border:0;
  opacity:1 !important;
}
html body .kit-agency a.go.buy:hover{
  background:#00b5de !important;
}
@media(max-width:640px){
  html body .kit-agency{padding:12px 12px}
  html body .kit-agency h2{font-size:.95rem;overflow-wrap:anywhere}
  html body .kit-agency p{font-size:.88rem}
  html body .kit-agency a.go.buy{width:100%;white-space:normal;text-align:center}
}
