:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #182230;
  --muted: #637083;
  --primary: #165dff;
  --primary-dark: #0f47c7;
  --border: #d9e0ea;
  --success: #0f9d58;
  --danger: #d93025;
  --shadow: 0 10px 25px rgba(24, 34, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.main-nav {
  border-top: 1px solid var(--border);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > .container > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav li {
  position: relative;
}

.main-nav li > a {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 600;
}

.main-nav .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

.main-nav .submenu a {
  padding: 12px 14px;
  font-weight: 500;
}

.main-nav .has-children:hover > .submenu {
  display: block;
}

.page-content {
  padding: 28px 0 46px;
}

.page-content--home-full {
  padding-top: 0 !important;
  padding-right: 0;
  padding-bottom: 0 !important;
  padding-left: 0;
  margin-top: -12px;
  margin-bottom: 0;
  position: relative;
}

.page-content--home-full > *:first-child {
  margin-top: 0;
}

.hero-card,
.info-card,
.panel-card,
.stat-card,
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.badge {
  display: inline-block;
  background: rgba(22, 93, 255, 0.1);
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-card h1,
.panel-card h1,
.panel-card h2,
.info-card h2 {
  margin-top: 12px;
}

.hero-actions,
.form-actions,
.inline-actions,
.admin-user-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.grid-cards,
.stats-grid,
.admin-grid-2,
.checkbox-grid {
  display: grid;
  gap: 16px;
}

.grid-cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}

.info-card,
.panel-card {
  padding: 22px;
}

.site-footer {
  padding: 26px 0 38px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.btn-small {
  padding: 8px 12px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(15, 157, 88, 0.12);
  color: #0f6f43;
}

.alert-danger {
  background: rgba(217, 48, 37, 0.12);
  color: #8e231a;
}

.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-card {
  width: min(460px, 100%);
  padding: 26px;
}

.login-card form,
.stack-form {
  display: grid;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-inline input {
  width: auto;
  margin: 0;
}

.admin-topbar {
  background: #122033;
  color: #fff;
}

.admin-topbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  background: #0f1827;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-sidebar a {
  color: #e5eefb;
  padding: 12px 14px;
  border-radius: 12px;
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.admin-content {
  padding: 24px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

.stat-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  font-size: 30px;
  margin-bottom: 8px;
}

.admin-grid-2 {
  grid-template-columns: 420px 1fr;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.menu-admin-tree,
.submenu-list {
  display: grid;
  gap: 14px;
}

.menu-node {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.menu-node-main,
.submenu-item {
  display: grid;
  gap: 6px;
}

.submenu-list {
  margin-top: 12px;
  padding-left: 18px;
}

.submenu-item {
  border-left: 3px solid var(--border);
  padding-left: 12px;
}

.a11y-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
}

.a11y-fab {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: #0f5ef7;
  color: #fff;
  box-shadow: 0 18px 38px rgba(15, 34, 56, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.a11y-fab:hover,
.a11y-fab:focus-visible {
  transform: translateY(-1px);
}

.a11y-fab-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
}

.a11y-fab svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.a11y-drawer {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid rgba(15, 24, 39, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(15, 24, 39, 0.24);
  padding: 16px;
}

.a11y-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.a11y-drawer-header strong {
  font-size: 18px;
}

.a11y-close {
  border: 0;
  background: #eef3fb;
  color: #122033;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.a11y-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.a11y-tool {
  border: 1px solid rgba(15, 24, 39, 0.1);
  background: #f8fbff;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  min-height: 84px;
  display: grid;
  align-content: start;
  gap: 8px;
  text-align: left;
}

.a11y-tool:hover,
.a11y-tool:focus-visible {
  border-color: rgba(15, 94, 247, 0.25);
  background: #eef4ff;
}

.a11y-tool.is-active {
  background: #0f5ef7;
  border-color: #0f5ef7;
  color: #fff;
}

.a11y-tool-reset {
  background: #fff8f3;
}

.a11y-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(15, 94, 247, 0.1);
  font-weight: 800;
}

.a11y-tool.is-active .a11y-tool-icon {
  background: rgba(255, 255, 255, 0.18);
}

.a11y-tool-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.a11y-help-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.simple-list {
  padding-left: 18px;
}

.login-note {
  color: var(--muted);
  margin-top: 14px;
  font-size: 14px;
}


@media (max-width: 960px) {
  .admin-layout,
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    grid-auto-flow: column;
    overflow-x: auto;
    align-content: unset;
  }
}

@media (max-width: 680px) {
  .a11y-widget {
    right: 12px;
    bottom: 12px;
  }

  .a11y-fab {
    width: 56px;
    height: 56px;
  }

  .a11y-drawer {
    right: 0;
    bottom: 68px;
    width: min(340px, calc(100vw - 18px));
    padding: 14px;
  }

  .a11y-tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .a11y-tool {
    min-height: 78px;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > .container > ul {
    display: grid;
  }

  .main-nav .submenu {
    position: static;
    display: block;
    box-shadow: none;
    border-radius: 0;
    padding-left: 10px;
  }
}

.transparency-hero {
  margin-bottom: 18px;
}

.transparency-sections {
  display: grid;
  gap: 18px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0 0 8px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.transparency-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.transparency-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.transparency-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.transparency-button-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 93, 255, 0.1);
  font-size: 20px;
  flex: 0 0 42px;
}

.transparency-button-text {
  font-weight: 700;
  line-height: 1.35;
}

.transparency-admin-list {
  display: grid;
  gap: 18px;
}

.transparency-admin-section-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.transparency-admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.transparency-admin-section-head small,
.transparency-button-preview small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.transparency-button-preview {
  flex-direction: column;
  align-items: flex-start;
}

.admin-preview-grid .transparency-button {
  min-height: 150px;
}

.empty-state-card {
  text-align: center;
}

.admin-grid-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transparency-admin-stats .stat-card strong {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .transparency-admin-section-head {
    flex-direction: column;
  }

  .transparency-buttons-grid {
    grid-template-columns: 1fr;
  }
}


/* Página Transparências estilo Arez */
.transparency-page-body {
    background: #efefef;
}

.transparency-page-wrap {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.transparency-page-intro {
    margin-bottom: 1.25rem;
}

.transparency-page-intro h1 {
    margin: 0 0 0.25rem;
    color: #0f172a;
}

.transparency-page-intro p {
    margin: 0;
    color: #475569;
}

.transparency-section-block {
    margin-bottom: 1.75rem;
}

.section-heading-clean {
    margin-bottom: 0.9rem;
}

.section-heading-clean h2 {
    margin: 0 0 0.35rem;
    color: var(--transparency-section-title, #188300);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-heading-clean p {
    margin: 0;
    color: #5b6470;
    font-size: 0.92rem;
}

.transparency-buttons-grid-arez {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

.transparency-button-arez {
    --button-bg: var(--transparency-button-bg, #1b8e00);
    --button-text: var(--transparency-button-text, #ffe600);
    min-height: 118px;
    border-radius: 4px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    gap: 0.55rem;
    box-shadow: none;
    border: 0;
    transition: transform 0.15s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.transparency-button-arez:hover,
.transparency-button-arez:focus-visible {
    background: var(--transparency-button-hover-bg, #167300);
    color: var(--button-text);
    transform: translateY(-1px);
}

.transparency-button-arez .transparency-button-icon {
    font-size: 1rem;
    line-height: 1;
}

.transparency-button-arez .transparency-button-text {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.88rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    max-width: 14ch;
}

.transparency-button-preview.transparency-button-arez {
    min-height: 136px;
}

.transparency-button-preview small {
    color: #ffffff;
    opacity: 0.92;
    margin-top: 0.35rem;
    word-break: break-word;
}

.transparency-button-preview .inline-actions {
    margin-top: 0.75rem;
}

.compact-grid {
    gap: 0.9rem;
}

.field-help {
    display: block;
    margin-top: -0.4rem;
    color: #64748b;
}

.transparency-style-tip {
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .transparency-buttons-grid-arez {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .transparency-button-arez {
        min-height: 105px;
        padding: 0.85rem 0.55rem;
    }

    .transparency-button-arez .transparency-button-text {
        font-size: 0.8rem;
    }
}

.sidebar-divider {
  color: rgba(229, 238, 251, 0.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 10px 14px 2px;
}

.plugin-install-card {
  margin-bottom: 18px;
}

.code-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  overflow-x: auto;
}

.code-card pre {
  margin: 0;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.form-note {
  color: var(--muted);
  margin-top: 10px;
}

.a11y-contrast {
  filter: contrast(1.3) saturate(1.08);
}

.a11y-grayscale {
  filter: grayscale(1);
}

.a11y-underline a {
  text-decoration: underline !important;
}

.a11y-readable-font,
.a11y-readable-font body,
.a11y-readable-font button,
.a11y-readable-font input,
.a11y-readable-font select,
.a11y-readable-font textarea {
  font-family: Arial, Verdana, Tahoma, sans-serif !important;
}

.a11y-spacing,
.a11y-spacing body,
.a11y-spacing p,
.a11y-spacing li,
.a11y-spacing a,
.a11y-spacing button,
.a11y-spacing input,
.a11y-spacing textarea,
.a11y-spacing select {
  letter-spacing: 0.06em;
  word-spacing: 0.14em;
}

.a11y-line-height,
.a11y-line-height body,
.a11y-line-height p,
.a11y-line-height li,
.a11y-line-height td,
.a11y-line-height th,
.a11y-line-height div {
  line-height: 1.8 !important;
}

.a11y-big-cursor,
.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='40' viewBox='0 0 30 40'%3E%3Cpath d='M2 2L2 30L10 22L15 36L20 34L15 20L25 20Z' fill='%230f5ef7' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

.a11y-hide-images main img,
.a11y-hide-images section img,
.a11y-hide-images article img,
.a11y-hide-images .page-content img,
.a11y-hide-images .content img {
  display: none !important;
}


/* Home institucional colada no menu */
.portal-header-restore__nav {
  box-shadow: none;
}
.page-content--home-full .ai-home,
.page-content--home-full .ai-hero-slider {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.page-content--home-full .ai-hero-slider {
  position: relative;
  top: 0;
}
