/* ==========================================================================
   PESQUISA REGULA MELHOR: CSS do template (Helix Ultimate)
   Paleta: marca Governo do Brasil (Azul Atlântico, Amarelo Sol…), a mesma da ABDI.
   Regra do projeto: nenhum texto visível neste arquivo (sem content:"texto").
   ========================================================================== */

/* ---------- Fonte Rawline (arquivos locais do template) ---------- */
@font-face { font-family: 'Rawline'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/rawline-300.ttf') format('truetype'); }
@font-face { font-family: 'Rawline'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/rawline-400.ttf') format('truetype'); }
@font-face { font-family: 'Rawline'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/rawline-400i.ttf') format('truetype'); }
@font-face { font-family: 'Rawline'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/rawline-500.ttf') format('truetype'); }
@font-face { font-family: 'Rawline'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/rawline-600.ttf') format('truetype'); }
@font-face { font-family: 'Rawline'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/rawline-700.ttf') format('truetype'); }
@font-face { font-family: 'Rawline'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/rawline-800.ttf') format('truetype'); }
@font-face { font-family: 'Rawline'; font-style: italic; font-weight: 800; font-display: swap; src: url('../fonts/rawline-800i.ttf') format('truetype'); }

:root {
    /* Marca Governo do Brasil */
    --color-blue-500: #183EFF;   /* Azul Atlântico */
    --color-yellow-400: #FFD000; /* Amarelo Sol */
    --color-green-500: #00D000;  /* Verde Amazônia */
    --color-red-500: #FF0000;    /* Vermelho Urucum */

    /* Tokens do projeto */
    --rm-primary: #183EFF;
    --rm-primary-hover: #1029B8;
    --rm-navy: #071D41;
    --rm-yellow: #FFD000;
    --rm-green: #168821;
    --rm-green-brand: #00D000;
    --rm-red: #FF0000;
    --rm-blue-soft: #E6EBFF;
    --rm-green-soft: #C8F5C8;
    --rm-yellow-soft: #FFF5C2;
    --rm-text: #333333;
    --rm-muted: #555555;
    --rm-bg-alt: #F6F8FB;
    --rm-border: #DFE6EF;
    --rm-white: #FFFFFF;
    --rm-radius: 12px;
    --rm-shadow: 0 2px 12px rgba(7, 29, 65, .06);
    --rm-shadow-hover: 0 10px 28px rgba(7, 29, 65, .10);
    --rm-hero-gradient: linear-gradient(135deg, #183EFF 0%, #1029B8 55%, #071D41 100%);

    /* Variáveis antigas, ainda usadas pelo modal de login e telas do com_edital */
    --primary: var(--rm-primary);
    --primary-dark: var(--rm-navy);
    --secondary: var(--rm-yellow);
    --success: var(--rm-green);
    --danger: var(--rm-red);
    --warning: var(--rm-yellow);
    --info: var(--rm-primary);
    --white: #ffffff;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rawline', Raleway, Arial, sans-serif;
}
body {
    font-size: 16px;
    color: var(--rm-text);
    background: var(--rm-white);
}
h1, h2, h3, h4, h5, h6 { color: var(--rm-navy); font-weight: 700; }
h1 { font-size: 42px; }
h2, .sp-page-title .sp-page-title-heading { font-size: 32px; }
h3 { font-size: 22px; }
h4, h5 { font-size: 18px; }
a { color: var(--rm-primary); }
a:hover { color: var(--rm-primary-hover); }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--rm-yellow);
    outline-offset: 2px;
}

.sp-page-title { background: transparent; }
.sp-page-title .sp-page-title-heading, .sp-page-title .sp-page-title-sub-heading { color: var(--rm-navy); }
.sp-page-title-sub-heading { font-weight: 400 !important; font-size: 16.8px !important; letter-spacing: 0; }

#sp-main-body { padding: 0; }
#sp-component { margin-bottom: 30px; }
.text-dark { color: #000000 !important; }

/* ==========================================================================
   CABEÇALHO (barra gov + logo + menu), header 10-Custom
   ========================================================================== */
#sp-top-bar-custom {
    background: var(--rm-primary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
#sp-top-bar-custom .sp-module { margin: 0; }
#sp-top-bar-custom p { margin: 0; color: #fff; }
.rm-govbar-sep { margin: 0 8px; opacity: .6; }
#sp-top2 ul { display: inline-flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
#sp-top2 ul li { margin: 0; padding: 0; }
#sp-top2 ul li a { color: #fff; font-size: 13px; text-decoration: none; }
#sp-top2 ul li a:hover, #sp-top2 ul li a:focus-visible { color: var(--rm-yellow); text-decoration: underline; }

#sp-header { position: relative; background: #fff; box-shadow: none; }
#sp-header::after {               /* faixa multicolorida (marca Governo do Brasil) */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg,
        var(--rm-navy) 0 140px, var(--rm-yellow) 140px 200px,
        var(--rm-green-brand) 200px 320px, var(--rm-red) 320px 360px);
}
#sp-header .logo-image { height: 52px; width: auto; }

.sp-megamenu-parent > li > a {
    color: var(--rm-navy) !important;
    font-weight: 600 !important;
    font-size: 15px;
    border-radius: 100px;
    padding: 6px 14px !important;
    line-height: 1.4 !important;
}
.sp-megamenu-parent > li:hover > a { color: var(--rm-primary) !important; }
.sp-megamenu-parent > li.active > a {           /* item ativo em pílula (ABDI) */
    background: var(--rm-primary);
    color: #fff !important;
}
.sp-megamenu-parent > li > a.rm-menu-cta,
.sp-megamenu-parent > li.active > a.rm-menu-cta {  /* destaque "Responder à pesquisa" */
    background: var(--rm-yellow);
    color: var(--rm-navy) !important;
    font-weight: 700 !important;
    margin-left: 6px;
}
.sp-megamenu-parent > li > a.rm-menu-cta:hover { background: #FFDC3D; }

/* botão Entrar (recurso de login do Helix) */
#loginBtn.btn-custom {
    background: transparent;
    color: var(--rm-primary);
    border: 1.5px solid var(--rm-primary);
    border-radius: 100px;
    padding: 6px 16px;
    font-weight: 600;
}
#loginBtn.btn-custom:hover { background: var(--rm-primary); color: #fff; }

/* menu do usuário logado: acima da faixa multicolorida e sem quebra de linha */
.sp-profile-wrapper .sp-sign-in { color: var(--rm-primary); font-weight: 600; }
.sp-profile-wrapper .sp-profile-dropdown {
    z-index: 1050;
    top: calc(100% + 14px);
    min-width: 240px;
    margin: 0;
    padding: 8px !important;
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    box-shadow: var(--rm-shadow-hover);
}
.sp-profile-wrapper .sp-profile-dropdown::before {   /* ponte invisível: o hover não se perde no espaço até o menu */
    content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.sp-profile-wrapper .sp-profile-dropdown ul { margin: 0; padding: 0; list-style: none; }
.sp-profile-wrapper .sp-profile-dropdown li { margin: 0; padding: 0; }
.sp-profile-wrapper .sp-profile-dropdown > li:not(:last-child) {
    margin: 0 0 4px; padding: 0 0 4px; border-bottom: 1px solid var(--rm-border);
}
/* "ul.sp-profile-dropdown li a" é mais específico que a regra do template (".sp-profile-dropdown li a", display:block) */
.sp-profile-wrapper ul.sp-profile-dropdown li a {
    display: flex; align-items: center; justify-content: flex-start;
    width: 100%; min-height: 46px; box-sizing: border-box;
    padding: 12px 16px; border-radius: 8px;
    color: var(--rm-navy); font-size: 14px; font-weight: 500; line-height: 1.3;
    text-align: left; white-space: nowrap; text-decoration: none;
}
.sp-profile-wrapper ul.sp-profile-dropdown li a:hover,
.sp-profile-wrapper ul.sp-profile-dropdown li a:focus-visible { background: var(--rm-blue-soft); color: var(--rm-primary); }

/* menu lateral do celular: opções do usuário logado (no cabeçalho elas ficam ocultas abaixo de 992px) */
.offcanvas-menu .header-modules { flex-wrap: wrap; gap: 12px; }
.rm-offcanvas-user { flex: 0 0 100%; }
.rm-offcanvas-user-name {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--rm-navy);
}
.rm-offcanvas-user-name .fa-user-circle { color: var(--rm-primary); font-size: 18px; }
.rm-offcanvas-user-menu,
.offcanvas-menu .offcanvas-inner .rm-offcanvas-user-menu ul { display: block; margin: 0; padding: 0; list-style: none; }
.rm-offcanvas-user-menu {
    border: 1px solid var(--rm-border); border-radius: var(--rm-radius);
    padding: 6px; background: #fff;
}
.rm-offcanvas-user-menu > li:not(:last-child) { border-bottom: 1px solid var(--rm-border); padding-bottom: 4px; margin-bottom: 4px; }
.offcanvas-menu .offcanvas-inner .rm-offcanvas-user .rm-offcanvas-user-menu li { margin: 0; padding: 0; border: 0; overflow: visible; }
.offcanvas-menu .offcanvas-inner .rm-offcanvas-user .rm-offcanvas-user-menu li a {   /* 0,4,2: vence ".offcanvas-inner ul.menu>li>a" (0,3,3) do template */
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 16px; border-radius: 8px;
    color: var(--rm-navy); font-size: 16px; font-weight: 600; line-height: 1.3;
    text-decoration: none; opacity: 1;
}
.offcanvas-menu .offcanvas-inner .rm-offcanvas-user .rm-offcanvas-user-menu li a:hover,
.offcanvas-menu .offcanvas-inner .rm-offcanvas-user .rm-offcanvas-user-menu li a:focus-visible { background: var(--rm-blue-soft); color: var(--rm-primary); }
.sp-profile-wrapper:focus-within .sp-profile-dropdown { display: block !important; }   /* abre também pelo teclado */

/* Breadcrumbs */
.breadcrumb-item+.breadcrumb-item::before { content: ">"; color: #CCCCCC !important; }
.sp-page-title .breadcrumb > .active { color: #333333; }
.sp-page-title .breadcrumb > span,
.sp-page-title .breadcrumb > li,
.sp-page-title .breadcrumb > li + li:before,
.sp-page-title .breadcrumb > li > a { color: var(--rm-primary); font-weight: 500; font-size: 12px; }

/* Plugin de acessibilidade do Joomla */
._access-icon {
    height: 40px !important; width: 40px !important;
    background-color: var(--rm-primary) !important;
    left: auto !important; right: 8px !important; bottom: 40% !important;
    font-size: 30px !important; line-height: 40px !important;
    border-radius: 8px;
}
._access-menu._access { left: auto !important; right: 0 !important; width: 25vw !important; }

/* ==========================================================================
   RODAPÉ (colunas do Portal IQ, visual da ABDI)
   ========================================================================== */
.rm-footer {
    position: relative;
    overflow: hidden;
    background: var(--rm-primary) !important;
    color: #fff;
    padding: 56px 0 32px;
}
.rm-footer .sp-module-title,
.rm-footer h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}
.rm-footer p { color: #fff; }
.rm-footer a { color: #fff; }
.rm-footer a:hover, .rm-footer a:focus-visible { color: var(--rm-yellow); }
.rm-footer ul { list-style: none; margin: 0; padding: 0; }
.rm-footer ul li { padding: 6px 0; font-size: 14px; }
.rm-footer-sobre img { height: 48px; width: auto; margin-bottom: 16px; }
.rm-footer-sobre strong { display: block; font-size: 18px; margin-bottom: 6px; }
.rm-footer-sobre p { font-size: 14px; max-width: 360px; opacity: .9; }
.rm-footer-contato li { display: flex; gap: 10px; align-items: flex-start; }
.rm-footer-contato .fa-solid { margin-top: 3px; color: var(--rm-yellow); }
.rm-footer-watermark {          /* marca d'água: o texto vem do módulo footer1 */
    position: absolute;
    right: -24px; bottom: -40px;
    font-size: 160px; font-weight: 800; line-height: 1;
    color: rgba(255, 255, 255, .06);
    white-space: nowrap;
    pointer-events: none;
}
.rm-footer .container, .rm-footer .row { position: relative; z-index: 1; }

.rm-copyright {
    background: var(--rm-primary) !important;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 13px;
    padding: 16px 0;
}
.rm-copyright p { margin: 0; color: #fff; }

.rm-assinatura { background: #fff !important; padding: 28px 0; }
.rm-assinatura-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; }
.rm-assinatura-logos img { height: 56px; width: auto; max-width: 100%; }
.rm-assinatura-logos .rm-assinatura-sep { width: 1px; height: 48px; background: var(--rm-border); }

/* ==========================================================================
   ESTILOS MANTIDOS (modal de login, telas do com_edital)
   ========================================================================== */
/*=================================================
=                  Modal Login                     =
==================================================*/
.login-modal-dialog {
    max-width: 448px;
}

.login-modal-content {
    border: none;
    border-radius: 16px;
    padding: 32px 28px 24px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

#loginCpf, #loginPassword, #resetPassword, #resetCpf, #resetEmail {
    padding: 0.5rem 2.5rem !important;
    width: 100%;
    height: 40px;
    opacity: 1;
    border-radius: 2px;
    border-width: 1px;

}
.login-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
}

.login-modal-header h5 {
    font-family: 'Rawline', sans-serif;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;

}

.login-modal-header p {
    font-family: 'Rawline', sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: rgba(124, 131, 141, 1);

}

.login-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-govbr .mod-oidc-login {
    padding: 0;
}

.login-govbr .btn-oidc-login {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    border-radius: 2px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(124, 131, 141, 1);
    font-family: 'Rawline', sans-serif;
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #ddd;
}

.login-cpf-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field label {
    font-family: 'Rawline', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Rawline', sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

.login-input-wrapper input::placeholder {
    color: #aaa;
}

.login-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(111, 62, 19, 0.1);
}

.login-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.login-toggle-password:hover {
    color: #666;
}

.login-btn-submit {
    width: 100%;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Rawline', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 4px;
    height: 40px;
    opacity: 1;
    border-radius: 2px;
    top: 168px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    background-color: var(--primary);

}

.login-btn-submit:hover {
    background-color: var(--primary-dark);
}

.login-forgot {
    text-align: center;
}

.login-forgot a {
    font-family: 'Rawline', sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: rgba(20, 89, 179, 1);


}

.login-forgot a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.login-terms {
    font-family: 'Rawline', sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 10px;
    line-height: 15px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: rgba(124, 131, 141, 1);


}
/*==============Fim Modal Login ===========*/


/*=================================================
=             Tela Escolha de Perfil               =
==================================================*/
.perfil-escolha-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.perfil-escolha-header {
    text-align: center;
    margin-bottom: 40px;
}

.perfil-escolha-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
}

.perfil-escolha-header h2 {
    font-family: 'Rawline', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #000;
    margin-bottom: 8px;
}

.perfil-escolha-header p {
    font-family: 'Rawline', sans-serif;
    font-size: 15px;
    color: #666;
}

.perfil-escolha-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.perfil-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.perfil-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(111, 62, 19, 0.12);
    transform: translateY(-4px);
    text-decoration: none;
}

.perfil-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #F1ECE8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.perfil-card h3 {
    font-family: 'Rawline', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.perfil-card p {
    font-family: 'Rawline', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 576px) {
    .perfil-escolha-cards {
        grid-template-columns: 1fr;
    }
}
/*==============Fim Escolha de Perfil ===========*/

/* Toast padronizado */
#sp-main {
    position: relative;
}

#sp-main:has(#system-message-container .alert),
#sp-main:has(#system-message-container joomla-alert) {
    padding-top: 39px;
}

#system-message-container {
    position: absolute !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 0 0 -50vw !important;
    z-index: 20;
}

#system-message-container .alert,
#system-message-container joomla-alert {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    max-width: none !important;
    min-height: 39px;
    margin: 0;
    padding: 0 52px 0 70px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.25;
    color: #111827;
}

#system-message-container .alert::before,
#system-message-container joomla-alert::before {
    position: absolute;
    left: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

#system-message-container .alert strong,
#system-message-container joomla-alert strong {
    font-weight: 700;
}

#system-message-container .alert > .btn-close,
#system-message-container .alert .joomla-alert--close,
#system-message-container joomla-alert > .btn-close,
#system-message-container joomla-alert .joomla-alert--close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    background-image: none;
    border: 0;
    opacity: 1;
    color: currentColor;
    cursor: pointer;
    font-size: 0;
}

#system-message-container .alert > .btn-close span,
#system-message-container .alert .joomla-alert--close span,
#system-message-container joomla-alert > .btn-close span,
#system-message-container joomla-alert .joomla-alert--close span {
    display: none;
}

