/* affiliate-cards-v2.css — universal affiliate component (.affc), Phase 1 v2.
   Changes vs v1 (2026-11-16, owner direction):
   - COMPACT pass: tighter section/card padding, gaps and line-heights,
     one-step-smaller secondary text. No content fields removed.
   - REAL LOGOS: card head is now a row — white rounded logo tile (56px,
     logo contained) at the left, product name + description to its right
     (layout per the owner's design reference). Logos are the vendors' own
     official-website assets, self-hosted in /static/img/affiliate/
     (provenance: Phase 1 ledger "LOGO PROVENANCE (v2)").
   Standard: HIXOR Universal Affiliate Content Standard v1.0 (§2/§3/§6/§7).
   Loaded only by guide_article.html for pages that carry a section
   (slug-conditional). Category-neutral: no product- or topic-specific rules.
   Boxed component: every child's margins are set explicitly (spacing rule).
   No filter/blur or blend effects anywhere (iOS Safari rule).

   Palette (unchanged from v1; all text/background pairs verified WCAG AA,
   see Phase 1 ledger):
   section bg #0C1425 · card bg #101C33 · disclosure bg #1B2740
   body text #C9D4E6 · secondary #A9B8CC · muted #93A5BE · headings #FFFFFF */

.prose .affc{
  background:#0C1425;border:1px solid #26355A;border-radius:18px;
  padding:1.05rem 1rem;margin:1.5rem 0;color:#E8EEF7;
}
@media(min-width:768px){
  .prose .affc{padding:1.3rem 1.4rem}
}

/* --- A. heading row + advertising tag --- */
.prose .affc .affc-head{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:.8rem;margin:0 0 .55rem;
}
.prose .affc h2.affc-title{
  margin:0;padding:0;background:none;font-size:1.32rem;line-height:1.35;
  font-weight:800;color:#FFFFFF;
}
.prose .affc h2.affc-title::before{content:none}
.prose .affc .affc-tag{
  flex:none;margin:.25rem 0 0;font-size:.75rem;font-weight:700;line-height:1.4;
  color:#C7D3E4;border:1px solid #3D5178;border-radius:999px;
  padding:.2rem .6rem;white-space:nowrap;
}

/* --- A. intro (states the category limitation) --- */
.prose .affc .affc-intro{margin:0 0 .8rem;font-size:.97rem;color:#C9D4E6;line-height:1.65}

/* --- B. disclosure box (always before the cards) --- */
.prose .affc .affc-disc{
  background:#1B2740;border-radius:12px;padding:.75rem .9rem;margin:0 0 .85rem;
}
.prose .affc .affc-disc-h{
  margin:0 0 .3rem;font-size:.95rem;font-weight:700;color:#FFFFFF;
}
.prose .affc .affc-disc-t{margin:0;font-size:.88rem;line-height:1.6;color:#C9D4E6}

/* --- C. product cards --- */
.prose .affc .affc-cards{
  display:grid;grid-template-columns:1fr;gap:.7rem;margin:0 0 .85rem;
}
/* Two columns only where the article column is actually wide: on this
   layout the main column is widest at 760–1199px (single-column page);
   at >=1200px the TOC/rail columns narrow it again (~507px), where a
   one-column structured list reads better than squeezed card pairs. */
@media(min-width:760px) and (max-width:1199px){
  .prose .affc .affc-cards{grid-template-columns:1fr 1fr}
}
.prose .affc .affc-card{
  position:relative;display:flex;flex-direction:column;
  background:#101C33;border:1px solid #2A3D66;border-radius:14px;
  padding:.85rem .9rem .9rem;margin:0;
}
/* Card head: logo tile left, name + description right (design reference). */
.prose .affc .affc-card-head{
  display:flex;align-items:center;gap:.7rem;margin:0 0 .5rem;
}
.prose .affc .affc-logo-tile{
  flex:none;width:56px;height:56px;border-radius:14px;background:#FFFFFF;
  display:flex;align-items:center;justify-content:center;
}
.prose .affc .affc-logo{
  width:44px;height:44px;object-fit:contain;display:block;
}
.prose .affc .affc-head-text{min-width:0}
.prose .affc .affc-name{
  margin:0;font-size:1.12rem;font-weight:700;line-height:1.3;color:#FFFFFF;
}
.prose .affc .affc-desc{margin:.15rem 0 0;font-size:.88rem;line-height:1.55;color:#A9B8CC}
.prose .affc .affc-benefit{margin:0;font-size:.95rem;line-height:1.6;color:#D9E2EF}
.prose .affc .affc-audience{
  margin:.4rem 0 0;font-size:.98rem;font-weight:600;line-height:1.5;color:#FFFFFF;
}
.prose .affc .affc-check{margin:.4rem 0 0;font-size:.85rem;line-height:1.5;color:#93A5BE}
.prose .affc .affc-check-label{color:#93A5BE}

/* CTA: rendered only for active products with a URL (standard §4).
   margin-top:auto keeps CTA rows aligned across a grid row. */
.prose .affc .affc-cta-row{margin:auto 0 0;padding:.65rem 0 0;text-align:right}
.prose .affc .affc-cta{
  display:inline-flex;align-items:center;gap:.45rem;min-height:44px;
  padding:.5rem .95rem;background:#22406B;border:1px solid #40639B;
  border-radius:999px;color:#FFFFFF;font-size:.95rem;font-weight:700;
  text-decoration:none;white-space:nowrap;
}
.prose .affc .affc-cta:hover{background:#2A4E82}
.prose .affc .affc-cta:focus-visible{
  outline:3px solid #00C8F0;outline-offset:2px;
}
.prose .affc .affc-cta-icon{width:1em;height:1em;flex:none}
.prose .affc .affc-px{position:absolute;width:1px;height:1px;left:0;bottom:0}

/* --- F. selection criteria --- */
.prose .affc .affc-criteria{
  border-top:1px solid #26355A;padding:.7rem 0 0;margin:0;
}
.prose .affc .affc-criteria-h{
  margin:0 0 .25rem;font-size:.92rem;font-weight:700;color:#FFFFFF;
}
.prose .affc .affc-criteria-t{
  margin:0;font-size:.85rem;line-height:1.6;color:#A9B8CC;
}
