/* Home-de-origem: acabamento final compartilhado por QA logado e runtime público.
 * A composição respeita os tamanhos 1/4–4/4 definidos pelo algoritmo. */
.anth-home--origem{
  --ao-gap:12px;
  --ao-radius:16px;
  --ao-border:rgba(109,226,207,.16);
  --ao-surface:#07171d;
  --ao-surface-2:#0a2228;
  --ao-text:#f5fbfa;
  --ao-muted:rgba(226,243,239,.66);
  --ao-accent:#62e0cb;
}

.anth-home--origem .anth-origin-public{
  width:min(1180px,calc(100% - 32px));
  max-width:1180px;
  margin:0 auto;
  padding:24px 0 48px;
  box-sizing:border-box;
}

/* Os três blocos lógicos 5/7/5 continuam existindo. Visualmente formam uma
 * página única, sem caixas externas competindo com os cartões. */
.anth-home--origem .anth-origin-three-blocks--public{
  display:grid;
  gap:14px;
}
.anth-home--origem .anth-origin-block--public{
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.anth-home--origem .anth-origin-block--public>.anth-origin-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-flow:dense;
  gap:var(--ao-gap);
  align-items:start;
  margin:0;
}

/* O tamanho do slot continua sendo autoridade. */
.anth-home--origem .anth-origin-cell{
  min-width:0;
  min-height:0;
  grid-column:span 1;
}
.anth-home--origem .anth-origin-cell[data-span="1"]{grid-column:span 1}
.anth-home--origem .anth-origin-cell[data-span="2"]{grid-column:span 2}
.anth-home--origem .anth-origin-cell[data-span="3"]{grid-column:span 3}
.anth-home--origem .anth-origin-cell[data-span="4"]{grid-column:1/-1}

.anth-home--origem .anth-origin-cell>.anth-origin-card,
.anth-home--origem .anth-origin-cell>.anth-origin-social{
  width:100%;
  box-sizing:border-box;
}

/* Base visual. O cartão ganha presença mesmo quando o conteúdo não possui
 * imagem própria, evitando os grandes retângulos vazios do visual anterior. */
.anth-home--origem .anth-origin-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:205px;
  height:auto;
  border:1px solid var(--ao-border);
  border-radius:var(--ao-radius);
  background:
    radial-gradient(circle at 82% 22%,rgba(82,226,207,.16),transparent 26%),
    radial-gradient(circle at 70% 90%,rgba(44,124,154,.13),transparent 34%),
    linear-gradient(135deg,var(--ao-surface),var(--ao-surface-2));
  box-shadow:0 10px 26px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.anth-home--origem .anth-origin-card[style]{
  background-image:
    linear-gradient(90deg,rgba(3,13,18,.93) 0%,rgba(3,13,18,.67) 48%,rgba(3,13,18,.18) 100%),
    var(--anth-origin-bg),
    linear-gradient(135deg,var(--ao-surface),var(--ao-surface-2));
  background-size:cover;
  background-position:center;
}
.anth-home--origem .anth-origin-card:hover{
  transform:translateY(-2px);
  border-color:rgba(112,235,214,.3);
  box-shadow:0 15px 34px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.035);
}

/* Motivo visual sutil ocupa áreas vazias sem competir com imagens reais. */
.anth-home--origem .anth-origin-card:after{
  content:"";
  position:absolute;
  z-index:0;
  right:-54px;
  top:-64px;
  width:230px;
  height:230px;
  border:1px solid rgba(106,226,207,.11);
  border-radius:50%;
  box-shadow:
    0 0 0 32px rgba(100,222,204,.025),
    0 0 0 66px rgba(100,222,204,.016);
  pointer-events:none;
}
.anth-home--origem .anth-origin-card[style]:after{opacity:.42}

