/* Continuous editorial reading: all original content stays visible. */
.reading-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: 0.7em 0;
    margin: 1.5rem 0 3rem;
    border-top: 1px solid #dde5dc;
    border-bottom: 1px solid #dde5dc;
}
.reading-nav > span {
    font-size: max(11px, 0.62em);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 900;
    color: #637065;
}
.reading-nav a {
    padding: 0.5em 0.9em;
    color: #315b43 !important;
    border: 0 !important;
    border-radius: 20px;
    font-size: max(11px, 0.62em);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.reading-divider {
    margin: 3rem 0 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #dce5dc !important;
}
.reading-divider h2,
h2.reading-divider {
    font-size: clamp(1.7rem, 3vw, 2.8rem) !important;
    line-height: 1.15;
}
.global-reading {
    margin-bottom: 4rem;
}
.global-reading .report-card p {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}
.global-reading .report-card {
    min-height: 0 !important;
}
.global-reading canvas {
    max-width: 100%;
}
.global-reading .chart-wrap {
    position: relative;
    height: 300px;
}
.global-reading .section-block {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
.global-reading .section-head h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}
.blueprint-figure {
    width: 88%;
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
}
#biofossa .blueprint-figure,
#chuva .blueprint-figure {
    width: 82%;
    max-width: 1000px;
}
.blueprint-figure img {
    height: auto !important;
    width: 100%;
}
@media (max-width: 736px) {
    .global-reading {
        overflow-wrap: anywhere;
    }
    .global-reading [class*="grid"] {
        grid-template-columns: 1fr !important;
    }
    .blueprint-figure,
    #biofossa .blueprint-figure,
    #chuva .blueprint-figure {
        width: 100%;
    }
}

/* Cabeçalho de leitura compacto: texto de apoio legível em duas linhas,
   ligação ao hub dentro da barra fixa e sem linha extra por baixo. */
html body.reading-header-compact #main .bio-hero-followup {
    display: block;
    margin: -0.25rem 0 0.4rem;
    padding: 0.5rem 0 0;
}
html body.reading-header-compact #main .bio-hero-followup .hero-reading-bridge {
    display: block;
}
html body.reading-header-compact #main .bio-hero-followup .hero-reading-bridge p {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: #3f4a43 !important;
}
html body.reading-header-compact #main .reading-nav {
    margin: 1.5rem 0 1.5rem;
    gap: 0.5em;
    padding: 0.7em 0;
    font-size: 13.3333px;
}
html body.reading-header-compact #main .reading-nav .hub-back {
    display: inline-flex;
    flex: none;
    margin: 0 0.4em 0 0;
    padding: 0.5em 1.1em 0.5em 0.9em;
    border-radius: 0;
    border-right: 1px solid #dde5dc !important;
    color: #8f624a !important;
    -webkit-text-fill-color: #9b6a50 !important;
    background: transparent !important;
    font-size: max(11px, 0.62em);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
html body.reading-header-compact #main .reading-nav .hub-back:hover {
    color: #7a5038 !important;
    -webkit-text-fill-color: #7a5038 !important;
    background: transparent !important;
    transform: translateX(-3px);
}
html body.reading-header-compact #main .reading-divider {
    margin-top: 1rem !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}
@media (max-width: 736px) {
    html body.reading-header-compact #main .bio-hero-followup .hero-reading-bridge p {
        font-size: 0.92rem !important;
    }
}
@media screen and (min-width: 1101px) {
    /* Texto de apoio a meio caminho entre o banner e a barra fixa. */
    html body.reading-header-compact #main .bio-hero-followup {
        margin-top: -2.6rem;
        margin-bottom: 1.5rem;
    }
}

/* Ao saltar para "No mundo" ou "Portugal e ilhas", o título aterra abaixo da barra fixa. */
html body #panorama-global,
html body #leitura-local {
    scroll-margin-top: 5.5rem;
}

/* Ligações adicionais da barra: o início de cada bloco aterra abaixo da barra fixa. */
html body :is(#aplicacao-pratica, #atualidade, #catalogo, #instalacoes, #consultas, #casos, #castas, #praticas, #vigilancia, #noticias) {
    scroll-margin-top: 6rem;
}