#system-message-container .alert > .btn-close::before,
#system-message-container .alert .joomla-alert--close::before,
#system-message-container joomla-alert > .btn-close::before,
#system-message-container joomla-alert .joomla-alert--close::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 900;
}

#system-message-container .alert-success,
#system-message-container joomla-alert[type="success"],
#system-message-container joomla-alert[type="message"] {
    background: rgba(34, 160, 86, 0.15);
    color: #111827;
}

#system-message-container .alert-success::before,
#system-message-container joomla-alert[type="success"]::before,
#system-message-container joomla-alert[type="message"]::before {
    content: "\f00c";
    color: #22a056;
}

#system-message-container .alert-success > .btn-close,
#system-message-container .alert-success .joomla-alert--close,
#system-message-container joomla-alert[type="success"] > .btn-close,
#system-message-container joomla-alert[type="success"] .joomla-alert--close,
#system-message-container joomla-alert[type="message"] > .btn-close,
#system-message-container joomla-alert[type="message"] .joomla-alert--close {
    color: #22a056;
}

#system-message-container .alert-danger,
#system-message-container .alert-error,
#system-message-container joomla-alert[type="danger"],
#system-message-container joomla-alert[type="error"] {
    background: rgba(237, 28, 13, 0.15);
    color: #111827;
}

