/* Tema visual claro/escuro e refinamentos globais de UX */
:root{
  color-scheme:light;
  --brand-navy:#03045e;
  --brand-navy-deep:#000036;
  --brand-blue:#0077b6;
  --brand-cyan:#00b4d8;
  --brand-sky:#90e0ef;
  --brand-ice:#caf0f8;
  --brand-red:#e31b2b;
  --accent-warm:#ffd84d;
  --on-dark:#fff;
  --on-blue:#fff;
  --on-cyan:#000036;
  --on-light:#000036;
  --paper:#fff;
  --surface:#fff;
  --surface-raised:#fff;
  --surface-soft:#f2f6fc;
  --ink:#000036;
  --muted:#4f5d72;
  --line:#ccd6e3;
  --control-line:#7688a1;
  --navy:#000036;
  --navy2:#0b3a93;
  --blue-accent:#005f91;
  --link:#005f91;
  --red:#c80018;
  --green:#178354;
  --focus-ring:#005f91;
  --focus-halo:#fff;
  --focus:rgba(0,95,145,.22);
  --shadow-sm:0 8px 24px rgba(10,42,91,.08);
  --shadow:0 20px 55px rgba(10,42,91,.13);
}

html[data-theme="dark"]{
  color-scheme:dark;
  --paper:#03045e;
  --surface:#006ba6;
  --surface-raised:#005f98;
  --surface-soft:#043d79;
  --soft:#043d79;
  --ink:#fff;
  --muted:#eefaff;
  --line:#90e0ef;
  --control-line:#90e0ef;
  --navy:#fff;
  --navy2:#caf0f8;
  --blue-accent:#90e0ef;
  --link:#fff;
  --sinpro-ink:#fff;
  --sinpro-blue:#90e0ef;
  --sinpro-blue-deep:#03045e;
  --sinpro-paper:#043d79;
  --sinpro-cloud:#0077b6;
  --sinpro-border:#4db8dc;
  --focus-ring:#ffd84d;
  --focus-halo:#03045e;
  --focus:rgba(255,216,77,.3);
  --shadow-sm:0 10px 28px rgba(0,0,0,.2);
  --shadow:0 24px 65px rgba(0,0,0,.32);
}

body{background:var(--paper);color:var(--ink);transition:background-color .25s ease,color .25s ease}
button,input,select,textarea{font:inherit}
button,[role="button"]{cursor:pointer}
a,button,input,select,textarea{outline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus-ring);box-shadow:0 0 0 6px var(--focus-halo)}

/* Seletor de tema */
.theme-toggle{min-width:46px}
.theme-toggle-icons{position:relative;width:20px;height:20px;display:grid;place-items:center}
.theme-toggle-icons .icon{position:absolute;width:19px;height:19px;transition:opacity .2s ease,transform .25s ease}
.theme-moon{opacity:1;transform:scale(1)}
.theme-sun{opacity:0;transform:rotate(-35deg) scale(.65)}
html[data-theme="dark"] .theme-moon{opacity:0;transform:rotate(35deg) scale(.65)}
html[data-theme="dark"] .theme-sun{opacity:1;transform:rotate(0) scale(1)}