.anth-home--origem .anth-origin-card__shade{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(2,10,14,.02),rgba(2,10,14,.16) 48%,rgba(2,10,14,.78));
  pointer-events:none;
}
.anth-home--origem .anth-origin-card__body{
  position:relative;
  z-index:2;
  min-height:inherit;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:19px 20px;
  box-sizing:border-box;
}
.anth-home--origem .anth-origin-card__body>small{
  color:var(--anth-origin-accent,var(--ao-accent));
  font:850 9px/1 Inter,sans-serif;
  letter-spacing:.12em;
}
.anth-home--origem .anth-origin-card__theme{
  align-self:flex-start;
  margin:8px 0;
  padding:4px 7px;
  border:1px solid rgba(111,227,208,.16);
  border-radius:999px;
  background:rgba(67,188,169,.08);
  color:#a6eadf;
  font:700 8px/1 Inter,sans-serif;
}
.anth-home--origem .anth-origin-card__body strong{
  max-width:92%;
  color:var(--ao-text);
  font:820 20px/1.06 Inter,sans-serif;
  letter-spacing:-.028em;
}
.anth-home--origem .anth-origin-card__body p{
  max-width:88%;
  margin:8px 0 0;
  color:var(--ao-muted);
  font:500 10.5px/1.48 Inter,sans-serif;
}
.anth-home--origem .anth-origin-card__cta{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  width:max-content!important;
  margin-top:13px!important;
  padding:7px 10px!important;
  border:1px solid rgba(112,231,211,.2)!important;
  border-radius:8px!important;
  background:rgba(4,23,27,.48)!important;
  color:#90eadb!important;
  font:800 9px/1 Inter,sans-serif!important;
  text-decoration:none!important;
}

/* Hero: mais compacto, com informação ocupando a peça e identidade visual
 * presente mesmo quando a imagem temática não está disponível. */
