/* ── SOBRE — estilos específicos da página Sobre ──────────────────── */

/* Expandir .rb-main para full-width igual à página Metodologia */
body.sobre-page {
    background: #ffffff;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
}

body.sobre-page .rb-main {
    background: transparent;
    max-width: 100%;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    min-height: 0;
}

/* Titulo do hero: mesmo estilo da Metodologia (metodologia.css), mas o texto e mais
   longo e quebrava em 3 linhas. No desktop o h1 avanca 24px sobre o padding-right de
   32px da coluna para fechar em 2 linhas, sem mudar fonte/tamanho. */
@media (min-width: 901px) {
    body.sobre-page .meto-hero-left h1 { margin-right: -24px; }
}

/* Fact sheet placeholder */
.sb-factsheet-placeholder {
    background: transparent;
    padding: 40px 0 36px;
    border-bottom: 1.5px solid rgba(38,69,132,.12);
}

.sb-factsheet-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(38,69,132,.10);
    border: 1.5px solid rgba(38,69,132,.20);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #264584;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sb-factsheet-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #101d4f;
    margin: 0 0 10px;
}

.sb-factsheet-desc {
    font-size: 0.95rem;
    color: #4a5a80;
    line-height: 1.65;
    max-width: 560px;
    margin: 0;
}

/* Indicador do scroll-stack de fotos: bolinhas verticais a esquerda da foto (que fica
   em left: 14vw dentro de .meto-scroll-photos, ver metodologia.css), uma por foto. A da
   foto ativa vira uma pilula navy alongada. Atualizado no JS de sobre.html.
   So desktop (> 900px), onde as fotos rolam com a roda do mouse. */
.meto-scroll-indicator {
    position: absolute;
    top: 50%;
    right: calc(100% - 14vw + 26px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.meto-scroll-indicator span {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(38, 69, 132, .22);
    transition: height .4s cubic-bezier(.22, 1, .36, 1), background-color .3s ease;
}

.meto-scroll-indicator span.is-active {
    height: 28px;
    background: #264584;
}

@media (prefers-reduced-motion: reduce) {
    .meto-scroll-indicator span { transition: none; }
}

@media (max-width: 900px) {
    .meto-scroll-indicator { display: none; }
}

/* Linha de divisao entre "Por que avaliar" e a secao de fotos */
body.sobre-page .meto-scroll-section { border-top: 1px solid rgba(38,69,132,.10); }
body.sobre-page .meto-federalism-section { border-bottom: none; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.sb-faq-section {
    border-top: 1.5px solid rgba(38,69,132,.12);
}

.sb-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 28px;
    border: 1.5px solid rgba(38,69,132,.14);
    border-radius: 12px;
    overflow: hidden;
}

.sb-faq-item {
    border-bottom: 1px solid rgba(38,69,132,.10);
}

.sb-faq-item:last-child {
    border-bottom: none;
}

.sb-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 20px;
    text-align: left;
    font-family: 'Sora', 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #101d4f;
    cursor: pointer;
    transition: background .18s;
}

.sb-faq-question:hover {
    background: rgba(38,69,132,.04);
}

.sb-faq-question[aria-expanded="true"] {
    background: rgba(38,69,132,.06);
    color: #264584;
}

.sb-faq-icon {
    flex-shrink: 0;
    transition: transform .22s ease;
    color: #264584;
    opacity: .7;
}

.sb-faq-question[aria-expanded="true"] .sb-faq-icon {
    transform: rotate(180deg);
}

.sb-faq-answer {
    padding: 0 20px 18px 20px;
    background: rgba(38,69,132,.03);
}

.sb-faq-answer p {
    font-size: 0.875rem;
    color: #2a3a6a;
    line-height: 1.7;
    margin: 0 0 8px;
}

.sb-faq-answer p:last-child {
    margin-bottom: 0;
}

.sb-faq-answer ul {
    margin: 8px 0 0 16px;
    padding: 0;
}

.sb-faq-answer ul li {
    font-size: 0.85rem;
    color: #2a3a6a;
    line-height: 1.65;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .sb-factsheet-title {
        font-size: 1.25rem;
    }

    .sb-faq-question {
        font-size: 0.875rem;
        padding: 14px 16px;
    }

    .sb-faq-answer {
        padding: 0 16px 14px;
    }
}

/* ── FACT SHEET: Evolução do Federalismo Climático (v26) ──────────── */
/*    Uma folha de 630px: hero (cards + avaliação) + bloco de evolução.
      Todas as regras escopadas em .sb-infographic (nomes genéricos). */

.sb-infographic {
    --fs-navy: #182253;
    --fs-navy-2: #24386e;
    --fs-slate: #63779f;
    --fs-blue-panel: #e8f1fd;
    --fs-cyan: #56d7df;

    margin: 0;
    padding: 40px 16px 56px;
    background: #f5f7fb;
}

.sb-infographic .fact-sheet {
    width: 630px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(0, 0, 0, .14);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--fs-navy);
}