/* Botões com estados previsíveis e contraste consistente */
.primary-button,.btn-primary,.member-button{
  background:linear-gradient(135deg,#000036,#0b3a93);color:#fff;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 25px rgba(13,74,158,.22);
}
.primary-button:hover,.btn-primary:hover,.member-button:hover{background:linear-gradient(135deg,#10106b,#0b4fb6);box-shadow:0 14px 32px rgba(0,0,54,.3)}
.secondary-button,.btn-secondary,.light-button{background:var(--surface);border:1px solid var(--control-line);color:var(--navy)}
.secondary-button:hover,.btn-secondary:hover,.light-button:hover{background:var(--surface-soft);border-color:var(--blue-accent);color:var(--navy)}
.arrow-link,.section-link,.plain-link,.text-link{color:var(--link)}
.eyebrow:not(.eyebrow--light){color:#c80018}

/* O WordPress aplica cor própria aos títulos; estas áreas sempre exigem texto claro. */
:is(.editorial-feature,.service-path--primary,.territorial-panel,.membership-callout,.footer-newsletter,.member-trust-panel,.dashboard-header) :is(h1,h2,h3,h4,h5,h6){color:#fff!important}

/* Cards e superfícies institucionais */
:where(.post-card,.event-card,.benefit-card,.document-card,.regional-card,.secretary-card,.person-card,.media-archive-card,.dashboard-card,.stat-card,.sector-card,.aside-card,.request-card,.contact-cards article,.transparency-grid>*,.services-matrix>a,.multi-step-card,.search-results-page>a,.video-choice,.booking-panel,.membership-form){
  background:var(--surface);border-color:var(--line);box-shadow:var(--shadow-sm);
}
:where(.post-card,.event-card,.benefit-card,.document-card,.regional-card,.secretary-card,.person-card,.media-archive-card,.sector-card,.services-matrix>a,.search-results-page>a){
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background-color .22s ease;
}
:where(.post-card,.event-card,.benefit-card,.document-card,.regional-card,.secretary-card,.person-card,.media-archive-card,.sector-card,.services-matrix>a,.search-results-page>a):hover{
  border-color:var(--blue-accent);box-shadow:var(--shadow);transform:perspective(1200px) translateY(-4px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
}
.card-action,.event-card>a,.regional-card b,.benefit-card b,.document-card b,.secretary-card b,.person-card b,.media-archive-card b{color:var(--navy);margin-top:auto;font-weight:850}

/* Navegação azul em todos os modos */
.main-nav{background:#03045e;color:#fff;border:0}
.main-menu>li>a{color:#fff}
.main-menu>li:hover>a,.main-menu>li.current-menu-item>a,.main-menu>li.current-menu-parent>a{background:#0077b6;color:#fff;box-shadow:inset 0 -3px #90e0ef}
.main-menu>li>ul{background:var(--surface-raised);border-color:var(--line)}
.main-menu>li>ul>li>a{color:var(--ink)}
.main-menu>li>ul>li>a:hover{background:var(--surface-soft);color:var(--navy)}

/* Formulários */
:where(.field-label input,.field-label select,.field-label textarea,.contact-form input,.contact-form select,.contact-form textarea,.booking-panel input,.booking-panel select,.booking-panel textarea,.filter-search,.filter-search input,.regional-search label,.regional-search input,.search-field input,.drawer-search input,.newsletter-field input,.archive-filter-form input,.archive-filter-form select){
  background:var(--surface);color:var(--ink);border-color:var(--control-line);
}
::placeholder{color:var(--muted);opacity:.78}

/* Estado vazio reutilizável */
.content-empty{grid-column:1/-1;display:grid;justify-items:start;gap:10px;padding:clamp(28px,5vw,54px);border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,var(--surface),var(--surface-soft));box-shadow:var(--shadow-sm)}
.content-empty>.icon{width:38px;height:38px;color:var(--navy)}
.content-empty h2{margin:4px 0 0;font-size:clamp(1.5rem,3vw,2.2rem)}
.content-empty p{max-width:680px;margin:0;color:var(--muted)}
.content-empty-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.official-content{margin-bottom:42px;padding:clamp(24px,4vw,42px);border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow-sm)}
.official-content>:first-child{margin-top:0}.official-content>:last-child{margin-bottom:0}
.people-grid>.official-content,.secretary-grid>.official-content{grid-column:1/-1;max-width:none;width:100%}
.page-hero h1{font-size:clamp(2.55rem,5vw,5.25rem)}
.page-hero :is(h1,h2,h3){color:var(--on-dark)!important}
.page-hero :is(.breadcrumbs,.breadcrumbs a,.eyebrow,.eyebrow--light,p:not(.eyebrow)){color:#eefaff!important}

/* Pares seguros também para blocos criados no editor. */
:is(.has-azul-profundo-background-color,.has-azul-sindical-background-color,.has-vermelho-background-color){color:var(--on-dark)!important}
:is(.has-ciano-background-color,.has-azul-claro-background-color,.has-gelo-background-color){color:var(--on-cyan)!important}
:is(.has-azul-profundo-background-color,.has-azul-sindical-background-color,.has-vermelho-background-color) a{color:inherit;text-decoration:underline;text-underline-offset:3px}
:is(.has-ciano-background-color,.has-azul-claro-background-color,.has-gelo-background-color) a{color:var(--brand-navy-deep);text-decoration:underline;text-underline-offset:3px}
.benefit-card>span{width:48px;height:48px;border-radius:14px;background:var(--surface-soft);color:var(--navy);display:grid;place-items:center;margin-bottom:24px}
.benefit-card>span .icon{width:23px;height:23px}
.benefit-card h2{font-size:1.3rem;margin:7px 0 8px}
.benefit-card b{margin-top:auto;padding-top:18px}
.media-video-card{padding:0;overflow:hidden}
.media-video-card>img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--surface-soft)}
.media-video-card>small,.media-video-card>h2,.media-video-card>b{margin-left:22px;margin-right:22px}
.media-video-card>small{margin-top:22px}
.media-video-card>b{margin-bottom:22px}

/* Modo escuro */
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6){color:#fff!important}
html[data-theme="dark"] :is(.arrow-link,.section-link,.plain-link,.text-link,.card-action,.event-card>a,.regional-card b,.benefit-card b,.document-card b,.secretary-card b,.person-card b,.media-archive-card b){color:#fff!important}
html[data-theme="dark"] .site-main,
html[data-theme="dark"] .editorial-hero,
html[data-theme="dark"] .photo-carousel-section,
html[data-theme="dark"] .home-gallery,
html[data-theme="dark"] .gallery-archive-section,
html[data-theme="dark"] .member-services,
html[data-theme="dark"] .territorial-section,
html[data-theme="dark"] .video-section{background:var(--paper)}
html[data-theme="dark"] .section-soft,
html[data-theme="dark"] .home-shortcuts,
html[data-theme="dark"] .membership-section,
html[data-theme="dark"] .member-dashboard-shell,
html[data-theme="dark"] .booking-page,
html[data-theme="dark"] .member-auth-section{background:var(--surface-soft)}
html[data-theme="dark"] :is(.post-card,.event-card,.benefit-card,.document-card,.regional-card,.secretary-card,.person-card,.media-archive-card,.dashboard-card,.stat-card,.sector-card,.aside-card,.request-card,.contact-cards article,.multi-step-card,.search-results-page>a,.video-choice,.booking-panel,.membership-form,.result-card,.history-band,.official-content,.privacy-banner){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .transparency-grid>*,
html[data-theme="dark"] .services-matrix>a,
html[data-theme="dark"] .institution-grid a{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] :is(.post-card-title,.event-card h3,.benefit-card h2,.benefit-card h3,.document-card h2,.regional-card h2,.secretary-card h2,.person-card h2,.media-archive-card h2,.result-card h2,.dashboard-card h2,.dashboard-card h3,.sector-card h3){color:#fff}
html[data-theme="dark"] :is(.post-card-meta,.post-card-excerpt,.event-card p,.benefit-card p,.document-card p,.regional-card p,.secretary-card p,.person-card p,.media-archive-card p,.result-card p,.dashboard-card p,.sector-card p){color:var(--muted)}
html[data-theme="dark"] :is(.section-kicker,.eyebrow:not(.eyebrow--light),.post-card .meta-cat,.service-path small,.media-archive-card small,.document-card small,.regional-card small,.benefit-card small,.person-card small){color:#fff}
html[data-theme="dark"] .secretary-card small{color:#caf0f8}
html[data-theme="dark"] .editorial-trigger-copy>span b,
html[data-theme="dark"] .video-choice small{color:#fff}
html[data-theme="dark"] .editorial-index{color:var(--muted)}
html[data-theme="dark"] .contact-cards small{color:#fff}
html[data-theme="dark"] .editorial-trigger-copy>span,
html[data-theme="dark"] .home-shortcuts-grid small{color:var(--muted)}
html[data-theme="dark"] :is(.field-label input,.field-label select,.field-label textarea,.contact-form input,.contact-form select,.contact-form textarea,.booking-panel input,.booking-panel select,.booking-panel textarea,.filter-search,.filter-search input,.regional-search label,.regional-search input,.search-field input,.drawer-search input,.newsletter-field input,.archive-filter-form input,.archive-filter-form select){background:var(--surface-raised);border-color:var(--line);color:#fff}
html[data-theme="dark"] ::placeholder{color:#eefaff;opacity:1}
html[data-theme="dark"] .filter-scroll button{background:var(--surface);border-color:var(--line);color:#fff}
html[data-theme="dark"] .filter-scroll button:hover{background:#00b4d8;border-color:#90e0ef;color:#03045e}
html[data-theme="dark"] .filter-scroll button.is-active{background:#caf0f8;border-color:#caf0f8;color:#03045e}
html[data-theme="dark"] .pagination .page-numbers.current{background:#00b4d8;border-color:#90e0ef;color:#03045e}
html[data-theme="dark"] .choice-grid label span{background:var(--surface-raised);border-color:var(--line);color:#fff}
html[data-theme="dark"] .choice-grid label span small{color:var(--muted)}
html[data-theme="dark"] .choice-grid input:checked+span{background:#caf0f8;border-color:#90e0ef;color:#03045e}
html[data-theme="dark"] .choice-grid input:checked+span small{color:#03045e}
.choice-grid input:focus-visible+span{outline:3px solid var(--focus-ring);outline-offset:3px;box-shadow:0 0 0 6px var(--focus-halo)}
html[data-theme="dark"] :is(.doc-icon-big,.media-archive-card>div,.document-card>span,.aside-card>span,.salary-table th,.user-avatar,.security-mark,.form-progress button.is-active span,.news-near-header .location-badge){background:#03045e;color:#fff}
html[data-theme="dark"] .submission-explainer{background:var(--surface-soft);border-color:#90e0ef;color:#fff}
html[data-theme="dark"] .membership-callout .light-button{background:#fff;border-color:#fff;color:#03045e}
html[data-theme="dark"] .search-field button{background:#03045e;color:#fff}
html[data-theme="dark"] .brand-intro,
html[data-theme="dark"] .brand-intro button{color:#03045e}
html[data-theme="dark"] .login-card{background:var(--surface);border-color:var(--line);color:#fff}
html[data-theme="dark"] .login-card :is(h2,label,.checkbox-label span,.login-footer p){color:#fff}
html[data-theme="dark"] .login-card :is(.login-header p,.login-divider){color:var(--muted)}
html[data-theme="dark"] .login-card :is(.login-options a,.password-toggle,.login-footer a){color:var(--navy)}
html[data-theme="dark"] .member-trust-panel .access-type{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.24);color:#fff}
html[data-theme="dark"] .member-trust-panel .access-type p{color:#eefaff}
html[data-theme="dark"] .footer-newsletter .newsletter-field button{background:#c80018;color:#fff}
html[data-theme="dark"] .site-header{background:#90e0ef;border-color:rgba(3,4,94,.24)}
html[data-theme="dark"] .site-header.is-sticky{background:rgba(144,224,239,.96)}
html[data-theme="dark"] .brand{background:transparent;border-radius:0;padding:0;box-shadow:none}
html[data-theme="dark"] .header-icon,
html[data-theme="dark"] .menu-toggle{background:#03045e;border-color:#03045e;color:#fff}
html[data-theme="dark"] .header-icon:hover,
html[data-theme="dark"] .menu-toggle:hover{background:#0077b6;border-color:#0077b6}
html[data-theme="dark"] .editorial-stage{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
html[data-theme="dark"] .editorial-latest{background:var(--surface)}
html[data-theme="dark"] .editorial-trigger{border-color:var(--line)}
html[data-theme="dark"] .editorial-trigger:hover,
html[data-theme="dark"] .editorial-trigger:focus-visible,
html[data-theme="dark"] .editorial-trigger.is-active{background:#03045e}
html[data-theme="dark"] .editorial-thumb{border-color:#90e0ef;background:#caf0f8;box-shadow:0 8px 18px rgba(3,4,94,.28)}
html[data-theme="dark"] .photo-carousel-actions button{background:var(--surface);border-color:var(--line);color:#fff}
html[data-theme="dark"] .photo-carousel-actions button:hover{background:#00b4d8;border-color:#90e0ef;color:#03045e}
html[data-theme="dark"] .photo-slide{border:1px solid var(--line);box-shadow:0 18px 46px rgba(0,0,0,.28)}
html[data-theme="dark"] .home-gallery{border-color:var(--line)}
html[data-theme="dark"] .photo-event-card,
html[data-theme="dark"] .event-photo-tile{border-color:var(--line);box-shadow:0 18px 46px rgba(0,0,0,.3)}
html[data-theme="dark"] .photo-event-card{background:var(--paper)}
html[data-theme="dark"] .media-tabs{background:var(--paper);border-color:var(--control-line)}
html[data-theme="dark"] .media-tab{color:#caf0f8}
html[data-theme="dark"] .media-tab:hover{background:#0077b6;color:#fff}
html[data-theme="dark"] .media-tab.is-active{background:#00b4d8;color:#03045e}
html[data-theme="dark"] .informativos-section{background:linear-gradient(180deg,var(--paper),var(--surface))}
html[data-theme="dark"] .informativo-featured{background:linear-gradient(135deg,#07113b,#03045e);border-color:rgba(144,224,239,.35)}
html[data-theme="dark"] .informativo-featured-copy h2{color:#fff}
html[data-theme="dark"] .informativo-featured-copy>p:not(.section-kicker){color:#caf0f8}
html[data-theme="dark"] .informativo-meta span{background:rgba(0,119,182,.3);border-color:rgba(144,224,239,.35);color:#eefaff}
html[data-theme="dark"] .informativo-card{background:var(--paper);border-color:var(--control-line)}
html[data-theme="dark"] .informativos-toolbar label{background:var(--paper);border-color:var(--control-line)}
html[data-theme="dark"] .home-shortcuts-grid>a{border-color:var(--line);color:#fff}
html[data-theme="dark"] .home-shortcuts-grid>a>span{background:var(--surface-raised);color:var(--navy);box-shadow:none}
html[data-theme="dark"] .home-shortcuts-grid>a:hover{background:var(--surface-raised);color:var(--navy)}
html[data-theme="dark"] .institutional-copy>p:not(.section-kicker),
html[data-theme="dark"] .institutional-facts span,
html[data-theme="dark"] .service-path p,
html[data-theme="dark"] .section-title-row>p{color:var(--muted)}
html[data-theme="dark"] .institutional-facts,
html[data-theme="dark"] .institutional-facts article{border-color:var(--line)}
html[data-theme="dark"] .service-path{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .service-path>span{background:var(--surface-soft);color:var(--navy)}
html[data-theme="dark"] .service-path b{color:#fff}
html[data-theme="dark"] .service-path--primary{background:linear-gradient(145deg,#005f98,#0077b6);border-color:#90e0ef}
html[data-theme="dark"] .membership-callout{background:linear-gradient(120deg,#0077b6,#005f98)}
html[data-theme="dark"] .membership-callout p:not(.section-kicker){color:#eefaff}
html[data-theme="dark"] .territorial-copy .light-button{background:#caf0f8;border-color:#caf0f8;color:#03045e}
html[data-theme="dark"] .site-footer{background:#043d79;color:var(--ink)}
html[data-theme="dark"] .footer-newsletter{background:#03045e}
html[data-theme="dark"] .footer-identity>p,
html[data-theme="dark"] .footer-identity address,
html[data-theme="dark"] .site-footer .footer-navigation a{color:var(--muted)}
html[data-theme="dark"] .site-footer .footer-navigation h3{color:var(--ink)}
html[data-theme="dark"] .footer-identity>a{background:#90e0ef;border-radius:14px;padding:8px 12px}
html[data-theme="dark"] .footer-social a{background:var(--surface);border-color:var(--line);color:#fff}
html[data-theme="dark"] .footer-legal{background:#03045e;border-color:var(--line)}
html[data-theme="dark"] .footer-legal>.container,
html[data-theme="dark"] .footer-legal a{color:var(--muted)}
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .drawer-card,
html[data-theme="dark"] .modal-content{background:var(--surface-raised);color:var(--ink)}
html[data-theme="dark"] .close-button{background:var(--surface-soft);color:var(--navy)}
html[data-theme="dark"] .a11y-control-grid button{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .associate-main{background:var(--surface-soft)}
html[data-theme="dark"] .page-hero{background:linear-gradient(125deg,#03045e,#006ba6)}
html[data-theme="dark"] .source-box{background:var(--surface);color:#fff}
html[data-theme="dark"] .content-warning{background:#392f19;border-color:#6f5b2b;color:#f4dfa9}
html[data-theme="dark"] .request-answer{background:#103b31}
html[data-theme="dark"] .salary-table tr:hover td{background:var(--surface-soft)}

@media(max-width:1180px){.theme-label{display:none}.theme-toggle{width:44px;padding:0;justify-content:center}}
@media(max-width:980px){.header-icon .theme-toggle-icons{display:grid}}
@media(max-width:620px){html[data-theme="dark"] .brand{padding:0;border-radius:0}.theme-toggle{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){body,.theme-toggle-icons .icon{transition:none!important}}

/* Auditoria móvel — navegação, leitura e alvos de toque */
:target{scroll-margin-top:110px}
button,a,input,select,textarea{touch-action:manipulation}
input[type="checkbox"],input[type="radio"]{accent-color:#0077b6}

@media(max-width:980px){
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  /* Galerias de matérias em 2 colunas no mobile/tablet (thumbnails maiores) */
  .post-content .gallery,
  .entry-content .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Filtros de arquivos/notícias em 2 colunas (base 4 colunas só no desktop) */
  .archive-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Botões de ação do header como círculos uniformes (visual de app) */
  .header-icon,.menu-toggle{width:44px;height:44px;min-width:44px;padding:0;justify-content:center;border-radius:50%}
  .header-icon:hover,.menu-toggle:hover,
  .header-icon:focus-visible,.menu-toggle:focus-visible{background:#0077b6;border-color:#0077b6;color:#fff}
  .main-nav{overscroll-behavior:contain}
  .main-menu{width:100%;justify-content:stretch}
  .main-menu>li{width:100%}
  .main-menu .sub-menu{
    opacity:1;
    visibility:visible;
    transform:none;
    background:transparent;
    border:0;
  }
  .main-menu .sub-menu a{
    min-height:44px;
    display:flex!important;
    align-items:center;
    color:#caf0f8!important;
    line-height:1.35;
  }
  .main-menu .sub-menu a:hover,
  .main-menu .sub-menu a:focus-visible{background:#0077b6!important;color:#fff!important}
  .transparency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  .mobile-dock{
    position:fixed;
    z-index:2400;
    left:0;
    right:0;
    bottom:0;
    min-height:64px;
    padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    align-items:stretch;
    justify-content:space-around;
    gap:4px;
    border-top:1px solid rgba(144,224,239,.5);
    background:rgba(0,0,54,.97);
    box-shadow:0 -12px 34px rgba(0,0,54,.22);
    backdrop-filter:blur(14px);
  }
  .mobile-dock :is(a,button){
    flex:1 1 0;
    min-width:0;
    min-height:52px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:5px 3px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#fff;
    font-size:.66rem;
    font-weight:800;
  }
  .mobile-dock :is(a,button):hover,
  .mobile-dock :is(a,button):focus-visible{background:#0077b6;color:#fff}
  .mobile-dock .icon{width:20px;height:20px}
}

@media(max-width:620px){
  :root{--container:calc(100vw - 34px)}
  /* Filtros de arquivos/notícias empilhados no celular */
  .archive-filter-form{grid-template-columns:1fr}
  .archive-filter-form>label:first-child{grid-column:auto}
  .archive-filter-form .primary-button,
  .archive-filter-form .secondary-button{width:100%}
  .header-main{height:72px;gap:8px}
  .brand{width:min(57vw,calc(100% - 142px));min-width:0;max-width:none}
  .brand img{max-height:56px}
  .header-actions{flex:0 0 auto;gap:6px}
  .header-icon,.menu-toggle,.theme-toggle{width:44px;height:44px;min-width:44px}
  .menu-toggle .icon{width:20px;height:20px}
  .main-nav,.site-header.is-sticky .main-nav{inset:0 auto 0 0}
  .nav-inner{padding:0 14px calc(82px + env(safe-area-inset-bottom))}
  .mobile-menu-header{margin:0 -14px 10px;padding-inline:14px}
  .main-menu>li>a{min-height:48px;padding:13px 8px;font-size:.94rem}
  .main-menu .sub-menu{padding-left:12px}
  .main-menu .sub-menu a{padding:10px 8px;font-size:.84rem}

  .page-hero{padding:48px 0 54px}
  .page-hero h1{
    max-width:100%;
    margin:10px 0 16px;
    font-size:clamp(2.05rem,9vw,2.55rem);
    line-height:1.01;
    letter-spacing:-.045em;
    overflow-wrap:break-word;
    hyphens:none;
  }
  .page-hero p:not(.eyebrow){font-size:.98rem;line-height:1.55}
  .breadcrumbs{margin-bottom:22px;font-size:.74rem;line-height:1.5}

  .transparency-grid{grid-template-columns:1fr}
  .transparency-grid>*{min-width:0;padding:22px}
  .contact-layout>*{min-width:0}
  .contact-cards{min-width:0}
  .contact-cards article{min-width:0;grid-template-columns:48px minmax(0,1fr);padding:18px 16px}
  .contact-cards article>div{min-width:0}
  .contact-cards :is(p,a,h2){overflow-wrap:anywhere}
  .people-grid{grid-template-columns:1fr}
  .person-card{grid-template-columns:88px minmax(0,1fr);gap:16px;padding:16px}
  .person-photo{width:88px;height:112px}
  .multi-step-card{padding:22px 16px}
  .choice-grid{grid-template-columns:1fr}
  .steps-line{display:flex;overflow-x:auto;scroll-snap-type:x proximity}
  .steps-line span{min-width:150px;scroll-snap-align:start}
  .dashboard-header,.dashboard-actions,.form-actions{align-items:stretch;flex-direction:column}
  .form-actions :is(button,a){width:100%;min-height:48px}

  .search-overlay,.drawer{padding:10px}
  .search-panel,.drawer-card{max-height:calc(100dvh - 20px);padding:30px 18px 22px;border-radius:18px}
  .search-panel h2{padding-right:38px;font-size:clamp(1.75rem,8vw,2.25rem)}
  .close-button{right:12px;top:12px;width:44px;height:44px}
  .a11y-control-grid{grid-template-columns:1fr}
  .a11y-control-grid button{min-height:48px}

  .gallery-viewer-toolbar{min-height:70px;gap:10px;padding:10px 10px 10px 14px}
  .gallery-viewer-heading h2{max-width:calc(100vw - 126px)}
  .gallery-viewer-actions{gap:6px}
  .gallery-viewer-actions :is(a,button){display:inline-flex;width:44px;min-width:44px;height:44px;padding:0}
  .gallery-viewer-actions :is(a,button) span{display:none}
  .gallery-viewer-stage{position:relative;display:block;padding:4px}
  .gallery-viewer-figure{height:100%}
  .gallery-viewer-nav{
    position:absolute;
    z-index:4;
    top:50%;
    width:44px;
    height:56px;
    transform:translateY(-50%);
    background:rgba(0,0,54,.78);
    backdrop-filter:blur(7px);
  }
  .gallery-viewer-prev{left:8px}
  .gallery-viewer-next{right:8px}

  .pdf-reader-controls :is(button,a){min-width:44px;height:44px}
  .pdf-reader-footer>button{min-width:44px;min-height:44px}
  .pdf-reader-footer input{height:44px}
  .informativo-card-copy>div:last-child :is(button,a){min-height:44px;padding:10px 6px}
  .post-share a,.post-share button{min-height:44px;display:inline-flex;align-items:center;padding:10px 13px}
  .brand-intro button{min-height:44px;padding:10px 14px}

  .newsletter-consent input,.consent-line input,.contact-form input[type="checkbox"]{
    width:20px!important;
    min-width:20px;
    height:20px!important;
    margin:1px 0 0!important;
  }
  .newsletter-consent,.consent-line{gap:10px;line-height:1.55}
  .footer-social a{min-height:44px;padding:9px 12px}
  .site-footer .footer-navigation a{min-height:42px;display:flex;align-items:center;margin:0}
  .footer-legal span:last-child{width:100%;gap:4px 14px}
  .footer-legal a,.footer-legal button{min-height:44px;display:inline-flex;align-items:center;padding:8px 0}
  .footer-legal>.container{padding-bottom:18px}
}

@media(max-width:380px){
  .brand{width:calc(100% - 136px)}
  .header-actions{gap:3px}
  .header-icon,.menu-toggle,.theme-toggle{width:42px;height:42px;min-width:42px}
  .search-field{grid-template-columns:1fr}
  .search-field button{min-height:48px;justify-content:center}
  .gallery-viewer-heading h2{max-width:calc(100vw - 120px)}
  .pdf-reader-toolbar{min-height:118px}
  .pdf-reader-controls{gap:4px}
  .pdf-reader-controls :is(button,a){min-width:42px;width:42px;height:42px;padding:6px}
  .pdf-reader-controls .pdf-reader-zoom{min-width:62px;width:auto}
}

@media(hover:none){
  :where(.post-card,.event-card,.benefit-card,.document-card,.regional-card,.secretary-card,.person-card,.media-archive-card,.sector-card,.services-matrix>a,.search-results-page>a):hover{transform:none}
}
