/* media-20261117.css
   Targeted production styles only: official logos/card art, compact
   guide cards, title overflow, and the sticky claim-bar hide/padding fix.
   Uses the current site's tokens. Does not change typography, palette,
   homepage hero, or overall look. */

/* Landscape credit-card art inside otherwise-square badges and heroes */
.badge.is-card-art,
.brand-icon.is-card-art,
.offer-brand.is-card-art,
.brand-hero-logo.is-card-art,
.logo-fallback.is-card-art{
  width:64px;
  height:42px;
  border-radius:8px;
  background:#fff;
  box-shadow:0 4px 10px rgba(15,23,42,.10), 0 0 0 1px var(--line);
}
.badge.is-card-art img,
.brand-icon.is-card-art img,
.offer-brand.is-card-art img,
.brand-hero-logo.is-card-art img,
.logo-fallback.is-card-art img,
img.offer-art,
img.link-card-logo.is-card-art{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:transparent;
  border-radius:7px;
  padding:0;
}
.brand-hero-logo.is-card-art{
  width:148px;
  height:92px;
  border-radius:12px;
  flex:0 0 auto;
}
@media (max-width:720px){
  .brand-hero-logo.is-card-art{width:120px;height:76px}
}

/* Familiar-program tiles: landscape card art, keep the row compact */
a .brand-icon.is-card-art{
  width:54px;
  height:34px;
  border-radius:7px;
  background:#fff;
}
img.link-card-logo.is-card-art{
  width:64px !important;
  height:42px !important;
  border-radius:8px !important;
  padding:0 !important;
  background:#fff !important;
  object-fit:contain !important;
}