#system-message-container .alert-danger::before,
#system-message-container .alert-error::before,
#system-message-container joomla-alert[type="danger"]::before,
#system-message-container joomla-alert[type="error"]::before {
    content: "\f00d";
    color: #ed1c0d;
}

#system-message-container .alert-danger > .btn-close,
#system-message-container .alert-danger .joomla-alert--close,
#system-message-container .alert-error > .btn-close,
#system-message-container .alert-error .joomla-alert--close,
#system-message-container joomla-alert[type="danger"] > .btn-close,
#system-message-container joomla-alert[type="danger"] .joomla-alert--close,
#system-message-container joomla-alert[type="error"] > .btn-close,
#system-message-container joomla-alert[type="error"] .joomla-alert--close {
    color: #ed1c0d;
}

#system-message-container .alert-info,
#system-message-container joomla-alert[type="info"],
#system-message-container joomla-alert[type="notice"] {
    background: rgba(19, 81, 216, 0.15);
    color: #111827;
}

#system-message-container .alert-info::before,
#system-message-container joomla-alert[type="info"]::before,
#system-message-container joomla-alert[type="notice"]::before {
    content: "\f129";
    color: #1351d8;
}

#system-message-container .alert-info > .btn-close,
#system-message-container .alert-info .joomla-alert--close,
#system-message-container joomla-alert[type="info"] > .btn-close,
#system-message-container joomla-alert[type="info"] .joomla-alert--close,
#system-message-container joomla-alert[type="notice"] > .btn-close,
#system-message-container joomla-alert[type="notice"] .joomla-alert--close {
    color: #1351d8;
}

