/* Instituto ID — tema terracota, marfim, areia e grafite.
 * Substitui integralmente assets/css/style.css.
 * Estrutura, medidas e comportamento responsivo preservados.
 */
:root {
    --paper: #faf7f2;
    --ink: #292725;
    --muted: #6b625d;
    --accent: #995039;
    --soft: #f1e7df;
    --clay: #a85f46;
    --sand: #ede3d6;
    --line: #d8ccc3;
    --white: #fff;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

figure, p, h1, h2, h3, dl {
    margin: 0;
}

p + p {
    margin-top: 1.2em;
}

h1, h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.08;
}

h1 {
    font-size: clamp(3.2rem, 6.2vw, 5.8rem);
}

h2 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
}

h3 {
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.025em;
}

em {
    font-weight: 400;
    color: var(--clay);
}

::selection {
    background: #d9b5a5;
    color: #292725;
}

:focus-visible {
    outline: 3px solid var(--clay);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(var(--max), calc(100% - 96px));
    margin-inline: auto;
}

.section {
    padding-block: 96px;
}

.eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.6;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 670px;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 100%;
    background: var(--clay);
    margin-right: 9px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 16px 23px;
    min-height: 54px;
    border-radius: 100px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--white);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background .2s, transform .2s;
}

.button:hover {
    background: #884a35;
    transform: translateY(-2px);
}

.button span, .text-link span {
    font-size: 1.25rem;
    line-height: 1;
}

.button-outline {
    background: transparent;
    color: var(--accent);
}

.button-outline:hover {
    background: var(--soft);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: .85rem;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-block: 6px;
}

.text-link:hover {
    color: var(--accent);
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    padding: 12px 20px;
    z-index: 100;
    color: white;
    background: var(--accent);
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(250,247,242,.97);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 98px;
    gap: 35px;
}

.brand {
    width: 224px;
    flex-shrink: 0;
}

.brand img {
    filter: invert(1);
    mix-blend-mode: multiply;
}

#menu-principal {
    display: flex;
    align-items: center;
    gap: 25px;
}

#menu-principal a {
    position: relative;
    font-size: .77rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 10px 0;
}

#menu-principal a::after {
    content: '';
    height: 2px;
    width: 0;
    position: absolute;
    bottom: 3px;
    left: 0;
    background: var(--clay);
    transition: width .2s;
}

#menu-principal a:hover::after, #menu-principal a[aria-current]::after {
    width: 100%;
}

.menu-toggle {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 30px;
    gap: 20px;
    align-items: center;
}

.hero {
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    align-items: center;
    gap: 58px;
    padding-block: 75px 84px;
}

.hero-copy h1 {
    margin: 24px 0 28px;
}

.hero-copy .eyebrow {
    font-size: .66rem;
    letter-spacing: .075em;
}

.hero-copy .lead {
    max-width: 460px;
}

.hero-copy .actions {
    margin-top: 32px;
    gap: 22px;
}

.hero-copy .actions .text-link {
    font-size: .78rem;
}

.hero-signature {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 42px;
    font-size: .75rem;
    line-height: 1.5;
    color: var(--muted);
}

.line-doodle {
    font-size: 3rem;
    color: var(--accent);
    font-family: Georgia,serif;
    transform: rotate(-16deg);
}

.hero-art {
    position: relative;
    padding: 15px 0 30px;
}

.photo {
    position: relative;
}

.photo img {
    width: 100%;
    object-fit: cover;
}

.photo figcaption {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: .58rem;
    line-height: 1.4;
    letter-spacing: .02em;
    color: #fff;
    background: rgba(41,39,37,.80);
    padding: 5px 9px;
    border-radius: 20px;
}

.hero-photo {
    border-radius: 160px 22px 150px 22px;
    overflow: hidden;
}

.hero-photo img {
    height: 535px;
    object-position: 48% 50%;
}

.hero-photo figcaption {
    right: auto;
    left: 32px;
    bottom: 35px;
}

