/* Bike Fit Lab — proof.css · prova social: marcas (#marcas), equipas e atletas (#equipas), testemunhos (#testemunhos).
   Carregado por templates/layout.php quando existe. Só tokens de site.css; cantos retos, sem sombras nem gradientes. */

/* ---------- marcas: wordmarks em linha, a --muted, a --ink em hover ---------- */
.brands__list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem; align-items: flex-start; }
.brands__item { display: grid; gap: 0.3rem; min-width: 0; }
.brands__mark { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; transition: color var(--t-hover) ease, opacity var(--t-hover) ease; }
.brands__name { font-weight: 600; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.brands__logo { display: block; height: 2.5rem; width: auto; max-width: 11rem; object-fit: contain; object-position: left center; background: transparent; opacity: 0.72; transition: opacity var(--t-hover) ease; }   /* site.css dá fundo --surface a todas as img: um logótipo transparente não pode ter caixa */
.brands__role { display: block; line-height: 1.35; max-width: 16rem; }
@media (hover: hover) and (pointer: fine) {
  a.brands__mark:hover { color: var(--ink); }
  a.brands__mark:hover .brands__logo { opacity: 1; }
}
a.brands__mark:focus-visible { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- equipas e atletas: linhas alternadas, full bleed na coluna de leitura ---------- */
.reading > .brands + .teams { padding-top: calc(var(--section) * 0.5); }   /* mais perto das marcas, mas com ar: a função da última marca não pode ler-se como kicker do título */
.teams__list { list-style: none; margin: 2rem calc(var(--pad) * -1) 0; padding: 0; }
.teams__row { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.25rem 1.25rem; align-items: start; padding: 1.25rem var(--pad); }
.teams__row:nth-child(odd) { background: var(--surface); }
.teams__media { width: 4rem; height: 4rem; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.teams__row:nth-child(even) .teams__media { background: var(--surface); }
.teams__logo { width: 100%; height: 100%; object-fit: contain; padding: 0.35rem; background: transparent; }
.teams__media--mark span { font-weight: 600; font-size: var(--step-lead); color: var(--muted); letter-spacing: -0.01em; }
.teams__body { min-width: 0; }
.teams__body > * + * { margin-top: 0.3rem; }
.teams__name { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.teams__name a { text-decoration: none; color: inherit; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .teams__name a:hover { color: var(--accent); } }
.teams__kind { font-weight: 400; }
.teams__role { max-width: var(--measure); }
.teams__text { max-width: var(--measure); line-height: 1.5; }

/* ---------- testemunhos: grelha 1–3 colunas, aspas tipográficas, sem estrelas ---------- */
.quotes__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.quote { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem 1.6rem; background: var(--surface); min-width: 0; }
.quote__text { margin: 0; padding: 0; border: 0; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.005em; text-wrap: pretty; hanging-punctuation: first; }
.quote__text p { margin: 0; max-width: none; }
.quote__text p::before { content: "\201C"; }
.quote__text p::after { content: "\201D"; }
.quote__by { margin-top: auto; display: grid; gap: 0.15rem; max-width: none; line-height: 1.4; }
.quote__name { font-weight: 600; }
.quote__src { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 0.3rem; margin-top: 0.35rem; }
.quote__src .icon { flex: none; }
.quote__src a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .quote__src a:hover { color: var(--ink); text-decoration-color: currentColor; } }

/* ---------- telemóvel ---------- */
@media (max-width: 40em) {
  .brands__list { gap: 1.25rem 2rem; }
  .brands__name { font-size: max(1.125rem, var(--step-body)); }
  .teams__row { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.25rem 1rem; }
  .teams__media { width: 3rem; height: 3rem; }
  .quote { padding: 1.25rem 1.25rem; }
  .quote__text { font-size: var(--step-body); line-height: 1.45; }
}