/* ----- Compact guide / comparison cards (Card / app · Offer snapshot · Link) ----- */
body table.rich-cards,
body table.cmp.rich-cards,
body table.mobile-cards.rich-cards{
  display:block;
  width:100%;
  min-width:0 !important;
  border:0;
  background:transparent;
  box-shadow:none;
}
body table.rich-cards thead{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
body table.rich-cards tbody{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  padding:0;
}
@media (min-width:760px){
  body table.rich-cards tbody{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1180px){
  body table.rich-cards.rich-cards-wide tbody{grid-template-columns:repeat(3,minmax(0,1fr))}
}
body .tablewrap:has(> table.rich-cards),
body .tablewrap:has(table.rich-cards){
  overflow:visible !important;
  border:0;
  background:transparent;
  box-shadow:none;
  padding:0;
}
body .tablewrap:has(> table.rich-cards)::after{display:none !important}

body table.rich-cards > tbody > tr{
  display:flex !important;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  width:100%;
  box-sizing:border-box;
}
body table.rich-cards > tbody > tr > td,
body table.rich-cards > tbody > tr > th{
  display:block !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  width:auto !important;
  max-width:none !important;
  min-width:0;
}
body table.rich-cards > tbody > tr > td::before,
body table.rich-cards > tbody > tr > th::before{
  content:none !important;
  display:none !important;
}

body table.rich-cards td.app-cell,
body table.rich-cards td.offer-name-cell{
  display:flex !important;
  flex-direction:row;
  flex-wrap:nowrap !important;
  align-items:center;
  gap:12px;
  min-width:0;
}
body table.rich-cards .offer-media,
body table.rich-cards td.app-cell .offer-media,
body table.rich-cards .offer-media.is-card,
body table.rich-cards td.app-cell .offer-media.is-card{
  flex:0 0 auto;
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:88px !important;
  height:58px !important;
  margin:0 !important;
  border-radius:10px;
  background:var(--card);
  box-shadow:0 0 0 1px var(--line);
  overflow:hidden;
}
body table.rich-cards .offer-media.is-logo,
body table.rich-cards td.app-cell .offer-media.is-logo{
  width:48px !important;
  height:48px !important;
  border-radius:12px;
  background:var(--card);
  margin:0 !important;
  box-shadow:0 0 0 1px var(--line);
}
body table.rich-cards .offer-media img,
body table.rich-cards img.offer-art{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
body table.rich-cards .offer-name,
body table.rich-cards td.app-cell > a,
body table.rich-cards td.app-cell > strong{
  flex:1 1 auto;
  min-width:0 !important;
  font-family:var(--font);
  font-size:16px;
  font-weight:700;
  line-height:1.3;
  padding-top:0;
  width:auto !important;
}
body table.rich-cards td.app-cell > a,
body table.rich-cards .offer-name a{
  color:var(--ink);
  text-decoration:none;
}
body table.rich-cards td.app-cell > a:hover,
body table.rich-cards .offer-name a:hover{color:var(--brand);text-decoration:underline}

body table.rich-cards > tbody > tr > td:nth-child(2){
  color:var(--ink);
  font-family:var(--font);
  font-size:14px;
  line-height:1.45;
}
body table.rich-cards > tbody > tr > td.cell-actions,
body table.rich-cards > tbody > tr > td:last-child:has(.btn, button, a.btn){
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:4px;
}
body table.rich-cards .btn,
body table.rich-cards button.btn{
  width:auto !important;
  flex:0 1 auto;
  min-height:40px;
  padding:8px 14px !important;
  font-size:13.5px !important;
  justify-content:center;
}
@media (min-width:400px){
  body table.rich-cards > tbody > tr > td:nth-child(2),
  body table.rich-cards > tbody > tr > td.cell-actions,
  body table.rich-cards > tbody > tr > td:last-child:has(.btn, button, a.btn){
    margin-left:100px; /* 88px art + 12px gap */
  }
  body table.rich-cards tr:has(.offer-media.is-logo) > td:nth-child(2),
  body table.rich-cards tr:has(.offer-media.is-logo) > td.cell-actions,
  body table.rich-cards tr:has(.offer-media.is-logo) > td:last-child:has(.btn, button, a.btn){
    margin-left:60px; /* 48px logo + 12px gap */
  }
}
@media (max-width:399px){
  body table.rich-cards > tbody > tr{padding:12px 12px 14px}
  body table.rich-cards .offer-media,
  body table.rich-cards td.app-cell .offer-media,
  body table.rich-cards .offer-media.is-card,
  body table.rich-cards td.app-cell .offer-media.is-card{width:64px !important;height:42px !important}
  body table.rich-cards .offer-media.is-logo,
  body table.rich-cards td.app-cell .offer-media.is-logo{width:44px !important;height:44px !important}
  body table.rich-cards > tbody > tr > td:nth-child(2),
  body table.rich-cards > tbody > tr > td.cell-actions,
  body table.rich-cards > tbody > tr > td:last-child:has(.btn, button, a.btn){
    margin-left:76px; /* 64px art + 12px gap */
  }
  body table.rich-cards tr:has(.offer-media.is-logo) > td:nth-child(2),
  body table.rich-cards tr:has(.offer-media.is-logo) > td.cell-actions,
  body table.rich-cards tr:has(.offer-media.is-logo) > td:last-child:has(.btn, button, a.btn){
    margin-left:56px;
  }
}

/* Fall back to a simple image+name row if display:contents is awkward on a given row */
@media (min-width:400px){
  body table.rich-cards td.app-cell{
    /* contents already places media in the art column */
  }
}

/* Multi-column program tables that are NOT converted to rich-cards:
   show a logo in the Program / Card cell. */
body table.cmp td.app-cell,
body table.mobile-cards td.app-cell{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
body table.cmp td.app-cell .offer-media,
body table.mobile-cards td.app-cell .offer-media{
  flex:0 0 auto;
  width:48px;
  height:48px;
  border-radius:12px;
  overflow:hidden;
  background:var(--card);
  box-shadow:0 0 0 1px var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
}
body table.cmp td.app-cell .offer-media.is-card,
body table.mobile-cards td.app-cell .offer-media.is-card{
  width:72px;
  height:46px;
  border-radius:8px;
}
body table.cmp td.app-cell .offer-media img,
body table.mobile-cards td.app-cell .offer-media img{
  width:100%;height:100%;object-fit:contain;display:block;
}
body table.cmp thead th .offer-media,
body table.mobile-cards thead th .offer-media{
  display:flex;
  width:36px;height:36px;
  margin:0 auto 6px;
  border-radius:9px;
  overflow:hidden;
  background:var(--card);
  box-shadow:0 0 0 1px var(--line);
}
body table.cmp thead th .offer-media.is-card,
body table.mobile-cards thead th .offer-media.is-card{
  width:56px;height:36px;border-radius:6px;
}
body table.cmp thead th .offer-media img,
body table.mobile-cards thead th .offer-media img{width:100%;height:100%;object-fit:contain;display:block}

@media (max-width:1199px){
  body table.cmp:not(.rich-cards) > tbody > tr > td.app-cell::before,
  body table.mobile-cards:not(.rich-cards) > tbody > tr > td.app-cell::before{
    content:none !important;
    display:none !important;
  }
  /* Keep logo + name on one row even when mobile-cards forces display:block on tds */
  body table.cmp:not(.rich-cards) > tbody > tr > td.app-cell,
  body table.mobile-cards:not(.rich-cards) > tbody > tr > td.app-cell{
    display:flex !important;
    flex-direction:row;
    align-items:center;
    gap:12px;
    min-width:0;
  }
}

/* Titles must wrap inside flex cards — override features.css nowrap on td.app-cell a */
body td.app-cell,
body td.app-cell a,
body td.app-cell a strong,
body .guide-app a,
body table.rich-cards td.app-cell,
body table.rich-cards td.app-cell a,
body table.rich-cards td.app-cell a strong,
body table.rich-cards .offer-name,
body table.rich-cards .offer-name a,
body .top-picks-box li > strong,
body .top-picks-box li > strong a,
body .card h3,
body .card h3 a{
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  min-width: 0 !important;
  max-width: 100%;
}
body table.rich-cards td.app-cell,
body table.rich-cards td.app-cell a{
  overflow: hidden;
}
html, body{ overflow-x: clip; }
body .wrap, body main, body .page, body .phero, body .phero-row, body .phero-text,
body table, body table tr, body table td, body table th,
body .card, body .offer-card, body .top-picks-box, body .panel{
  max-width: 100%;
  min-width: 0;
}
/* height:auto was stretching 48px logos to full card width and collapsing others */
body img, body svg, body video{ max-width: 100%; }
/* Restore fixed hero/logo tile sizes after the global img rule */
body .brand-hero-logo:not(.is-card-art) img,
body .offer-brand:not(.is-card-art) img,
body .badge:not(.is-card-art) img,
body .brand-icon:not(.is-card-art) img,
body .logo-fallback:not(.is-card-art) img{
  max-width:none;
  object-fit:contain;
}
body .brand-hero-logo.is-card-art img,
body .offer-brand.is-card-art img,
body .badge.is-card-art img,
body .brand-icon.is-card-art img,
body .logo-fallback.is-card-art img{
  width:100%;
  height:100%;
  max-width:none;
  object-fit:contain;
}

/* Sticky mobile Copy code / Get offer bar:
   hide while the in-card claim controls are on screen; add padding only when shown.
   Cancels the always-on reserved main.page padding that left the bar covering the code box. */
@media (max-width:720px){
  main.page{
    padding-bottom:24px;
  }
  body.has-sticky-offer{
    padding-bottom:calc(92px + env(safe-area-inset-bottom, 0px));
  }
  body.has-sticky-offer main.page{
    padding-bottom:calc(92px + env(safe-area-inset-bottom, 0px));
  }
}
.claim-bar[hidden],
.sticky-offer[hidden]{
  display:none !important;
}

/* Guide category icons in related-link cards stay on a light tile */
img.link-card-logo[src*="/assets/icons/guide-"]{
  object-fit:contain;
  background:var(--card);
  padding:6px;
  box-sizing:border-box;
}


/* Beat production body .phero .brand-hero-logo square tiles so official card art stays landscape */
body .brand-hero-logo.is-card-art,
body .phero .brand-hero-logo.is-card-art,
body .phero-row .brand-hero-logo.is-card-art{
  width:148px !important;
  height:92px !important;
  border-radius:12px !important;
  flex:0 0 auto;
  background:#fff;
}
@media (max-width:720px){
  body .brand-hero-logo.is-card-art,
  body .phero .brand-hero-logo.is-card-art,
  body .phero-row .brand-hero-logo.is-card-art{
    width:120px !important;
    height:76px !important;
  }
}
body .offer-brand.is-card-art,
body .badge.is-card-art,
body .brand-icon.is-card-art,
body .logo-fallback.is-card-art,
body .offer-card .offer-brand.is-card-art,
body .offer-card .badge.is-card-art,
body a .brand-icon.is-card-art{
  width:64px !important;
  height:42px !important;
  border-radius:8px !important;
  background:#fff;
}
@media (max-width:720px){
  body a .brand-icon.is-card-art{
    width:54px !important;
    height:34px !important;
    border-radius:7px !important;
  }
}
body .brand-hero-logo.is-card-art img,
body .phero .brand-hero-logo.is-card-art img,
body .offer-brand.is-card-art img,
body .badge.is-card-art img,
body .brand-icon.is-card-art img,
body .logo-fallback.is-card-art img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:contain !important;
}


/* Share / Preferred Sources pills: keep 4.5:1 contrast on bright brand bands (T-Mobile magenta). */
body .brand-band .share-page-btn,
body .brand-band .preferred-source-btn{
  background: color-mix(in srgb, #000 22%, transparent);
  color: #fff;
  border-color: color-mix(in srgb, #fff 62%, transparent);
}
body .brand-band .share-page-btn:hover,
body .brand-band .preferred-source-btn:hover{
  background: color-mix(in srgb, #000 32%, transparent);
}

/* hotfix-20261117-6: logo collapse, blurry upscales, compact comparisons, related rows */

/* features.js wraps img.link-card-logo in span.logo-fallback (40x40, overflow:hidden,
   img position:absolute; inset:0; margin:auto; width/height 80%).
   Forcing the inner img to 40/64px + margin:auto shoved the bitmap outside the clip box,
   leaving empty white tiles on iPhone. Size the WRAPPER; keep the inner img at 80%. */
body ul.catlist .logo-fallback,
body ul.link-card-list .logo-fallback,
body #related .logo-fallback,
body #categories .logo-fallback,
body .link-card-list .logo-fallback{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  max-width:none !important;
  overflow:hidden !important;
  position:relative !important;
  flex-shrink:0;
  background:#fff;
  grid-area:logo;
  display:block !important;
}
body ul.catlist .logo-fallback:has(img.is-card-art),
body ul.link-card-list .logo-fallback:has(img.is-card-art),
body #related .logo-fallback:has(img.is-card-art),
body #categories .logo-fallback:has(img.is-card-art){
  width:64px !important;
  height:42px !important;
  min-width:64px !important;
  border-radius:8px;
}
/* Unwrapped img (if JS has not run yet) */
body img.link-card-logo{
  width:40px;
  height:40px;
  max-width:none;
  padding:0;
  object-fit:contain;
  background:#fff;
}
body img.link-card-logo.is-card-art{
  width:64px;
  height:42px;
}
/* Wrapped: fill the 40px tile; do not use margin:auto with a fixed px size (that clips the bitmap out). */
body .logo-fallback img,
body .logo-fallback img.link-card-logo,
body .logo-fallback img.link-card-logo.is-card-art{
  position:absolute !important;
  inset:0 !important;
  margin:0 !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:none !important;
  max-height:none !important;
  padding:5px !important;
  box-sizing:border-box !important;
  object-fit:contain !important;
  opacity:1 !important;
}
body .link-card-cluster img,
body ul.catlist .link-card-cluster img,
body ul.link-card-list .link-card-cluster img,
body #related .link-card-cluster img{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  max-width:none !important;
  max-height:none !important;
  flex-shrink:0;
  object-fit:contain !important;
}
body img.link-card-logo[src*="/assets/icons/guide-"]{
  object-fit:contain !important;
  padding:6px !important;
  background:var(--card);
}

/* Cap low-res brand marks so they stay crisp beside the name (no hero upscale) */
body .offer-media.is-logo,
body table .offer-media.is-logo,
body .top-picks-box .offer-media.is-logo{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  max-width:48px !important;
  flex:0 0 48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
}
body .offer-media.is-logo img,
body img.tp-art,
body img.offer-art:not(.is-card-art),
body .guide-app img,
body .get-free-logos img,
body .panel img[src*="/assets/brands/"],
body table img[src*="/assets/brands/"],
body .top-picks-box img[src*="/assets/brands/"]{
  width:48px !important;
  height:48px !important;
  max-width:48px !important;
  max-height:48px !important;
  object-fit:contain !important;
  flex-shrink:0;
  background:#fff;
}
body .brand-hero-logo:not(.is-card-art){
  width:64px !important;
  height:64px !important;
  min-width:64px !important;
  flex:0 0 64px;
}
body .brand-hero-logo:not(.is-card-art) img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
}
body .logo-monogram{
  width:40px;height:40px;border-radius:11px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#eef2ff;color:#312e81;font-weight:800;font-size:13px;
  letter-spacing:.02em;flex:0 0 40px;
}

/* Related codes: name + short official offer line */
#related ul.link-card-list .link-card-body,
ul.link-card-list .link-card-body{
  display:flex;flex-direction:column;gap:2px;min-width:0;
}
#related ul.link-card-list .link-card-body > span,
ul.link-card-list .link-card-body > span{
  color:#475569;font-size:13px;line-height:1.4;
}

/* Compact comparison cards (replaces stacked PROGRAM/OFFER/REQUIREMENT walls) */
body table.cmp.rich-cards,
body table.mobile-cards.rich-cards{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
body table.cmp.rich-cards thead,
body table.mobile-cards.rich-cards thead{
  position:absolute !important;
  width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
}
body table.cmp.rich-cards tbody,
body table.mobile-cards.rich-cards tbody{
  display:grid !important;
  grid-template-columns:1fr;
  gap:14px;
  padding:0;
}
@media (min-width:820px){
  body table.cmp.rich-cards tbody,
  body table.mobile-cards.rich-cards tbody{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
body table.cmp.rich-cards > tbody > tr,
body table.mobile-cards.rich-cards > tbody > tr{
  display:flex !important;
  flex-direction:column;
  gap:8px;
  padding:16px 16px 14px !important;
  border:1px solid var(--line) !important;
  border-radius:16px !important;
  background:var(--card) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.05);
  min-width:0;
}
body table.cmp.rich-cards > tbody > tr > td,
body table.cmp.rich-cards > tbody > tr > th,
body table.mobile-cards.rich-cards > tbody > tr > td,
body table.mobile-cards.rich-cards > tbody > tr > th{
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
body table.cmp.rich-cards > tbody > tr > td::before,
body table.cmp.rich-cards > tbody > tr > th::before,
body table.mobile-cards.rich-cards > tbody > tr > td::before,
body table.mobile-cards.rich-cards > tbody > tr > th::before{
  content:none !important;
  display:none !important;
}
body table.cmp.rich-cards td.app-cell,
body table.mobile-cards.rich-cards td.app-cell{
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:12px;
}
body table.cmp.rich-cards .offer-headline,
body table.mobile-cards.rich-cards .offer-headline{
  margin:0;
  font-size:15px;
  line-height:1.45;
  color:var(--ink);
}
body table.cmp.rich-cards .cmp-actions,
body table.mobile-cards.rich-cards .cmp-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:4px;
}
body table.cmp.rich-cards .cmp-actions .btn,
body table.mobile-cards.rich-cards .cmp-actions .btn,
body table.cmp.rich-cards .cmp-actions .offer-go,
body table.mobile-cards.rich-cards .cmp-actions .offer-go{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:8px 14px;border-radius:11px;
  font-weight:700;text-decoration:none;
}
body table.cmp.rich-cards details.offer-details,
body table.mobile-cards.rich-cards details.offer-details{
  margin-top:4px;
  font-size:14px;
  line-height:1.6;
  color:#334155;
}
body table.cmp.rich-cards details.offer-details summary,
body table.mobile-cards.rich-cards details.offer-details summary{
  cursor:pointer;
  font-weight:650;
  color:#4338ca;
  list-style:none;
  min-height:44px;
  display:flex;align-items:center;
}
body table.cmp.rich-cards details.offer-details summary::-webkit-details-marker{display:none}
body table.cmp.rich-cards .tablewrap,
body .tablewrap:has(> table.rich-cards){
  overflow:visible !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
body .tablewrap:has(> table.rich-cards)::after{content:none !important}

body table.cmp.rich-cards .cmp-actions .link-card-chip,
body table.mobile-cards.rich-cards .cmp-actions .link-card-chip{
  max-width:none !important;
  overflow:visible;
  white-space:nowrap;
}

/* visual-audit-20261117: category grids, inline list logos, card titles, footer logos */
/* "Every program in this category" now uses the sitewide link-card grid */
#category-programs ul.cat-grid{margin-top:14px}
#category-programs > p{color:var(--muted);margin:6px 0 0;font-size:14px}
/* Card titles: never break a brand name mid-word ("Chim / e") */
body .card .card-top > div:not(.badge):not(.card-benefit){flex:1 1 auto;min-width:0}
body .card .card-top > .card-benefit{flex:0 0 auto}
@media(max-width:600px){body .bundle-card .card-top{flex-wrap:wrap;align-items:center}body .bundle-card .card-top > .card-benefit{flex:1 0 100%}}
body .card h3,
body .card h3 a{overflow-wrap:break-word;word-break:normal;hyphens:none}
/* Plain lists that still carry a brand logo: keep the logo inline and small, never floating above the link */
main ul:not([class]) > li > a > img.link-card-logo,
main ul:not([class]) > li > a > .logo-fallback,
section:not(.footer-column) ul:not([class]) > li > a > img.link-card-logo,
section:not(.footer-column) ul:not([class]) > li > a > .logo-fallback{
  display:inline-block !important;position:relative !important;vertical-align:middle;
  width:24px !important;height:24px !important;min-width:24px !important;
  margin:0 8px 0 0 !important;padding:2px !important;border-radius:7px;box-sizing:border-box;
  background:#fff;object-fit:contain;box-shadow:0 0 0 1px rgba(15,23,42,.08)
}
main ul:not([class]) > li > a > .logo-fallback img{padding:2px !important}
/* Index-style link lists (blog) */
ul.link-index{list-style:none;margin:10px 0 18px;padding:0;display:grid;grid-template-columns:1fr;gap:0}
@media(min-width:720px){ul.link-index{grid-template-columns:1fr 1fr;column-gap:28px}}
ul.link-index > li{margin:0;padding:9px 0;border-bottom:1px solid var(--line);line-height:1.45;font-size:15px;color:var(--muted)}
ul.link-index > li > a{font-weight:600;color:var(--ink);text-decoration:none}
ul.link-index > li > a:hover{text-decoration:underline}
ul.link-index > li > a > img.link-card-logo{display:inline-block;width:24px;height:24px;vertical-align:middle;margin:0 8px 0 0;padding:2px;border-radius:7px;box-sizing:border-box}
/* Footer program list: space between logo and name */
.footer-column a > img.link-card-logo,
.footer-column a > .logo-fallback{margin-right:10px !important;flex:0 0 auto}
.footer-column a{gap:0}
/* Other options list: space between logo and name */
ul.other-options-list a > img.link-card-logo,
ul.other-options-list a > .logo-fallback{margin-right:10px !important}
body ul.link-index > li > a > .logo-fallback,
body main ul:not([class]) > li > a > .logo-fallback{
  display:inline-block !important;position:relative !important;vertical-align:middle;overflow:hidden !important;
  width:24px !important;height:24px !important;min-width:24px !important;margin:0 8px 0 0 !important;padding:0 !important;
  border-radius:7px;background:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.08)
}
body ul.link-index > li > a > .logo-fallback:has(img.is-card-art),
body main ul:not([class]) > li > a > .logo-fallback:has(img.is-card-art){width:36px !important;min-width:36px !important;border-radius:4px}
body ul.link-index > li > a > .logo-fallback img,
body main ul:not([class]) > li > a > .logo-fallback img{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;padding:2px !important;object-fit:contain !important}
ul.link-index > li > a:has(> .logo-fallback, > img){display:inline-flex;align-items:center}
/* Top picks: first card sat 8px higher than the rest (li+li margin) */
body .top-picks-box ul > li{margin-top:0 !important;align-self:stretch}
/* Consistent text measure: 70ch made small notes much narrower than body text.
   Use one fixed measure so every paragraph lines up with the same column. */
main p, main li{max-width:960px}
main .answer, body .hero .answer, body .faq details p{max-width:960px}
main .card p, main .card li, main .card-grid p, main .link-card-list li, main ul.link-index > li,
main .tablewrap p, main .tablewrap li, main .top-picks-box li, main .who-grid p{max-width:none}
/* One disclosure + checked line near the top of hub pages */
main p.page-meta{margin:6px 0 20px;font-size:13px;line-height:1.5;color:var(--muted)}
main p.page-meta > span[aria-hidden]{color:#16a34a;margin-right:4px}
main p.page-disclaimer{margin:0 0 4px;font-size:14px;color:var(--muted)}
main p.age-note{margin:0 0 14px;font-size:14px}
/* Hub offer cards: grid instead of one full-width card per row */
main .card-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:14px}
@media(min-width:760px){main .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){main .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
main .card-grid > .card{margin:0;display:flex;flex-direction:column}
main .card-grid > .card > .more{margin-top:auto}
main .card-grid .bundle-card .card-top{flex-wrap:wrap;align-items:center}
main .card-grid .bundle-card .card-top > .card-benefit{flex:1 0 100%}
/* pass 2: even link-card grids, no left-edge clip, cleaner invite state */
ul.link-card-list > li, ul.catlist > li, #related ul > li{margin:0 !important}
ul.link-card-list a, #related ul a{border-left-width:1px !important;border-color:var(--line) !important;box-shadow:inset 3px 0 0 var(--accent, var(--brand)), 0 1px 2px rgba(15,23,42,.04)}
ul.link-card-list a:hover, #related ul a:hover{box-shadow:inset 3px 0 0 var(--accent, var(--brand)), 0 12px 24px rgba(15,23,42,.1)}
ul.cat-grid{grid-auto-rows:1fr}
ul.link-card-list a{grid-template-rows:1fr auto}
ul.link-card-list .link-card-chip{align-self:end}
ul.link-card-list .link-card-body > span{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.invite-state{display:flex;align-items:center;gap:10px;margin:12px 0 0;padding:14px 16px;border:1.5px dashed #c7d2fe;border-radius:14px;background:#f8faff;color:#3730a3;font-size:14px;font-weight:600;line-height:1.35;max-width:none !important}
.invite-state svg{flex:0 0 auto}
.bundle-card .invite-state{min-height:58px;box-sizing:border-box}
/* sticky claim bar on pages without brand-restyle.css */
.claim-bar{
  display:none;
}
@media (max-width:720px){
  .claim-bar{
    display:flex;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:40;
    gap:8px;
    align-items:stretch;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background:#0f172a;
    color:#fff;
    box-shadow:0 -8px 24px rgba(15,23,42,.28);
  }
  .claim-bar[hidden]{display:none}
  .claim-bar .claim-bar-copy,
  .claim-bar .claim-bar-go{
    flex:1 1 0;
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    font-size:15px;
    font-weight:750;
    text-decoration:none;
    border:0;
    cursor:pointer;
  }
  .claim-bar .claim-bar-copy{
    background:#fff;
    color:#0f172a;
  }
  .claim-bar .claim-bar-go{
    background:var(--brand,#4338ca);
    color:#fff;
  }
  .claim-bar .claim-bar-copy:focus-visible,
  .claim-bar .claim-bar-go:focus-visible{
    outline:3px solid #93c5fd;
    outline-offset:2px;
  }
}
@media (min-width:721px){
  .claim-bar{display:none !important}
}
/* plain FAQ details (snapshot pages) styled like the rest of the site */
main section:not([class]) > details{border:1px solid var(--line);border-radius:14px;background:var(--card,#fff);padding:12px 16px;margin:8px 0}
main section:not([class]) > details > summary{cursor:pointer;font-weight:650;color:var(--ink);list-style:none;display:flex;justify-content:space-between;gap:12px}
main section:not([class]) > details > summary::-webkit-details-marker{display:none}
main section:not([class]) > details > summary::after{content:"+";font-weight:700;color:var(--muted)}
main section:not([class]) > details[open] > summary::after{content:"−"}
main section:not([class]) > details > p{margin:10px 0 0;color:#475569}
/* rich-card table: Details never squeezed into a 47px column ("Requi/remen/t.") */
body table.rich-cards.rich-cards > tbody > tr > td.offer-cell.offer-cell{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:8px}
body table.rich-cards > tbody > tr > td.offer-cell > .cmp-actions{justify-content:flex-start}
body table.rich-cards.rich-cards > tbody > tr > td.offer-cell.offer-cell > details{width:auto;flex:0 0 auto}


/* p4-20261117: hub width, ending-soon, card contrast */
/* Hub sections must be full container width, not trapped in .faq max-width:820px */
#who-its-for,
#category-programs,
#category-compare,
.who-for,
#related{
  max-width:none;
  width:100%;
}

/* "Every program in this category" grid: 1 / 2 / 3 / 4 columns */
#category-programs ul.cat-grid,
ul.link-card-list.cat-grid{
  width:100%;
  display:grid;
  gap:14px;
  grid-template-columns:1fr;
}
@media (min-width:600px){
  #category-programs ul.cat-grid,
  ul.link-card-list.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:900px){
  #category-programs ul.cat-grid,
  ul.link-card-list.cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:1100px){
  #category-programs ul.cat-grid,
  ul.link-card-list.cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Ending soon: even grid that fills the row for 1, 2, or 3 cards */
ul.ending-soon-list,
body.hp-redesign ul.ending-soon-list,
#ending-soon .ending-soon-list{
  display:grid !important;
  list-style:none;
  margin:14px 0 0;
  padding:0;
  width:100%;
  gap:12px;
  grid-template-columns:1fr;
  justify-content:stretch;
  justify-items:stretch;
  align-items:stretch;
}
@media (min-width:720px){
  ul.ending-soon-list,
  body.hp-redesign ul.ending-soon-list,
  #ending-soon .ending-soon-list{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)) !important;
  }
}
#ending-soon .ending-soon-list > li,
ul.ending-soon-list > li{
  min-width:0;
  width:100%;
  display:flex;
}
#ending-soon .ending-soon-card,
ul.ending-soon-list .ending-soon-card,
body.hp-redesign .ending-soon-card{
  width:100%;
  max-width:none;
  box-sizing:border-box;
  background:#fff;
  border:1px solid #e2e6ee;
  border-radius:16px;
  box-shadow:0 1px 3px rgba(16,24,40,.06);
}
.ending-soon-date,
body.hp-redesign .ending-soon-date,
ul.ending-soon-list .ending-soon-date{
  background:#eff6ff;
  color:#1d4ed8 !important;
  border:1px solid #bfdbfe;
}

/* Same "ends" badge on program pages: drop yellow/brown */
.offer-deadline,
.offer-deadline-note{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e3a8a;
}

/* Offer grid wells: one step darker than the page so white cards stand out */
.cat-group,
body.hp-redesign .cat-group,
#category-programs.panel,
#category-programs,
#related.panel,
#related{
  background:#f1f3f7;
}
#related{
  padding:18px 16px 16px;
  border-radius:20px;
}

/* White cards, slightly stronger border and a soft shadow */
body .card,
body.hp-redesign .card,
ul.link-card-list a,
#related ul a,
ul.catlist a{
  background:#fff;
  border-color:#e2e6ee;
}
body .card,
body.hp-redesign .card{
  box-shadow:0 1px 3px rgba(16,24,40,.06);
}
ul.link-card-list a,
#related ul a,
ul.catlist a{
  box-shadow:inset 3px 0 0 var(--accent,var(--brand)), 0 1px 3px rgba(16,24,40,.06);
}
ul.link-card-list a:hover,
#related ul a:hover,
ul.catlist a:hover{
  box-shadow:inset 3px 0 0 var(--accent,var(--brand)), 0 12px 24px rgba(15,23,42,.1);
}

/* Headlines and brand names: one dark site text color, not per-brand ink */
body .card h3,
body .card h3 a,
body.hp-redesign .card h3,
body.hp-redesign .card h3 a,
body .card .card-benefit strong,
body.hp-redesign .card .card-benefit strong,
ul.link-card-list .link-card-body strong,
#related .link-card-body strong,
ul.catlist .link-card-body strong,
.ending-soon-card strong{
  color:#0f172a;
}


/* REVL page clip (2026-11-24) */
.pull-clip-figure{
  margin:0;
}
.pull-clip-video{
  display:block;
  width:100%;
  max-width:360px;
  height:auto;
  aspect-ratio:9/16;
  background:#0b0618;
  border-radius:16px;
}
.pull-clip-figure figcaption{
  margin-top:12px;
  font-size:14px;
  line-height:1.55;
  color:#334155;
  max-width:42rem;
}