.floating-note {
    background: var(--soft);
    position: absolute;
    bottom: -5px;
    right: -15px;
    padding: 20px 30px 23px;
    border-radius: 8px 40px 8px 40px;
    font-size: .84rem;
    line-height: 1.6;
    transform: rotate(-3deg);
    box-shadow: 0 8px 32px #29272510;
}

.floating-note > span {
    display: block;
    color: var(--accent);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 7px;
}

.hero-orbit {
    position: absolute;
    height: 96px;
    width: 96px;
    right: -27px;
    top: -4px;
    border: 1px solid var(--clay);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.numbers {
    display: grid;
    grid-template-columns: .9fr .9fr 1.1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
    gap: 40px;
}

.numbers > div {
    display: flex;
    align-items: center;
    gap: 24px;
}

.numbers > div + div {
    border-left: 1px solid var(--line);
    padding-left: 40px;
}

.numbers strong {
    font-family: Georgia,serif;
    font-weight: 400;
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -.055em;
}

.numbers span {
    font-size: .76rem;
    line-height: 1.55;
    color: var(--muted);
}

.numbers > div:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.numbers .place {
    font-size: 2rem;
}

.about-home {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 100px;
}

.about-text p {
    color: var(--muted);
    max-width: 625px;
}

.about-text .large-copy {
    font-family: Georgia,serif;
    font-size: 1.7rem;
    color: var(--ink);
    line-height: 1.45;
    letter-spacing: -.02em;
}

.about-text .text-link {
    margin-top: 30px;
}

.projects-section {
    background: var(--sand);
    border-radius: 60px 60px 0 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    align-items: flex-end;
    margin-bottom: 42px;
}

.section-head > p {
    max-width: 370px;
    font-size: .91rem;
    color: var(--muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 52px 32px;
}

.project-card {
    min-width: 0;
}

.card-image-link {
    display: block;
    position: relative;
}

.project-card .photo {
    border-radius: 18px;
    overflow: hidden;
}

.project-card .photo img {
    aspect-ratio: 3/2;
    transition: transform .5s;
}

.card-image-link:hover img {
    transform: scale(1.025);
}

.round-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 100%;
    height: 45px;
    width: 45px;
    display: grid;
    place-items: center;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.5rem;
}

.card-content {
    padding: 24px 3px 0;
}

.card-content .eyebrow {
    margin-bottom: 10px;
    font-size: .65rem;
}

.card-content h3 {
    font-family: Georgia,serif;
    font-size: 2.1rem;
}

.card-content h3 a:hover {
    color: var(--accent);
}

.card-content > p:not(.eyebrow) {
    color: var(--muted);
    font-size: .91rem;
    margin-top: 12px;
    max-width: 480px;
}

.card-bottom {
    margin-top: 23px;
    padding-top: 13px;
    border-top: 1px solid #d2c3b8;
    display: flex;
    justify-content: space-between;
    font-size: .67rem;
    color: var(--muted);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 25px;
}

.small .photo img {
    aspect-ratio: 1.18;
}

.small .photo figcaption {
    font-size: .5rem;
    right: 7px;
    bottom: 9px;
    padding: 4px 7px;
}

.small .round-arrow {
    width: 33px;
    height: 33px;
    top: 12px;
    right: 12px;
    font-size: 1.2rem;
}

.small h3 {
    font-size: 1.6rem;
}

.small .card-content {
    padding-top: 19px;
}

.small .card-content .eyebrow {
    font-size: .58rem;
    letter-spacing: .07em;
}

.small .card-content > p:not(.eyebrow) {
    font-size: .8rem;
}

.small .card-bottom {
    gap: 8px;
    font-size: .6rem;
}

.transparency-band {
    background: var(--ink);
    color: var(--paper);
}

.transparency-inner {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 48px;
    padding-block: 66px;
    align-items: center;
}

.transparency-inner h2 {
    font-size: 2.7rem;
}

.transparency-inner p:not(.eyebrow) {
    font-size: .85rem;
    color: #ede3d6;
    margin-top: 20px;
    max-width: 450px;
}

.transparency-inner .button {
    background: var(--paper);
    color: var(--accent);
    border-color: var(--paper);
}

.seal {
    display: grid;
    place-items: center;
    width: 95px;
    height: 120px;
    border: 1px solid #d9b5a5;
    border-radius: 60px;
    font-size: 3rem;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-block: 96px;
}

.cta h2 {
    font-size: 3.4rem;
}

.site-footer {
    background: #292725;
    color: #faf7f2;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 85px;
    padding-bottom: 60px;
}

.footer-brand img {
    width: 250px;
    mix-blend-mode: screen;
}

.footer-brand p {
    font-family: Georgia,serif;
    font-size: 1.45rem;
    line-height: 1.4;
    margin-top: 20px;
    color: #ede3d6;
}

.site-footer h2 {
    font-family: Arial,sans-serif;
    font-size: .72rem;
    letter-spacing: .08em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #d9b5a5;
}

.site-footer nav, .footer-grid > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-grid a {
    font-size: .8rem;
    padding-block: 3px;
    overflow-wrap: anywhere;
}

.footer-grid a:hover {
    text-decoration: underline;
}

.site-footer address {
    margin-top: 22px;
    font-style: normal;
    font-size: .76rem;
    color: #e0d5cd;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    border-top: 1px solid #62564f;
    padding-block: 23px;
    font-size: .65rem;
    color: #e0d5cd;
}

.whatsapp {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 40px;
    background: #a85f46;
    color: white;
    border: 1px solid #faf7f2;
    box-shadow: 0 3px 14px #29272526;
    padding: 13px 18px;
    font-size: .73rem;
}

.whatsapp svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.whatsapp:hover {
    background: #292725;
}

.page-intro {
    padding-block: 70px 48px;
}

.page-intro h1 {
    font-size: clamp(3rem,5.6vw,5.2rem);
    max-width: 1040px;
}

.page-intro .lead {
    margin-top: 27px;
    max-width: 750px;
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-top: 35px;
}

.story-photo {
    overflow: hidden;
    border-radius: 140px 22px 22px 22px;
}

.story-photo img {
    height: 540px;
}

.prose h2 {
    margin-bottom: 25px;
}

.prose p {
    color: var(--muted);
}

.prose p + h2 {
    margin-top: 48px;
}

.prose .text-link {
    margin-top: 25px;
}

.wide {
    max-width: 820px;
}

.purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.purpose-grid article {
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.chapter {
    font-size: .8rem;
    color: var(--accent);
}

.purpose-grid h2 {
    margin: 20px 0;
    font-size: 2.7rem;
}

.purpose-grid p {
    max-width: 500px;
    color: var(--muted);
}

.values-section, .soft-section {
    background: var(--soft);
}

.values-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
}

.values-list article {
    padding-block: 22px;
    border-bottom: 1px solid #d9c8bd;
}

.values-list article:first-child {
    padding-top: 0;
}

.values-list h3 {
    margin-bottom: 8px;
}

.values-list p {
    color: #675a52;
    font-size: .94rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 50px;
    margin-top: 50px;
}

.areas-grid article {
    border-top: 1px solid #cbb9ab;
    padding-top: 25px;
}

.areas-grid article > span {
    font-family: Georgia,serif;
    color: var(--accent);
    font-size: 1.8rem;
}

.areas-grid h3 {
    margin: 15px 0;
}

.areas-grid p {
    color: var(--muted);
    font-size: .94rem;
}

.project-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 16px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tabs button {
    color: var(--ink);
    background: transparent;
    border: 1px solid #c4afa1;
    border-radius: 35px;
    padding: 11px 18px;
    font-size: .8rem;
}

.filter-tabs button[aria-pressed="true"] {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.filter-tabs button span {
    margin-left: 9px;
    opacity: .8;
}

.search-label input {
    width: 240px;
    border: 1px solid #c4afa1;
    background: transparent;
    border-radius: 30px;
    padding: 12px 20px;
    color: var(--ink);
    font-size: .8rem;
}

.result-count {
    font-size: .75rem;
    color: var(--muted);
    margin: 0 0 27px;
}

.empty-message {
    padding: 50px 0;
}

.catalog {
    padding-top: 22px;
}

.section-note {
    color: var(--muted);
    font-size: .8rem;
    margin-top: 30px;
    max-width: 870px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    font-size: .73rem;
    padding-top: 33px;
    color: var(--muted);
}

.breadcrumb a {
    text-decoration: underline;
}

.breadcrumb + .page-intro {
    padding-top: 30px;
}

.project-cover .photo {
    overflow: hidden;
    border-radius: 25px 120px 25px 25px;
    background: var(--sand);
}

.project-cover .photo img {
    max-height: 560px;
    object-fit: contain;
}

.project-detail {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 100px;
    align-items: start;
}

.project-facts {
    background: var(--sand);
    padding: 35px;
    border-radius: 12px 50px 12px 12px;
}

.project-facts dl > div {
    padding: 14px 0;
    border-bottom: 1px solid #d8cbbf;
}

dt {
    font-size: .7rem;
    color: var(--muted);
}

dd {
    margin: 5px 0 0;
    font-size: .94rem;
    overflow-wrap: anywhere;
}

.project-facts .button {
    margin-top: 27px;
    width: 100%;
}

.funding-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    border-top: 1px solid var(--line);
    gap: 0 55px;
}

.funding-grid > div {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.funding-grid dd {
    font-size: 1.15rem;
}

.table-wrap {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    font-size: .86rem;
}

caption {
    text-align: left;
    font-weight: 600;
    margin-bottom: 14px;
}

th, td {
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    background: var(--soft);
    font-weight: 600;
    font-size: .76rem;
}

td .text-link {
    white-space: nowrap;
    padding: 0;
}

.gallery-section {
    padding-top: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr));
    gap: 24px;
}