#system-message-container .alert-warning,
#system-message-container joomla-alert[type="warning"] {
    background: rgba(245, 159, 0, 0.15);
    color: #111827;
}

#system-message-container .alert-warning::before,
#system-message-container joomla-alert[type="warning"]::before {
    content: "\f071";
    color: #f59f00;
}

#system-message-container .alert-warning > .btn-close,
#system-message-container .alert-warning .joomla-alert--close,
#system-message-container joomla-alert[type="warning"] > .btn-close,
#system-message-container joomla-alert[type="warning"] .joomla-alert--close {
    color: #f59f00;
}



.menu-formularios-ente-container {
    background: var(--white);
    border-bottom: 1px solid #d9d9d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.menu-formularios-ente {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 8px 0;
}

.menu-formularios-ente .menu-link {
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #333333;
    display: flex;
    font-family: 'Rawline', sans-serif;
    font-size: 16px;
    font-weight: 600;
    gap: 8px;
    padding: 12px 16px 9px;
}

.menu-formularios-ente .menu-link:hover,
.menu-formularios-ente .menu-link:focus {
    color: var(--primary);
}

.menu-formularios-ente .menu-link.active {
    background: transparent;
    border-bottom-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 576px) {
    .menu-formularios-ente-container {
        margin-bottom: 24px;
    }

    .menu-formularios-ente {
        gap: 0;
        justify-content: space-between;
    }

    .menu-formularios-ente .nav-item {
        flex: 1;
    }

    .menu-formularios-ente .menu-link {
        font-size: 14px;
        justify-content: center;
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }
}

/*=================================================
=  Kicker compartilhado (adesão + artigos)        =
==================================================*/
.adesao-entry-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #1351B4;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/*=================================================
=           Tela de entrada da adesão             =
==================================================*/
.adesao-entry {
    max-width: 1040px;
    margin: 24px auto 64px;
}

.adesao-entry-intro {
    max-width: 720px;
    margin-bottom: 28px;
}

.adesao-entry-intro h1 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
}

.adesao-entry-intro p {
    margin: 0;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
}

.adesao-entry-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.adesao-entry-card {
    position: relative;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.adesao-entry-card-primary {
    border-top: 4px solid #1351b4;
}

.adesao-entry-card:not(.adesao-entry-card-primary) {
    border-top: 4px solid #5891dc;
}

.adesao-entry-icon {
    display: grid;
    width: 52px;
    height: 52px;
    color: #1351b4;
    background: #e7f2ff;
    border-radius: 50%;
    font-size: 1.3rem;
    place-items: center;
}

.adesao-entry-card h2 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 1.4rem;
}

.adesao-entry-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.adesao-entry-card .btn {
    align-self: flex-start;
    min-width: 180px;
}

