/* Topo, lista de vagas e candidatura da /trabalheconosco/.
 *
 * A página usa marcação e estilos próprios. Por isso estas regras não dependem
 * do home.css — aquela folha não é carregada aqui.
 *
 * O CSS canonico declara `.sg-container { display: inline; padding: 16px 10px }`,
 * entao toda caixa que usa a classe precisa declarar o proprio display e zerar
 * o recheio.
 */

/* ---------------------------------------------------------------------------
   Topo
   Mesma escala de tipo do topo da telefonia fixa e da movel. Sem a coluna da
   foto: nao existe imagem de equipe no acervo, e inventar uma seria colocar no
   ar uma cena que nao e da empresa.
   --------------------------------------------------------------------------- */
.sg-vagas-hero {
  padding: 70px 0 0;
  background: var(--sg-white, #fff);
}

.sg-vagas-hero__grid {
  display: flex;
  width: min(calc(100% - 64px), 1580px);
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 2.8vw, 40px);
  padding: 0;
  margin-inline: auto;
}

.sg-vagas-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--sg-black, #050505);
  font-size: clamp(40px, 3.9vw, 75px);
  line-height: 1;
  letter-spacing: -.01em;
  font-variation-settings: "wght" 700, "wdth" 100;
}

.sg-vagas-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--sg-black, #050505);
  font-size: clamp(18px, 1.3vw, 25px);
  line-height: 1.2;
  font-variation-settings: "wght" 500, "wdth" 100;
}

/* ---------------------------------------------------------------------------
   Vagas em aberto
   --------------------------------------------------------------------------- */