.anth-home--origem .anth-origin-card--vf-hero{
  min-height:255px;
  background:
    radial-gradient(circle at 78% 50%,rgba(56,218,195,.22),transparent 24%),
    linear-gradient(115deg,#06151b 0%,#09242a 62%,#0b3033 100%);
}
.anth-home--origem .anth-origin-card--vf-hero[style]{
  background-image:
    linear-gradient(90deg,rgba(3,12,17,.94) 0%,rgba(3,12,17,.76) 39%,rgba(3,12,17,.25) 72%,rgba(3,12,17,.09) 100%),
    var(--anth-origin-bg),
    linear-gradient(115deg,#06151b,#0b3033);
  background-position:center 43%;
}
.anth-home--origem .anth-origin-card--vf-hero:after{
  width:300px;
  height:300px;
  right:-28px;
  top:-82px;
  border-color:rgba(106,226,207,.16);
}
.anth-home--origem .anth-origin-card--vf-hero .anth-origin-card__shade{
  background:linear-gradient(0deg,rgba(2,11,15,.56),transparent 52%);
}
.anth-home--origem .anth-origin-card--vf-hero .anth-origin-card__body{
  min-height:255px;
  justify-content:center;
  align-items:flex-start;
  max-width:62%;
  padding:28px 31px;
}
.anth-home--origem .anth-origin-card--vf-hero .anth-origin-card__body strong{
  max-width:680px;
  font-size:clamp(27px,3.1vw,39px);
  line-height:1.01;
}
.anth-home--origem .anth-origin-card--vf-hero .anth-origin-card__body p{
  max-width:610px;
  font-size:11px;
}

/* Contexto/dor: deixa de ser um bloco vazio de meia página. */
.anth-home--origem .anth-origin-card--vf-contexto{
  min-height:195px;
  background:
    radial-gradient(circle at 84% 50%,rgba(76,205,224,.15),transparent 30%),
    linear-gradient(125deg,#06161c,#0a252b);
}
.anth-home--origem .anth-origin-card--vf-contexto[style]{
  background-image:
    linear-gradient(90deg,rgba(3,13,18,.95),rgba(3,13,18,.77) 58%,rgba(3,13,18,.22)),
    var(--anth-origin-bg),
    linear-gradient(125deg,#06161c,#0a252b);
  background-position:75% center;
}
.anth-home--origem .anth-origin-card--vf-contexto .anth-origin-card__body{
  min-height:195px;
  justify-content:center;
  max-width:75%;
  padding:21px 22px;
}
.anth-home--origem .anth-origin-card--vf-contexto .anth-origin-card__body strong{font-size:21px}

/* Famílias editoriais. */
.anth-home--origem .anth-origin-card--vf-editorial,
.anth-home--origem .anth-origin-card--destaque{
  min-height:215px;
}
.anth-home--origem .anth-origin-card--vf-editorial[style],
.anth-home--origem .anth-origin-card--destaque[style]{
  background-image:
    linear-gradient(0deg,rgba(2,11,15,.94) 0%,rgba(2,11,15,.58) 49%,rgba(2,11,15,.1) 88%),
    var(--anth-origin-bg),
    linear-gradient(135deg,#07171d,#0a2228);
}
.anth-home--origem .anth-origin-card--destaque .anth-origin-card__body strong{font-size:22px}

.anth-home--origem .anth-origin-card--vf-video{
  min-height:215px;
}
.anth-home--origem .anth-origin-card--vf-video[style]{
  background-image:
    linear-gradient(0deg,rgba(2,11,15,.92),rgba(2,11,15,.18) 72%),
    var(--anth-origin-bg),
    linear-gradient(135deg,#07171d,#0a2228);
}
.anth-home--origem .anth-origin-card__play{
  position:absolute;
  z-index:3;
  left:17px;
  top:17px;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  background:rgba(2,14,18,.68);
  color:#fff;
  font-size:12px;
}

.anth-home--origem .anth-origin-card--vf-exploracao,
.anth-home--origem .anth-origin-card--vf-teoria,
.anth-home--origem .anth-origin-card--vf-recomendacao,
.anth-home--origem .anth-origin-card--vf-comunidade,
.anth-home--origem .anth-origin-card--vf-ranking{
  min-height:205px;
}

.anth-home--origem .anth-origin-card--vf-cta{
  min-height:170px;
  background:
    radial-gradient(circle at 82% 35%,rgba(104,224,205,.16),transparent 28%),
    linear-gradient(120deg,#06161b,#0a272c);
}
.anth-home--origem .anth-origin-card--vf-cta .anth-origin-card__body{
  min-height:170px;
  justify-content:center;
  max-width:82%;
}
.anth-home--origem .anth-origin-card--vf-cta .anth-origin-card__body strong{font-size:20px}

.anth-home--origem .anth-origin-card--vf-descoberta{
  min-height:150px;
}
.anth-home--origem .anth-origin-card--vf-descoberta .anth-origin-card__body{
  min-height:150px;
  padding:15px;
}
.anth-home--origem .anth-origin-card--vf-descoberta .anth-origin-card__body strong{font-size:15px}
.anth-home--origem .anth-origin-card--vf-descoberta .anth-origin-card__body p{display:none}

/* Ranking. */
.anth-home--origem .anth-origin-card__ranking-list{
  list-style:none;
  margin:12px 0 2px;
  padding:0;
  display:grid;
  gap:7px;
}
.anth-home--origem .anth-origin-card__ranking-list li{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  align-items:center;
  gap:8px;
  font-size:12px;
}
.anth-home--origem .anth-origin-card__ranking-list li>span{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border:1px solid rgba(223,190,94,.38);
  border-radius:6px;
  color:#dfbe5e;
  font-weight:800;
  background:rgba(0,0,0,.22);
}

/* Social: mantém a origem detectada, com altura mais compatível com a página. */
.anth-home--origem .anth-origin-social{
  position:relative;
  isolation:isolate;
  min-height:235px;
  height:auto;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:22px;
  overflow:hidden;
  border:1px solid rgba(80,203,218,.2);
  border-radius:var(--ao-radius);
  background-image:
    linear-gradient(90deg,rgba(4,15,23,.96) 0%,rgba(4,15,23,.84) 48%,rgba(4,15,23,.44) 100%),
    var(--anth-origin-social-bg),
    linear-gradient(135deg,#061923,#0a2a31);
  background-size:cover;
  background-position:center;
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.anth-home--origem .anth-origin-social:after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-70px;
  top:-95px;
  width:320px;
  height:320px;
  border:1px solid rgba(83,221,225,.12);
  border-radius:50%;
  box-shadow:0 0 0 38px rgba(83,221,225,.025),0 0 0 78px rgba(83,221,225,.014);
}
.anth-home--origem .anth-origin-social__copy small{display:block;color:#73e2df;font:850 9px/1 Inter,sans-serif;letter-spacing:.13em}
.anth-home--origem .anth-origin-social__copy strong{display:block;max-width:370px;margin:9px 0 7px;color:#fff;font:850 22px/1.05 Inter,sans-serif}
.anth-home--origem .anth-origin-social__copy span{display:block;max-width:390px;color:rgba(235,248,246,.64);font:500 10.5px/1.45 Inter,sans-serif}
.anth-home--origem .anth-origin-social__icons{display:flex;align-items:center;justify-content:flex-end;gap:9px;position:relative;z-index:2}
.anth-home--origem .anth-origin-social__icon{display:grid;place-items:center;gap:6px;width:54px;height:66px;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(255,255,255,.04);color:#cfe9e6;text-decoration:none!important;box-sizing:border-box}
.anth-home--origem .anth-origin-social__icon.is-primary{width:82px;height:94px;border-color:rgba(91,225,204,.35);background:rgba(58,203,181,.11);color:#7ce7d4}
.anth-home--origem .anth-origin-social__icon svg{width:22px;height:22px;fill:currentColor}
.anth-home--origem .anth-origin-social__icon.is-primary svg{width:32px;height:32px}

/* Em 1/4, texto e botão precisam caber sem parecer um cartão espremido. */
.anth-home--origem .anth-origin-cell[data-span="1"] .anth-origin-card__body{
  padding:16px;
}
.anth-home--origem .anth-origin-cell[data-span="1"] .anth-origin-card__body strong{
  max-width:100%;
  font-size:16px;
  line-height:1.1;
}
.anth-home--origem .anth-origin-cell[data-span="1"] .anth-origin-card__body p{max-width:100%}
.anth-home--origem .anth-origin-cell[data-span="1"] .anth-origin-card--vf-hero .anth-origin-card__body,
.anth-home--origem .anth-origin-cell[data-span="1"] .anth-origin-card--vf-contexto .anth-origin-card__body,
.anth-home--origem .anth-origin-cell[data-span="1"] .anth-origin-card--vf-cta .anth-origin-card__body{max-width:100%}

@media(max-width:980px){
  .anth-home--origem .anth-origin-public{
    width:min(100% - 24px,1180px);
    padding:20px 0 40px;
  }
  .anth-home--origem .anth-origin-block--public>.anth-origin-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .anth-home--origem .anth-origin-cell[data-span="3"],
  .anth-home--origem .anth-origin-cell[data-span="4"]{grid-column:1/-1}
  .anth-home--origem .anth-origin-card--vf-hero .anth-origin-card__body{max-width:74%}
  .anth-home--origem .anth-origin-social{grid-template-columns:1fr;min-height:240px}
  .anth-home--origem .anth-origin-social__icons{justify-content:flex-start}
}

@media(max-width:620px){
  .anth-home--origem .anth-origin-public{
    width:min(100% - 18px,1180px);
    padding:14px 0 30px;
  }
  .anth-home--origem .anth-origin-three-blocks--public{gap:10px}
  .anth-home--origem .anth-origin-block--public>.anth-origin-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
  .anth-home--origem .anth-origin-cell[data-span]{grid-column:1/-1}
  .anth-home--origem .anth-origin-card{min-height:190px}
  .anth-home--origem .anth-origin-card--vf-hero{min-height:245px}
  .anth-home--origem .anth-origin-card--vf-hero .anth-origin-card__body{
    min-height:245px;
    max-width:100%;
    padding:23px 20px;
  }
  .anth-home--origem .anth-origin-card--vf-hero .anth-origin-card__body strong{font-size:27px}
  .anth-home--origem .anth-origin-card--vf-contexto .anth-origin-card__body,
  .anth-home--origem .anth-origin-card--vf-cta .anth-origin-card__body{max-width:100%}
  .anth-home--origem .anth-origin-social{min-height:230px;padding:19px}
  .anth-home--origem .anth-origin-social__icons{flex-wrap:wrap}
}