@media (max-width: 767.98px) {
    .adesao-entry {
        margin-top: 12px;
    }

    .adesao-entry-options {
        grid-template-columns: 1fr;
    }

    .adesao-entry-card {
        min-height: 0;
        padding: 24px;
    }
}

/* ==========================================================================
   HOME: PESQUISA REGULA MELHOR (seções S2 a S11)
   Linhas do Helix com classe .rm-row; conteúdo vem dos módulos mod_custom.
   ========================================================================== */
.rm-row { padding: 88px 0; }
.rm-row-hero, .rm-row-cta, .rm-row-fique, .rm-row-sticky { padding: 0; }
.rm-row-numeros { padding: 24px 0 56px; }
.rm-row-alt { background: var(--rm-bg-alt); }
.rm-row .sp-module { margin: 0; }
.rm-row [id] { scroll-margin-top: 110px; }                  /* âncoras x cabeçalho fixo */
.view-featured.itemid-101 #sp-main-body { display: none; }   /* componente vazio na home */

/* ---------- Títulos de seção ---------- */
.rm-section-head { max-width: 760px; margin: 0 auto 48px; }
.rm-section-title { font-size: 32px; line-height: 1.2; color: var(--rm-navy); margin-bottom: 12px; }
.rm-section-lead { color: var(--rm-muted); font-size: 17px; line-height: 1.6; }
.rm-pill {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.rm-pill-blue { background: var(--rm-blue-soft); color: var(--rm-primary); }
.rm-pill-green { background: var(--rm-green-soft); color: #0B5D17; }
.rm-pill-yellow { background: var(--rm-yellow-soft); color: #7A5A00; }
.rm-kicker {
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--rm-muted); margin-bottom: 4px;
}
.rm-title-bar::after {               /* traço azul abaixo do título (ABDI) */
    content: "";
    display: block;
    width: 200px; max-width: 60%; height: 4px;
    margin-top: 12px; border-radius: 2px;
    background: var(--rm-primary);
}

/* ---------- Botões (pílula) ---------- */
.rm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 26px;
    border-radius: 100px; font-weight: 700; font-size: 16px;
    text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.rm-btn-cta { background: var(--rm-yellow); color: var(--rm-navy); border: 0; min-height: 52px; box-shadow: 0 6px 18px rgba(255, 208, 0, .25); }
.rm-btn-cta:hover, .rm-btn-cta:focus-visible { background: #FFDC3D; color: var(--rm-navy); }
.rm-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); }
.rm-btn-ghost:hover, .rm-btn-ghost:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.rm-btn-primary { background: var(--rm-primary); color: #fff; border: 0; }
.rm-btn-primary:hover, .rm-btn-primary:focus-visible { background: var(--rm-primary-hover); color: #fff; }
.rm-btn-outline { background: #fff; color: var(--rm-primary); border: 1.5px solid var(--rm-primary); }
.rm-btn-outline:hover, .rm-btn-outline:focus-visible { background: var(--rm-primary); color: #fff; }
.rm-btn-white { background: #fff; color: var(--rm-primary); border: 0; min-height: 40px; padding: 0 20px; font-size: 14px; }
.rm-btn-white:hover, .rm-btn-white:focus-visible { background: var(--rm-yellow); color: var(--rm-navy); }

/* ---------- S2 · Hero ---------- */
.rm-hero-inner {
    position: relative; overflow: hidden;
    background: var(--rm-hero-gradient);
    color: #fff;
    padding: 88px 0 140px;
}
.rm-hero-inner::before {            /* círculo decorativo */
    content: ""; position: absolute;
    width: 560px; height: 560px; border-radius: 50%;
    right: -140px; top: -120px;
    background: rgba(255, 255, 255, .05);
}
.rm-hero-inner::after {             /* onda (imagem decorativa do template) */
    content: ""; position: absolute;
    left: 0; right: 0; bottom: -1px; height: 64px;
    background: url("../images/rm/onda.svg") no-repeat;
    background-size: 100% 100%;
}
.rm-hero-inner .container { position: relative; z-index: 1; }
.rm-badge {                          /* sobretítulo editorial: régua tricolor + texto espaçado + fio */
    display: flex; align-items: center; gap: 14px;
    margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
}
.rm-badge-dot {                      /* régua com as cores da faixa do cabeçalho */
    flex: 0 0 44px; height: 5px;
    background: linear-gradient(90deg,
        var(--rm-yellow) 0 30%, transparent 30% 35%,
        var(--rm-green-brand) 35% 65%, transparent 65% 70%,
        #fff 70% 100%);
}
.rm-badge::after {                   /* fio que fecha a linha */
    content: ""; flex: 0 1 64px; height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
}
.rm-hero-title { font-size: 48px; line-height: 1.2; color: #fff; margin: 20px 0 24px; }
.rm-hero-title-light { display: block; font-weight: 300; }
.rm-hero-title-strong { display: block; font-weight: 700; padding-left: 1.25em; margin-top: .3em; line-height: 1.38; }   /* deslocada (ABDI) */
.rm-highlight, .rm-marker {          /* marca-texto (ABDI) */
    background: var(--rm-yellow); color: var(--rm-navy);
    padding: 0 .2em; border-radius: 4px;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.rm-hero-lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .92); max-width: 560px; }
.rm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 24px; }
.rm-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.rm-hero-chips li { font-size: 14px; padding: 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, .12); }
.rm-hero-partners { font-size: 14px; color: rgba(255, 255, 255, .8); margin: 0; }
.rm-hero-partners strong { color: #fff; }
.rm-glass {
    background: rgba(255, 255, 255, .10);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
}
.rm-hero-visual { position: relative; min-height: 420px; max-width: 470px; margin: 0 auto; }
.rm-mock { position: absolute; left: 50px; top: 60px; width: 330px; padding: 24px; color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.rm-mock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 17px; }
.rm-mock-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--rm-yellow); color: var(--rm-navy); }
.rm-mock-list { margin: 0; padding: 0; list-style: none; }
.rm-mock-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.rm-mock-list li.is-done .fa-solid { color: var(--rm-green-brand); }
.rm-mock-progress { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .2); margin: 18px 0 8px; }
.rm-mock-progress span { display: block; width: 57%; height: 100%; border-radius: 8px; background: var(--rm-green-brand); }
.rm-mock-foot { font-size: 13px; margin: 0; opacity: .85; }
.rm-float { position: absolute; padding: 10px 14px; font-size: 13px; font-weight: 600; color: #fff; display: inline-flex; gap: 8px; align-items: center; animation: rm-float 6s ease-in-out infinite; }
.rm-float-1 { right: 0; top: 26px; z-index: 2; }                          /* encostado no canto superior direito do card */
.rm-float-2 { left: 0; top: 352px; z-index: 2; animation-delay: -3s; }    /* canto inferior esquerdo do card */
.rm-shape-diamond { position: absolute; right: -24px; bottom: 6px; width: 90px; height: 90px; transform: rotate(45deg); border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 12px; }
@keyframes rm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- S3 · Números ---------- */
.rm-numeros-list { padding-left: 0; margin-bottom: 0; list-style: none; }
.rm-numeros-list li span { display: block; color: var(--rm-muted); font-size: 14px; max-width: 220px; margin: 0 auto; }
.rm-numero { display: block; font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--rm-navy); margin-bottom: 6px; }

/* ---------- S3b · Fique ligado ---------- */
.rm-fique-inner { position: relative; overflow: hidden; padding: 40px 0; background: var(--rm-bg-alt); }
.rm-fique-inner::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -80px; width: 34%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, var(--rm-green-soft) 0 45%, #6FA0E8 45% 55%, #8C9BFF 55% 63%, #3D6BFF 63% 80%, #3FC3FF 80% 100%);
}
.rm-fique-inner .container { position: relative; }
.rm-bubble {
    position: relative; display: inline-block; margin: 0;
    padding: 18px 26px;
    background: #fff; color: var(--rm-navy);
    font-size: 28px; font-weight: 800; font-style: italic; line-height: 1; text-transform: uppercase;
    border: 3px solid var(--rm-navy); border-radius: 18px;
    box-shadow: 6px 6px 0 var(--rm-yellow);
    transform: rotate(-4deg);
}
.rm-fique-list { padding-left: 0; margin-bottom: 0; list-style: none; }
.rm-fique-card {
    display: flex; justify-content: space-between; gap: 12px;
    height: 100%; min-height: 112px; padding: 20px;
    border-radius: 12px; background: var(--rm-primary); color: #fff;
    font-size: 18px; line-height: 1.3; text-decoration: none;
    box-shadow: var(--rm-shadow); transition: transform .2s, background .2s;
}
.rm-fique-card .fa-solid { font-size: 24px; align-self: flex-end; }
.rm-fique-card:hover, .rm-fique-card:focus-visible { background: var(--rm-primary-hover); color: #fff; transform: translateY(-4px); }

/* ---------- Cards e ícones ---------- */
.rm-card, .rm-cat, .rm-inst-card, .rm-law, .rm-formula-card {
    background: #fff; border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius); box-shadow: var(--rm-shadow);
}
.rm-card { padding: 28px; transition: transform .2s, box-shadow .2s; }
.rm-card:hover { transform: translateY(-4px); box-shadow: var(--rm-shadow-hover); }
.rm-card h3 { font-size: 18px; color: var(--rm-navy); margin: 16px 0 8px; }
.rm-card p { color: var(--rm-muted); margin: 0; line-height: 1.6; }
.rm-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex: 0 0 48px;
    border-radius: 12px; background: var(--rm-blue-soft); color: var(--rm-primary); font-size: 20px;
}

/* ---------- S4 · O que é o SCM ---------- */
.rm-formula-card { padding: 28px; }
.rm-formula-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-muted); margin-bottom: 18px; }
.rm-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rm-formula-item {
    flex: 1 1 120px; display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; font-weight: 600; font-size: 15px; color: var(--rm-navy);
    padding: 16px 10px; border-radius: 12px; background: var(--rm-bg-alt);
}
.rm-formula-result { background: var(--rm-yellow-soft); }
.rm-formula-result .rm-icon { background: var(--rm-yellow); color: var(--rm-navy); }
.rm-formula-op { font-size: 28px; font-weight: 700; color: var(--rm-primary); }
.rm-note { display: flex; gap: 10px; margin: 20px 0 0; font-size: 15px; color: var(--rm-muted); }
.rm-note .fa-solid { color: var(--rm-primary); margin-top: 4px; }