/* Desktop: amplia 140% (zoom afeta o layout, dispensa compensar margem) */
@media (min-width: 960px) {
    .sb-infographic .fact-sheet { zoom: 1.4; }
}

/* ── Topo ── */

.sb-infographic .hero {
    position: relative;
    padding: 125px 15px 3px;
    background: #fff;
    overflow: hidden;
}

.sb-infographic .brand {
    position: absolute;
    left: 23px;
    top: 12px;
    z-index: 4;
}

.sb-infographic .brand h1 {
    margin: 0;
    color: var(--fs-navy);
    font-size: 43px;
    line-height: 43px;
    letter-spacing: -1.8px;
    font-weight: 800;
}

.sb-infographic .brand h2 {
    margin: 2px 0 0;
    color: var(--fs-slate);
    font-size: 22px;
    line-height: 25px;
    font-weight: 800;
}

.sb-infographic .about-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 25px;
    margin-top: 12px;
    padding: 0 12px 0 14px;
    border-radius: 999px;
    background: #dcebfa;
    color: #1f3a78;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.sb-infographic .about-button span {
    color: var(--fs-cyan);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.sb-infographic .decorative-ring {
    position: absolute;
    width: 168px;
    height: 168px;
    right: -49px;
    top: -55px;
    border: 22px solid #e7eff9;
    border-radius: 50%;
}

.sb-infographic .decorative-ring span {
    position: absolute;
    inset: 23px;
    border: 3px solid #58d4dc;
    border-radius: 50%;
}

.sb-infographic .decorative-ring i {
    position: absolute;
    inset: 43px;
    background: #aec4df;
    border-radius: 50%;
}

/* ── Cards (medidas da referencia de 2026-09-30) ── */

.sb-infographic .info-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.sb-infographic .info-card {
    position: relative;
    min-height: 227px;
    padding: 65px 9px 12px 12px;
    border-radius: 10px;
    background: #edf2fa;
    box-shadow: 0 1px 3px rgba(24, 34, 83, .06);
}

.sb-infographic .info-card-blue {
    background: #dfe8f6;
    box-shadow: inset 0 0 0 1px #d2def0, 0 1px 3px rgba(24, 34, 83, .06);
}

.sb-infographic .icon-circle {
    position: absolute;
    left: 13px;
    top: 11px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dbe6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fs-navy);
}

.sb-infographic .icon-brazil { width: 42px; height: 42px; }
.sb-infographic .icon-svg { width: 27px; height: 27px; }

.sb-infographic .info-content h3 {
    margin: 0 0 7px;
    color: #1a2757;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sb-infographic .info-content p {
    margin: 0;
    color: #2b3b64;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    line-height: 16.5px;
    letter-spacing: -0.3px;
}

/* ── Avaliação ── */

