/* ============================================================
   INTERFACE-ESTUDANTE — Match do estudante (referências 2 e 5).
   Só apresentação: o card continua o mesmo (cardPessoa) com as mesmas ações.
   Tudo exige #view.student-match, classe que o roteador só aplica à rota
   "match" da conta de estudante. Carregado depois de student-desktop/styles.css.
   ============================================================ */

/* selo "Novo match" agora fica junto do nome (antes era absoluto no canto) */
.pcard-id > .pcard-novo{
  position:static;display:inline-block;margin:0 0 4px;padding:3px 10px;border-radius:12px;
  background:var(--terracota-fraco);color:var(--terracota);font-size:12px;font-weight:600
}
#view.student-match .match-cabecalho .sub,
#view.student-match .match-sub-matches{display:none}
#view.student-match .match-filtro-genero .seg button{white-space:nowrap}
#view.student-match .pcard-vaga{background:var(--terracota-fraco);color:var(--terracota);cursor:pointer}
#view.student-match .pcard-vaga svg{font-size:14px}
#view.student-match .pcard-comum{color:var(--terracota)}
/* "Conversar" antes da curtida: contorno terracota; "Curtida enviada" (sem ação): neutro preenchido */
#view.student-match .pcard .btn.neutro[data-act],#view.student-match .pcard .btn.neutro[data-go]{background:var(--papel);border:1.5px solid var(--terracota);color:var(--terracota)}
#view.student-match .pcard .btn.neutro:not([data-act]):not([data-go]){background:#F3EEE7;border-color:transparent;color:var(--tinta);cursor:default}
#view.student-match .pcard .chips .pill.est{background:#F8F3EC;color:#5C5248}
/* a regra global .btn + .btn (margem no 2º botão) desalinhava a dupla Curtir/Conversar */
#view.student-match .pcard .acoes .btn{margin:0;min-width:0}
#view.student-match .pcard .chips .pill.est b{color:var(--tinta);font-weight:700}