/* ---------- S4b · Quem deve responder ---------- */
.rm-publico-list { padding-left: 0; margin-bottom: 0; list-style: none; }
.rm-photo-card { margin: 0; text-align: center; }
.rm-photo-frame {
    position: relative; height: 200px; margin-top: 40px; border-radius: 16px;
    background: linear-gradient(160deg, #4D6BFF 0%, var(--rm-primary) 100%);
    display: flex; align-items: center; justify-content: center;
}
.rm-photo-frame img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 250px; width: auto; }
.rm-photo-frame--icone .fa-solid { font-size: 72px; color: rgba(255, 255, 255, .92); }
.rm-photo-card figcaption { position: relative; margin-top: -16px; }
.rm-photo-card .rm-marker { font-weight: 700; font-size: 15px; line-height: 1.7; }
.rm-photo-card p { margin: 12px 0 0; color: var(--rm-muted); font-size: 15px; line-height: 1.5; }

/* ---------- S6 · Como funciona ---------- */
.rm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; margin: 0; padding: 0; list-style: none; text-align: center; }
.rm-steps::before { content: ""; position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 2px; background: var(--rm-border); }
.rm-step { position: relative; }
.rm-step h3 { font-size: 18px; margin: 0 0 8px; }
.rm-step p { color: var(--rm-muted); margin: 0; font-size: 15px; line-height: 1.5; }
.rm-step-icon {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 16px;
    background: var(--rm-navy); color: #fff; font-size: 26px;
    box-shadow: 0 8px 20px rgba(7, 29, 65, .2);
}
.rm-step-label {
    display: table; margin: 16px auto 8px; padding: 2px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: var(--rm-blue-soft); color: var(--rm-primary);
}
.rm-checklist {
    display: flex; gap: 16px; align-items: flex-start; text-align: left;
    max-width: 760px; margin: 48px auto 0; padding: 24px;
    border-radius: var(--rm-radius); background: var(--rm-blue-soft);
}
.rm-checklist h3 { font-size: 18px; margin: 0 0 8px; }
.rm-checklist ul { margin: 0; padding-left: 18px; color: var(--rm-text); line-height: 1.7; }

