/*
Theme Name: SuporteADV
Theme URI: https://suporteadv.com.br
Author: SuporteADV
Description: Tema do site suporteadv.com.br — suporte remoto de TI para advogados e peritos, com páginas de sistemas judiciais por estado.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: suporteadv
*/

:root {
  --paper: #f7f7f7;
  --white: #ffffff;
  --ink: #00123c;
  --ink-2: #576180;
  --line: #dcdfe8;
  --purple: #ba2a2a;
  --purple-ink: #ba2a2a;
  --teal: #0073b7;
  --teal-soft: #e3f0fa;
  --lilac: #e3f0fa;
  --wa: #25d366;
  --wa-ink: #04210f;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 999px; font: 600 .95rem/1.2 var(--body);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #3be07b; }
.btn-lg { padding: .95em 1.7em; font-size: 1.03rem; }

/* Cabeçalho */
.site-header { border-top: 5px solid var(--purple); position: sticky; top: 0; z-index: 50; background: rgba(247, 247, 247, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { width: 92px; height: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .94rem; }
.nav a:not(.btn):hover { color: var(--purple-ink); text-decoration: none; }
.menu-toggle, .menu-btn { display: none; }

/* Hero */
.hero {
  padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 84px);
  background-image: radial-gradient(rgba(0, 18, 60, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.eyebrow { font: 500 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.hero h1 em { font-style: normal; color: var(--purple); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.lead strong { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.systems { font: 500 .85rem/1.4 var(--mono); color: var(--ink-2); margin: 0; }

/* Mapa de estados */
.finder { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 24px 60px -34px rgba(0, 18, 60, .40); }
.finder-title { font-size: 1.45rem; margin-bottom: .1em; }
.finder-sub { color: var(--ink-2); margin-bottom: 16px; font-size: .96rem; }
.tilemap { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(7, auto); gap: 5px; }
.tilemap a {
  display: grid; place-items: center; aspect-ratio: 1; min-height: 36px; border-radius: 9px;
  background: var(--teal); color: #fff; font: 500 clamp(.78rem, 1.6vw, 1rem)/1 var(--mono); letter-spacing: .02em; text-decoration: none;
  transition: background .12s ease, transform .12s ease;
}
.tilemap a:hover, .tilemap a:focus-visible { background: var(--purple); transform: scale(1.1); text-decoration: none; position: relative; z-index: 1; }
.finder-name { min-height: 1.6em; margin: 14px 0 12px; font: 500 .95rem/1.4 var(--mono); color: var(--ink-2); }
.finder-name.on { color: var(--purple-ink); }
.others { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); }
.others span { font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-right: 4px; }
.others a { padding: 6px 12px; border-radius: 999px; background: var(--lilac); color: var(--ink); font-size: .84rem; font-weight: 600; text-decoration: none; }
.others a:hover { background: var(--purple); color: #fff; }

/* Seções */
.sec { padding: clamp(48px, 7vw, 92px) 0; }
.sec-head { max-width: 700px; margin-bottom: 32px; }
.sec h2, .sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.sec-head p { color: var(--ink-2); margin: 0; }

/* Serviços: lista de documento, em 3 colunas */
.svc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.svc h3 { font: 500 .8rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--purple-ink); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.svc dl { margin: 0; }
.svc dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.svc dt { font: 800 1.06rem/1.25 var(--display); letter-spacing: -.01em; }
.svc dd { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }

/* Certificado */
.sec-cert { background: var(--lilac); }
.cert { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.cert-img img { border-radius: var(--radius); box-shadow: 0 28px 60px -30px rgba(0, 18, 60, .5); width: 100%; max-width: 430px; margin-inline: auto; }
.cert-text .lead { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .4em; width: 17px; height: 17px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Parceiros */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.partners a { display: block; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.partners a:hover { border-color: var(--teal); transform: translateY(-2px); }
.partners b { display: block; font: 500 1.05rem/1.3 var(--mono); color: var(--teal); margin-bottom: 6px; }
.partners span { color: var(--ink-2); font-size: .95rem; }

/* Chamada final */
.final { border-top: 6px solid var(--purple); background: var(--ink); color: #fff; padding: clamp(44px, 7vw, 80px) 0; }
.final-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 16em; margin: 0; }

/* Páginas de portais */
.page-hero { padding: clamp(32px, 5vw, 60px) 0 clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); background-image: radial-gradient(rgba(0, 18, 60, .09) 1px, transparent 1.2px); background-size: 22px 22px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: .3em; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font: 500 .8rem/1.4 var(--mono); color: var(--ink-2); margin-bottom: 16px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--purple-ink); }
.crumbs span { opacity: .5; margin: 0 4px; }
.sec-portal { padding-top: 30px; }

.filter { display: block; margin-bottom: 20px; }
.filter input { width: 100%; max-width: 520px; padding: 14px 18px; border-radius: 12px; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); }
.filter input::placeholder { color: #8a93ad; }
.filter input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 115, 183, .2); }
.none { color: var(--ink-2); padding: 14px 0; }

ul.portal-links, .wp-block-list.portal-links { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.portal-links li { margin: 0; padding: 0; }
.portal-links a {
  display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 72px; height: 100%;
  padding: 14px 40px 14px 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; position: relative;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.portal-links a::after { content: "↗"; position: absolute; right: 16px; top: 14px; color: var(--purple); font-weight: 600; }
.portal-links a:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(0, 18, 60, .5); }
.pl-name { font: 800 1.04rem/1.2 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pl-host { font: 500 .74rem/1.3 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }

.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 40px 0 14px; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.help h2 { font-size: 1.5rem; margin-bottom: .25em; }
.help p { margin: 0; color: #c9d0e6; max-width: 52ch; }
.more { margin: 0; }
.sec-others { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 24px; }
.sec-others h2 { font-size: 1.3rem; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 18px; }
.region-grid a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
.region-grid a b { font: 500 1.05rem/1.2 var(--mono); color: var(--teal); }
.region-grid a span { font-size: .84rem; color: var(--ink-2); line-height: 1.3; }
.region-grid a:hover { border-color: var(--teal); }

.prose { max-width: 760px; }
.prose a { text-decoration: underline; }

/* Rodapé */
.site-footer { border-top: 6px solid var(--teal); background: var(--ink); color: #e6e9f3; padding-top: 52px; border-top: 1px solid #1f3160; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.foot-brand img { background: var(--paper); padding: 10px 14px; border-radius: 12px; }
.foot-brand p { color: #aab3d1; max-width: 32ch; margin-top: 14px; font-size: .95rem; }
.foot-col h3 { font: 500 .76rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #9aa5c7; margin-bottom: 12px; }
.foot-col a { display: block; color: #fff; padding: 4px 0; font-size: .95rem; }
.foot-col a:hover { color: #7cc4f0; }
.legal { border-top: 1px solid #1f3160; padding: 18px 0 28px; color: #9aa5c7; font-size: .86rem; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); }
.wa-float:hover { transform: scale(1.06); }

/* Celular e tablet */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; }
  .svc-groups { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; gap: 5px; padding: 12px; cursor: pointer; }
  .menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav .btn { margin-top: 14px; }
  .menu-toggle:checked ~ .nav { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .foot { grid-template-columns: 1fr; }
  .cta .btn, .help .btn, .final .btn { width: 100%; }
  ul.portal-links { grid-template-columns: 1fr; }
  .tilemap { gap: 4px; }
  .tilemap a { min-height: 34px; border-radius: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Fundos fortes (paleta inspirada no portal do TJMG): azul no topo, vermelho no fim */
.hero, .page-hero {
  background-color: #00123c;
  background-image:
    radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px),
    linear-gradient(135deg, #00123c 0%, #0a3a7a 55%, #0073b7 100%);
  background-size: 22px 22px, auto;
  color: #fff;
  border-bottom: 6px solid var(--purple);
}
.hero h1, .page-hero h1 { color: #fff; }
.hero h1 em { background: var(--purple); color: #fff; padding: 0 .18em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .eyebrow { color: #8fd0ff; }
.hero .lead, .page-hero .lead { color: #d6e4f5; }
.hero .lead strong { color: #fff; }
.hero .systems { color: #a9c4e6; }
.crumbs, .crumbs a { color: #a9c4e6; }
.crumbs a:hover { color: #fff; }
.final { background: linear-gradient(135deg, #ba2a2a 0%, #7e1819 100%); border-top: 0; }
.site-footer { border-top: 0; }
.finder, .finder-title { color: var(--ink); }

/* Faixa "extensão do suporte.adv.br" */
.topline { background: #00123c; color: #cfe0f5; font: 500 .78rem/1.3 var(--mono); padding: 6px 0; }
.topline a { color: #fff; text-decoration: underline; }
.foot-brand p a { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .topline { font-size: .7rem; } }
/* Atalhos nacionais */
.quick { margin-top: 36px; }
.quick:first-child { margin-top: 0; }
.quick h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 14px; }
ul.portal-links.quick { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sec-quick { padding-bottom: 0; }
/* ===== Largura total: a página usa a tela inteira e organiza em colunas ===== */
.wrap { width: min(100% - 64px, 2000px); }
.sec { padding: clamp(32px, 4vw, 56px) 0; }
.hero { padding: clamp(32px, 4vw, 56px) 0; }
.hero-grid { grid-template-columns: 1.1fr .9fr; }
.finder { max-width: 760px; justify-self: end; width: 100%; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.6rem); }

/* Início: atalhos nacionais lado a lado */
.sec-quick .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.sec-quick .quick { margin-top: 0; }
.sec-quick ul.portal-links.quick { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Início: serviços e certificado aproveitam a largura */
.svc-groups { gap: clamp(24px, 3vw, 56px); }
.cert { grid-template-columns: .55fr 1.45fr; }
.cert-text .ticks { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Páginas de estado: lista à esquerda, atalhos e ajuda na lateral fixa */
.page-hero-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: end; }
.filter--hero { margin: 0; }
.filter--hero input { max-width: none; }
.sec-portal { padding-top: 28px; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.portal-main ul.portal-links { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.portal-side { position: sticky; top: 112px; display: grid; gap: 20px; max-height: calc(100vh - 128px); overflow-y: auto; padding-right: 4px; }
.portal-side .help { margin: 0; display: block; padding: 22px; }
.portal-side .help h2 { font-size: 1.3rem; }
.portal-side .help p { margin-bottom: 16px; }
.portal-side .help .btn { width: 100%; }
.quick--side { margin-top: 0; }
.quick--side h2 { font-size: 1.05rem; margin-bottom: 10px; }
.quick--side ul.portal-links.quick { grid-template-columns: 1fr; gap: 8px; }
.quick--side .portal-links a { min-height: 0; padding: 10px 40px 10px 14px; }
.quick--side .pl-name { font-size: .95rem; }
.sec-others { padding-top: 24px; }
.region-grid--small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

@media (max-width: 1100px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-side { position: static; max-height: none; overflow: visible; }
  .sec-quick .wrap { grid-template-columns: 1fr; }
  .page-hero-in { grid-template-columns: 1fr; }
  .finder { justify-self: stretch; max-width: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
}
/* ===== Botões de link: só o título, o maior possível, botões compactos ===== */
.pl-host { display: none; }
ul.portal-links, .wp-block-list.portal-links, .portal-main ul.portal-links, ul.portal-links.quick { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 4px; }
.portal-links a { min-height: 0; height: 100%; padding: 6px 10px; gap: 0; justify-content: center; border-radius: 10px; }
.portal-links a::after { content: none; }
.pl-name { font: 800 clamp(1.25rem, 1.9vw, 1.9rem)/1.05 var(--display); letter-spacing: -.02em; padding: 0; overflow-wrap: anywhere; }
.sec-quick ul.portal-links.quick { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.quick--side ul.portal-links.quick { grid-template-columns: 1fr 1fr; gap: 6px; }
.quick--side .portal-links a { padding: 6px 10px; }
.quick--side .pl-name { font-size: 1.05rem; }
.quick { margin-top: 20px; }
.quick h2 { margin-bottom: 8px; }
.region-grid { gap: 6px; }
.portal-main .more, .sec-portal { margin-top: 0; }
.sec-portal { padding-top: 16px; }
/* Ajuste: título grande sem cortar palavras */
ul.portal-links, .wp-block-list.portal-links, .portal-main ul.portal-links, ul.portal-links.quick, .sec-quick ul.portal-links.quick { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
.pl-name { font-size: clamp(1.15rem, 1.5vw, 1.6rem); overflow-wrap: break-word; word-break: normal; hyphens: none; }
.quick--side ul.portal-links.quick { grid-template-columns: 1fr 1fr; }
.quick--side .pl-name { font-size: 1.02rem; }
/* =====================================================================
   Cores dos botões por sistema (iguais nos temas claro e escuro)
   ===================================================================== */
.portal-links a { --btn: #333333; background: var(--btn); color: #ffffff; border: 1px solid transparent; }
.portal-links a .pl-name { color: #ffffff; }
.portal-links a.c-gray  { --btn: #333333; }   /* demais: cinza dos botões do site atual */
.portal-links a.c-blue  { --btn: #0078aa; }   /* PJE 1G, PJE COR, PJE MÍDIAS: azul do site atual */
.portal-links a.c-black { --btn: #000000; }   /* PJE 2G */
.portal-links a.c-teal  { --btn: #008f7f; }   /* PROJUDI: verde da logo */
.portal-links a.c-navy  { --btn: #00123c; }   /* EPROC: azul do cabeçalho do TJMG */
.portal-links a.c-seeu  { --btn: #183053; }   /* SEEU: azul do fundo do SEEU */
.portal-links a.c-red   { --btn: #7e1819; }   /* OAB: vermelho do cabeçalho do TJMG */
.portal-links a:hover { background: var(--btn); border-color: #ffffff; filter: brightness(1.25); box-shadow: none; }

/* =====================================================================
   Tema escuro: fundo preto, com roxo e verde da marca
   ===================================================================== */
:root { --deep: #00123c; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="dark"] {
  --paper: #000000;
  --white: #0c0c0c;
  --ink: #f2f2f2;
  --ink-2: #b6b6b6;
  --line: #2a2a2a;
  --purple: #8f00ff;
  --purple-ink: #c28fff;
  --teal: #00a893;
  --teal-soft: #0f2a27;
  --lilac: #1a1a1a;
  --deep: #0c0c0c;
}
html[data-theme="dark"] body { background: #000; }
html[data-theme="dark"] a { color: #4fd8c4; }
html[data-theme="dark"] .btn-wa, html[data-theme="dark"] .btn-wa:hover { color: var(--wa-ink); }
html[data-theme="dark"] .site-header { background: rgba(0, 0, 0, .88); border-bottom-color: #262626; }
html[data-theme="dark"] .topline { background: #000; border-bottom: 1px solid #262626; }
html[data-theme="dark"] .nav a:not(.btn) { color: #f2f2f2; }
html[data-theme="dark"] .nav a:not(.btn):hover { color: #4fd8c4; }
html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero {
  background-color: #000;
  background-image:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px),
    linear-gradient(135deg, #00123c 0%, #0a3a7a 55%, #0073b7 100%);   /* mesmo azul do tema claro (pedido do Ivan, 30/10/2026) */
}
html[data-theme="dark"] .hero h1 em { background: #8f00ff; }
html[data-theme="dark"] .hero .eyebrow { color: #00ff00; }
html[data-theme="dark"] .hero .lead, html[data-theme="dark"] .page-hero .lead { color: #cfcfcf; }
html[data-theme="dark"] .finder, html[data-theme="dark"] .finder-title { color: #f2f2f2; }
html[data-theme="dark"] .finder { border-color: #2a2a2a; box-shadow: 0 24px 60px -34px rgba(143, 0, 255, .5); }
html[data-theme="dark"] .tilemap a { background: #008f7f; color: #fff; }
html[data-theme="dark"] .tilemap a:hover, html[data-theme="dark"] .tilemap a:focus-visible { background: #8f00ff; }
html[data-theme="dark"] .others a { background: #1a1a1a; color: #f2f2f2; }
html[data-theme="dark"] .others a:hover { background: #8f00ff; color: #fff; }
html[data-theme="dark"] .svc h3 { color: #c28fff; border-bottom-color: #f2f2f2; }
html[data-theme="dark"] .sec-cert { background: #0a0a0a; border-block: 1px solid #1f1f1f; }
html[data-theme="dark"] .eyebrow { color: #00ff00; }
html[data-theme="dark"] .partners b { color: #4fd8c4; }
html[data-theme="dark"] .partners a:hover, html[data-theme="dark"] .region-grid a:hover { border-color: #8f00ff; }
html[data-theme="dark"] .region-grid a b { color: #4fd8c4; }
html[data-theme="dark"] .filter input { background: #0c0c0c; color: #f2f2f2; border-color: #333; }
html[data-theme="dark"] .filter input:focus { border-color: #8f00ff; box-shadow: 0 0 0 4px rgba(143, 0, 255, .3); }
html[data-theme="dark"] .final { background: linear-gradient(135deg, #8f00ff 0%, #3a0070 100%); }
html[data-theme="dark"] .help { background: #0c0c0c; border: 1px solid #2a2a2a; }
html[data-theme="dark"] .site-footer { background: #000; border-top: 1px solid #262626; }
html[data-theme="dark"] .legal { border-top-color: #262626; }
html[data-theme="dark"] .foot-col a:hover { color: #c28fff; }
html[data-theme="dark"] .portal-links a { border-color: rgba(255, 255, 255, .28); }
html[data-theme="dark"] .portal-links a:hover { border-color: #ffffff; }
html[data-theme="dark"] .skip { background: #f2f2f2; color: #000; }
html[data-theme="dark"] :focus-visible { outline-color: #00ff00; }
html[data-theme="dark"] .nav { background: #000; }

/* Os itens fixos escuros do modo claro usam --deep (no escuro vira quase-preto) */
.help, .site-footer { background: var(--deep); }

/* Botão do tema */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); font: 600 .9rem/1 var(--body);
}
.theme-toggle:hover { border-color: var(--teal); }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle { color: #f2f2f2; border-color: #333; }
@media (max-width: 820px) { .theme-toggle { margin-top: 12px; justify-content: center; } }
/* Ordem da lista: sistemas da Justiça no alto; apoios numa linha; Projudi de audiências sozinho no fim */
.portal-main ul.portal-links.aux { margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.portal-main ul.portal-links.last { margin-top: 14px; grid-template-columns: 1fr; }
.portal-links.last a { padding: 14px 20px; min-height: 72px; }
.portal-links.last .pl-name { white-space: nowrap; font-size: clamp(1.4rem, 3vw, 3rem); }
@media (max-width: 760px) { .portal-links.last .pl-name { white-space: normal; font-size: 1.25rem; } }
/* Linha de apoio: todos os botões numa linha só (em telas estreitas pode quebrar) */
.portal-main ul.portal-links.aux { display: flex; flex-wrap: nowrap; gap: 6px; }
.portal-main ul.portal-links.aux li { flex: 1 1 0; min-width: 0; }
@media (max-width: 1100px) {
  .portal-main ul.portal-links.aux { flex-wrap: wrap; }
  .portal-main ul.portal-links.aux li { flex: 1 1 160px; }
}
.portal-links.aux .pl-name { font-size: clamp(1rem, 1.15vw, 1.3rem); }

/* ===== Botões sem quebra de linha: cada botão tem a largura do seu texto (e cresce se precisar) ===== */
ul.portal-links, .wp-block-list.portal-links, .portal-main ul.portal-links, ul.portal-links.quick,
.sec-quick ul.portal-links.quick, .quick--side ul.portal-links.quick, .portal-main ul.portal-links.aux, .portal-main ul.portal-links.last {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.portal-links li, .portal-main ul.portal-links.aux li { flex: 1 1 auto; min-width: 0; margin: 0; }
.portal-links a { white-space: nowrap; align-items: center; text-align: center; padding: 8px 18px; }
.portal-links .pl-name { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.portal-main ul.portal-links.last li { flex: 1 1 100%; }
.portal-layout { grid-template-columns: minmax(0, 1fr) 400px; }
.quick--side .portal-links a { padding: 7px 14px; }
@media (max-width: 1100px) { .portal-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .portal-links.last .pl-name { white-space: nowrap; font-size: 3.3vw; }
  .portal-links.last a { padding: 12px 10px; }
}
.portal-main .portal-links.last .pl-name { font-size: clamp(1.3rem, 2.3vw, 2.6rem); }
@media (max-width: 760px) { .portal-main .portal-links.last .pl-name { font-size: 3.3vw; } }

/* =====================================================================
   Botões de sistema: todos do mesmo tamanho do botão da OAB. O texto se ajusta (fit.js):
   nome curto = uma linha com a maior fonte possível; nome comprido = quebra de linha.
   ===================================================================== */
:root { --btn-h: 62px; --btn-min: 150px; }
body .portal-main ul.portal-links.wp-block-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--btn-min), 1fr)); grid-auto-rows: var(--btn-h); gap: 4px; margin: 0 0 4px;
}
body .portal-main ul.portal-links.wp-block-list.aux { margin-top: 8px; }
body .portal-side ul.portal-links.quick, body .sec-quick ul.portal-links.quick {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--btn-min), 1fr)); grid-auto-rows: var(--btn-h); gap: 4px;
}
body .portal-side ul.portal-links.quick { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 54px; }
body .portal-links li { min-width: 0; min-height: 0; }
body .portal-links a { padding: 4px 6px; justify-content: center; align-items: center; text-align: center; white-space: normal; height: 100%; min-height: 0; border-radius: 8px; }
body .portal-links .pl-name { display: block; width: 100%; text-align: center; font-size: 1.15rem; line-height: 1.05; white-space: normal; overflow-wrap: normal; word-break: normal; }
/* o botão grande do Projudi de audiências continua sozinho, em uma linha, no fim */
body .portal-main ul.portal-links.wp-block-list.last { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; margin-top: 8px; }
body .portal-main .portal-links.last a { padding: 14px 20px; min-height: 72px; }
body .portal-main .portal-links.last .pl-name { white-space: nowrap; font-size: clamp(1.3rem, 2.3vw, 2.6rem); }
@media (max-width: 760px) {
  :root { --btn-h: 56px; --btn-min: 104px; }
  body .portal-main .portal-links.last .pl-name { font-size: 3.3vw; }
  body .portal-side ul.portal-links.quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root { --btn-min: 138px; }
@media (max-width: 760px) { :root { --btn-min: 104px; } }

/* Projudi de audiências: mesma fonte do SERVICEDESK (fit.js) e altura igual à dos outros botões */
body .portal-main .portal-links.last a { padding: 4px 10px; min-height: var(--btn-h); height: var(--btn-h); }
body .portal-main .portal-links.last .pl-name { font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 760px) { body .portal-main .portal-links.last .pl-name { font-size: 0.85rem; } }
/* Projudi de audiências: do tamanho do texto, com margens laterais mínimas */
body .portal-main ul.portal-links.wp-block-list.last { display: flex; justify-content: flex-start; grid-template-columns: none; }
body .portal-main ul.portal-links.wp-block-list.last li { flex: 0 0 auto; width: auto; }
body .portal-main .portal-links.last a { width: auto; height: auto; min-height: 0; padding: 8px 6px; }
/* Modelo v2 (Bahia): botões do topo */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.btn-red { background: #ba2a2a; color: #fff; }
.btn-red:hover { background: #d63a3a; }
.nav .btn-states { background: #00123c; color: #fff; padding: .6em 1em; font-size: .85rem; white-space: nowrap; }
.nav .btn-states:hover { background: #0073b7; }
html[data-theme="dark"] .nav .btn-states { background: #8f00ff; color: #fff; }
html[data-theme="dark"] .nav .btn-states:hover { background: #a63cff; }
html[data-theme="dark"] .btn-red { background: #ba2a2a; color: #fff; }
@media (max-width: 1100px) { .hero-actions { justify-content: flex-start; } }
@media (max-width: 560px) { .hero-actions .btn { width: 100%; } }
/* Modelo v2: botões no lado direito do cabeçalho */
.nav .btn-wa, .nav .btn-red { padding: .6em 1em; font-size: .88rem; white-space: nowrap; }
.page-hero-in:has(> div:only-child) { grid-template-columns: 1fr; }
/* Tema escuro: TODOS OS ESTADOS no verde da logo */
html[data-theme="dark"] .nav .btn-states { background: #008f7f; color: #fff; }
html[data-theme="dark"] .nav .btn-states:hover { background: #00a893; }
/* Modelo v2: botões de serviço na lateral */
.side-actions { display: grid; gap: 8px; }
.side-actions .btn { width: 100%; white-space: nowrap; }
.btn-blue { background: #0078aa; color: #fff; }
.btn-blue:hover { background: #0090cc; }
.btn-teal { background: #008f7f; color: #fff; }
.btn-teal:hover { background: #00a893; }
/* Botões da lateral (Cálculos / 2FA): fonte grande, quase sem margem */
.side-actions { gap: 6px; }
body .side-actions .btn { padding: 9px 3px; border-radius: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; font-size: 1.5rem; }
/* Serviços (modelo v2) */
.services { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.services h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: .2em; }
.services-sub { color: var(--ink-2); margin-bottom: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.services-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 6px; }
.services-card:last-child { grid-column: 1 / -1; }
.services-card h3 { font: 500 .78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--purple-ink); margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.services-card dl { margin: 0; }
.services-card:last-child dl { column-count: 2; column-gap: 28px; }
.services-card dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.services-card dl > div:last-child { border-bottom: 0; }
.services-card dt { font: 800 1.02rem/1.25 var(--display); letter-spacing: -.01em; }
.services-card dd { margin: 3px 0 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.services-cta { margin-top: 16px; width: 100%; }
html[data-theme="dark"] .services-card h3 { color: #c28fff; border-bottom-color: #f2f2f2; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } .services-card:last-child dl { column-count: 1; } }
/* Tema escuro: separador acima dos sistemas em vermelho */
html[data-theme="dark"] .page-hero, html[data-theme="dark"] .hero { border-bottom-color: #ba2a2a; }

.services-more { margin: 14px 0 0; padding: 12px 16px; border-left: 4px solid var(--purple); background: var(--white); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.services-more strong { color: var(--ink); }

/* Tema escuro: linha do topo do cabeçalho em vermelho */
html[data-theme="dark"] .site-header { border-top-color: #ba2a2a; }

/* Modelo v2: quatro botões pretos, alinhados à direita no cabeçalho azul/escuro */
.hero-actions.hero-actions--black { display: grid; grid-template-columns: repeat(2, auto); gap: 8px; justify-content: end; align-content: center; justify-self: end; }
.btn-black { background: #000000; color: #ffffff; border: 1px solid rgba(255, 255, 255, .35); padding: .8em 1.2em; font-size: 1.02rem; font-weight: 700; white-space: nowrap; border-radius: 12px; }
.btn-black:hover { background: #000000; border-color: #ffffff; color: #ffffff; }
@media (max-width: 1100px) { .hero-actions.hero-actions--black { justify-self: stretch; justify-content: stretch; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hero-actions.hero-actions--black { grid-template-columns: 1fr; } }
html[data-theme="dark"] .btn-black, html[data-theme="dark"] .btn-black:hover { color: #ffffff; }

/* Botão SISTEMAS NACIONAIS (roxo da marca) */
.portal-links a.c-nac { --btn: #8f00ff; }

/* Teste de fonte (Bahia / modelo v2): Montserrat, a mais parecida com o "Processo Judicial Eletrônico" do logo do PJe */
body.page-template-template-portal-v2-php { --display: "Montserrat", "Segoe UI", system-ui, sans-serif; }
body.page-template-template-portal-v2-php h1, body.page-template-template-portal-v2-php h2, body.page-template-template-portal-v2-php h3 { letter-spacing: -.01em; }
/* Fonte do PJe: a do próprio sistema (Segoe UI no Windows, San Francisco no Mac, Roboto no Android), igual à tela do PJe. Bahia / modelo v2. */
body.page-template-template-portal-v2-php {
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --mono: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}
body.page-template-template-portal-v2-php h1, body.page-template-template-portal-v2-php h2, body.page-template-template-portal-v2-php h3 { letter-spacing: 0; }
/* Teste: Selawik (livre, quase idêntica à Segoe UI) para a Bahia ficar igual em todos os aparelhos */
body.page-template-template-portal-v2-php {
  --display: "Selawik", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: "Selawik", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Selawik", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* SISTEMAS NACIONAIS: azul do cabeçalho do tema claro */
.portal-links a.c-nac { --btn: #0a3a7a; }

/* SISTEMAS JUDICIAIS: azul do botão EPROC */
.portal-links a.c-sj { --btn: #00123c; }

/* Página Suporte Tribunais */
.sup { max-width: 1400px; }
.sup h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 34px 0 10px; }
.sup h2:first-of-type { margin-top: 18px; }
.sup-note { color: var(--ink-2); max-width: 90ch; }
.sup-sub { color: var(--ink-2); margin: -4px 0 12px; }
.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.sup-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 12px; }
.sup-card h3 { font-size: 1.15rem; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.sup-card h3 span { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
.sup-card dl { margin: 0; }
.sup-card dl > div { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sup-card dl > div:last-child { border-bottom: 0; }
.sup-card dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700; }
.sup-card dd { margin: 1px 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.sup-src { margin: 6px 0 0; font-size: .78rem; color: var(--ink-2); }
ul.portal-links.sup-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.sup-links a { height: auto; min-height: 56px; white-space: normal; flex-direction: column; align-items: flex-start; text-align: left; padding: 8px 12px; }
.sup-links .pl-name { text-align: left; font-size: 1.02rem; }
.sup-obs { font-size: .78rem; opacity: .85; margin-top: 2px; }
.sup-help { margin-top: 36px; }
.side-link { margin: 12px 0 0; font-size: 1rem; }
.side-link a { font-weight: 700; text-decoration: underline; }
/* Botão 2FA no cabeçalho: roxo da logo */
.nav .btn-2fa { background: #8f00ff; color: #ffffff; padding: .6em 1.2em; font-size: .9rem; font-weight: 800; }
.nav .btn-2fa:hover { background: #a63cff; color: #ffffff; }
html[data-theme="dark"] .nav .btn-2fa, html[data-theme="dark"] .nav .btn-2fa:hover { color: #ffffff; }
/* 2FA no cabeçalho: texto antes do botão; botão com pouquíssima margem e fonte grande */
.nav .nav-2fa-text { max-width: 170px; font-size: .8rem; line-height: 1.15; font-weight: 700; color: var(--ink); text-align: right; }
.nav .btn-2fa { padding: 2px 9px; font-size: 1.5rem; line-height: 1.1; font-weight: 800; border-radius: 10px; }
html[data-theme="dark"] .nav .nav-2fa-text { color: #f2f2f2; }
@media (max-width: 820px) { .nav .nav-2fa-text { max-width: none; text-align: left; font-size: .95rem; margin-top: 10px; } .nav .btn-2fa { align-self: flex-start; } }
.sup-plain { display: flex; flex-direction: column; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-2); min-height: 56px; }
.nav .nav-2fa-text { max-width: 200px; }

.nav .nav-2fa-text { max-width: 270px; font-size: .76rem; }

/* Botão flutuante: voltar ao topo (todas as páginas) */
.to-top {
  position: fixed; right: 18px; bottom: 86px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 2px solid #ffffff;
  background: #00123c; color: #ffffff; box-shadow: 0 10px 28px -8px rgba(0, 18, 60, .7);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #0073b7; }
html[data-theme="dark"] .to-top { background: #8f00ff; border-color: #000; box-shadow: 0 10px 28px -8px rgba(143, 0, 255, .7); }
html[data-theme="dark"] .to-top:hover { background: #a63cff; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
/* Âncoras (#peritos, #gerid...) não ficam escondidas atrás do cabeçalho fixo */
html { scroll-padding-top: 150px; }

/* Faixa do título (Sistemas — Bahia): azul sólido do botão EPROC no tema ESCURO (o claro mantém o degradê) */
html[data-theme="dark"] body.page-template-template-portal-v2-php .page-hero {
  background-color: #00123c;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
/* Ferramentas de PDF: cartões, como nos sites de ferramentas de PDF */
.pdf-page { max-width: 1500px; }
.pdf-group { margin-top: 34px; scroll-margin-top: 150px; }
.pdf-group:first-of-type { margin-top: 18px; }
.pdf-group h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0 0 14px; padding-left: 14px; border-left: 6px solid var(--c, #0078aa); }
.pdf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pdf-card {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px 16px; min-height: 116px;
  background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--c, #0078aa); border-radius: 14px;
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pdf-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(0, 18, 60, .55); border-color: var(--c, #0078aa); text-decoration: none; }
.pdf-ico { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 1.6rem; background: color-mix(in srgb, var(--c, #0078aa) 14%, var(--white)); }
.pdf-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 22px; }
.pdf-txt b { font-size: 1.08rem; line-height: 1.2; color: var(--ink); }
.pdf-txt b i { font-style: normal; font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--c, #0078aa); padding: 2px 7px; border-radius: 99px; vertical-align: middle; margin-left: 4px; white-space: nowrap; }
.pdf-txt span { font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.pdf-go { position: absolute; right: 14px; top: 14px; font-weight: 800; color: var(--c, #0078aa); opacity: .55; transition: transform .15s ease, opacity .15s ease; }
.pdf-card:hover .pdf-go { transform: translateX(3px); opacity: 1; }
html[data-theme="dark"] .pdf-card { background: #0c0c0c; border-color: #2a2a2a; border-top-color: var(--c, #0078aa); }
html[data-theme="dark"] .pdf-ico { background: color-mix(in srgb, var(--c, #0078aa) 30%, #000); }
html[data-theme="dark"] .pdf-group[style*="#00123c"] { --c: #4f8cff !important; }
@media (max-width: 560px) { .pdf-cards { grid-template-columns: 1fr; } }
/* ===== Página inicial de vendas ===== */
.home-hero { padding: clamp(36px, 5vw, 72px) 0; background-color: #00123c; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px), linear-gradient(135deg, #00123c 0%, #0a3a7a 55%, #0073b7 100%); background-size: 22px 22px, auto; color: #fff; border-bottom: 6px solid var(--purple); }
.home-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.home-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: .3em; }
.home-hero .eyebrow { color: #8fd0ff; }
.home-hero .lead { color: #d6e4f5; max-width: 60ch; }
.home-hero .lead strong { color: #fff; }
.home-hero .cta { margin: 24px 0 0; }
.home-hero-art { justify-self: end; }
.home-hero-art img { width: min(420px, 100%); border-radius: 16px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.2); }
html[data-theme="dark"] .home-hero { background-color: #00123c; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); }

.home-facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-size: clamp(1.15rem, 2.2vw, 1.7rem); line-height: 1.15; color: var(--purple-ink); }
.facts span { color: var(--ink-2); font-size: .95rem; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.prod-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 14px; }
.prod-card h3 { margin: 0; font-size: 1.35rem; }
.prod-card p { margin: 0; color: var(--ink-2); flex: 1; }
.prod-tag { align-self: flex-start; font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--teal); padding: 5px 9px; border-radius: 99px; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.prod-more { font-weight: 700; }
.sec-sistemas { background: var(--lilac); }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.band h2 { font-size: 1.5rem; margin-bottom: .2em; }
.band p { margin: 0; color: var(--ink-2); }
.btn-states.btn-lg { background: #00123c; color: #fff; }
html[data-theme="dark"] .btn-states.btn-lg { background: #008f7f; color: #fff; }
@media (max-width: 900px) { .home-hero-in { grid-template-columns: 1fr; } .home-hero-art { justify-self: start; } .facts { grid-template-columns: 1fr; } }
#certificado .cert { grid-template-columns: 1fr; max-width: 900px; }

/* Nota de condição do preço (home de vendas) */
.price-note { margin: 12px 0 0; font-size: 0.95rem; opacity: .85; }
.price-note a { text-decoration: underline; }

/* Cartão do certificado na home (sem tabela de preços) */
.cert-card { width: min(440px, 100%); padding: clamp(22px, 3vw, 34px); border-radius: 18px; color: #fff; background: linear-gradient(160deg, #0a1a4a 0%, #1b2f8f 60%, #008f7f 140%); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 30px 60px -28px rgba(0,0,0,.8); }
.cert-card-logo { display: block; width: 150px; height: auto; margin-bottom: 18px; background: #fff; padding: 8px 12px; border-radius: 10px; }
.cert-card h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 0 0 16px; }
.cert-card ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.cert-card li { padding-left: 26px; position: relative; color: #e4ecfb; line-height: 1.35; }
.cert-card li::before { content: "✓"; position: absolute; left: 0; color: #00ff00; font-weight: 700; }
.cert-card li b { color: #fff; }
.cert-card p { margin: 0; color: #bcd0ee; font-size: .95rem; }
.home-hero-art .cert-card-logo { width: 130px; border: 0; box-shadow: none; border-radius: 10px; }
.home-hero .price-note { color: #d6e4f5; opacity: 1; }
.home-hero .price-note a { color: #fff; }

/* 2FA na faixa do título (Bahia): lado direito, acima dos botões pretos */
.hero-side { display: grid; gap: 12px; justify-items: end; justify-self: end; align-content: center; }
.hero-2fa { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hero-2fa-text { max-width: 340px; font-size: .95rem; line-height: 1.2; font-weight: 700; color: #fff; text-align: right; }
.hero-2fa .btn-2fa { background: #8f00ff; color: #fff; padding: 2px 12px; font-size: 1.6rem; line-height: 1.15; font-weight: 800; border-radius: 10px; }
.hero-2fa .btn-2fa:hover { background: #a63cff; color: #fff; }
@media (max-width: 1100px) { .hero-side { justify-self: stretch; justify-items: stretch; } .hero-2fa { justify-content: flex-start; } .hero-2fa-text { text-align: left; } }

/* ===== Home de vendas v2 (30/10/2026) — prefixo hm- ===== */
.hm-window { margin: 0; width: min(460px, 100%); border-radius: 16px; overflow: hidden; background: #071533; color: #fff; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 60px -28px rgba(0,0,0,.85); }
.hm-win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0d2150; border-bottom: 1px solid rgba(255,255,255,.12); font: 500 .74rem/1 var(--mono); color: #b9c8e6; }
.hm-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ba2a2a; }
.hm-win-bar i:nth-child(2) { background: #e0a800; }
.hm-win-bar i:nth-child(3) { background: #25d366; }
.hm-win-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-steps { list-style: none; margin: 0; padding: 8px 18px 4px; display: grid; }
.hm-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hm-steps li:last-child { border-bottom: 0; }
.hm-steps b { display: block; font: 800 1.05rem/1.25 var(--display); letter-spacing: -.01em; }
.hm-steps small { display: block; margin-top: 3px; color: #b9c8e6; font-size: .86rem; line-height: 1.4; }
.hm-dot { width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 5px color-mix(in srgb, var(--k) 25%, transparent); }
.hm-steps .is-err { --k: #ff5a5a; }
.hm-steps .is-run { --k: #4fb4ff; }
.hm-steps .is-ok  { --k: #2fe07c; }
.hm-window figcaption { padding: 12px 18px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: #9fb3d8; }
@keyframes hmStep { 0% { opacity: .55; } 8%, 30% { opacity: 1; } 38%, 100% { opacity: .55; } }
@keyframes hmPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.hm-steps li { opacity: .55; animation: hmStep 9s ease-in-out infinite; }
.hm-steps .is-run { animation-delay: 3s; }
.hm-steps .is-ok  { animation-delay: 6s; }
.hm-steps .is-run .hm-dot { animation: hmPulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-steps li { animation: none; opacity: 1; } .hm-steps .is-run .hm-dot { animation: none; } }

.hm-intents-sec { padding-bottom: 0; }
.hm-intents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-intents a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 44px 18px 18px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--purple); border-radius: 12px; color: var(--ink); transition: transform .15s, border-color .15s; }
.hm-intents a:hover, .hm-intents a:focus-visible { transform: translateY(-2px); text-decoration: none; border-color: var(--teal); }
.hm-intents b { font: 800 1.12rem/1.2 var(--display); letter-spacing: -.01em; }
.hm-intents span { color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.hm-intents i { position: absolute; right: 16px; top: 16px; font-style: normal; font-size: 1.3rem; color: var(--teal); }

.hm-cert-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
#certificado .hm-cert-in { max-width: none; }
.hm-flow { list-style: none; counter-reset: f; margin: 0 0 26px; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.hm-flow li { counter-increment: f; position: relative; padding: 9px 0 9px 28px; }
.hm-flow li::before { content: counter(f); position: absolute; left: -15px; top: 7px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 .82rem/1 var(--mono); }
html[data-theme="dark"] .hm-flow li::before { background: #f2f2f2; color: #000; }
.hm-flow b { font-weight: 800; }
.hm-formats { display: grid; gap: 16px; }
.hm-format { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 14px; padding: 20px 22px; }
.hm-format-k { margin: 0 0 4px; font: 800 2.6rem/1 var(--display); letter-spacing: -.04em; color: var(--purple-ink); }
.hm-format h3 { font-size: 1.15rem; margin-bottom: 10px; }
.hm-format dl { margin: 0; }
.hm-format dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; line-height: 1.4; }
.hm-format dt { font: 600 .72rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.hm-format dd { margin: 0; }

.hm-prods { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hm-prods .prod-card { border-top-color: var(--c, var(--teal)); }
.hm-prods .prod-tag { background: var(--c, var(--teal)); }
.hm-prods .prod-more { color: var(--c, var(--teal)); }
html[data-theme="dark"] .hm-prods .prod-more { color: #fff; }

.hm-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px clamp(20px, 3vw, 40px); }
.hm-svc h3 { font: 600 .76rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--purple-ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin: 0 0 4px; }
.hm-svc ul { list-style: none; margin: 0; padding: 0; }
.hm-svc li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .96rem; line-height: 1.35; }
.hm-support-cta { margin-top: 30px; }

.hm-uf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hm-uf a { display: flex; align-items: baseline; gap: 9px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); line-height: 1.2; transition: background .12s, color .12s, border-color .12s; }
.hm-uf a b { font: 800 1.15rem/1 var(--display); letter-spacing: -.02em; color: var(--purple-ink); min-width: 1.7em; }
.hm-uf a span { font-size: .88rem; color: var(--ink-2); }
.hm-uf a:hover, .hm-uf a:focus-visible { background: #00123c; border-color: #00123c; text-decoration: none; }
.hm-uf a:hover b, .hm-uf a:hover span, .hm-uf a:focus-visible b, .hm-uf a:focus-visible span { color: #fff; }
.hm-uf-sub { margin: 26px 0 10px; font: 600 .76rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.hm-others { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.hm-others a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .92rem; }
.hm-others a:hover, .hm-others a:focus-visible { border-color: var(--teal); text-decoration: none; }
.hm-final-sub { margin: 8px 0 0; color: #ffd9d9; font: 500 1rem/1.3 var(--mono); }
.final-in .cta { margin: 0; }

@media (max-width: 1000px) { .hm-intents { grid-template-columns: repeat(2, 1fr); } .hm-svc-grid { grid-template-columns: repeat(2, 1fr); } .hm-cert-in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hm-intents { grid-template-columns: 1fr; } .hm-svc-grid { grid-template-columns: 1fr; } .hm-uf { grid-template-columns: repeat(2, 1fr); } }
.hm-group { margin: 30px 0 12px; font: 600 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 14px; }
.hm-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-sistemas .sec-head + .hm-group { margin-top: 8px; }
.hm-prods { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .hm-prods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hm-prods { grid-template-columns: 1fr; } }
.foot-brand .foot-home { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; font-weight: 700; text-decoration: none; }
.foot-brand .foot-home:hover, .foot-brand .foot-home:focus-visible { background: #fff; color: #00123c; }

/* Card "Deu erro ao acessar ou assinar?": botão do WhatsApp e QR code lado a lado (QR à direita) */
.help .help-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.help .help-actions .btn { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; line-height: 1.15; padding: .8em .9em; }
.help-qr { flex: 0 0 auto; display: block; line-height: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.help-qr img { width: 112px; height: 112px; }
@media (max-width: 380px) { .help .help-actions { flex-wrap: wrap; justify-content: center; } }
.sup-inf { color: var(--purple-ink); font-weight: 700; cursor: help; }

/* ---------- Página Sistemas nacionais: card compacto (Ivan, 30/10/2026) ---------- */
.nac-card { margin: 0 0 14px; padding: 10px 16px 6px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--purple); border-radius: var(--radius); }
.nac-row { --btn: #0a3a7a; display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.nac-row:first-child { border-top: 0; }
.nac-row.c-seeu { --btn: #183053; } .nac-row.c-red { --btn: #7e1819; } .nac-row.c-teal { --btn: #008f7f; }
.nac-k { font: 600 .68rem/1.25 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: #555; }
.nac-row ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nac-row a { display: block; padding: 6px 12px; border-radius: 7px; background: var(--btn); color: #fff; font-weight: 700; font-size: .86rem; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.nac-row a:hover { filter: brightness(1.25); text-decoration: none; }
@media (max-width: 640px) { .nac-row { grid-template-columns: 1fr; gap: 4px; } }

/* Botão 2FA verde #00ff00 com texto preto (Ivan, 30/10/2026) */
.nav .btn-2fa, .hero-2fa .btn-2fa, html[data-theme="dark"] .nav .btn-2fa, html[data-theme="dark"] .hero-2fa .btn-2fa { background: #00ff00; color: #000; }
.nav .btn-2fa:hover, .hero-2fa .btn-2fa:hover, html[data-theme="dark"] .nav .btn-2fa:hover, html[data-theme="dark"] .hero-2fa .btn-2fa:hover { background: #33ff33; color: #000; }

/* ---------- Cartão duplo de ajuda (30/10/2026): em cima, ofertas passando; embaixo, "Deu erro ao acessar ou assinar?" ---------- */
.btn-sm { padding: .5em 1em; font-size: .86rem; }
.btn-gold { background: #c79a42; color: #1d1405; }
.btn-gold:hover { background: #d9ad55; }
.help.help-dupla, html[data-theme="dark"] .help.help-dupla { display: block; padding: 0; overflow: hidden; background: #0b5cab; border: 0; border-top: 4px solid #c79a42; color: #fff; }
.help-dupla .help-base { padding: 20px 22px 22px; }
.help-dupla .help-base h2 { font-size: 1.3rem; margin: 0 0 .3em; }
.help-dupla .help-base p { margin: 0 0 14px; color: #e6eefa; max-width: 52ch; }
.help-dupla .help-base-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.help-dupla .help-base-linha p { margin: 0; }
.help-dupla .help-base-linha .btn { width: auto; }
.help-ofertas { background: #002f63; padding: 16px 22px 12px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.of-slides { display: grid; }
.of-slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.of-slide.is-on { opacity: 1; visibility: visible; }
.of-slide small { font: 800 .72rem/1 var(--font-body, inherit); letter-spacing: .08em; text-transform: uppercase; color: #c79a42; }
.of-slide b { font-size: 1.2rem; line-height: 1.2; color: #fff; }
.of-slide span { color: #d5e1f3; font-size: .92rem; line-height: 1.4; margin-bottom: 8px; }
.portal-side .help.help-dupla .btn.btn-sm { width: auto; }
.of-dots { display: flex; gap: 8px; margin-top: 10px; }
.of-dots button { width: 22px; height: 6px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .32); cursor: pointer; transition: background .2s, width .2s; }
.of-dots button.is-on { width: 34px; background: #c79a42; }
.of-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .of-slide { transition: none; } }

/* Cartão duplo azul fixo no topo da coluna lateral: só os atalhos abaixo dele rolam. Em tela baixa ou no celular volta ao normal. */
@media (min-width: 1101px) and (min-height: 761px) {
  .portal-side > .help { position: sticky; top: 0; z-index: 5; box-shadow: 0 14px 18px -14px rgba(0, 0, 0, .7); }
}

/* Perguntas frequentes das páginas de estado (SEO/GEO) */
.seo-faq { margin: 26px 0 8px; padding: 18px 22px 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.seo-faq h2 { margin: 0 0 8px; font-size: 1.25rem; }
.seo-faq dl { margin: 0; }
.seo-faq dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.seo-faq dt { font-weight: 700; margin: 0 0 4px; }
.seo-faq dd { margin: 0; line-height: 1.5; color: var(--ink-2, inherit); }

/* Contraste mínimo 4,5:1 nas etiquetas e links dos cartões (Lighthouse, 30/10/2026) */
.prod-tag, .hm-prods .prod-tag { background: color-mix(in srgb, var(--c, var(--teal)) 76%, #000); }
.hm-prods .prod-more { color: color-mix(in srgb, var(--c, var(--teal)) 70%, #000); }

/* ---------- Favoritos: aqui só a estrela; a lista aparece em suporte.adv.br/sistemas (o módulo é o mesmo do outro site) ---------- */
.portal-main li, .portal-side ul.portal-links.quick li { position: relative; }
.fav-btn { position: absolute; top: 1px; right: 1px; z-index: 2; width: 22px; height: 22px; padding: 0; display: grid; place-items: center; font-size: .95rem; line-height: 1; color: #fff; background: rgba(0, 0, 0, .55); border: 0; border-radius: 6px; cursor: pointer; opacity: .8; transition: opacity .15s, background .15s; }
.fav-btn.is-on { color: #f1d584; opacity: 1; background: rgba(0, 0, 0, .7); }
.fav-btn:hover, .fav-btn:focus-visible, li:hover > .fav-btn { opacity: 1; background: rgba(0, 0, 0, .75); }
.quick--side .fav-btn { top: 50%; right: 6px; transform: translateY(-50%); width: 20px; height: 20px; font-size: .85rem; }
.nac-row li > .fav-btn { top: 50%; right: -4px; transform: translateY(-50%); width: 18px; height: 18px; font-size: .8rem; }
.fav-toast { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 12px; background: #00123c; color: #fff; font-size: .95rem; line-height: 1.4; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.fav-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fav-toast a { color: #f1d584; font-weight: 700; text-decoration: underline; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .fav-toast { transition: none; } }
.portal-links a.c-violet { --btn: #3b4148; }
.seo-guias ul { list-style: disc; padding-left: 1.2em; margin: 0; }
.seo-guias li { margin-bottom: .35em; }