/* ---------------- celular (referência 5) ---------------- */
@media (max-width:899px){
  #view.student-match .match-cabecalho{display:flex;align-items:center;gap:12px;margin:10px 0 16px;min-width:0}
  #view.student-match .match-cabecalho-txt{flex:none}
  #view.student-match .match-cabecalho .tela{font-size:26px;font-weight:800;letter-spacing:-.6px;margin:0!important}
  #view.student-match .match-filtro-genero{flex:1;min-width:0;margin:0}
  /* o rótulo continua nomeando o grupo para leitores de tela */
  #view.student-match .match-filtro-genero .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  #view.student-match .match-filtro-genero .seg{
    flex-wrap:nowrap;overflow-x:auto;margin:0;gap:8px;padding:2px;scrollbar-width:none;overscroll-behavior-x:contain
  }
  #view.student-match .match-filtro-genero .seg::-webkit-scrollbar{display:none}
  #view.student-match .match-filtro-genero .seg button{
    flex:none;min-width:0;min-height:42px;padding:9px 18px;border-radius:22px;
    border:1px solid var(--linha);background:var(--papel);color:var(--tinta);font-size:14px;font-weight:500
  }
  #view.student-match .match-filtro-genero .seg button.on{border:1px solid var(--terracota-fraco);background:var(--terracota-fraco);color:var(--terracota);font-weight:600}
  #view.student-match .rot{font-size:15px;text-transform:none;letter-spacing:0;color:var(--tinta);font-weight:700;margin:18px 0 10px}
  /* a referência do celular abre em "Todos": mesmo botão, só a posição na fila */
  #view.student-match .match-filtro-genero .seg button[data-v="todos"]{order:-1}

  #view.student-match .pcard{border-radius:20px;border-color:#efe9e1;box-shadow:0 4px 16px rgba(45,29,16,.05);margin-bottom:14px}
  #view.student-match .pcard-topo{gap:14px;align-items:center}
  #view.student-match .pcard-foto{width:60px;height:60px;border-radius:15px}
  #view.student-match .pcard-foto.vazio-f{background:#F6E7D2}
  #view.student-match .pcard .inicial{font-family:'Inter',sans-serif;font-weight:800;font-size:26px;opacity:1}
  #view.student-match .pcard-nome{font-size:16px}
  #view.student-match .pcard-linha{font-size:13.5px;color:#5C5248}
  #view.student-match .pcard-linha.cinza{display:none}

  /* candidatos: orçamento sobe para o canto direito, ao lado do nome */
  #view.student-match .match-grid-candidatos .pcard{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;padding:16px}
  #view.student-match .match-grid-candidatos .pcard-topo{grid-column:1;grid-row:1;padding:0;min-width:0}
  #view.student-match .match-grid-candidatos .pcard-b{display:contents}
  #view.student-match .match-grid-candidatos .pcard-b > *{grid-column:1/-1}
  #view.student-match .match-grid-candidatos .pcard-b > .linha-d{
    grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;
    padding:0;text-align:right;font-size:12.5px;line-height:1.25
  }
  #view.student-match .match-grid-candidatos .linha-d b{font-family:inherit;font-weight:800;font-size:17px;color:var(--tinta);white-space:nowrap}
  #view.student-match .match-grid-candidatos .linha-d b small{font-size:11.5px;font-weight:400}
  #view.student-match .match-grid-candidatos .pcard-comum{margin:14px 0 0;font-size:14px}
  #view.student-match .match-grid-candidatos .chips{margin:10px 0 0;gap:7px}
  #view.student-match .pcard .chips .pill.est{font-size:13px;padding:7px 11px}
  #view.student-match .match-grid-candidatos .acoes{margin-top:16px}
  #view.student-match .pcard .acoes{gap:10px}
  #view.student-match .pcard .acoes .btn{min-height:46px;font-size:15px;border-radius:11px}
  #view.student-match .match-grid-matches .pcard-b{padding:12px 16px 16px}
  #view.student-match .match-grid-matches .pcard-topo{padding:16px 16px 0}
}
@media (max-width:359px){
  #view.student-match .match-cabecalho .tela{font-size:22px}
  #view.student-match .pcard-foto{width:50px;height:50px}
  #view.student-match .pcard-nome{font-size:15.5px}
  /* sem espaço ao lado do nome: o orçamento desce para a linha de baixo (rótulo à esquerda, valor à direita) */
  #view.student-match .match-grid-candidatos .pcard-b > .linha-d{grid-column:1/-1;grid-row:2;flex-direction:row;justify-content:space-between;align-items:baseline;margin-top:12px}
  #view.student-match .match-grid-candidatos .linha-d b{font-size:16px}
  #view.student-match .pcard .acoes .btn{font-size:13.5px;padding:9px 6px}
}
@media (min-width:360px){
  #view.student-match .pcard .acoes .btn{white-space:nowrap}
}