.gallery-link {
    display: block;
    background: var(--sand);
    border-radius: 16px;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: 380px;
    object-fit: contain;
}

.gallery-caption {
    font-size: .76rem;
    padding: 13px 17px;
    color: var(--muted);
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-block: 35px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.project-navigation a {
    flex: 1;
    font-size: .76rem;
}

.project-navigation a:nth-child(2) {
    text-align: center;
}

.project-navigation a:last-child {
    text-align: right;
}

.project-navigation a span {
    display: block;
    color: var(--muted);
}

.project-navigation a strong {
    display: block;
    font-size: 1rem;
    margin-top: 7px;
    font-weight: 500;
}

.project-navigation a:hover strong {
    color: var(--accent);
}

.lightbox {
    border: 0;
    padding: 58px 20px 18px;
    background: #292725;
    color: white;
    max-width: 96vw;
    width: 1200px;
    max-height: 95vh;
    border-radius: 16px;
}

.lightbox::backdrop {
    background: #211d1add;
}

.lightbox img {
    max-height: 75vh;
    width: 100%;
    object-fit: contain;
}

.lightbox p {
    font-size: .8rem;
    margin-top: 12px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: 1px solid #9c8172;
    background: transparent;
    color: white;
    border-radius: 20px;
    padding: 7px 16px;
}

.transparency-data {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 75px;
    padding-top: 35px;
}

.transparency-data h2 {
    font-size: 2.6rem;
}

.identity-list > div {
    padding-block: 15px;
    border-bottom: 1px solid var(--line);
}

.agreement {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 45px;
    align-items: center;
    border-top: 1px solid #d2bdae;
    padding: 32px 0;
}

.agreement:last-child {
    border-bottom: 1px solid #d2bdae;
}

.agreement .eyebrow {
    display: block;
    margin-bottom: 10px;
}

.agreement h3 {
    font-family: Georgia,serif;
    font-size: 2rem;
}

.agreement p {
    color: var(--muted);
    font-size: .8rem;
    margin-top: 10px;
}

.agreement > strong {
    font-family: Georgia,serif;
    font-size: 1.9rem;
    font-weight: 400;
}

.agreement > div:last-child {
    display: flex;
    gap: 20px;
}

[data-documents] {
    margin: 25px 0;
}

[data-documents] > p {
    max-width: 700px;
    color: var(--muted);
}

.document-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.document-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.document-list span {
    display: block;
    font-size: .78rem;
    color: var(--muted);
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.account-grid article {
    border: 1px solid var(--line);
    padding: 35px;
    border-radius: 15px;
}

.account-grid h2 {
    font-size: 2.4rem;
}

.account-grid article > p:not(.eyebrow) {
    margin-block: 16px 25px;
    font-size: .8rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding-top: 35px;
    align-items: start;
}

.contact-email {
    display: block;
    font-family: Georgia,serif;
    font-size: clamp(1.4rem,2.3vw,2rem);
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.contact-phone {
    display: block;
    font-size: 1.3rem;
    margin: 15px 0 28px;
}

.address-block {
    margin-top: 65px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.address-block h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.address-block address {
    font-style: normal;
    color: var(--muted);
    margin-bottom: 20px;
}

.contact-form-box {
    background: var(--sand);
    padding: 36px;
    border-radius: 20px 65px 20px 20px;
}

.contact-form-box h2 {
    font-size: 2.5rem;
}

.contact-form-box > p {
    font-size: .88rem;
    margin: 15px 0 28px;
    color: var(--muted);
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.field input, .field select, .field textarea {
    display: block;
    width: 100%;
    background: var(--paper);
    border: 1px solid #b9a598;
    padding: 13px 15px;
    border-radius: 8px;
    color: var(--ink);
    font-size: .9rem;
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.form-note {
    color: var(--muted);
    font-size: .73rem;
    margin: 20px 0;
}

.form-note a {
    text-decoration: underline;
}

.form-status {
    font-size: .8rem;
    margin-top: 18px;
}

.error-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 100px;
}

@media (min-width: 1550px) {
    .hero {
        padding-top: 95px;
        padding-bottom: 100px;
    }
}

@media (max-width: 1100px) {
    .wrap {
        width: calc(100% - 60px);
    }
    .header-inner {
        gap: 20px;
    }
    .brand {
        width: 185px;
    }
    #menu-principal {
        gap: 17px;
    }
    #menu-principal a {
        font-size: .7rem;
    }
    .hero {
        gap: 35px;
    }
    .hero-photo img {
        height: 500px;
    }
    .hero-copy h1 {
        font-size: 4.6rem;
    }
    .hero-copy .actions {
        gap: 17px;
    }
    .support-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 35px;
    }
    .small .photo img {
        aspect-ratio: 3/2;
    }
    .small .photo figcaption {
        font-size: .58rem;
    }
    .about-home, .story-layout, .project-detail, .contact-layout {
        gap: 50px;
    }
    .numbers {
        gap: 20px;
    }
    .numbers > div + div {
        padding-left: 25px;
    }
    .numbers > div {
        gap: 14px;
    }
    .transparency-inner {
        grid-template-columns: 1fr auto;
    }
    .seal {
        display: none;
    }
    .footer-grid {
        gap: 45px;
    }
    .agreement {
        gap: 20px;
    }
    .agreement > div:last-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 83px;
        flex-wrap: wrap;
        padding-block: 12px;
    }
    .brand {
        width: 185px;
    }
    .menu-toggle:not([hidden]) {
        display: flex;
    }
    #menu-principal {
        width: 100%;
        flex-wrap: wrap;
        padding-bottom: 10px;
    }
    #menu-principal.enhanced {
        display: none;
        position: fixed;
        inset: 83px 0 0;
        width: 100%;
        background: var(--paper);
        padding: 30px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
    }
    #menu-principal.enhanced.is-open {
        display: flex;
    }
    #menu-principal.enhanced a {
        padding: 17px 5px;
        border-bottom: 1px solid var(--line);
        font-size: 1.25rem;
    }
    .hero-copy h1 {
        font-size: 4rem;
    }
    .hero-photo img {
        height: 470px;
    }
    .hero {
        gap: 30px;
        padding-block: 60px;
    }
    .hero-signature {
        margin-top: 25px;
    }
    .hero-copy .eyebrow {
        font-size: .58rem;
    }
    .floating-note {
        padding: 15px 20px;
        right: -8px;
        font-size: .75rem;
    }
    .numbers strong {
        font-size: 2.8rem;
    }
    .numbers .place {
        font-size: 1.5rem;
    }
    .numbers span {
        font-size: .65rem;
    }
    .about-home {
        gap: 45px;
    }
    .areas-grid {
        gap: 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1/-1;
    }
    .section {
        padding-block: 70px;
    }
    .story-layout {
        gap: 35px;
    }
    .story-photo img {
        height: 500px;
    }
    .project-detail {
        gap: 35px;
    }
    .project-facts {
        padding: 25px;
    }
    .contact-layout {
        gap: 35px;
    }
    .contact-form-box {
        padding: 28px;
    }
    .project-tools {
        align-items: flex-start;
        flex-direction: column;
    }
    .search-label, .search-label input {
        width: 100%;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 92px;
    }
    .wrap {
        width: calc(100% - 40px);
    }
    .section {
        padding-block: 58px;
    }
    h1 {
        font-size: 3.6rem;
    }
    h2 {
        font-size: 2.6rem;
    }
    .eyebrow {
        font-size: .63rem;
        margin-bottom: 15px;
    }
    .lead {
        font-size: 1rem;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 45px 55px;
    }
    .hero-copy h1 {
        font-size: clamp(3.5rem,13vw,5rem);
    }
    .hero-copy .eyebrow {
        font-size: .6rem;
    }
    .hero-copy .lead {
        max-width: 100%;
    }
    .hero-copy .actions {
        margin-top: 26px;
    }
    .hero-copy .actions .button {
        font-size: .8rem;
    }
    .hero-signature {
        margin-top: 25px;
    }
    .hero-art {
        margin-right: 8px;
    }
    .hero-photo {
        border-radius: 100px 18px 100px 18px;
    }
    .hero-photo img {
        height: 390px;
    }
    .hero-orbit {
        right: -15px;
    }
    .floating-note {
        bottom: -5px;
    }
    .numbers {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        padding: 25px 0;
    }
    .numbers > div + div {
        padding-left: 20px;
    }
    .numbers > div:last-child {
        grid-column: 1/-1;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 20px 0 0;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    .numbers strong {
        font-size: 3rem;
    }
    .numbers .place {
        font-size: 1.6rem;
    }
    .numbers span {
        font-size: .64rem;
    }
    .about-home, .story-layout, .purpose-grid, .values-layout, .project-detail, .transparency-data, .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-text .large-copy {
        font-size: 1.4rem;
    }
    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    .section-head > p {
        max-width: 100%;
    }
    .projects-section {
        border-radius: 32px 32px 0 0;
    }
    .project-grid, .support-grid, .account-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
    .card-content h3, .small h3 {
        font-size: 2rem;
    }
    .small .card-content .eyebrow {
        font-size: .65rem;
    }
    .small .card-content > p:not(.eyebrow) {
        font-size: .91rem;
    }
    .small .card-bottom {
        font-size: .67rem;
    }
    .transparency-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 45px;
    }
    .transparency-inner h2 {
        font-size: 2.4rem;
    }
    .transparency-inner .button {
        justify-self: start;
    }
    .cta {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 60px;
        gap: 30px;
    }
    .cta h2 {
        font-size: 2.7rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-bottom: 35px;
    }
    .footer-brand {
        grid-column: auto;
    }
    .footer-bottom {
        flex-wrap: wrap;
        gap: 10px 25px;
        padding-bottom: 80px;
    }
    .footer-bottom > span {
        flex-basis: 100%;
    }
    .whatsapp {
        bottom: 16px;
        right: 16px;
        padding: 13px;
    }
    .whatsapp span {
        display: none;
    }
    .page-intro {
        padding-top: 45px;
        padding-bottom: 35px;
    }
    .page-intro h1 {
        font-size: clamp(2.65rem,10.8vw,4rem);
        overflow-wrap: break-word;
    }
    .story-layout {
        padding-top: 15px;
    }
    .story-photo img {
        height: 370px;
    }
    .story-photo {
        border-radius: 90px 18px 18px 18px;
    }
    .purpose-grid {
        gap: 38px;
    }
    .purpose-grid h2 {
        font-size: 2.4rem;
    }
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    .filter-tabs {
        gap: 7px;
    }
    .filter-tabs button {
        padding: 9px 11px;
        font-size: .72rem;
    }
    .filter-tabs button span {
        margin-left: 5px;
    }
    .project-cover .photo {
        border-radius: 15px 55px 15px 15px;
    }
    .project-cover .photo img {
        max-height: 430px;
    }
    .project-cover figcaption {
        font-size: .5rem;
        bottom: 8px;
        right: 8px;
    }
    .funding-grid {
        grid-template-columns: 1fr;
    }
    th, td {
        padding: 13px 12px;
        min-width: 95px;
    }
    table {
        font-size: .76rem;
    }
    .gallery img {
        height: 300px;
    }
    .project-navigation {
        gap: 18px;
        flex-wrap: wrap;
    }
    .project-navigation a:nth-child(2) {
        order: 3;
        flex-basis: 100%;
        margin-top: 10px;
    }
    .project-navigation a strong {
        font-size: .86rem;
    }
    .agreement {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .agreement > div:last-child {
        flex-direction: row;
        gap: 25px;
    }
    .agreement > strong {
        font-size: 1.7rem;
    }
    .transparency-data h2 {
        font-size: 2.2rem;
    }
    .account-grid article {
        padding: 25px;
    }
    .account-grid h2 {
        font-size: 2rem;
    }
    .address-block {
        margin-top: 35px;
    }
    .contact-email {
        font-size: 1.7rem;
    }
    .contact-form-box {
        padding: 25px;
        border-radius: 18px 45px 18px 18px;
    }
    .contact-form-box h2 {
        font-size: 2.3rem;
    }
    .error-actions {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .site-header, .site-footer, .whatsapp, .project-tools, .cta, .lightbox, .actions {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .wrap {
        width: 100%;
    }
    .section {
        padding-block: 25px;
    }
    .project-detail {
        display: block;
    }
    .project-facts {
        margin-top: 25px;
    }
    a {
        text-decoration: underline;
    }
    img {
        max-height: 350px !important;
        object-fit: contain !important;
    }
}

/* Consulta de convênios e relatórios — revisão editorial. */
.convenio-record {
    border-top: 1px solid var(--line);
    scroll-margin-top: 120px;
}
.convenio-record:last-of-type {
    border-bottom: 1px solid var(--line);
}
.convenio-record summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 28px 0;
    cursor: pointer;
    list-style: none;
}
.convenio-record summary::-webkit-details-marker {
    display: none;
}
.convenio-record summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent);
}
.convenio-record[open] summary::after {
    content: '−';
}
.convenio-record summary > span:first-child {
    flex: 1;
}
.convenio-record summary small {
    display: block;
    color: var(--muted);
    font-size: .74rem;
    margin-bottom: 8px;
}
.convenio-record summary strong {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.2;
}
.record-value {
    font-size: 1.1rem;
    white-space: nowrap;
}
.record-body {
    padding-bottom: 35px;
}
.record-body .funding-grid dd {
    font-size: .96rem;
}
.related-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-top: 1px solid var(--line);
    padding-block: 45px 65px;
}
.related-route h2 {
    font-size: 2.4rem;
}
.reports-section {
    padding-top: 20px;
}
.report-project {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    border-top: 1px solid var(--line);
    padding: 36px 0;
    scroll-margin-top: 120px;
}
.report-project:last-of-type {
    border-bottom: 1px solid var(--line);
}
.report-title h3 {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.report-project [data-documents] {
    margin-top: 0;
}
.project-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-block: 38px 58px;
}
.project-contact p {
    font-size: 1rem;
    color: var(--muted);
}
@media (max-width: 680px) {
    .convenio-record summary {
        gap: 15px;
        flex-wrap: wrap;
    }
    .convenio-record summary > span:first-child {
        flex-basis: calc(100% - 45px);
    }
    .convenio-record summary strong {
        font-size: 1.65rem;
    }
    .record-value {
        order: 3;
        flex-basis: 100%;
    }
    .report-project {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .related-route,
    .project-contact {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media print {
    .convenio-record .record-body {
        display: block;
    }
}
