/* Blocos do editor de página (painel > página): usado no site (pagina.php) e na tela do editor,
   para a página ter o mesmo visual nos dois lugares. */

/* Cores escolhidas no painel (Caixa de texto, Card e Botão). */
.tone-blue { --tone: #0b5ed7; --tone-soft: #eaf2fd; --tone-soft2: #d6e5fa; --tone-ink: #0a2a5c; }
.tone-green { --tone: #008f45; --tone-soft: #e8f6ee; --tone-soft2: #d2eedf; --tone-ink: #0b3d24; }
.tone-orange { --tone: #d9631a; --tone-soft: #fdf1e7; --tone-soft2: #fbe0cb; --tone-ink: #5c2a08; }
.tone-purple { --tone: #6b4fbb; --tone-soft: #f1edfb; --tone-soft2: #e2daf7; --tone-ink: #2f2166; }
.tone-teal { --tone: #00879e; --tone-soft: #e6f6f8; --tone-soft2: #cfedf1; --tone-ink: #073f4a; }
.tone-gray { --tone: #5d6b80; --tone-soft: #f3f5f8; --tone-soft2: #e4e9f0; --tone-ink: #1f2a3a; }

/* Ícones dos cards e botões (desenhados com a cor do bloco). */
.pbi-shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.5 3 8.3 7 10 4-1.7 7-5.5 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.pbi-document { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.pbi-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V4M4 20h16M8 16v-4M12 16V8M16 16v-6'/%3E%3C/svg%3E"); }
.pbi-users { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20a6 6 0 0 1 12 0'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M15.5 14.2A5 5 0 0 1 21 19'/%3E%3C/svg%3E"); }
.pbi-lightbulb { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.pbi-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.pbi-money { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6.5 9.5h.01M17.5 14.5h.01'/%3E%3C/svg%3E"); }
.pbi-building { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l8-2v18M12 7l8 3v11M3 21h18M8 8h.01M8 12h.01M8 16h.01M16 13h.01M16 17h.01'/%3E%3C/svg%3E"); }
.pbi-info { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.pbi-star { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E"); }
.pbi-gear { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E"); }
.pbi-chat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.pbi-globe { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.pbi-lock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.pbi-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.pbi-rocket { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15 6 12c1.5-4.5 5-8 12-9-1 7-4.5 10.5-9 12z'/%3E%3Ccircle cx='14.5' cy='9.5' r='1.5'/%3E%3Cpath d='M6.5 15.5C5 17 4.5 19.5 4.5 19.5S7 19 8.5 17.5'/%3E%3C/svg%3E"); }
.pbi-arrow { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.pbi-external { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
.pbi-download { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.pbi-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.pbi-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.8 4.5-2.3 1.4a11 11 0 0 0 6.1 6.1l1.4-2.3L20 15.5V19a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.pbi-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E"); }
.pbi-alert { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 2.8 19.5h18.4z'/%3E%3Cpath d='M12 10v4.5M12 17h.01'/%3E%3C/svg%3E"); }
.pbi-alert-circle { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E"); }

/* Tamanho do texto (os blocos usam "em": crescem junto com o tamanho escolhido) */
:is(.rich-content, .pb-page) .text-sm { font-size: 0.875em; }
:is(.rich-content, .pb-page) .text-lg { font-size: 1.25em; }
:is(.rich-content, .pb-page) .text-xl { font-size: 1.5em; line-height: 1.45; }

/* Imagem: tamanho e posição */
:is(.rich-content, .pb-page) .page-figure { margin: 28px 0; }
:is(.rich-content, .pb-page) .page-figure img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 35, 83, 0.13); }
:is(.rich-content, .pb-page) .page-figure figcaption { margin-top: 8px; color: #526b91; font-size: 0.85rem; text-align: center; }
:is(.rich-content, .pb-page) .page-figure.size-sm { width: 200px; }
:is(.rich-content, .pb-page) .page-figure.size-md { width: 300px; }
:is(.rich-content, .pb-page) .page-figure.size-lg { width: 480px; }
:is(.rich-content, .pb-page) .page-figure:is(.size-sm, .size-md, .size-lg) { max-width: 100%; }
:is(.rich-content, .pb-page) .page-figure:is(.size-sm, .size-md, .size-lg, .size-full) img { width: 100%; }
:is(.rich-content, .pb-page) .page-figure.figure-center:is(.size-sm, .size-md, .size-lg) { margin-right: auto; margin-left: auto; }
.rich-content::after { display: table; clear: both; content: ""; }
.rich-content .page-figure.figure-left,
.rich-content .page-figure.figure-right { max-width: 50%; margin-top: 6px; margin-bottom: 18px; }
.rich-content .page-figure.figure-left:not([class*="size-"]),
.rich-content .page-figure.figure-right:not([class*="size-"]) { width: min(45%, 420px); }
.rich-content .page-figure.figure-left { float: left; margin-right: 28px; }
.rich-content .page-figure.figure-right { float: right; margin-left: 28px; }
/* Largura total: ocupa a linha toda, seja qual for a posição escolhida. */
:is(.rich-content, .pb-page) .page-figure.size-full { float: none; width: 100%; max-width: 100%; margin-right: 0; margin-left: 0; }

/* Tabela: cabeçalho na cor do site, linhas alternadas e divisórias suaves entre as colunas */
:is(.rich-content, .pb-page) .page-table { clear: both; margin: 24px 0; overflow-x: auto; border: 1px solid #d5e1ee; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0, 36, 75, 0.06); }
:is(.rich-content, .pb-page) .page-table table { width: 100%; border-collapse: collapse; font-size: 0.95em; line-height: 1.5; }
:is(.rich-content, .pb-page) .page-table :is(th, td) { padding: 11px 16px; border-bottom: 1px solid #e3ebf4; text-align: left; vertical-align: top; }
:is(.rich-content, .pb-page) .page-table :is(th, td) + :is(th, td) { border-left: 1px solid #edf2f8; }
:is(.rich-content, .pb-page) .page-table thead th { border-bottom: 0; background: #0b3d78; color: #fff; font-size: 0.92em; font-weight: 700; letter-spacing: 0.02em; }
:is(.rich-content, .pb-page) .page-table thead th + th { border-left-color: rgba(255, 255, 255, 0.14); }
:is(.rich-content, .pb-page) .page-table tbody tr:nth-child(even) { background: #f5f9fe; }
:is(.rich-content, .pb-page) .page-table tbody tr:last-child td { border-bottom: 0; }

/* Caixa de texto */
:is(.rich-content, .pb-page) .page-box { clear: both; margin: 24px 0; padding: 20px 24px; border-radius: 14px; background: linear-gradient(145deg, var(--tone-soft, #eaf2fd), var(--tone-soft2, #d6e5fa)); color: var(--tone-ink, #0a2a5c); }
:is(.rich-content, .pb-page) .page-box > :first-child { margin-top: 0; }
:is(.rich-content, .pb-page) .page-box > :last-child { margin-bottom: 0; }

/* Linha: grade de 12 partes; cada coluna (page-cell span-N) guarda blocos um embaixo do outro */
:is(.rich-content, .pb-page) .page-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; clear: both; margin: 24px 0; }
:is(.rich-content, .pb-page) .page-row.v-middle { align-items: center; }
:is(.rich-content, .pb-page) .page-row.v-bottom { align-items: end; }
:is(.rich-content, .pb-page) .page-cell { display: flex; min-width: 0; flex-direction: column; grid-column: span 12; }
:is(.rich-content, .pb-page) .page-cell.span-1 { grid-column: span 1; }
:is(.rich-content, .pb-page) .page-cell.span-2 { grid-column: span 2; }
:is(.rich-content, .pb-page) .page-cell.span-3 { grid-column: span 3; }
:is(.rich-content, .pb-page) .page-cell.span-4 { grid-column: span 4; }
:is(.rich-content, .pb-page) .page-cell.span-5 { grid-column: span 5; }
:is(.rich-content, .pb-page) .page-cell.span-6 { grid-column: span 6; }
:is(.rich-content, .pb-page) .page-cell.span-7 { grid-column: span 7; }
:is(.rich-content, .pb-page) .page-cell.span-8 { grid-column: span 8; }
:is(.rich-content, .pb-page) .page-cell.span-9 { grid-column: span 9; }
:is(.rich-content, .pb-page) .page-cell.span-10 { grid-column: span 10; }
:is(.rich-content, .pb-page) .page-cell.span-11 { grid-column: span 11; }
:is(.rich-content, .pb-page) .page-cell.span-12 { grid-column: span 12; }
.rich-content .page-cell > :first-child { margin-top: 0; }
.rich-content .page-cell > :last-child { margin-bottom: 0; }
.rich-content .page-cell > .page-card:only-child { flex: 1; }

/* Card: ícone (opcional) à esquerda do título ou acima dele, título e itens; a cor é escolhida no painel.
   O conteúdo fica em .page-card-body; o botão (opcional) fica fora dele, na posição escolhida. */
:is(.rich-content, .pb-page) .page-card { clear: both; margin: 24px 0; padding: 24px 26px; border-radius: 20px; background: linear-gradient(145deg, var(--tone-soft, #eaf2fd), var(--tone-soft2, #d6e5fa)); box-shadow: 0 14px 34px rgba(0, 36, 75, 0.1); color: #455d74; }
:is(.rich-content, .pb-page) .page-card-body:has(> .page-card-icon) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; }
:is(.rich-content, .pb-page) .page-card-body:has(> .page-card-icon) > :not(.page-card-icon, h3) { grid-column: 1 / -1; }
:is(.rich-content, .pb-page) .page-card-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55), 0 6px 16px rgba(0, 36, 75, 0.1); }
:is(.rich-content, .pb-page) .page-card-icon::before { width: 26px; height: 26px; background: var(--tone, #0b5ed7); content: ""; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
:is(.rich-content, .pb-page) .page-card h3 { margin: 0; color: var(--tone-ink, #0a2a5c); font-size: 1em; font-weight: 800; letter-spacing: 0.05em; line-height: 1.3; text-transform: uppercase; }
:is(.rich-content, .pb-page) .page-card-text { margin: 12px 0 0; font-size: 0.95em; }
:is(.rich-content, .pb-page) .page-card-text > :first-child { margin-top: 0; }
:is(.rich-content, .pb-page) .page-card-text > :last-child { margin-bottom: 0; }
:is(.rich-content, .pb-page) .page-card-text p { margin: 0 0 8px; }
:is(.rich-content, .pb-page) .page-card-text :is(ul, ol) { margin: 6px 0 8px; padding-left: 1.3em; text-align: left; }
:is(.rich-content, .pb-page) .page-card-text li::marker { color: var(--tone, #0b5ed7); font-weight: 700; }
:is(.rich-content, .pb-page) .page-card-text li { margin: 5px 0; }
:is(.rich-content, .pb-page) .page-card a:not(.page-button) { color: var(--tone, #005da7); }
/* Ícone acima, tudo centralizado */
:is(.rich-content, .pb-page) .page-card.icon-top { padding: 30px 24px 28px; text-align: center; }
:is(.rich-content, .pb-page) .page-card.icon-top .page-card-text :is(ul, ol) { display: inline-block; }
:is(.rich-content, .pb-page) .page-card.icon-top .page-card-body { display: block; }
:is(.rich-content, .pb-page) .page-card.icon-top .page-card-icon { width: 76px; height: 76px; margin: 0 auto 18px; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.55), 0 8px 20px rgba(0, 36, 75, 0.1); }
:is(.rich-content, .pb-page) .page-card.icon-top .page-card-icon::before { width: 34px; height: 34px; }

/* Botão */
:is(.rich-content, .pb-page) .page-button-wrap { clear: both; margin: 20px 0; }
:is(.rich-content, .pb-page) .page-button { display: inline-block; padding: 0.7em 1.6em; border: 2px solid var(--tone, #0b5ed7); border-radius: 999px; background: var(--tone, #0b5ed7); color: #fff; font-weight: 700; line-height: 1.3; text-decoration: none; transition: filter 0.15s ease, background 0.15s ease; }
:is(.rich-content, .pb-page) .page-button:hover,
:is(.rich-content, .pb-page) .page-button:focus-visible { color: #fff; filter: brightness(1.1); text-decoration: none; }
:is(.rich-content, .pb-page) .page-button.btn-outline { background: transparent; color: var(--tone, #0b5ed7); }
:is(.rich-content, .pb-page) .page-button.btn-outline:hover,
:is(.rich-content, .pb-page) .page-button.btn-outline:focus-visible { background: var(--tone-soft, #eaf2fd); color: var(--tone, #0b5ed7); }

/* Ícone no botão (opcional), antes ou depois do texto */
:is(.rich-content, .pb-page) .page-button[class*="pbi-"] { display: inline-flex; align-items: center; gap: 0.55em; }
:is(.rich-content, .pb-page) .page-button[class*="pbi-"]::before { width: 1.15em; height: 1.15em; flex: none; background: currentColor; content: ""; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
:is(.rich-content, .pb-page) .page-button.icon-end::before { order: 2; }

/* Botão dentro do Card ou da Caixa de texto: acima, abaixo, à esquerda ou à direita do conteúdo */
:is(.rich-content, .pb-page) :is(.page-box, .page-card) > .page-button-wrap { margin: 18px 0 0; }
:is(.rich-content, .pb-page) .page-box-text > :first-child { margin-top: 0; }
:is(.rich-content, .pb-page) .page-box-text > :last-child { margin-bottom: 0; }
:is(.rich-content, .pb-page) :is(.page-box, .page-card).btn-top { display: flex; flex-direction: column; }
:is(.rich-content, .pb-page) :is(.page-box, .page-card).btn-top > .page-button-wrap { order: -1; margin: 0 0 18px; }
:is(.rich-content, .pb-page) :is(.page-box, .page-card):is(.btn-left, .btn-right) { display: flex; align-items: center; gap: 24px; }
:is(.rich-content, .pb-page) :is(.page-box, .page-card):is(.btn-left, .btn-right) > :not(.page-button-wrap) { flex: 1; min-width: 0; }
:is(.rich-content, .pb-page) :is(.page-box, .page-card):is(.btn-left, .btn-right) > .page-button-wrap { flex: none; margin: 0; }
:is(.rich-content, .pb-page) :is(.page-box, .page-card).btn-left > .page-button-wrap { order: -1; }

/* Bloco estreito (coluna pequena, celular): o botão da esquerda/direita desce para baixo do conteúdo. */
.rich-content, .rich-content .page-cell, .pb-block { container-type: inline-size; }
@container (max-width: 460px) {
  :is(.rich-content, .pb-page) :is(.page-box, .page-card):is(.btn-left, .btn-right) { display: block; }
  :is(.rich-content, .pb-page) :is(.page-box, .page-card):is(.btn-left, .btn-right) > .page-button-wrap { margin: 18px 0 0; }
}


/* Destaque: caixa de aviso com ícone; o tipo define a cor e o ícone */
:is(.rich-content, .pb-page) .page-callout { --c: #0b5ed7; --c-soft: #eef5fe; --c-line: #cfe0f7; --c-ink: #0a2a5c; display: flex; align-items: flex-start; gap: 14px; clear: both; margin: 24px 0; padding: 16px 20px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-soft); color: var(--c-ink); }
:is(.rich-content, .pb-page) .page-callout::before { width: 26px; height: 26px; flex: none; margin-top: 1px; background: var(--c); content: ""; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
:is(.rich-content, .pb-page) .page-callout-text { flex: 1; min-width: 0; }
:is(.rich-content, .pb-page) .page-callout-text > :first-child { margin-top: 0; }
:is(.rich-content, .pb-page) .page-callout-text > :last-child { margin-bottom: 0; }
:is(.rich-content, .pb-page) .page-callout a { color: var(--c); }
:is(.rich-content, .pb-page) .callout-warning { --c: #b45309; --c-soft: #fff7e8; --c-line: #f6dba8; --c-ink: #5c3605; }
:is(.rich-content, .pb-page) .callout-tip { --c: #0f8a5f; --c-soft: #ecf9f3; --c-line: #c4ead9; --c-ink: #0b3d2a; }
:is(.rich-content, .pb-page) .callout-important { --c: #c42b1c; --c-soft: #fdf0ee; --c-line: #f4cbc5; --c-ink: #5e150d; }
:is(.rich-content, .pb-page) .callout-success { --c: #1f9d55; --c-soft: #eef9f2; --c-line: #c8ebd6; --c-ink: #0e3d22; }

/* Perguntas frequentes (sanfona): no site é <details>; no editor, .page-faq-q fica no lugar do <summary> */
:is(.rich-content, .pb-page) .page-faq { display: flex; flex-direction: column; gap: 10px; clear: both; margin: 24px 0; }
:is(.rich-content, .pb-page) .page-faq-item { overflow: hidden; border: 1px solid #d5e1ee; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(0, 36, 75, 0.05); }
:is(.rich-content, .pb-page) .page-faq :is(summary, .page-faq-q) { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; color: #0a2a5c; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.rich-content .page-faq summary::-webkit-details-marker { display: none; }
.rich-content .page-faq summary::after { width: 9px; height: 9px; flex: none; margin-top: -4px; border-right: 2px solid #0b5ed7; border-bottom: 2px solid #0b5ed7; content: ""; transform: rotate(45deg); transition: transform 0.2s ease; }
.rich-content .page-faq details[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.rich-content .page-faq summary:hover { color: #0b5ed7; }
.rich-content .page-faq summary:focus-visible { outline: 3px solid #b6df3d; outline-offset: -3px; border-radius: 12px; }
.rich-content .page-faq details[open] > summary { border-bottom: 1px solid #e3ebf4; }
:is(.rich-content, .pb-page) .page-faq-answer { padding: 12px 18px 16px; color: #45658b; }
:is(.rich-content, .pb-page) .page-faq-answer > :first-child { margin-top: 0; }
:is(.rich-content, .pb-page) .page-faq-answer > :last-child { margin-bottom: 0; }

/* Documentos: lista (ou grade) de arquivos que abrem em nova aba, com ícone, nome e tipo */
:is(.rich-content, .pb-page) .page-docs { display: grid; gap: 10px; clear: both; margin: 24px 0; }
:is(.rich-content, .pb-page) .page-docs.docs-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
:is(.rich-content, .pb-page) .page-doc { --doc: #0b5ed7; position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #d5e1ee; border-radius: 12px; background: #fff; color: #0a2a5c; text-decoration: none; box-shadow: 0 4px 12px rgba(0, 36, 75, 0.05); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
:is(.rich-content, .pb-page) .page-doc::before { width: 38px; height: 38px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--doc) 12%, #fff); content: ""; }
:is(.rich-content, .pb-page) .page-doc::after { position: absolute; top: 50%; left: 23px; width: 20px; height: 20px; background: var(--doc); content: ""; transform: translateY(-50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
:is(.rich-content, .pb-page) .page-doc .page-doc-name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.35; }
:is(.rich-content, .pb-page) .page-doc .page-doc-meta { flex: none; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--doc) 12%, #fff); color: var(--doc); font-size: 0.75em; font-weight: 800; letter-spacing: 0.04em; }
.rich-content .page-doc:hover,
.rich-content .page-doc:focus-visible { border-color: var(--doc); box-shadow: 0 6px 18px rgba(0, 36, 75, 0.1); color: #0a2a5c; text-decoration: none; }
:is(.rich-content, .pb-page) .doc-pdf { --doc: #c42b1c; }
:is(.rich-content, .pb-page) .doc-doc { --doc: #1f5fbf; }
:is(.rich-content, .pb-page) .doc-xls { --doc: #1f8a4c; }
:is(.rich-content, .pb-page) .doc-img { --doc: #7a4fbf; }
:is(.rich-content, .pb-page) .doc-other { --doc: #5d6b80; }
/* Separador: sempre depois de uma imagem que flutua ao lado (e não por baixo dela) */
.rich-content hr { clear: both; }

/* Citação: card azul com aspas abrindo no começo e fechando no fim (o mesmo visual no editor). */
:is(.rich-content, .pb-page) blockquote { position: relative; clear: both; margin: 24px 0; padding: 22px 60px; border: 0; border-radius: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b5ed7' transform='rotate(180 12 12)' d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E") left 18px top 16px / 30px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b5ed7' d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E") right 18px bottom 16px / 30px no-repeat, #eef5fe; color: #0a2a5c; font-size: 1.05em; font-style: italic; line-height: 1.7; }
:is(.rich-content, .pb-page) blockquote > :first-child { margin-top: 0; }
:is(.rich-content, .pb-page) blockquote > :last-child { margin-bottom: 0; }

/* Cor da fonte (Texto e Título). */
.ink-navy { --ink: #002b69; }
.ink-blue { --ink: #0b5ed7; }
.ink-sky { --ink: #0272b5; }
.ink-indigo { --ink: #3f4fb5; }
.ink-teal { --ink: #00798d; }
.ink-green { --ink: #00803e; }
.ink-olive { --ink: #5a7a00; }
.ink-gold { --ink: #9a6400; }
.ink-orange { --ink: #c2560f; }
.ink-red { --ink: #c62828; }
.ink-wine { --ink: #8e1f45; }
.ink-pink { --ink: #c0186a; }
.ink-purple { --ink: #6b4fbb; }
.ink-brown { --ink: #7a4b2a; }
.ink-gray { --ink: #5d6b80; }
.ink-black { --ink: #1f2a3a; }
/* (o .theme-dark só pesa mais a regra, para vencer a cor padrão dos títulos no modo escuro) */
:is(.rich-content, .pb-page, .theme-dark .rich-content) :is(p, h2, h3, h4)[class*="ink-"] { color: var(--ink); }

/* Modo escuro: vale para o site (.theme-dark) e para a página no editor com o painel no modo escuro,
   para o editor mostrar a página como ela fica no site. */
.theme-dark .content-page h1 { color: #eff6ff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) { color: #c8d7ea; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) :is(h2, h3, h4) { color: #eff6ff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) a:not(.page-button, .page-doc) { color: #8cbcff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) blockquote { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238cbcff' transform='rotate(180 12 12)' d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E") left 18px top 16px / 30px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238cbcff' d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E") right 18px bottom 16px / 30px no-repeat, #1c2c47; color: #dfe9f7; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-navy { --ink: #cfe0ff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-blue { --ink: #8cbcff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-sky { --ink: #7fd0ff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-indigo { --ink: #aab4ff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-teal { --ink: #6fd3dd; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-green { --ink: #7fd89f; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-olive { --ink: #c2dd6a; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-gold { --ink: #f2c45a; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-orange { --ink: #ffb27a; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-red { --ink: #ff9a94; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-wine { --ink: #f29bb8; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-pink { --ink: #ff9ccc; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-purple { --ink: #c4b2f5; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-brown { --ink: #d9b08c; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-gray { --ink: #a9bddb; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .ink-black { --ink: #e6edf7; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) hr { border-color: #2c3f5c; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-figure figcaption { color: #a9bddb; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) :is(.page-box, .page-card) { --tone-soft: #1c2c47; --tone-soft2: #16233a; --tone-ink: #eff6ff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-box { color: #dfe9f7; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-card { color: #c8d7ea; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-card-icon { background: #0f1a2c; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06); }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-card a:not(.page-button) { color: #8cbcff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-button.btn-outline { color: #8cbcff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-button.btn-outline:is(:hover, :focus-visible) { background: rgba(140, 188, 255, 0.12); }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-table { border-color: #2c3f5c; background: #111c2e; box-shadow: none; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-table thead th { background: #0b3d78; color: #fff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-table :is(th, td) { border-color: #2c3f5c; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-table tbody tr:nth-child(even) { background: #16233a; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-doc { border-color: #2c3f5c; background: #111c2e; color: #eff6ff; box-shadow: none; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-doc::before,
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-doc .page-doc-meta { background: color-mix(in srgb, var(--doc) 24%, #111c2e); }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-doc .page-doc-meta { color: color-mix(in srgb, var(--doc) 55%, #fff); }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-callout { --c-soft: #16233a; --c-line: #2c3f5c; --c-ink: #dfe9f7; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-faq-item { border-color: #2c3f5c; background: #111c2e; box-shadow: none; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-faq :is(summary, .page-faq-q) { color: #eff6ff; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-faq-answer { color: #c8d7ea; }
:is(.theme-dark .rich-content, :root[data-theme="dark"] .pb-page) .page-faq :is(details[open] > summary, .page-faq-q) { border-color: #2c3f5c; }

@media (max-width: 760px) {
  .rich-content .page-cell[class*="span-"] { grid-column: span 12; }
}

@media (max-width: 640px) {
  .rich-content .page-figure.figure-left,
  .rich-content .page-figure.figure-right { float: none; max-width: 100%; margin: 24px auto; }
}

/* Caixa do Acesso à Informação acima do título (ex.: INFORMAÇÕES INSTITUCIONAIS), no verde claro da identidade */
.content-page .page-eyebrow { display: block; margin-bottom: 6px; color: #78be20; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.content-page .page-eyebrow + h1 { margin-top: 0; }