/* ---------- S7 · O que vamos medir ---------- */
.rm-cat-grid { padding-left: 0; margin-bottom: 0; list-style: none; }
.rm-cat { display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px; font-weight: 600; color: var(--rm-navy); line-height: 1.3; }

/* ---------- S8 · Quem realiza ---------- */
.rm-dots { margin: 24px 0 0; padding: 0; list-style: none; }
.rm-dots li { position: relative; padding-left: 22px; margin-bottom: 12px; line-height: 1.6; }
.rm-dots li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--rm-primary); }
.rm-dots .rm-dot-yellow::before { background: var(--rm-yellow); }
.rm-dots .rm-dot-green::before { background: var(--rm-green-brand); }
.rm-dots .rm-dot-navy::before { background: var(--rm-navy); }
.rm-hub { position: relative; height: 340px; max-width: 460px; margin: 0 auto; }
.rm-hub::before {                    /* anel de ligação */
    content: ""; position: absolute; inset: 40px 60px;
    border: 2px dashed var(--rm-border); border-radius: 50%;
}
.rm-hub-center {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 180px; height: 180px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 20px; background: var(--rm-hero-gradient); color: #fff;
    font-weight: 700; font-size: 16px; line-height: 1.3;
    box-shadow: 0 16px 40px rgba(24, 62, 255, .3);
}
.rm-hub-node {
    position: absolute; padding: 8px 16px; border-radius: 100px;
    background: #fff; border: 2px solid var(--rm-primary);
    font-weight: 700; font-size: 14px; color: var(--rm-navy); box-shadow: var(--rm-shadow);
}
.rm-hub-n1 { left: 4%; top: 10%; border-color: var(--rm-primary); }
.rm-hub-n2 { right: 4%; top: 10%; border-color: var(--rm-yellow); }
.rm-hub-n3 { left: 0; bottom: 10%; border-color: var(--rm-green-brand); }
.rm-hub-n4 { right: 4%; bottom: 10%; border-color: var(--rm-navy); }
.rm-inst { padding-left: 0; margin-bottom: 0; list-style: none; }
.rm-inst-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    height: 100%; padding: 24px; text-decoration: none; color: var(--rm-text);
    transition: transform .2s, box-shadow .2s;
}
.rm-inst-card:hover, .rm-inst-card:focus-visible { transform: translateY(-4px); box-shadow: var(--rm-shadow-hover); color: var(--rm-text); }
.rm-inst-card img { height: 48px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 8px; }
.rm-inst-card h3 { font-size: 18px; margin: 0; }
.rm-inst-card span { font-size: 14px; color: var(--rm-muted); line-height: 1.5; }

