@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --blue: #063daa;
    --blue-deep: #032669;
    --blue-soft: #eaf0ff;
    --blue-pale: #f5f7ff;
    --pink: #f5577e;
    --pink-deep: #d93261;
    --pink-soft: #fff0f4;
    --ink: #10203a;
    --ink-soft: #4c5d79;
    --line: #dce3f0;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(6, 61, 170, 0.12);
    --radius-small: 14px;
    --radius: 24px;
    --radius-large: 38px;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.25rem; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-soft { background: var(--blue-pale); }
.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; }

.skip-link {
    position: fixed;
    left: 18px;
    top: -80px;
    z-index: 1000;
    padding: 12px 18px;
    color: var(--white);
    background: var(--blue-deep);
    border-radius: 8px;
}

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

:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

.demo-banner {
    padding: 8px 18px;
    color: var(--white);
    background: var(--pink-deep);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 34px rgba(16, 32, 58, 0.07); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 250px; }
.main-nav { display: flex; align-items: center; gap: 30px; font-weight: 700; }
.main-nav > a:not(.button) { position: relative; padding: 10px 0; }
.main-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 3px; background: var(--pink); transition: right 180ms ease; }
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after { right: 0; }
.menu-button { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 0; border-radius: 12px; background: var(--blue-soft); }
.menu-button > span:not(.sr-only) { width: 21px; height: 2px; background: var(--blue); }

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    color: var(--white);
    background: var(--blue);
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); background: var(--blue-deep); border-color: var(--blue-deep); }
.button:disabled { opacity: 0.52; cursor: not-allowed; transform: none; }
.button-small { min-height: 42px; padding: 9px 18px; font-size: 0.9rem; }
.button-outline { color: var(--blue); background: transparent; }
.button-outline:hover { color: var(--white); }
.button-light { color: var(--blue); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: transparent; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.text-link { color: var(--blue); font-weight: 900; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.text-link:hover { color: var(--blue-deep); }

.eyebrow {
    margin-bottom: 15px;
    color: var(--pink-deep);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.lead { max-width: 760px; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.35rem); }

.home-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 112px);
    overflow: hidden;
    color: var(--white);
    background: var(--blue-deep);
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-media { z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(2, 18, 67, 0.96) 0%, rgba(2, 27, 91, 0.88) 34%, rgba(3, 40, 125, 0.46) 58%, rgba(3, 35, 105, 0.10) 84%),
        linear-gradient(0deg, rgba(2, 18, 67, 0.92) 0%, rgba(2, 18, 67, 0.10) 37%, rgba(2, 18, 67, 0.10) 100%);
}
.hero-grid { position: relative; min-height: 690px; display: grid; grid-template-columns: minmax(0, 760px) 1fr; align-items: center; gap: 70px; padding-block: clamp(78px, 8vw, 115px) 70px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { margin-bottom: 20px; color: #ff9ab2; }
.hero-copy h1 { max-width: 780px; margin-bottom: 28px; color: var(--white); font-size: clamp(3.4rem, 5.5vw, 6.25rem); line-height: 0.91; letter-spacing: -0.065em; text-shadow: 0 8px 34px rgba(0,16,64,0.22); }
.hero-copy h1 span, .hero-copy h1 strong { display: block; }
.hero-copy h1 span:nth-child(2) { color: rgba(255,255,255,0.74); }
.hero-copy h1 strong { max-width: 760px; color: #ff789a; font-size: 0.84em; line-height: 1.02; }
.hero-copy .lead { max-width: 620px; color: rgba(255,255,255,0.82); font-size: clamp(1rem, 1.4vw, 1.24rem); line-height: 1.62; }
.home-hero .button { color: var(--white); background: var(--pink); border-color: var(--pink); box-shadow: 0 12px 34px rgba(0,16,64,0.28); }
.home-hero .button:hover { color: var(--blue-deep); background: var(--white); border-color: var(--white); }
.home-hero .button-outline { color: var(--white); background: rgba(2,18,67,0.14); border-color: rgba(255,255,255,0.58); box-shadow: none; backdrop-filter: blur(8px); }
.home-hero .button-outline:hover { color: var(--blue-deep); background: var(--white); border-color: var(--white); }
.hero-foundations { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.24); background: rgba(2,18,67,0.36); backdrop-filter: blur(12px); }
.hero-foundations::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 0; bottom: 0; z-index: -1; background: rgba(2,18,67,0.36); }
.hero-foundations > div { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 25px 28px 28px 0; }
.hero-foundations > div + div { padding-left: 30px; border-left: 1px solid rgba(255,255,255,0.2); }
.hero-foundations > div > span { color: var(--pink); font-size: 0.72rem; font-weight: 900; }
.hero-foundations p, .hero-foundations strong, .hero-foundations small { display: block; margin: 0; }
.hero-foundations strong { margin-bottom: 5px; font-size: 0.9rem; }
.hero-foundations small { color: rgba(255,255,255,0.62); font-size: 0.76rem; line-height: 1.35; }

.metrics-section { padding: 94px 0; color: var(--white); background: var(--blue-deep); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 54px; }
.section-heading h2 { max-width: 760px; margin-bottom: 0; color: var(--blue-deep); }
.section-heading > p { max-width: 400px; margin-bottom: 4px; color: var(--ink-soft); }
.section-heading-light h2, .section-heading-light > p { color: var(--white); }
.section-heading-light .eyebrow { color: var(--pink); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.25); }
.metrics-grid > div { min-height: 190px; padding: 38px 28px 10px 0; border-right: 1px solid rgba(255,255,255,0.25); }
.metrics-grid > div:not(:first-child) { padding-left: 28px; }
.metrics-grid > div:last-child { border-right: 0; }
.metrics-grid strong { display: block; margin-bottom: 18px; color: var(--pink); font-size: clamp(2.5rem, 4vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; }
.metrics-grid .metric-duration { font-size: clamp(2.35rem, 3.55vw, 4rem); white-space: nowrap; }
.metrics-grid span { display: block; max-width: 220px; font-weight: 700; line-height: 1.45; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { min-height: 290px; padding: 32px; color: var(--ink); background: var(--blue-pale); border: 1px solid var(--line); border-radius: var(--radius); transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.service-number { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 62px; color: var(--white); background: var(--pink); border-radius: 50%; font-size: 0.82rem; font-weight: 900; transition: color 180ms ease, background 180ms ease; }
.service-card h3 { margin-bottom: 14px; font-size: 1.45rem; }
.service-card p { margin: 0; color: inherit; opacity: 0.8; }
@media (hover: hover) {
    .service-card:hover { color: var(--white); background: var(--blue); border-color: var(--blue); box-shadow: 0 22px 46px rgba(6,61,170,0.2); transform: translateY(-5px); }
    .service-card:hover .service-number { color: var(--blue); background: var(--white); }
}

.nuclei-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nucleus-card { display: flex; min-height: 580px; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 42px rgba(16, 32, 58, 0.05); }
.nucleus-card-content { display: flex; flex: 1; flex-direction: column; padding: 26px 28px 28px; }
.nucleus-card h2 { margin: 28px 0 8px; color: var(--blue-deep); font-size: 1.55rem; }
.nucleus-card-content > p { color: var(--ink-soft); }
.nucleus-card .territory { color: var(--pink-deep); font-weight: 700; }
.nucleus-image { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--blue-pale); }
.nucleus-image img { width: 100%; height: 100%; object-fit: cover; }
.nucleus-image figcaption { position: absolute; inset: auto 10px 10px; padding: 7px 10px; color: var(--white); background: rgba(2,25,86,0.76); border-radius: 7px; font-size: 0.68rem; opacity: 0.22; transition: opacity 180ms ease; }
.nucleus-image:hover figcaption, .nucleus-image:focus-within figcaption { opacity: 1; }
.nucleus-card-image { height: 190px; border-bottom: 1px solid var(--line); }
.nucleus-image-placeholder { width: 100%; height: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--blue); background: radial-gradient(circle at 75% 20%, rgba(245,87,126,0.18), transparent 24%), linear-gradient(145deg, #eaf0ff, #f8faff); }
.nucleus-image-placeholder span { margin-bottom: 4px; color: var(--pink); font-size: 3rem; font-weight: 400; line-height: 1; }
.nucleus-image-placeholder strong { font-size: 0.88rem; }
.nucleus-image-placeholder small { margin-top: 4px; color: var(--ink-soft); font-size: 0.7rem; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 0.8rem; }
.status { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; color: var(--blue-deep); background: var(--blue-soft); font-size: 0.72rem; font-weight: 900; }
.status-ativo { color: #075e4e; background: #ddf7ef; }
.status-implantacao { color: #8c2f4a; background: var(--pink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 26px; padding: 0; list-style: none; }
.tag-list li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 0.76rem; }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.card-footer span { max-width: 55%; color: var(--ink-soft); }
.card-footer a { color: var(--blue); font-weight: 900; }

.method-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 90px; }
.method-grid h2 { color: var(--blue-deep); }
.method-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.method-list li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.method-list li > span { color: var(--pink); font-size: 2rem; font-weight: 900; }
.method-list h3 { margin-bottom: 8px; }
.method-list p { margin: 0; color: var(--ink-soft); }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.post-visual { display: flex; min-height: 220px; align-items: center; justify-content: center; overflow: hidden; color: var(--pink); background: linear-gradient(145deg, var(--blue) 0 70%, var(--blue-deep) 70%); font-size: 6rem; font-weight: 400; }
.post-visual img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .post-visual img { transform: scale(1.035); }
.post-content { padding: 28px; }
.post-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; color: var(--ink-soft); font-size: 0.78rem; font-weight: 700; }
.post-meta span { color: var(--pink-deep); text-transform: uppercase; letter-spacing: 0.08em; }
.post-card h2 { margin-bottom: 14px; color: var(--blue-deep); font-size: 1.45rem; }
.post-card p { color: var(--ink-soft); }

.cta-section { padding: 86px 0; color: var(--white); background: var(--pink); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { max-width: 760px; margin: 0; }
.cta-inner .eyebrow { color: var(--blue-deep); }

.site-footer { padding: 82px 0 24px; color: var(--white); background: var(--blue-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.6fr 0.9fr; gap: 54px; }
.footer-brand img { width: 270px; margin-bottom: 25px; }
.footer-brand p { max-width: 370px; color: rgba(255,255,255,0.72); }
.site-footer h2 { margin-bottom: 22px; color: var(--pink); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer a, .site-footer div > p { display: block; margin-bottom: 9px; color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--white); }
.footer-note { font-size: 0.85rem; }
.footer-bottom { display: flex; align-items: center; justify-content: flex-start; gap: 24px; margin-top: 70px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.8rem; }
.footer-bottom p { margin: 0; }

.page-hero {
    position: relative;
    isolation: isolate;
    min-height: 560px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 86% 14%, rgba(245,87,126,0.24), transparent 28%),
        linear-gradient(122deg, #021a4e 0%, var(--blue-deep) 46%, var(--blue) 100%);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0.16; background-image: linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent 8%, #000 52%, #000 100%); }
.page-hero::after { content: "+"; position: absolute; left: max(20px, calc((100vw - var(--container)) / 2)); bottom: -0.16em; z-index: -1; color: rgba(245,87,126,0.12); font-size: 17rem; font-weight: 400; line-height: 1; }
.page-hero-glow { position: absolute; width: 600px; height: 600px; right: -190px; bottom: -430px; z-index: -1; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,0.025), 0 0 0 180px rgba(255,255,255,0.018); }
.page-hero-inner { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.6fr); align-items: center; gap: clamp(54px, 8vw, 110px); padding-block: 76px; }
.page-hero-copy { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #ff9ab2; }
.page-hero h1 { max-width: 840px; margin-bottom: 26px; color: var(--white); font-size: clamp(3rem, 5.4vw, 5.4rem); line-height: 0.96; letter-spacing: -0.055em; }
.page-hero h1 span { display: block; }
.page-hero--nucleos h1, .page-hero--projeto h1 { font-size: clamp(3rem, 4.8vw, 4.95rem); }
.page-hero--nucleos h1 span + span, .page-hero--projeto h1 span + span { margin-top: 0.1em; }
.page-hero .lead { max-width: 700px; margin-bottom: 0; color: rgba(255,255,255,0.76); font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.65; }
.page-hero-visual { min-width: 0; }
.page-hero-mark { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; color: var(--pink); font-size: 4rem; line-height: 0.85; }
.page-hero-mark span:nth-child(even) { color: var(--white); }
.project-nav { position: sticky; top: 78px; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.project-nav .container { display: flex; gap: 30px; overflow-x: auto; padding-block: 16px; scrollbar-width: none; }
.project-nav .container::-webkit-scrollbar { display: none; }
.project-nav a { flex: 0 0 auto; color: var(--blue-deep); font-size: 0.78rem; font-weight: 900; }
.project-nav a:hover { color: var(--pink-deep); }
.project-intro { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(55px, 9vw, 130px); }
.project-intro h2 { color: var(--blue-deep); font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.project-intro-copy { padding-top: 8px; }
.project-intro-copy > p:not(.lead) { color: var(--ink-soft); }
.project-principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-principles span { display: grid; gap: 7px; padding: 22px 16px; color: var(--blue-deep); font-weight: 900; }
.project-principles span + span { border-left: 1px solid var(--line); }
.project-principles b { color: var(--pink-deep); font-size: 0.72rem; }

.territory-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.territory-ring { position: absolute; border: 1px solid rgba(255,255,255,0.22); border-radius: 50%; }
.territory-ring-one { width: 320px; height: 320px; }
.territory-ring-two { width: 230px; height: 230px; border-color: rgba(245,87,126,0.52); }
.territory-pin { position: absolute; width: 17px; height: 17px; background: var(--pink); border: 4px solid var(--white); border-radius: 50% 50% 50% 0; box-shadow: 0 8px 20px rgba(0,0,0,0.2); transform: rotate(-45deg); }
.territory-pin-one { left: 8%; top: 28%; }
.territory-pin-two { right: 8%; top: 20%; }
.territory-pin-three { right: 14%; bottom: 19%; }
.territory-card { position: relative; width: min(100%, 280px); padding: 28px; color: var(--blue-deep); background: rgba(255,255,255,0.96); border-radius: 24px; box-shadow: 0 28px 70px rgba(0,9,44,0.28); transform: rotate(-3deg); }
.territory-card::before { content: "+"; position: absolute; right: 22px; top: 13px; color: var(--pink); font-size: 2.3rem; font-weight: 400; line-height: 1; }
.territory-card small, .territory-card strong, .territory-card span { display: block; }
.territory-card small { margin-bottom: 34px; color: var(--pink-deep); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.territory-card strong { margin-bottom: 9px; font-size: 2.25rem; line-height: 1; letter-spacing: -0.06em; }
.territory-card span { color: var(--ink-soft); font-size: 0.77rem; line-height: 1.45; }

.page-hero--noticias { background: radial-gradient(circle at 76% 30%, rgba(245,87,126,0.28), transparent 30%), linear-gradient(120deg, #031b51, #06398f 58%, #052a70); }
.page-hero--materiais { background: radial-gradient(circle at 80% 20%, rgba(245,87,126,0.25), transparent 32%), linear-gradient(120deg, #021743, #063daa 60%, #052a70); }
.materials-visual { position: relative; min-height: 350px; }
.materials-visual-photo { position: absolute; inset: 0 18% 18% 0; display: grid; place-items: center; color: var(--pink); background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.3); border-radius: 24px; transform: rotate(-4deg); }
.materials-visual-photo b { font-size: 7rem; font-weight: 400; }
.materials-visual-document { position: absolute; right: 0; bottom: 0; width: 70%; padding: 28px; color: var(--blue-deep); background: var(--white); border-radius: 5px 5px 24px 5px; box-shadow: 12px 12px 0 var(--pink), 0 24px 55px rgba(0,9,44,0.3); transform: rotate(3deg); }
.materials-visual-document small, .materials-visual-document strong { display: block; }
.materials-visual-document small { margin-bottom: 18px; color: var(--pink-deep); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.13em; }
.materials-visual-document strong { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 0.97; }
.editorial-visual { position: relative; padding: 36px 32px 30px; color: var(--blue-deep); background: var(--white); border-radius: 4px 4px 28px 4px; box-shadow: 15px 15px 0 rgba(245,87,126,0.95), 0 30px 70px rgba(0,9,44,0.28); transform: rotate(2.5deg); }
.editorial-visual::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); }
.editorial-kicker { display: block; margin-bottom: 48px; color: var(--pink-deep); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.editorial-visual > strong { display: block; margin-bottom: 32px; font-size: clamp(2.1rem, 3.8vw, 3.45rem); line-height: 0.96; letter-spacing: -0.06em; }
.editorial-visual em { color: var(--blue); font-style: normal; }
.editorial-topics { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 18px; border-top: 1px solid var(--line); }
.editorial-topics span { padding: 5px 8px; color: var(--ink-soft); background: var(--blue-pale); border-radius: 999px; font-size: 0.62rem; font-weight: 800; }

.page-hero--contato { background: radial-gradient(circle at 82% 16%, rgba(255,255,255,0.16), transparent 27%), linear-gradient(122deg, #02194c 0%, var(--blue-deep) 55%, #842b62 150%); }
.contact-visual { position: relative; padding: 42px 34px 32px; border: 1px solid rgba(255,255,255,0.26); border-radius: 32px 32px 32px 7px; background: rgba(255,255,255,0.09); box-shadow: 0 28px 70px rgba(0,9,44,0.24); backdrop-filter: blur(10px); }
.contact-visual::after { content: ""; position: absolute; left: 28px; bottom: -18px; width: 34px; height: 34px; background: inherit; border-left: 1px solid rgba(255,255,255,0.26); border-bottom: 1px solid rgba(255,255,255,0.26); transform: skewY(-38deg); }
.contact-visual-plus { position: absolute; right: 25px; top: 17px; color: var(--pink); font-size: 3.3rem; line-height: 1; }
.contact-visual > strong { display: block; margin-bottom: 34px; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -0.055em; }
.contact-visual ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.contact-visual li { position: relative; padding: 12px 0 12px 23px; color: rgba(255,255,255,0.76); border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.78rem; }
.contact-visual li::before { content: ""; position: absolute; left: 0; top: 20px; width: 7px; height: 7px; background: var(--pink); border-radius: 50%; }

.filter-panel { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; padding: 24px; background: var(--blue-pale); border-radius: var(--radius-small); }
.filter-panel label { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 900; }
.filter-panel > div { width: min(100%, 620px); }
.filter-panel input { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); }
.filter-panel p { margin: 0; color: var(--ink-soft); }
.nuclei-grid-page { grid-template-columns: repeat(2, 1fr); }
.empty-state { padding: 70px 30px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h2 { font-size: 1.7rem; }

.nuclei-map-section { background: var(--white); }
.rmrj-map-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr); align-items: stretch; gap: 24px; }
.rmrj-map-card { min-width: 0; padding: 26px; background: linear-gradient(145deg, #f7f9ff, var(--blue-pale)); border: 1px solid var(--line); border-radius: var(--radius); }
.rmrj-map { width: 100%; height: auto; max-height: 610px; display: block; }
.rmrj-map .map-loading { fill: var(--ink-soft); font-family: Inter, sans-serif; font-size: 18px; }
.rmrj-map path { fill: #b9c9ed; stroke: var(--white); stroke-width: 2.2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 160ms ease, opacity 160ms ease, stroke 160ms ease; }
.rmrj-map path:hover { fill: #7f9bda; }
.rmrj-map path:focus { outline: none; fill: #7f9bda; stroke: var(--blue-deep); stroke-width: 4; }
.rmrj-map path.has-nucleus { fill: var(--pink); }
.rmrj-map path.is-selected { fill: var(--blue-deep); stroke: var(--pink); stroke-width: 5; }
.map-legend { display: flex; flex-wrap: wrap; gap: 16px 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.74rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--white); border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.legend-region { background: #b9c9ed; }
.legend-nucleus { background: var(--pink); }
.legend-selected { background: var(--blue-deep); }
.rmrj-map-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 4vw, 52px); color: var(--white); background: var(--blue-deep); border-radius: var(--radius); }
.map-number { display: block; margin-bottom: 12px; color: var(--pink); font-size: clamp(4rem, 7vw, 7.5rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.08em; }
.rmrj-map-panel h3 { margin-bottom: 18px; font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.04; }
.rmrj-map-panel > p { color: rgba(255,255,255,0.72); }
.rmrj-map-panel label { margin-top: 20px; }
.rmrj-map-panel select { margin-top: 8px; color: var(--blue-deep); border-color: transparent; }
.rmrj-map-panel .map-feedback { min-height: 42px; margin: 18px 0 0; color: rgba(255,255,255,0.68); font-size: 0.78rem; }
.text-button { align-self: flex-start; margin-top: 12px; padding: 0 0 4px; color: var(--white); background: transparent; border: 0; border-bottom: 2px solid var(--pink); font-weight: 900; cursor: pointer; }
.map-source { margin: 18px 0 0; color: var(--ink-soft); font-size: 0.72rem; }
.map-source a { color: var(--blue); text-decoration: underline; }

.nuclei-list { display: grid; gap: 18px; }
.nucleus-list-item { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(16,32,58,0.04); }
.nucleus-list-item > summary { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; align-items: center; gap: 30px; min-height: 190px; padding: 18px 26px 18px 18px; cursor: pointer; list-style: none; }
.nucleus-list-item > summary::-webkit-details-marker { display: none; }
.nucleus-list-item > summary:hover { background: #fbfcff; }
.nucleus-list-item[open] > summary { border-bottom: 1px solid var(--line); }
.nucleus-list-thumb, .nucleus-list-thumb .nucleus-image { height: 154px; border-radius: 14px; }
.nucleus-list-thumb .nucleus-image-placeholder { min-height: 154px; }
.nucleus-list-summary { min-width: 0; }
.nucleus-list-summary .card-topline { justify-content: flex-start; margin-bottom: 18px; }
.nucleus-list-title { display: block; margin-bottom: 5px; color: var(--blue-deep); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; }
.nucleus-list-summary .territory { display: block; margin-bottom: 12px; color: var(--pink-deep); font-size: 0.82rem; font-weight: 800; }
.nucleus-list-description { display: block; max-width: 720px; color: var(--ink-soft); line-height: 1.55; }
.nucleus-list-action { display: flex; align-items: center; gap: 13px; color: var(--blue); font-size: 0.82rem; font-weight: 900; white-space: nowrap; }
.nucleus-list-action b { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--blue); border-radius: 50%; font-size: 1.5rem; font-weight: 400; transition: transform 180ms ease, background 180ms ease; }
.nucleus-list-item[open] .nucleus-list-action b { background: var(--pink); transform: rotate(45deg); }
.nucleus-detail { padding: clamp(28px, 5vw, 58px); }
.nucleus-detail-intro { display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(35px, 6vw, 80px); }
.nucleus-detail-image { min-height: 380px; border-radius: var(--radius); }
.nucleus-detail-image .nucleus-image-placeholder { min-height: 380px; }
.nucleus-detail-intro h3, .nucleus-detail-section h3 { color: var(--blue-deep); }
.nucleus-detail-intro h3 { font-size: clamp(2rem, 4vw, 3.5rem); }
.nucleus-detail-intro > div > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; }
.nucleus-detail-intro h4 { margin: 30px 0 12px; color: var(--blue-deep); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nucleus-detail-intro .button { margin-top: 18px; }
.nucleus-detail-section { margin-top: 58px; padding-top: 45px; border-top: 1px solid var(--line); }
.nucleus-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.nucleus-detail-heading h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.nucleus-detail-heading > p { max-width: 390px; margin: 0; color: var(--ink-soft); }
.nucleus-indicators { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-small); }
.nucleus-indicators > div { min-height: 150px; padding: 30px; }
.nucleus-indicators > div + div { border-left: 1px solid var(--line); }
.nucleus-indicators strong, .nucleus-indicators span { display: block; }
.nucleus-indicators strong { margin-bottom: 25px; color: var(--pink); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; }
.nucleus-indicators span { color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; }
.nucleus-indicators small { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 0.68rem; line-height: 1.5; }
.nucleus-gallery { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 14px; }
.nucleus-gallery figure, .gallery-placeholder { min-height: 270px; margin: 0; overflow: hidden; border-radius: var(--radius-small); }
.nucleus-gallery img { width: 100%; height: 100%; object-fit: cover; }
.media-photo-card { position: relative; min-height: 270px; margin: 0; overflow: hidden; background: var(--blue-pale); border-radius: var(--radius-small); }
.media-photo-card img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform 260ms ease; }
.media-photo-card figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 36px 18px 16px; color: var(--white); background: linear-gradient(transparent, rgba(1,15,55,0.92)); transform: translateY(calc(100% - 44px)); transition: transform 220ms ease; }
.media-photo-card:hover img, .media-photo-card:focus img { transform: scale(1.025); }
.media-photo-card:hover figcaption, .media-photo-card:focus figcaption { transform: translateY(0); }
.media-photo-card figcaption strong, .media-photo-card figcaption span, .media-photo-card figcaption small { display: block; }
.media-photo-card figcaption span { font-size: 0.78rem; line-height: 1.45; }
.media-photo-card figcaption small { color: rgba(255,255,255,0.72); }
.media-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.media-photo-grid .media-photo-card:nth-child(5n+1) { grid-column: span 2; min-height: 390px; }
.materials-document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.materials-document-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); transition: transform 180ms ease, border-color 180ms ease; }
.materials-document-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.materials-document-type { min-width: 54px; padding: 10px 8px; color: var(--white); background: var(--blue); border-radius: 8px; font-size: 0.68rem; font-weight: 900; text-align: center; }
.materials-document-card div { display: grid; gap: 5px; }
.materials-document-card small { color: var(--pink-deep); font-weight: 800; }
.materials-document-card strong { color: var(--blue-deep); }
.materials-document-card p { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.materials-document-card b { color: var(--blue); font-size: 0.8rem; }
.materials-empty { padding: 30px; color: var(--ink-soft); background: var(--white); border: 1px dashed #aab8d2; border-radius: var(--radius-small); }
.gallery-placeholder { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--blue); background: linear-gradient(145deg, var(--blue-pale), #fff); border: 1px dashed #b9c6df; text-align: center; }
.gallery-placeholder span { color: var(--pink); font-size: 3rem; line-height: 1; }
.gallery-placeholder small { color: var(--ink-soft); }
.nucleus-document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nucleus-document-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px; background: var(--blue-pale); border: 1px solid transparent; border-radius: var(--radius-small); transition: border-color 180ms ease, transform 180ms ease; }
.nucleus-document-list a:hover { border-color: var(--blue); transform: translateY(-2px); }
.nucleus-document-list span { min-width: 48px; padding: 8px; color: var(--white); background: var(--blue); border-radius: 7px; font-size: 0.68rem; font-weight: 900; text-align: center; }
.nucleus-document-list strong { color: var(--blue-deep); overflow-wrap: anywhere; }
.nucleus-document-list small { color: var(--blue); font-weight: 800; white-space: nowrap; }
.nucleus-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nucleus-news-list a { display: flex; min-height: 180px; flex-direction: column; padding: 25px; background: var(--blue-pale); border-radius: var(--radius-small); }
.nucleus-news-list span { margin-bottom: 24px; color: var(--pink-deep); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.nucleus-news-list strong { color: var(--blue-deep); font-size: 1.15rem; }
.nucleus-news-list small { margin-top: auto; padding-top: 20px; color: var(--blue); font-weight: 900; }
.nucleus-empty-copy { padding: 28px; color: var(--ink-soft); background: var(--blue-pale); border-radius: var(--radius-small); }
.split-callout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
.split-callout h2 { color: var(--blue-deep); }
.check-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 20px 20px 20px 62px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); font-weight: 700; }
.check-list li::before { content: "+"; position: absolute; left: 20px; top: 16px; color: var(--pink); font-size: 1.8rem; font-weight: 900; }
.posts-grid-page { grid-template-columns: repeat(3, 1fr); }

.article-header { padding: 100px 0 70px; background: var(--blue-pale); }
.article-container { max-width: 850px; }
.back-link { display: inline-block; margin-bottom: 54px; color: var(--blue); font-weight: 900; }
.article-header h1 { margin: 28px 0; color: var(--blue-deep); font-size: clamp(2.6rem, 6vw, 5rem); }
.article-body { padding-top: 70px; padding-bottom: 120px; color: var(--ink); font-size: 1.15rem; line-height: 1.9; white-space: normal; }
.article-cover { margin: 0 0 52px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 90px; }
.contact-details h2 { color: var(--blue-deep); }
.contact-details dl { margin-top: 50px; }
.contact-details dl > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { margin-bottom: 6px; color: var(--pink-deep); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-details dd { margin: 0; font-weight: 700; }
.contact-form-wrap { padding: 42px; background: var(--blue-pale); border-radius: var(--radius); }
.contact-form-wrap h2 { color: var(--blue-deep); font-size: 2rem; }
.contact-form, .stack-form, .admin-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-row-small { grid-template-columns: 0.45fr 0.65fr 1.5fr; }
label { display: grid; gap: 8px; font-size: 0.84rem; font-weight: 900; }
input, textarea, select { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid #bfc9dc; border-radius: 10px; font-weight: 400; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: 3px solid rgba(6,61,170,0.12); }
.checkbox-label { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 400; }
.checkbox-label input { width: 20px; min-height: 20px; margin-top: 2px; }
.honeypot { position: absolute; left: -10000px; }
.form-notice, .admin-demo-note { padding: 14px 17px; color: #7d2c45; background: var(--pink-soft); border-left: 4px solid var(--pink); border-radius: 8px; }
.error-panel, .success-panel, .flash { margin-bottom: 20px; padding: 16px 18px; border-radius: 10px; }
.error-panel, .flash-error { color: #7b1e3d; background: var(--pink-soft); border: 1px solid #f5b0c2; }
.success-panel, .flash-success { color: #075e4e; background: #e5f8f2; border: 1px solid #a7e1ce; }
.error-panel ul { margin: 0; }

/* Administrative area */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 36px 20px; background: linear-gradient(145deg, var(--blue-pale), var(--pink-soft)); }
.login-card { width: min(100%, 520px); display: grid; gap: 30px; padding: 42px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card-wide { width: min(100%, 620px); }
.login-card > a:first-child img { width: 260px; }
.login-card h1 { margin: 0; color: var(--blue-deep); font-size: 2.4rem; }
.login-links { display: flex; justify-content: space-between; gap: 20px; font-size: 0.84rem; }
.login-links a, .login-card > .text-link { color: var(--blue); font-weight: 700; }
.admin-body { min-height: 100vh; background: #f3f6fc; }
.admin-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; min-height: 76px; padding: 12px 30px; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-brand { display: flex; align-items: center; gap: 14px; }
.admin-brand img { width: 185px; }
.admin-brand span { padding-left: 14px; color: var(--blue); border-left: 1px solid var(--line); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
.admin-header nav { display: flex; justify-content: center; gap: 24px; font-size: 0.84rem; font-weight: 700; }
.admin-header nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.admin-user { display: flex; align-items: center; gap: 16px; font-size: 0.8rem; }
.admin-user form { margin: 0; }
.link-button, .danger-link, .admin-actions button { padding: 0; color: var(--blue); background: transparent; border: 0; font-weight: 900; cursor: pointer; }
.danger-link { color: #b4234c !important; }
.admin-main { width: min(1380px, calc(100% - 50px)); margin: 0 auto; padding: 54px 0 90px; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.admin-title-row h1 { margin: 0; color: var(--blue-deep); font-size: clamp(2.2rem, 4vw, 3.6rem); }
.admin-demo-note { margin-bottom: 30px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.admin-stats a { display: grid; gap: 8px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); }
.admin-stats strong { color: var(--blue); font-size: 2.5rem; line-height: 1; }
.admin-stats span { color: var(--ink-soft); }
.admin-panel { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); }
.admin-panel > h2 { margin-bottom: 26px; color: var(--blue-deep); font-size: 1.55rem; }
.admin-panel-narrow { max-width: 820px; }
.workflow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.workflow-list li { padding: 22px; background: var(--blue-pale); border-radius: 12px; }
.workflow-list strong, .workflow-list span { display: block; }
.workflow-list strong { margin-bottom: 8px; color: var(--blue); }
.workflow-list span { color: var(--ink-soft); font-size: 0.9rem; }
.admin-content-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); align-items: start; gap: 24px; }
.admin-form .button { justify-self: start; }
.indicator-editor { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 20px; background: #f8faff; border: 1px solid var(--line); border-radius: 12px; }
.indicator-editor legend { padding: 0 7px; color: var(--blue-deep); font-weight: 900; }
.indicator-editor > p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; }
[data-indicator-list] { display: grid; gap: 12px; }
.indicator-row { display: grid; gap: 14px; padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.form-row-indicator { grid-template-columns: 0.7fr 1.3fr 1fr; }
.indicator-row-footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; }
.indicator-row-footer .danger-link { padding-bottom: 14px; }
.admin-acervo-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; color: var(--blue-deep); background: var(--blue-pale); border-radius: 12px; }
.admin-acervo-callout p { margin: 5px 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.admin-media-item { justify-content: flex-start; }
.admin-media-item > img { width: 82px; height: 64px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; }
.admin-media-item > div:nth-child(2) { min-width: 0; flex: 1; }
.admin-file-icon { display: grid; width: 64px; height: 64px; place-items: center; color: var(--white); background: var(--blue); border-radius: 8px; font-size: 0.68rem; font-weight: 900; }
.checkbox-label-bottom { align-self: end; padding-bottom: 13px; }
.file-upload-field { padding: 18px; background: #f8faff; border: 1px dashed #94a6ca; border-radius: 12px; }
.file-upload-field input[type="file"] { min-height: auto; padding: 10px; background: var(--white); cursor: pointer; }
.file-upload-field small { color: var(--ink-soft); font-weight: 500; }
.upload-current { display: flex; align-items: center; gap: 18px; padding: 14px; background: var(--blue-pale); border-radius: 12px; }
.upload-current img { width: 140px; height: 90px; object-fit: cover; border-radius: 8px; }
.upload-current > div { display: grid; gap: 10px; }
.upload-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.upload-gallery-item { overflow: hidden; background: #f8faff; border: 1px solid var(--line); border-radius: 10px; }
.upload-gallery-item img { width: 100%; height: 120px; object-fit: cover; }
.upload-gallery-item span { display: flex; align-items: center; gap: 8px; padding: 10px; font-size: 0.76rem; font-weight: 700; }
.upload-gallery-item input, .upload-document-list input { width: 18px; min-height: 18px; }
.upload-document-list { display: grid; gap: 8px; }
.upload-document-list > label { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; background: #f8faff; border: 1px solid var(--line); border-radius: 9px; }
.upload-document-list > label > span:last-child { display: flex; align-items: center; gap: 8px; color: #8f2446; font-size: 0.76rem; }
.admin-list-panel { display: grid; gap: 14px; }
.admin-list-panel > h2 { margin-bottom: 10px; }
.admin-list-item { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px; background: #f8faff; border: 1px solid var(--line); border-radius: 12px; }
.admin-list-item h3 { margin: 10px 0 5px; font-size: 1rem; }
.admin-list-item p { margin: 0; color: var(--ink-soft); font-size: 0.8rem; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.8rem; font-weight: 900; }
.admin-actions form { margin: 0; }
.message-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.message-item:last-child { border-bottom: 0; }
.message-item header { display: flex; justify-content: space-between; gap: 20px; }
.message-item h2 { font-size: 1.35rem; }
.message-item time, .message-sender { color: var(--ink-soft); font-size: 0.82rem; }
.message-unread { border-left: 4px solid var(--pink); padding-left: 20px; }

@media (max-width: 1050px) {
    .main-nav { gap: 18px; }
    .hero-grid { grid-template-columns: minmax(0, 680px) 1fr; gap: 35px; }
    .hero-copy h1 { font-size: clamp(3.2rem, 6.6vw, 5.5rem); }
    .services-grid, .posts-grid, .posts-grid-page { grid-template-columns: repeat(2, 1fr); }
    .nuclei-grid { grid-template-columns: repeat(2, 1fr); }
    .rmrj-map-layout { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); }
    .nucleus-list-item > summary { grid-template-columns: 190px minmax(0, 1fr) auto; gap: 22px; }
    .nucleus-detail-intro { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: 40px; }
    .footer-grid { grid-template-columns: 1.4fr 0.6fr 1fr; }
    .admin-header { grid-template-columns: 1fr auto; }
    .admin-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 5px; }
    .admin-content-grid { grid-template-columns: 1fr; }
    .media-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    h1 { font-size: clamp(2.5rem, 10vw, 4.4rem); }
    .container { width: min(100% - 32px, var(--container)); }
    .section { padding: 80px 0; }
    .header-inner { min-height: 76px; }
    .brand img { width: 210px; }
    .menu-button { display: flex; }
    .main-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 10px 6px !important; }
    .home-hero { min-height: 0; background: var(--blue-deep); }
    .hero-media img { object-position: 62% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(2,18,67,0.96) 0%, rgba(2,25,86,0.86) 52%, rgba(2,25,86,0.28) 100%), linear-gradient(0deg, rgba(2,18,67,0.93) 0%, rgba(2,18,67,0.14) 58%); }
    .hero-grid { grid-template-columns: 1fr; min-height: 650px; padding-block: 70px 60px; }
    .hero-copy { max-width: 700px; }
    .hero-foundations > div { padding-block: 22px 25px; }
    .rmrj-map-layout, .nucleus-detail-intro { grid-template-columns: 1fr; }
    .rmrj-map-panel { min-height: 390px; }
    .nucleus-list-item > summary { grid-template-columns: 160px minmax(0, 1fr); }
    .nucleus-list-action { grid-column: 2; }
    .nucleus-detail-image { min-height: 430px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid > div:nth-child(2) { border-right: 0; }
    .metrics-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.25); }
    .section-heading, .cta-inner { align-items: flex-start; flex-direction: column; }
    .section-heading { display: flex; }
    .method-grid, .contact-grid, .split-callout { grid-template-columns: 1fr; gap: 45px; }
    .page-hero { min-height: 0; }
    .page-hero-inner { min-height: 0; grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr); gap: 44px; padding-block: 70px; }
    .page-hero h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }
    .territory-visual { min-height: 310px; }
    .territory-ring-one { width: 280px; height: 280px; }
    .territory-ring-two { width: 205px; height: 205px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid > div:last-child { grid-column: auto; }
    .admin-main { width: min(100% - 30px, 1380px); }
    .workflow-list, .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .materials-document-grid { grid-template-columns: 1fr; }
    .project-nav { top: 76px; }
    .project-intro { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .demo-banner { font-size: 0.64rem; }
    .hero-media img { object-position: 64% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(2,18,67,0.94), rgba(2,25,86,0.56)), linear-gradient(0deg, rgba(2,18,67,0.96) 0%, rgba(2,18,67,0.25) 72%); }
    .hero-grid { min-height: 640px; padding-block: 50px 34px; }
    .hero-copy .eyebrow { max-width: 290px; }
    .hero-copy h1 { margin-bottom: 23px; font-size: clamp(2.9rem, 14vw, 4.3rem); line-height: 0.94; }
    .hero-copy h1 strong { font-size: 0.8em; line-height: 1.04; }
    .hero-copy .lead { font-size: 1rem; }
    .home-hero .button-row { align-items: stretch; flex-direction: column; }
    .home-hero .button { width: 100%; }
    .hero-foundations { grid-template-columns: 1fr; padding-bottom: 8px; }
    .hero-foundations > div, .hero-foundations > div + div { padding: 16px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.16); }
    .hero-foundations > div:first-child { border-top: 0; }
    .rmrj-map-card { padding: 14px; }
    .rmrj-map-panel { min-height: 0; padding: 30px 24px; }
    .map-legend { gap: 12px; }
    .nuclei-filter-panel { padding: 20px; }
    .nucleus-list-item > summary { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
    .nucleus-list-thumb, .nucleus-list-thumb .nucleus-image { width: 100%; height: 190px; }
    .nucleus-list-thumb .nucleus-image-placeholder { min-height: 190px; }
    .nucleus-list-summary .card-topline { align-items: flex-start; flex-direction: column; gap: 8px; }
    .nucleus-list-action { grid-column: 1; justify-content: space-between; padding-top: 4px; }
    .nucleus-detail { padding: 26px 18px 32px; }
    .nucleus-detail-image, .nucleus-detail-image .nucleus-image-placeholder { min-height: 260px; }
    .nucleus-detail-heading { align-items: flex-start; flex-direction: column; }
    .nucleus-indicators, .nucleus-gallery, .nucleus-document-list, .nucleus-news-list, .media-photo-grid { grid-template-columns: 1fr; }
    .nucleus-indicators > div { min-height: 125px; }
    .nucleus-indicators > div + div { border-top: 1px solid var(--line); border-left: 0; }
    .nucleus-gallery figure, .gallery-placeholder { min-height: 220px; }
    .media-photo-grid .media-photo-card:nth-child(5n+1) { grid-column: span 1; min-height: 280px; }
    .media-photo-card figcaption { transform: translateY(0); }
    .nucleus-image figcaption { opacity: 1; }
    .materials-document-card { grid-template-columns: auto 1fr; }
    .materials-document-card b { grid-column: 2; }
    .metrics-grid, .services-grid, .nuclei-grid, .nuclei-grid-page, .posts-grid, .posts-grid-page, .footer-grid, .workflow-list, .admin-stats { grid-template-columns: 1fr; }
    .metrics-grid > div, .metrics-grid > div:not(:first-child) { min-height: 150px; padding: 28px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,0.25); }
    .metrics-grid > div:first-child { border-top: 0; }
    .service-card { min-height: 250px; }
    .service-number { margin-bottom: 42px; }
    .nucleus-card { min-height: 430px; }
    .filter-panel { align-items: stretch; flex-direction: column; }
    .form-row, .form-row-small { grid-template-columns: 1fr; }
    .contact-form-wrap, .login-card, .admin-panel { padding: 24px; }
    .page-hero::before { background-size: 52px 52px; }
    .page-hero::after { left: 8px; font-size: 10rem; }
    .page-hero-inner { grid-template-columns: 1fr; gap: 48px; padding-block: 58px 70px; }
    .page-hero h1 { font-size: clamp(2.8rem, 13vw, 4.5rem); }
    .page-hero-visual { width: min(100%, 380px); justify-self: center; }
    .territory-visual { min-height: 320px; }
    .territory-pin-one { left: 4%; }
    .territory-pin-two { right: 4%; }
    .territory-card { width: 245px; }
    .editorial-visual { padding: 30px 26px 26px; }
    .editorial-kicker { margin-bottom: 34px; }
    .contact-visual { padding: 36px 27px 28px; }
    .footer-bottom, .admin-title-row { align-items: flex-start; flex-direction: column; }
    .admin-header { position: static; grid-template-columns: 1fr; padding: 16px; }
    .project-nav { position: static; }
    .project-nav .container { gap: 20px; }
    .project-principles { grid-template-columns: 1fr; }
    .project-principles span + span { border-top: 1px solid var(--line); border-left: 0; }
    .admin-header nav { grid-column: 1; grid-row: auto; }
    .admin-user { justify-content: space-between; }
    .admin-list-item { align-items: flex-start; flex-direction: column; }
    .upload-current { align-items: flex-start; flex-direction: column; }
    .upload-current img { width: 100%; height: 170px; }
    .upload-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upload-document-list > label { align-items: flex-start; flex-direction: column; }
    .form-row-indicator, .indicator-row-footer { grid-template-columns: 1fr; }
    .indicator-row-footer .danger-link { justify-self: start; padding-bottom: 0; }
    .admin-acervo-callout { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