.sg-vagas {
  padding: 70px 0;
  background: var(--sg-white, #fff);
}

.sg-vagas__grid {
  display: flex;
  width: min(calc(100% - 64px), 1580px);
  flex-direction: column;
  gap: 32px;
  padding: 0;
  margin-inline: auto;
}

.sg-vagas h2 {
  margin: 0;
  color: var(--sg-black, #050505);
  font-size: clamp(32px, 2.9vw, 56px);
  line-height: 1.07;
  letter-spacing: -.01em;
  font-variation-settings: "wght" 700, "wdth" 100;
}

/* ---------------------------------------------------------------------------
   Filtros
   Montados pelo vagas.js a partir das proprias vagas, e por isso a caixa nasce
   escondida: sem dados nao ha o que filtrar, e um bloco vazio piscando antes da
   lista chegar e pior que nenhum.
   --------------------------------------------------------------------------- */
.sg-vagas__filtros {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.sg-vagas__filtros[hidden] {
  display: none;
}

.sg-vagas__filtro-campos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.sg-vagas__filtro {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  gap: 6px;
}

.sg-vagas__filtro-rotulo {
  color: #424242;
  font-size: 13px;
  line-height: 1;
  font-variation-settings: "wght" 700, "wdth" 100;
}

/* O `appearance: none` tira o desenho do sistema; a seta e um SVG embutido, para
   nao depender de arquivo nem de fonte de icone. */
.sg-vagas__filtro select {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1.5px solid #4dff26;
  border-radius: 10px;
  appearance: none;
  background-color: var(--sg-white, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23050505' stroke-width='1.8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  color: var(--sg-black, #050505);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-variation-settings: "wght" 400, "wdth" 100;
}

.sg-vagas__filtro select:focus-visible {
  outline: 2px solid #ff8630;
  outline-offset: 2px;
}

.sg-vagas__contagem {
  margin: 0 0 10px;
  color: #424242;
  font-size: 15px;
  line-height: 1;
  font-variation-settings: "wght" 700, "wdth" 100;
}

.sg-vagas__limpar {
  padding: 0;
  border: 0;
  background: none;
  color: #f60;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-variation-settings: "wght" 700, "wdth" 100;
}

/* ---------------------------------------------------------------------------
   A lista e o cartao
   Flex e nao grid: nesta pagina a linha unica de uma grade esticava os cartoes
   ate somar a altura de todos eles — fora da grade o mesmo cartao media 197px.
   O flex-wrap da o mesmo arranjo sem depender do dimensionamento de linha
   implicita, e o piso de 300px faz a quebra acontecer sozinha, sem breakpoint.
   --------------------------------------------------------------------------- */
.sg-vagas__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.sg-vagas__aviso {
  margin: 0;
  color: #424242;
  font-size: 18px;
  line-height: 1.4;
  /* Ocupa a linha inteira: e mensagem, nao cartao. */
  flex: 1 1 100%;
  font-variation-settings: "wght" 400, "wdth" 100;
}

.sg-vaga {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  align-items: flex-start;
  /* 300 do bloco de texto do frame mais os 20 de recheio de cada lado. Sem teto,
     duas vagas sozinhas viravam dois cartoes de meia tela. */
  max-width: 340px;
  gap: 15px;
  padding: 20px;
  border: 1.5px solid #4dff26;
  border-radius: 15px;
  background: var(--sg-white, #fff);
}

.sg-vaga__texto {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.sg-vaga p {
  margin: 0;
  color: var(--sg-black, #050505);
  font-size: 14px;
  line-height: 1.15;
  font-variation-settings: "wght" 400, "wdth" 100;
}

/* O rotulo e que e forte; o valor fica no peso normal. */
.sg-vaga strong {
  font-variation-settings: "wght" 700, "wdth" 100;
}

/* Descricao vinda do editor do CMS. Opcional: o cartao so a mostra quando ela
   tem texto. As regras cobrem as poucas tags que passam pela limpeza. */
.sg-vaga__descricao p {
  margin: 0 0 8px;
  line-height: 1.15;
}

.sg-vaga__descricao > :last-child {
  margin-bottom: 0;
}

.sg-vaga__descricao ul,
.sg-vaga__descricao ol {
  margin: 0 0 8px;
  padding-left: 20px;
  color: var(--sg-black, #050505);
  font-size: 14px;
  line-height: 1.3;
}

.sg-vaga__descricao li {
  margin-bottom: 4px;
}

.sg-vaga__descricao h3,
.sg-vaga__descricao h4 {
  margin: 10px 0 6px;
  font-size: 14px;
  font-variation-settings: "wght" 700, "wdth" 100;
}

.sg-vaga__descricao a {
  color: #f60;
  text-decoration: underline;
}

/* O modificador --glow pinta o fundo pelo ::after, entao a cor vai na variavel e
   nao em `background`. O texto ja vem dentro de um <span>, como o sistema exige
   para ficar acima da pilha.
 *
 * Dois niveis de seletor de proposito: o .sg-button--glow define as mesmas
 * variaveis com um nivel so, e o sync reinjeta o site-buttons.css no fim do
 * <head> a cada execucao. Empatar no peso e depender da ordem das folhas fazia o
 * botao voltar a cor padrao na segunda sincronizacao. */
.sg-vaga .sg-vaga__botao {
  --sg-glow-surface: #ff8630;
  --sg-glow-radius: 10px;
  --sg-glow-border: transparent;
  --sg-glow-border-hover: rgba(255, 255, 255, .9);
  min-height: 0;
  /* Empurra para a base: com os cartoes esticados a mesma altura, e o que deixa
     os botoes alinhados de um cartao para o outro. */
  margin-top: auto;
  padding: 8px 30px;
  color: var(--sg-white, #fff);
  font-size: 14px;
  line-height: 1;
  font-variation-settings: "wght" 700, "wdth" 100;
}

/* ---------------------------------------------------------------------------
   A vaga escolhida, acima dos formularios
   --------------------------------------------------------------------------- */
.sg-vagas__escolhida {
  display: block;
  padding: 12px 20px;
  border-radius: 10px;
  margin: 0 0 20px;
  background: #00ff4d;
  color: var(--sg-black, #050505);
  font-size: 16px;
  line-height: 1.3;
  font-variation-settings: "wght" 600, "wdth" 100;
}

.sg-vagas__escolhida[hidden] {
  display: none;
}

/* ---------------------------------------------------------------------------
   Candidatura
   Dois formulários próprios: ficha completa e envio direto do currículo.
   --------------------------------------------------------------------------- */
.sg-career {
  padding: 10px 0 80px;
  background: var(--sg-white, #fff);
}

.sg-career__inner {
  display: flex;
  width: min(calc(100% - 64px), 1450px);
  flex-direction: column;
  gap: 48px;
  padding: 0;
  margin-inline: auto;
}

.sg-career__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sg-career__heading h2 {
  max-width: 850px;
  margin: 0;
  color: var(--sg-black, #050505);
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 1.1;
  font-variation-settings: "wght" 700, "wdth" 100;
}

.sg-career__pdf-link,
.sg-career-form__submit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid #050505;
  border-radius: 10px;
  background: #ff8630;
  color: #050505;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  font-variation-settings: "wght" 700, "wdth" 100;
}

.sg-career__pdf-link:hover,
.sg-career-form__submit:hover {
  background: #f60;
}

.sg-career__pdf-link:focus-visible,
.sg-career-form__submit:focus-visible,
.sg-career-form input:focus-visible,
.sg-career-form textarea:focus-visible {
  outline: 3px solid #4dff26;
  outline-offset: 2px;
}

.sg-career__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 60px;
  align-items: start;
}

.sg-career__panel {
  padding: 30px;
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  background: #f1f1f1;
}

.sg-career__panel > div > p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.35;
  font-variation-settings: "wght" 500, "wdth" 100;
}

.sg-career-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sg-career-form__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  border: 0;
  margin: 0;
}

.sg-career-form__field label,
.sg-career-form__field legend {
  padding: 0;
  color: #050505;
  font-size: 15px;
  line-height: 1.2;
  font-variation-settings: "wght" 600, "wdth" 100;
}

.sg-career-form__field > input:not([type="radio"]):not([type="checkbox"]),
.sg-career-form__field textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #777;
  border-radius: 8px;
  background: #fff;
  color: #050505;
  font: inherit;
}

.sg-career-form__field textarea {
  min-height: 120px;
  resize: vertical;
}

.sg-career-form__field input[type="file"] {
  min-height: 0;
  padding: 10px;
}

.sg-career-form__field small {
  color: #555;
  font-size: 13px;
}

.sg-career-form__choices {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.sg-career-form__choices legend {
  width: 100%;
  margin-bottom: 7px;
}

.sg-career-form__choices label,
.sg-career-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.sg-career-form__choices input,
.sg-career-form__consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: #f60;
}

.sg-career-form__consent {
  color: #222;
  font-size: 14px;
  line-height: 1.35;
}

.sg-career-form__submit {
  align-self: flex-start;
  min-width: 150px;
}

.sg-form-messages-wrap {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-variation-settings: "wght" 600, "wdth" 100;
}

@media (max-width: 700px) {
  .sg-vagas-hero {
    padding-top: 40px;
  }

  .sg-vagas-hero__grid,
  .sg-vagas__grid {
    width: min(calc(100% - 40px), 1580px);
  }

  .sg-vagas-hero__grid {
    gap: 20px;
  }

  .sg-vagas-hero p {
    font-size: 16px;
    line-height: 1.375;
    font-variation-settings: "wght" 400, "wdth" 100;
  }

  .sg-vagas {
    padding: 50px 0;
  }

  .sg-vagas__grid {
    gap: 30px;
  }

  .sg-vaga {
    max-width: none;
  }

  .sg-vagas__filtro {
    min-width: 0;
    flex: 1 1 100%;
  }

  .sg-vagas__contagem {
    margin-bottom: 0;
  }

  .sg-career {
    padding-bottom: 50px;
  }

  .sg-career__inner {
    width: min(calc(100% - 40px), 1450px);
    gap: 30px;
  }

  .sg-career__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sg-career__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sg-career__panel {
    padding: 22px;
  }
}