/* ---------- S9 · Base legal ---------- */
.rm-law { padding: 24px; border-left: 4px solid var(--rm-primary); }
.rm-law h3 { font-size: 17px; margin: 0 0 8px; display: flex; gap: 10px; }
.rm-law h3 .fa-solid { color: var(--rm-primary); margin-top: 3px; }
.rm-law p { margin: 0; color: var(--rm-muted); line-height: 1.6; }
.rm-law-yellow { border-left-color: var(--rm-yellow); }
.rm-law-green { border-left-color: var(--rm-green-brand); }
.rm-law-navy { border-left-color: var(--rm-navy); }
.rm-privacy {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px 24px; border-radius: var(--rm-radius);
    background: var(--rm-green-soft); border-left: 4px solid var(--rm-green);
}
.rm-privacy .rm-icon { background: #fff; color: var(--rm-green); }
.rm-privacy p { margin: 0; line-height: 1.6; color: var(--rm-text); }

/* ---------- S10 · Perguntas frequentes ---------- */
.rm-faq-inner { max-width: 880px; }
.rm-accordion .accordion-item { border: 1px solid var(--rm-border); border-radius: var(--rm-radius) !important; margin-bottom: 12px; overflow: hidden; }
.rm-accordion .accordion-header { margin: 0; }
.rm-accordion .accordion-button { font-size: 17px; font-weight: 700; color: var(--rm-navy); background: #fff; box-shadow: none; padding: 20px 24px; }
.rm-accordion .accordion-button:not(.collapsed) { color: var(--rm-primary); background: var(--rm-blue-soft); }
.rm-accordion .accordion-body { padding: 4px 24px 22px; color: var(--rm-muted); line-height: 1.7; background: #fff; }

/* ---------- S11 · Chamada final ---------- */
.rm-cta-inner { background: linear-gradient(135deg, #071D41 0%, #0B1F6B 100%); color: #fff; padding: 88px 0; }
.rm-cta-inner h2 { color: #fff; font-size: 34px; margin: 20px 0 12px; }
.rm-cta-inner p { color: rgba(255, 255, 255, .88); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.rm-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; font-size: 26px; color: var(--rm-yellow); }

/* ---------- Barra fixa de CTA (celular) ---------- */
.rm-sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    padding: 12px 16px; background: #fff;
    box-shadow: 0 -4px 16px rgba(7, 29, 65, .12);
    transform: translateY(110%); transition: transform .25s;
}
.rm-sticky-cta.is-visible { transform: none; }
.rm-sticky-cta .rm-btn { width: 100%; }
@media (min-width: 992px) { .rm-sticky-cta { display: none; } }

/* ---------- Página /formularios (continuidade visual) ---------- */
.rm-formularios-intro { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; margin: 24px 0; border-radius: var(--rm-radius); background: var(--rm-blue-soft); }
.rm-formularios-intro p { margin: 0; line-height: 1.6; }
.view-formularios .section-title { color: var(--rm-navy); }
.view-formularios .btn-primary.btn-action { background: var(--rm-primary); border-color: var(--rm-primary); border-radius: 100px; }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
    .rm-row { padding: 56px 0; }
    .rm-row-hero, .rm-row-cta, .rm-row-fique, .rm-row-sticky { padding: 0; }
    .rm-hero-inner { padding: 56px 0 112px; }
    .rm-hero-title { font-size: 36px; }
    .rm-hero-title-strong { padding-left: 0; }
    .rm-section-title { font-size: 26px; }
    .rm-steps { grid-template-columns: 1fr; text-align: left; gap: 28px; }
    .rm-steps::before { top: 0; bottom: 0; left: 31px; right: auto; width: 2px; height: auto; }
    .rm-step { padding-left: 88px; min-height: 64px; }
    .rm-step-icon { position: absolute; left: 0; top: 0; }
    .rm-step-label { margin: 0 0 8px; }
    .rm-fique-inner::before { width: 100%; left: 0; height: 120px; transform: none; }
    .rm-hub { height: 300px; margin-top: 16px; }
    .rm-footer-watermark { font-size: 96px; }
}
@media (max-width: 575.98px) {
    .rm-hero-title { font-size: 30px; }
    .rm-badge { font-size: 12px; letter-spacing: .1em; gap: 10px; }
    .rm-badge-dot { flex-basis: 32px; }
    .rm-badge::after { display: none; }
    .rm-hero-actions .rm-btn { width: 100%; }
    .rm-numero { font-size: 32px; }
    .rm-bubble { font-size: 22px; }
    .rm-hub-center { width: 150px; height: 150px; font-size: 14px; }
    .rm-hub-node { font-size: 12px; padding: 6px 10px; }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rm-float { animation: none; }
    .rm-card, .rm-btn, .rm-fique-card, .rm-inst-card, .rm-sticky-cta { transition: none; }
    .rm-card:hover, .rm-fique-card:hover, .rm-inst-card:hover { transform: none; }
}

/* ---------- Ajustes de especificidade (o preset do Helix gera .sp-module ul > li > a { color: #333 }) ---------- */
.sp-module ul > li > a.rm-fique-card,
.sp-module ul > li > a.rm-fique-card:hover,
.sp-module ul > li > a.rm-fique-card:focus-visible { color: #fff; }
.sp-module ul > li > a.rm-inst-card { color: var(--rm-text); }
.rm-footer .sp-module ul > li > a { color: #fff; }
.rm-footer .sp-module ul > li > a:hover,
.rm-footer .sp-module ul > li > a:focus-visible { color: var(--rm-yellow); }
.rm-footer .rm-btn-white { color: var(--rm-primary); }
.rm-footer .rm-btn-white:hover,
.rm-footer .rm-btn-white:focus-visible { color: var(--rm-navy); }
.rm-checklist .rm-icon { background: #fff; }

/* rodapé no celular: espaço entre as colunas empilhadas */
@media (max-width: 991.98px) {
    .rm-footer .sp-column { margin-bottom: 28px; }
}

/* ---------- Ajustes de 18/11: espaçamentos do cabeçalho no celular e do marca-texto ---------- */
.rm-hero-title .rm-highlight { padding: .02em .22em; }
@media (max-width: 991.98px) {
    #sp-top-bar-custom .container,
    #sp-header .container { padding-left: 20px; padding-right: 20px; }
    #sp-header .logo-image { height: 42px; }
    #sp-header #sp-logo .logo { display: flex; align-items: center; height: 100%; }
    .rm-assinatura-logos .rm-assinatura-sep { display: none; }
    .rm-assinatura-logos img { height: 44px; }
}
@media (max-width: 575.98px) {
    #sp-header .logo-image { height: 36px; }
    .rm-hero-title-strong { margin-top: .25em; }
}

/* cards de "Quem realiza": faixa de logos com altura fixa (títulos alinhados)
   e altura de cada logo ajustada pelo tamanho percebido, não pela caixa da imagem */
.rm-inst-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 64px; margin-bottom: 8px; }
.rm-inst-card .rm-inst-logos img { margin-bottom: 0; max-width: 100%; width: auto; }
.rm-inst-card img.rm-logo-mdic { height: 58px; }
.rm-inst-card img.rm-logo-abdi { height: 60px; }
.rm-inst-card img.rm-logo-ciap { height: 40px; }
.rm-inst-card img.rm-logo-ufg  { height: 46px; }