.sb-infographic .evaluation-card {
    position: relative;
    margin: 13px 0 0;
    height: 183px;
    border-radius: 12px;
    background: #e7eff9;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

.sb-infographic .evaluation-copy {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 312px;
}

.sb-infographic .evaluation-copy h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: #1a2757;
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sb-infographic .evaluation-copy h3 span {
    display: inline-block;
    flex-shrink: 0;
    width: 3px;
    height: 20px;
    border-radius: 2px;
    background: var(--fs-cyan);
}

.sb-infographic .evaluation-copy p {
    margin: 0;
    color: #34487a;
    font-size: 11.5px;
    line-height: 19px;
    letter-spacing: -0.25px;
}

/* Meio donut em SVG (sobre.html): arcos vetoriais sem serrilhado.
   Fatias proporcionais a 32/18/18/30 em 180deg, raio 132/64, filetes brancos de 1.5px. */
.sb-infographic .mini-gauge {
    display: block;
    position: absolute;
    right: 15px;
    top: 10px;
    width: 264px;
    height: 132px;
    overflow: visible;
}

.sb-infographic .gauge-values {
    font-size: 15px;
    font-weight: 700;
}

.sb-infographic .legend {
    position: absolute;
    right: 15px;
    bottom: 14px;
    display: flex;
    gap: 26px;
    align-items: center;
}

.sb-infographic .legend span {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: #34487a;
    font-size: 9px;
}

.sb-infographic .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.sb-infographic .governance { background: #e3e7ee; }
.sb-infographic .plans { background: #5f729f; }
.sb-infographic .programs { background: #b3c9e8; }
.sb-infographic .funding { background: #17245a; }

/* ── Bloco de evolução ── */
/* Graficos em SVG inline (sobre.html): eixos, grade, barras e valores na mesma
   geometria do viewBox, escalando juntos em qualquer largura. Rotulos de categoria
   em HTML (quebram linha em PT/EN) alinhados as barras por porcentagem do viewBox. */

.sb-infographic .evolution {
    position: relative;
    padding: 20px 15px 18px;
    background: #161c4e;
    font-family: 'DM Sans', sans-serif;
    color: #fff;
}

.sb-infographic .evolution-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sb-infographic .chart-eyebrow {
    margin: 0 0 3px;
    color: #adc6e5;
    font-size: 7px;
    line-height: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sb-infographic .evolution-title {
    margin: 0;
    max-width: 420px;
    color: #fff;
    font-size: 21px;
    line-height: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sb-infographic .evolution-subtitle {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .75);
    font-size: 9.5px;
    line-height: 13px;
}

.sb-infographic .evolution-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid rgba(173, 198, 229, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.sb-infographic .evolution-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.sb-infographic .charts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.sb-infographic .chart-card {
    display: flex;
    flex-direction: column;
    padding: 13px 13px 11px;
    border: 1px solid rgba(173, 198, 229, .22);
    border-radius: 12px;
    background: #1d2560;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.sb-infographic .chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.sb-infographic .chart-card h3 {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.sb-infographic .chart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(173, 198, 229, .14);
    color: #adc6e5;
}

.sb-infographic .chart-icon svg { width: 13px; height: 13px; }

.sb-infographic .chart-year {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(173, 198, 229, .14);
    color: #fff;
    font-size: 8px;
    line-height: 12px;
    font-weight: 700;
}

.sb-infographic .chart-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    font-family: 'DM Sans', sans-serif;
}

.sb-infographic .chart-timeline .chart-svg {
    margin: auto 0;
}

.sb-infographic .right-charts {
    display: grid;
    gap: 12px;
}

.sb-infographic .chart-tick { font-size: 8px; fill: rgba(255, 255, 255, .65); }
.sb-infographic .chart-tick-sm { font-size: 7.5px; }
.sb-infographic .chart-axis-label { font-size: 8.5px; fill: rgba(255, 255, 255, .75); }
.sb-infographic .chart-bar-value { font-size: 9.5px; font-weight: 700; }
.sb-infographic .chart-bar-note { font-size: 8.5px; font-weight: 600; fill: rgba(255, 255, 255, .85); }

/* Rotulos: mesma faixa do plot no viewBox (x 24 a 266 de 270) */
.sb-infographic .chart-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px 1.48% 0 8.89%;
    color: rgba(255, 255, 255, .88);
    font-size: 9px;
    line-height: 11px;
    letter-spacing: -0.1px;
    text-align: center;
}

.sb-infographic .chart-note {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: 9.5px;
    line-height: 14px;
}

.sb-infographic .chart-note strong {
    color: #fff;
    font-weight: 700;
}

.sb-infographic .chart-note-box {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(173, 198, 229, .08);
}

.sb-infographic .chart-note-box i {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 2.5px;
    border-radius: 50%;
    background: #adc6e5;
}

/* ── Responsivo ── */

@media (max-width: 680px) {
    .sb-infographic { padding: 0; background: #fff; }
    .sb-infographic .fact-sheet { width: 100%; box-shadow: none; }
}

@media (max-width: 600px) {
    .sb-infographic .info-grid { gap: 7px; }
    .sb-infographic .info-card { padding-left: 11px; padding-right: 11px; }
    .sb-infographic .info-content h3 { font-size: 13px; }
    .sb-infographic .info-content p { font-size: 10px; line-height: 14px; }
    /* Avaliação empilhada: texto, gauge e legenda (lado a lado não cabe) */
    .sb-infographic .evaluation-card { height: auto; padding: 14px 13px 12px; }
    .sb-infographic .evaluation-copy { position: static; width: auto; }
    .sb-infographic .mini-gauge { position: relative; right: auto; top: auto; margin: 14px auto 0; }
    .sb-infographic .legend { position: static; margin-top: 10px; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
    .sb-infographic .legend span { font-size: 8px; }
    .sb-infographic .charts { grid-template-columns: minmax(0, 1fr); }
    /* Sem zoom no mobile: textos do bloco de evolucao um pouco maiores */
    .sb-infographic .evolution-head { flex-direction: column; align-items: flex-start; }
    .sb-infographic .chart-eyebrow { font-size: 9px; line-height: 12px; }
    .sb-infographic .evolution-subtitle { font-size: 12px; line-height: 16px; }
    .sb-infographic .evolution-badge { font-size: 10px; }
    .sb-infographic .chart-card h3 { font-size: 15px; line-height: 19px; }
    .sb-infographic .chart-year { font-size: 10px; }
    .sb-infographic .chart-labels { font-size: 11px; line-height: 13px; }
    .sb-infographic .chart-note { font-size: 12.5px; line-height: 18px; }
}

/* ── Animações de entrada (classe .fs-animate aplicada via JS em sobre.html) ── */
/* Só animam elementos sem transform estático (ver fix v25 da legenda antiga). */

@keyframes fs-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fs-from-left {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fs-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fs-animate .brand h1,
.fs-animate .brand h2,
.fs-animate .about-button,
.fs-animate .decorative-ring,
.fs-animate .info-card,
.fs-animate .evaluation-card,
.fs-animate .evolution-title,
.fs-animate .chart-card { opacity: 0; }

.fs-animate.fs-visible .decorative-ring           { animation: fs-fade      0.60s 0.05s ease-out both; }
.fs-animate.fs-visible .brand h1                  { animation: fs-up        0.45s 0.10s ease-out both; }
.fs-animate.fs-visible .brand h2                  { animation: fs-up        0.45s 0.20s ease-out both; }
.fs-animate.fs-visible .about-button              { animation: fs-up        0.40s 0.28s ease-out both; }
.fs-animate.fs-visible .info-card:nth-child(1)    { animation: fs-from-left 0.45s 0.36s ease-out both; }
.fs-animate.fs-visible .info-card:nth-child(2)    { animation: fs-from-left 0.45s 0.50s ease-out both; }
.fs-animate.fs-visible .info-card:nth-child(3)    { animation: fs-from-left 0.45s 0.64s ease-out both; }
.fs-animate.fs-visible .evaluation-card           { animation: fs-up        0.45s 0.78s ease-out both; }
.fs-animate.fs-visible .evolution-title           { animation: fs-up        0.45s 0.90s ease-out both; }
.fs-animate.fs-visible .chart-timeline            { animation: fs-up        0.45s 1.00s ease-out both; }
.fs-animate.fs-visible .small-chart:nth-child(1)  { animation: fs-up        0.45s 1.10s ease-out both; }
.fs-animate.fs-visible .small-chart:nth-child(2)  { animation: fs-up        0.45s 1.20s ease-out both; }

@media (prefers-reduced-motion: reduce) {
    .fs-animate *,
    .fs-animate.fs-visible * { animation: none !important; opacity: 1 !important; }
}
