/* Gerações (templates/geracoes.tpl). Tokens de css/refinado.css. */
.gr { padding-bottom: 48px; }
.gr-topo { padding: 10px 0 18px; max-width: 860px; }
.gr-chapeu { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gc-laranja-2); }
body .gr h1 { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #18181b; margin: 6px 0 10px; }
body .gr-topo p { font-size: 16px; line-height: 1.6; color: #3f3f46; margin: 0; }
.gr-linha { list-style: none; margin: 8px 0 0; padding: 0 0 0 22px; position: relative; display: grid; gap: 14px; }
.gr-linha::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 16px; width: 2px; background: #ececef; }
.gr-linha > li { position: relative; }
.gr-linha > li::before { content: ""; position: absolute; left: -22px; top: 40px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gc-laranja); }
body a.gr-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px; border: 1px solid #ececef; border-radius: 16px;
  background: #fff; color: #18181b; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
body a.gr-card:hover { border-color: var(--gc-laranja-borda); box-shadow: var(--gc-sombra-m); text-decoration: none; }
.gr-card-foto { height: 130px; border-radius: 12px; background: #f4f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gr-card-foto img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gr-card-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gr-card-n { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--gc-laranja-2); }
.gr-card-txt b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.gr-card-txt small { font-size: 14px; color: #52525b; line-height: 1.45; }
.gr-card-num { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.gr-card-num span { font-size: 12.5px; background: #f4f4f5; border-radius: 999px; padding: 3px 10px; color: #3f3f46; }
.gr-topo--uma { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; max-width: none; }
.gr-topo-foto { background: #f4f4f6; border-radius: 18px; padding: 16px; display: flex; justify-content: center; }
.gr-topo-foto img { max-width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; }
body .gr-abertura { margin: 0 0 16px; }
.gr-numeros { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gr-numeros li { border: 1px solid #ececef; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.gr-numeros b { font-size: 17px; font-weight: 800; }
.gr-numeros span { font-size: 12.5px; color: #71717a; }
.gr-secao { margin-top: 32px; }
.gr-secao-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
body .gr-secao h2 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.gr-marcos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gr-marcos li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-radius: 12px; background: #fafafb; border: 1px solid #f0f0f2; font-size: 14.5px; line-height: 1.5; }
.gr-marcos b { color: var(--gc-laranja-2); }
.gr-ano { margin-bottom: 14px; }
body .gr-ano h3 { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.gr-versoes { display: flex; flex-wrap: wrap; gap: 6px; }
body .gr-versoes a { font-size: 13.5px; border: 1px solid #ececef; border-radius: 999px; padding: 5px 12px; color: #27272a; text-decoration: none; background: #fff; }
body .gr-versoes a:hover { border-color: var(--gc-laranja-borda); color: var(--gc-laranja-2); }
.gr-versoes small { color: #71717a; }
body a.gr-comparar { font-weight: 700; font-size: 14px; color: var(--gc-laranja-2); text-decoration: none; }
.gr-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 32px; padding-top: 18px; border-top: 1px solid #ececef; }
body .gr-nav a { text-decoration: none; color: #18181b; display: flex; flex-direction: column; }
.gr-nav small { color: #71717a; font-size: 12.5px; }
.gr-nav-prox { text-align: right; align-items: flex-end; }
body a.gr-nav-todas { font-weight: 700; color: var(--gc-laranja-2); }
body .gr-nota { margin-top: 28px; font-size: 13px; color: #71717a; }
/* Página do modelo: gerações em linha (catalogo-modelo.tpl, #geracoes) */
.md-geracoes { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
body a.md-geracao { flex: none; width: 190px; border: 1px solid #ececef; border-radius: 14px; padding: 10px; text-decoration: none; color: #18181b; background: #fff; display: flex; flex-direction: column; gap: 4px; }
body a.md-geracao:hover { border-color: var(--gc-laranja-borda); text-decoration: none; }
.md-geracao span { height: 90px; display: flex; align-items: center; justify-content: center; background: #f4f4f6; border-radius: 10px; overflow: hidden; }
.md-geracao img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.md-geracao small { font-size: 12px; font-weight: 800; color: var(--gc-laranja-2); text-transform: uppercase; letter-spacing: .04em; }
.md-geracao b { font-size: 15px; }
@media (max-width: 760px) {
  body .gr h1 { font-size: 24px; }
  body a.gr-card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .gr-card-foto { height: 80px; }
  .gr-card-txt b { font-size: 19px; }
  .gr-topo--uma { grid-template-columns: minmax(0, 1fr); }
  .gr-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-nav { grid-template-columns: 1fr 1fr; }
  .gr-nav-todas { display: none !important; }
}
