/* Autor (redesign 07/10/2026): página pessoal sóbria sobre os componentes de
   arena-ds.css. Superfície navy, um botão vermelho (LinkedIn), retrato menor
   que o nome. Seletores começam em .author-page para vencer o DS, que carrega depois. */

.author-page main { background: var(--ds-night); }

/* Cabeçalho: texto + retrato, na mesma grade da seção de baixo (7fr | 4fr): o
   retrato fica sobre a coluna dos números, sem vão no meio da cabeça */
.author-page .author-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; column-gap: clamp(40px, 7vw, 112px); }
.author-page .author-head__text { display: grid; gap: 18px; align-self: start; min-width: 0; }
.author-page .author-head h1 { max-width: 14ch; }
.author-page .author-head__photo { width: 100%; max-width: 280px; margin: 0; }
.author-page .author-head__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--ds-radius); border: 1px solid var(--ds-line); box-shadow: var(--ds-shadow); }
.author-page .author-head__photo figcaption { margin-top: 12px; color: var(--ds-ink-3); font-size: 14px; line-height: 1.5; }

/* Por que a Arena existe + números */
.author-page .author-story__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.author-page .author-story__text h2 { margin: 0 0 20px; }
.author-page .author-story .ds-prose p { margin: 0 0 18px; }
.author-page .author-story .ds-prose a { color: var(--ds-cyan); font-weight: 600; white-space: nowrap; }
.author-page .author-training { margin-top: 32px; max-width: var(--ds-read); }
.author-page .author-training ul { margin: 0 0 12px; padding-left: 20px; }
.author-page .author-training li { margin-bottom: 8px; color: var(--ds-ink-2); font-size: 16px; line-height: 1.55; }
/* Primeira linha da lista: o total (o "7" dos números), sem marcador, antes dos destaques */
.author-page .author-training li.author-training__total { margin: 4px 0 12px -20px; list-style: none; color: var(--ds-ink); }
.author-page .author-training p { margin: 0 0 20px; color: var(--ds-ink-3); font-size: 14px; }
.author-page .author-certificate { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); align-items: start; gap: 20px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--ds-line); }
.author-page .author-certificate img { display: block; width: 100%; height: auto; border-radius: var(--ds-radius); }
/* Logo depois da formação, o fio de cima sairia colado ao fio do acordeão: fica só o respiro */
.author-page .author-training + .author-certificate { padding-top: 0; border-top: 0; }
.author-page .author-certificate h3 { margin: 8px 0 12px; font: 600 22px/1.25 var(--ds-font-serif); }
.author-page .author-certificate p:not(.ds-label) { color: var(--ds-ink-2); font-size: 16px; line-height: 1.55; }
.author-page .author-certificate .ds-link { font-size: 14px; }

.author-page .author-stats { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.author-page .author-stats .ds-stat { padding: 22px 0; border-top: 1px solid var(--ds-line-strong); }
.author-page .author-stats .ds-stat:last-child { border-bottom: 1px solid var(--ds-line); }
.author-page .author-stats .ds-stat span { font-size: 14px; color: var(--ds-ink-2); }

/* Fecho: aviso pessoal + "Sobre o projeto", dentro da seção (sem faixa própria) */
.author-page .author-end { display: grid; justify-items: start; gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
/* "Caixa Econômica Federal" não se parte (espaços sem quebra no HTML); com o nome
   inteiro, o equilíbrio das linhas evita uma segunda linha curta no celular */
.author-page .author-end .ds-note { max-width: 72ch; text-wrap: balance; }
.author-page .author-profile { max-width: var(--ds-read); }
.author-page .author-profile h2 { margin: 0 0 16px; }
.author-page .author-profile p { color: var(--ds-ink-2); line-height: 1.6; }
.author-page .author-profile a { color: var(--ds-cyan); }
.author-page .author-profile .author-profile__note { color: var(--ds-ink-3); font-size: 14px; }

@media (max-width: 900px) {
  /* Ordem de leitura numa coluna: a história, os números (o resumo) e só depois o
     detalhe da formação. O bloco de texto se desfaz (display: contents) para os
     números entrarem entre o texto e o acordeão. */
  .author-page .author-story__grid { grid-template-columns: 1fr; row-gap: 0; }
  .author-page .author-story__text { display: contents; }
  .author-page .author-story__text > h2 { order: 1; }
  .author-page .author-story__text > .ds-prose { order: 2; }
  .author-page .author-stats { order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 10px; border-top: 1px solid var(--ds-line-strong); }
  .author-page .author-story__text > .author-training { order: 4; margin-top: 0; }
  .author-page .author-story__text > .author-certificate { order: 5; }
  /* Um fio só entre os blocos: o de cima dos números e o do acordeão logo abaixo deles */
  .author-page .author-stats .ds-stat { border-top: 0; }
  .author-page .author-stats .ds-stat:last-child { border-bottom: 0; }
}
@media (max-width: 720px) {
  .author-page .author-head__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .author-page .author-head h1 { max-width: none; }
  /* O retrato completo mantém a mesma proporção em todas as telas. */
  .author-page .author-stats { grid-template-columns: 1fr; }
  .author-page .author-stats .ds-stat + .ds-stat { border-top: 1px solid var(--ds-line-strong); }
  .author-page .author-stats .ds-stat { grid-template-columns: 112px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 16px 0; }
  .author-page .author-certificate { grid-template-columns: 1fr; }
  .author-page .author-certificate__image { max-width: 240px; }
}
