/* Private diagnostic prototype: shares institutional tokens, scoped to single aldeia. */
.dt-page { font-size: 1rem; --dt-offset: calc(var(--header-height) + 1.5rem); }
.dt-page p, .dt-page h2, .dt-page h3 { overflow-wrap: anywhere; }
.dt-page h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.2; }
.dt-page h3 { font-size: 1.25rem; color: #2d4a36; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; }
.dt-page strong { font-weight: 650; }
.dt-page .p26-hero h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); max-width: 21ch; margin-inline: auto; }
.dt-page .p26-hero p { font-size: 1.125rem; }
.dt-breadcrumb { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-block: 1.25rem; color: #535950; font-size: .875rem; }
.dt-breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; }
.dt-breadcrumb [aria-current] { color: #2d4a36; font-weight: 650; }
.dt-index { position: sticky; top: var(--dt-offset); z-index: 30; background: #f2f2eb; border-block: 1px solid #cbd1c7; }
.dt-index > div { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: thin; }
.dt-index a { display: inline-flex; flex: none; align-items: center; min-height: 3.5rem; padding-block: .5rem; font-size: .875rem; font-weight: 650; border-bottom: 3px solid transparent; }
.dt-index a[aria-current] { border-bottom-color: #236b2c; color: #236b2c; }
.dt-section { scroll-margin-top: calc(var(--dt-offset) + 3.5rem - var(--header-height)); }
.dt-section:focus { outline: none; }
.dt-opening { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 5rem; padding-block: 3.5rem 4.5rem; align-items: start; }
.dt-opening-copy h2 { max-width: 30ch; margin-bottom: 1.5rem; }
.dt-opening-copy > p { text-align: left; line-height: 1.8; margin-top: 1.15rem; }
.dt-opening-copy .dt-leadership { font-size: .875rem; color: #236b2c; margin-block: 0 1.5rem; }
.dt-community-photo { margin: 0; }
.dt-community-photo img { width: 100%; height: auto; display: block; }
.dt-community-photo figcaption { font-size: .8125rem; color: #535950; margin-top: .75rem; }
.dt-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 1.5rem; padding: 1.75rem 0 0; margin: 0; }
.dt-totals > div { display: flex; flex-direction: column; min-width: 0; }
.dt-totals dt { font-size: .875rem; color: #535950; order: 2; margin-top: .4rem; }
.dt-totals dd { margin: 0; color: #2d4a36; font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dt-page .dt-source-note { margin-top: 1rem; font-size: .8125rem; color: #535950; }
.dt-demography { background: white; padding-block: 4rem; }
.dt-data-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 5rem; align-items: start; }
.dt-data-intro > p { color: #535950; margin-top: 1.25rem; line-height: 1.75; }
.dt-reading-note { margin-top: 1.5rem; font-size: .875rem; }
.dt-reading-note summary, .dt-table summary { cursor: pointer; min-height: 44px; padding-block: .65rem; color: #2d4a36; font-weight: 650; }
.dt-reading-note p { padding-top: .75rem; line-height: 1.75; color: #535950; }
.dt-chart { margin: 0; }
.dt-chart figcaption { font-size: 1rem; font-weight: 700; color: #2d4a36; margin-bottom: 1rem; }
.dt-scale { display: flex; justify-content: space-between; margin: 0 3.5rem 1rem calc(10.75rem + 1rem); font-size: .75rem; font-variant-numeric: tabular-nums; color: #535950; }
.dt-bars { display: grid; gap: .85rem; margin: 0; }
.dt-bar-row { display: grid; grid-template-columns: 10.75rem minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 44px; }
.dt-bar-row dt { color: #2d4a36; font-size: .9375rem; line-height: 1.45; }
.dt-bar-row dd { display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem; gap: .85rem; align-items: center; margin: 0; }
.dt-track { height: 1.15rem; background: #edf0e9; display: block; overflow: hidden; }
.dt-fill { display: block; height: 100%; width: calc(var(--dt-value) / var(--dt-domain) * 100%); background: #2d4a36; transform-origin: left center; }
.dt-bar-row:hover .dt-fill { background: #236b2c; }
.dt-bar-value { font-weight: 700; font-size: 1rem; text-align: right; color: #2d4a36; font-variant-numeric: tabular-nums; }
.dt-table { margin-top: 1.75rem; border-top: 1px solid #cbd1c7; }
.dt-table-scroll { overflow-x: auto; max-width: 100%; }
.dt-table table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.dt-table caption { text-align: left; padding-block: 1rem; color: #535950; }
.dt-table :is(th, td) { padding: .75rem .5rem; text-align: left; border-bottom: 1px solid #dce1d7; overflow-wrap: anywhere; }
.dt-table thead th { color: #2d4a36; font-weight: 700; }
.dt-table tbody th { font-weight: 550; }
.dt-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.dt-territory { padding-block: 4rem 4.5rem; }
.dt-territory > h2 { margin-bottom: 2.5rem; }
.dt-narratives { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; }
.dt-narrative h3 { margin-bottom: 1rem; }
.dt-narrative p { line-height: 1.8; text-align: left; }
.dt-narrative.dt-conclusion { grid-column: 1/-1; background: #2d4a36; color: white; padding: 2.25rem 2.5rem; }
.dt-conclusion h3 { color: white; }
.dt-conclusion p { max-width: 80ch; }
.dt-highlights { padding-bottom: 4rem; }
.dt-highlights h2 { margin-bottom: 1.5rem; }
.dt-highlights ul { padding-left: 1.5rem; }
.dt-extra-values { display: flex; flex-wrap: wrap; gap: 2rem; }
.dt-extra-values dd { font-size: 1.5rem; margin: 0; color: #2d4a36; font-weight: 700; }
.dt-adjacent { border-top: 1px solid #cbd1c7; display: flex; flex-wrap: wrap; gap: 1.5rem; padding-block: 2rem 4rem; }
.dt-adjacent-card { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: .35rem 1rem; padding: 1.5rem; background: white; min-width: 0; flex: 1 1 19rem; }
.dt-adjacent-card > span { grid-column: 1; font-size: .875rem; color: #535950; }
.dt-adjacent-card strong { grid-column: 1; font-size: 1.375rem; color: #2d4a36; font-weight: 750; }
.dt-adjacent-card svg { grid-column: 2; grid-row: 1/4; align-self: center; }
.dt-adjacent .dt-back { flex-basis: 100%; justify-content: center; }
.dt-original-content { text-align: left; }
.dt-original-content :is(section, div.entry-content) { max-width: 100%; padding-inline: 0; }
.dt-original-content p { margin-block: 1rem; text-align: left; }
.dt-original-content img { max-width: 100%; height: auto; }
@media (max-width:1000px) {
    .dt-opening { gap: 2.5rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .dt-data-layout { display: block; }
    .dt-data-intro { max-width: 72ch; margin-bottom: 2.5rem; }
    .dt-narratives { gap: 2rem; }
}
@media (max-width:760px) {
    .dt-page .p26-hero h1 { font-size: clamp(2rem, 8.5vw, 2.65rem); }
    .dt-page .p26-hero p { font-size: 1rem; }
    .dt-breadcrumb { gap: .5rem; padding-block: .75rem; }
    .dt-index > div { gap: 1.35rem; }
    .dt-index a { min-height: 3.25rem; }
    .dt-opening { display: block; padding-block: 2.25rem 3rem; }
    .dt-opening-aside { margin-top: 2rem; }
    .dt-totals { padding-top: 1.5rem; }
    .dt-demography { padding-block: 2.75rem; }
    .dt-data-intro { margin-bottom: 2rem; }
    .dt-bar-row { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
    .dt-bars { gap: 1.25rem; }
    .dt-scale { margin-left: 0; }
    .dt-bar-row dd { grid-template-columns: minmax(0, 1fr) 3.5rem; }
    .dt-territory { padding-block: 3rem; }
    .dt-territory > h2 { margin-bottom: 2rem; }
    .dt-narratives { display: block; }
    .dt-narrative { margin-bottom: 2rem; }
    .dt-narrative.dt-conclusion { padding: 1.5rem; }
    .dt-adjacent { padding-block: 1.5rem 3rem; }
    .dt-adjacent-card { flex-basis: 100%; padding: 1.25rem; }
}
@media (prefers-reduced-motion:reduce) { .dt-fill { transform: none !important; } }
