/* Direito Aberto R3.0 — shared design system */
:root{--da-navy:#101e33;--da-green:#5cde6e;--da-pearl:#f5f6f8;--da-ink:#17283a;--da-gap:20px;--da-radius:8px}html{scroll-padding-top:90px}.r30-mobile-search,.r30-menu-close{display:none}.menu-toggle[aria-expanded=true] .r30-menu-open{display:none}.menu-toggle[aria-expanded=true] .r30-menu-close{display:inline-flex}.r30-search-context{padding:14px 5px 0}.r30-search-context strong{font-size:14px;color:#101e33}.r30-search-context p{font-size:12px;color:#526174;margin:4px 0 0;line-height:1.5}.search-tabs{gap:4px;padding-top:5px}.search-tabs button{flex:1;min-width:0;border-radius:4px 4px 0 0}.search-tabs button[aria-pressed=true]{background:#eaf6ed;color:#20663a;border-bottom-color:#247c43}#r30-extra{display:block;width:100%;min-width:0;border:1px solid var(--line);border-radius:4px;padding:10px;margin-top:6px;font:inherit}.line-art{background:none;height:155px}.line-art img{height:155px}.hero-art img{max-height:430px}.mission-art{min-height:0}.mission-art img{max-height:320px}#justica .signature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#r30-top{position:fixed;right:22px;bottom:calc(22px + env(safe-area-inset-bottom));width:44px;height:44px;display:grid;place-items:center;background:#fff;color:#101e33;border:1px solid #d5e0dc;border-radius:8px;z-index:25;box-shadow:0 4px 16px #101e3310}#r30-top:hover{background:#5cde6e}#r30-top[hidden]{display:none!important}.faq-grid summary,.taxonomy-grid summary{list-style:none}.faq-grid summary::-webkit-details-marker,.taxonomy-grid summary::-webkit-details-marker{display:none}.faq-grid summary:after,.taxonomy-grid summary:after{content:'+';float:right;color:#247c43}.faq-grid details[open] summary:after,.taxonomy-grid details[open] summary:after{content:'−'}
@media(max-width:1450px){.header-inner{position:static!important;min-height:68px;gap:12px}.header .menu-toggle{display:grid;place-items:center;width:44px;height:44px;padding:0;margin:0;border:0;background:transparent;color:#101e33}.header .header-action{display:none}.r30-mobile-search{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;color:#101e33}.header nav{position:absolute!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;margin:0!important;transform:none!important;top:100%;padding:8px 18px 24px!important;border:0;border-top:1px solid var(--line);border-radius:0!important;max-height:calc(100dvh - 105px);overscroll-behavior:contain;gap:0}.header nav.open{display:flex}.header .mega{width:100%;border-bottom:1px solid var(--line)}.header .mega summary{display:flex;justify-content:space-between;align-items:center;padding:15px 4px;font-size:15px;min-height:48px}.header .mega-panel{width:100%;min-width:0;max-width:none;transform:none!important;margin:0;padding:12px 0;box-shadow:none;border:0}.header .mega-columns{grid-template-columns:1fr;gap:12px}.header .mega-columns a{padding:10px 8px;white-space:normal}.r30-nav-open{overflow:hidden}}
@media(max-width:760px){.wrap{width:calc(100% - 32px)}.header-inner{min-height:62px}.brand img{max-width:190px;height:auto}.hero-grid{padding-block:32px;gap:12px}.hero h1{font-size:clamp(30px,7.8vw,46px);line-height:1.12;letter-spacing:-1.3px;margin:18px 0}.hero-description{font-size:15px;line-height:1.6;margin-bottom:20px}.hero-art{max-width:290px;width:100%}.hero-art img{max-height:175px}.search-panel{padding:8px 10px}.search-tabs button{font-size:11px;padding:10px 2px;min-height:44px}.search-tabs{flex-wrap:nowrap}.search-options{flex-wrap:wrap;font-size:11px}#query{font-size:16px}.primary-button{padding:12px;font-size:13px}.section{padding:36px 0}.section-heading{margin-bottom:20px}.section-heading h2{font-size:clamp(26px,6.8vw,36px);line-height:1.15;letter-spacing:-.7px}.section-heading p{font-size:14px;line-height:1.6;margin-top:12px}.library-grid{grid-template-columns:1fr;gap:12px}.library-card{padding:18px}.line-art{height:95px;margin:8px 0}.line-art img{height:95px}.library-card h3,.signature-card h3{font-size:18px}.library-card p,.signature-card p{font-size:14px;line-height:1.55}.signature-grid{grid-template-columns:1fr;gap:12px}.signature-card,.empty-state,.faq-grid details{padding:18px}.category-grid{grid-template-columns:1fr;gap:8px}.category-card{min-height:54px;padding:10px 12px;gap:10px}.category-card strong{font-size:14px}.category-symbol{min-width:30px;font-size:20px}.benefits-grid{gap:8px}.benefits article{padding:10px 4px;gap:8px;min-width:0}.benefits article:nth-child(odd){border-right:1px solid var(--line)}.benefits article:nth-child(even){border:0}.mission-grid{gap:18px}.mission-art img{max-height:170px}.mission-grid p{font-size:15px}.source-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.source-card{padding:14px;overflow-wrap:anywhere}#justica .signature-grid{grid-template-columns:1fr}.footer-grid{gap:24px}.r30-search-context p{font-size:12px}#r30-top{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}}
@media(max-width:360px){.header-inner{gap:4px}.brand img{max-width:155px}.search-tabs button{font-size:10px}.source-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* R3.0.1 FINAL VISUAL POLISH */

.line-art,
.line-art img,
.hero-art img,
.mission-art img {
    background: transparent !important;
    box-shadow: none !important;
}

.line-art::before,
.line-art::after {
    display: none !important;
}

@media (max-width:1450px) {

    .header .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    .header .brand {
        order: 0;
        flex: 0 1 auto;
        min-width: 0;
        margin-right: auto !important;
    }

    .header .r30-mobile-search {
        order: 1;
        flex: 0 0 44px;
        margin: 0 !important;
    }

    .header .menu-toggle {
        order: 2;
        flex: 0 0 44px;
        margin: 0 !important;
        width: 44px;
        height: 44px;
    }

    .header nav {
        order: 3;
    }

    .r30-menu-open,
    .r30-menu-close {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width:360px) {
    .header .header-inner {
        gap: 2px !important;
    }

    .header .brand img {
        max-width: 155px;
        width: 100%;
        height: auto;
    }
}