/* ---------------- computador (referência 2; REFINAMENTO-DESKTOP: escala ~8% menor) ---------------- */
@media (min-width:900px){
  #view.student-match .corpo{padding-top:22px}
  #view.student-match .match-cabecalho{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 6px;min-width:0}
  #view.student-match .match-cabecalho .tela{font-size:30px;font-weight:800;letter-spacing:-.8px;line-height:1.15;margin:0!important}
  #view.student-match .match-filtro-genero{display:flex;align-items:center;gap:14px;margin:0;min-width:0}
  #view.student-match .match-filtro-genero .lbl{margin:0;font-size:14px;font-weight:600;color:var(--tinta);white-space:nowrap}
  #view.student-match .match-filtro-genero .seg{flex-wrap:nowrap;margin:0;gap:8px}
  #view.student-match .match-filtro-genero .seg button{
    flex:none;min-width:0;min-height:38px;padding:8px 17px;border-radius:22px;cursor:pointer;
    border:1px solid #f0ebe3;background:var(--papel);color:var(--tinta);font-size:14px;font-weight:600;
    box-shadow:0 3px 12px rgba(45,29,16,.05)
  }
  #view.student-match .match-filtro-genero .seg button:hover{border-color:var(--terracota)}
  #view.student-match .match-filtro-genero .seg button.on{background:var(--terracota-fraco);border-color:var(--terracota-fraco);color:var(--terracota);box-shadow:none}
  #view.student-match .match-filtro-genero .seg button:focus-visible{outline:3px solid var(--mostarda);outline-offset:2px}
  #view.student-match .rot{font-size:19px;font-weight:800;letter-spacing:-.3px;color:var(--tinta);text-transform:none;margin:20px 0 12px}

  #view.student-match .student-match-grid{gap:16px;margin:0 0 16px}
  #view.student-match .match-grid-candidatos{grid-template-columns:repeat(4,minmax(0,1fr))}
  #view.student-match .match-grid-matches{grid-template-columns:repeat(2,minmax(0,1fr))}

  #view.student-match .pcard{border-radius:16px;border-color:#f0ebe3;box-shadow:0 6px 20px rgba(45,29,16,.06)}
  #view.student-match .pcard-topo{padding:14px 16px 0;gap:12px;align-items:center}
  #view.student-match .pcard-foto{width:50px;height:50px;border-radius:13px}
  #view.student-match .pcard-foto.vazio-f{background:#F6E7D2}
  #view.student-match .pcard .inicial{font-family:'Inter',sans-serif;font-weight:800;font-size:22px;opacity:1}
  #view.student-match .pcard-nome{font-size:16.5px;line-height:1.25}
  #view.student-match .pcard-selo svg{width:18px;height:18px}
  #view.student-match .pcard-linha{font-size:13px;color:#5C5248;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #view.student-match .pcard-linha.cinza{display:none}
  #view.student-match .pcard-b{padding:12px 16px 16px;gap:9px}
  #view.student-match .pcard .linha-d{padding:0;font-size:13.5px;align-items:center}
  #view.student-match .pcard .linha-d span{color:#5C5248}
  #view.student-match .pcard .linha-d b{font-family:inherit;font-weight:800;font-size:17px;color:var(--tinta)}
  #view.student-match .pcard .linha-d b small{font-size:12.5px;font-weight:400}
  #view.student-match .pcard-comum{font-size:13.5px;margin:0}
  #view.student-match .pcard-comum svg{width:15px;height:15px}
  #view.student-match .pcard .chips{gap:6px;margin:0}
  #view.student-match .pcard .chips .pill{font-size:12px;padding:5px 9px}
  #view.student-match .pcard .acoes{margin-top:auto;padding-top:8px;gap:10px}
  #view.student-match .pcard .acoes .btn{min-height:40px;font-size:13.5px;border-radius:10px;padding:8px 8px;gap:6px}

  /* "Seus matches": card horizontal com as ações à direita */
  #view.student-match .match-grid-matches .pcard{flex-direction:row;align-items:center;gap:16px;padding:14px 18px}
  #view.student-match .match-grid-matches .pcard-topo{flex:1;min-width:0;padding:0}
  #view.student-match .match-grid-matches .pcard-b{flex:none;padding:0}
  #view.student-match .match-grid-matches .acoes{margin:0;padding:0}
  #view.student-match .match-grid-matches .acoes .btn{flex:none!important;padding:9px 20px}

  #view.student-match .corpo > .btn.neutro[data-act="mais-candidatos"]{
    width:auto;min-width:220px;margin:8px auto 0;border-radius:24px;padding:12px 28px;font-size:14px;
    box-shadow:0 4px 16px rgba(45,29,16,.06);border-color:#f0ebe3
  }
}
@media (min-width:900px) and (max-width:1279px){
  #view.student-match .match-grid-candidatos{grid-template-columns:repeat(3,minmax(0,1fr))}
  #view.student-match .match-cabecalho{flex-wrap:wrap}
}
@media (min-width:900px) and (max-width:1099px){
  #view.student-match .match-grid-candidatos{grid-template-columns:repeat(2,minmax(0,1fr))}
  #view.student-match .match-grid-matches{grid-template-columns:1fr}
}
