/*
Theme Name: Novo GP5 Gazeta Popular Modular Refinado
Theme URI: https://gazetapopular.com
Author: Instituto LJM Ltda.
Description: CSS reescrito e consolidado para reduzir duplicações, conflitos, CLS e INP sem alterar a identidade visual do Gazeta Popular.
Version: 5.1.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: gazeta-popular-3
*/

/* =========================================================
   1. Variáveis e base
   ========================================================= */

:root {
  --gp-navy: #071f3d;
  --gp-navy-2: #0b2b52;
  --gp-orange: #b84f00;
  --gp-orange-hover: #963f00;
  --gp-focus: #ffb020;
  --gp-text: #101828;
  --gp-muted: #667085;
  --gp-line: #dfe5ee;
  --gp-soft: #f5f7fb;
  --gp-white: #ffffff;
  --gp-radius: 18px;
  --gp-width: 1180px;
  --gp-shadow: 0 10px 28px rgba(7, 31, 61, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--gp-white);
  color: var(--gp-text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gp-orange);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gp-focus);
  outline-offset: 3px;
  border-radius: 8px;
}

#conteudo {
  display: block;
  scroll-margin-top: 96px;
}

.screen-reader-text,
.gp-skip:not(:focus),
a.gp-skip:not(:focus),
a[href="#conteudo"].gp-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.gp-skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: var(--gp-white);
  color: var(--gp-navy);
  font-weight: 900;
  border: 2px solid var(--gp-orange);
  border-radius: 8px;
}

/* =========================================================
   2. Estrutura
   ========================================================= */

.gp-wrap {
  width: min(calc(100% - 48px), var(--gp-width));
  max-width: var(--gp-width);
  margin-inline: auto;
}

.gp-main {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--gp-white);
}

.gp-section {
  display: block;
  clear: both;
  margin-top: 36px;
}

.gp-card,
.gp-panel,
.gp-side-item,
.gp-legal-card,
.gp-region-box,
.gp-list-card,
.gp-widget {
  background: var(--gp-white);
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius);
  box-shadow: var(--gp-shadow);
  overflow: hidden;
}

.gp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2f7, #ffffff);
  color: var(--gp-navy);
  font-weight: 900;
  text-align: center;
}

.gp-kicker {
  display: inline-block;
  color: var(--gp-orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.gp-btn,
.gp-btn-orange,
.gp-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--gp-orange);
  border-radius: 999px;
  background: var(--gp-orange);
  color: var(--gp-white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.gp-btn:hover,
.gp-btn-orange:hover,
.gp-search button:hover {
  background: var(--gp-orange-hover);
  border-color: var(--gp-orange-hover);
  color: var(--gp-white);
}

.gp-readmore {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gp-navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

/* =========================================================
   3. Cabeçalho — estratégia única para evitar CLS
   ========================================================= */

.gp-site-header {
  display: block;
  width: 100%;
  background: var(--gp-white);
  position: relative;
  z-index: 80;
}

.gp-topbar {
  background: var(--gp-navy);
  color: var(--gp-white);
  font-size: 13px;
}

.gp-topbar .gp-wrap {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  white-space: nowrap;
  overflow: hidden;
}

.gp-topbar a {
  color: var(--gp-white);
  font-weight: 800;
}

.gp-head {
  position: sticky;
  top: 0;
  z-index: 9990;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--gp-line);
  transition: box-shadow 0.18s ease;
}

body.admin-bar .gp-head {
  top: 32px;
}

.gp-head .gp-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

body.gp-scrolled .gp-head {
  box-shadow: 0 10px 24px rgba(7, 31, 61, 0.10);
}

.gp-logo,
.custom-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.gp-logo a {
  display: inline-flex;
  align-items: center;
  color: var(--gp-navy);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.gp-logo b {
  color: var(--gp-orange);
}

.custom-logo {
  display: block;
  width: auto;
  max-width: 285px;
  max-height: 62px;
  object-fit: contain;
  object-position: center;
}

.gp-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.gp-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-nav a {
  display: block;
  min-height: 44px;
  color: var(--gp-navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 44px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.gp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.gp-menu-btn {
  display: none;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #5d83bc;
  color: var(--gp-white);
  padding: 12px 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.gp-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gp-white);
  border: 1px solid var(--gp-line);
  border-radius: 999px;
}

.gp-search input {
  width: 128px;
  border: 0;
  padding: 9px 10px;
  outline: 0;
  background: var(--gp-white);
  color: var(--gp-text);
}

.gp-search input::placeholder {
  color: #5f6b7a;
  opacity: 1;
}

.gp-search button {
  border-radius: 0;
  min-height: 40px;
  padding: 9px 12px;
  background: var(--gp-navy);
  border-color: var(--gp-navy);
}

/* Menu Publique */

.gp-publique-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gp-publique-toggle {
  cursor: pointer;
}

.gp-publique-toggle::after {
  content: "▾";
  font-size: 11px;
  margin-left: 7px;
}

.gp-publique-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 99999;
  min-width: 210px;
  padding: 8px;
  background: var(--gp-white);
  border: 1px solid var(--gp-line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(7, 31, 61, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.gp-publique-menu:hover .gp-publique-dropdown,
.gp-publique-menu:focus-within .gp-publique-dropdown,
.gp-publique-menu.is-open .gp-publique-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gp-publique-dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--gp-navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.gp-publique-dropdown a:hover,
.gp-publique-dropdown a:focus-visible {
  background: #f3f6fb;
  color: var(--gp-orange);
}

/* =========================================================
   4. Cabeçalhos de seção
   ========================================================= */

.gp-section-head,
.gp-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid var(--gp-navy);
  margin-bottom: 18px;
}

.gp-panel-head {
  border-bottom-width: 2px;
  margin-bottom: 13px;
  padding-bottom: 9px;
}

.gp-section-head h2,
.gp-panel-head h2 {
  margin: 0;
  color: var(--gp-navy);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.gp-section-head h2 {
  font-size: 28px;
  padding-bottom: 9px;
}

.gp-panel-head h2 {
  font-size: 23px;
}

.gp-section-head a,
.gp-panel-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gp-orange);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.gp-panel-head a {
  color: var(--gp-navy);
  font-size: 12px;
  text-transform: uppercase;
}

/* =========================================================
   5. Home / Hero
   ========================================================= */

.gp-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.gp-hero-main {
  display: block;
  align-self: start;
  height: auto;
  min-height: 0;
  background: var(--gp-white);
}

.gp-hero-figure {
  display: block;
  margin: 0;
  padding: 0;
  background: var(--gp-white);
  line-height: 0;
}

.gp-hero-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f7;
  line-height: 0;
}

.gp-hero-media img,
.gp-hero-media .gp-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.gp-hero-caption {
  display: block;
  margin: 0;
  padding: 8px 18px 0;
  background: var(--gp-white);
  color: var(--gp-muted);
  font-size: 12px;
  line-height: 1.35;
}

.gp-hero-caption:empty {
  display: none;
}

.gp-hero-body {
  display: block;
  padding: 14px 22px 22px;
  background: var(--gp-white);
}

.gp-hero-body .gp-kicker {
  margin: 0 0 8px;
}

.gp-hero h1 {
  margin: 0 0 10px;
  color: var(--gp-navy);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.gp-hero p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.42;
}

.gp-hero .gp-byline,
.gp-hero .gp-author,
.gp-hero .gp-author-box {
  display: none;
}

/* Laterais do hero */

.gp-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.gp-side-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  min-height: 0;
  height: auto;
  background: var(--gp-white);
  overflow: hidden;
}

.gp-side-thumb {
  display: block;
  width: 100%;
  height: 138px;
  overflow: hidden;
  background: #eef2f7;
  line-height: 0;
}

.gp-side-thumb img,
.gp-side-thumb .gp-placeholder {
  width: 100%;
  height: 138px;
  object-fit: cover;
  object-position: center 25%;
}

.gp-side-item > div {
  padding: 12px 14px 14px;
}

.gp-side .gp-kicker {
  margin: 0 0 6px;
  font-size: 11px;
}

.gp-side-title {
  margin: 0;
  color: var(--gp-text);
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 900;
}

/* =========================================================
   6. Painéis da home
   ========================================================= */

.gp-dashboard {
  display: grid;
  grid-template-columns: 1.1fr 0.92fr 0.98fr;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.gp-panel {
  min-width: 0;
  padding: 16px;
  background: var(--gp-white);
}

.gp-latest-list {
  display: grid;
}

.gp-latest-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gp-line);
}

.gp-latest-line:last-child {
  border-bottom: 0;
}

.gp-latest-time {
  color: var(--gp-orange);
  font-size: 13px;
  font-weight: 800;
}

.gp-latest-title {
  font-size: 14px;
  line-height: 1.28;
  font-weight: 700;
}

.gp-latest-cat {
  color: var(--gp-navy);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

/* Edição digital */

.gp-edition {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.gp-edition-cover {
  min-height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--gp-line);
  border-radius: 14px;
}

.gp-edition-cover img,
.gp-edition-cover .gp-placeholder {
  width: 100%;
  height: 205px;
  object-fit: contain;
  object-position: center;
  background: var(--gp-white);
}

.gp-edition-title {
  margin: 2px 0 5px;
  color: var(--gp-navy);
  font-size: 21px;
  line-height: 1.08;
  font-weight: 900;
}

.gp-edition-date {
  margin: 0 0 10px;
  color: var(--gp-muted);
  font-size: 13px;
}

.gp-edition-features {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.gp-edition-features span {
  color: #374151;
  font-size: 13px;
  line-height: 1.32;
}

/* Opinião */

.gp-opinion-mini {
  display: grid;
}

.gp-opinion-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gp-line);
}

.gp-opinion-line:last-child {
  border-bottom: 0;
}

.gp-opinion-img {
  width: 56px;
  height: 56px;
  overflow: hidden;
  flex: 0 0 56px;
  background: #f1f3f6;
  border-radius: 50%;
}

.gp-opinion-img img,
.gp-opinion-img .gp-placeholder {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
}

.gp-opinion-title {
  margin: 0 0 3px;
  color: var(--gp-text);
  font-size: 14px;
  line-height: 1.28;
  font-weight: 800;
}

.gp-opinion-date {
  color: var(--gp-muted);
  font-size: 12px;
}

/* =========================================================
   7. Região, Publicidade Legal e Opinião
   ========================================================= */

.gp-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  width: 100%;
}

.gp-region-box {
  display: block;
  min-width: 0;
  padding: 16px;
  background: var(--gp-soft);
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}

.gp-region-box h3 {
  margin: 0 0 10px;
  color: var(--gp-navy);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.gp-region-post {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid #dde2e8;
  background: transparent;
}

.gp-region-post:first-of-type {
  border-top: 0;
}

.gp-region-post > a:first-child {
  flex: 0 0 100px;
  width: 100px;
  height: 66px;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
}

.gp-region-post > a:first-child img,
.gp-region-post > a:first-child .gp-placeholder,
.gp-region-post img,
.gp-region-post .gp-placeholder {
  width: 100px;
  height: 66px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 12px;
}

.gp-region-post h4 {
  flex: 1 1 auto;
  margin: 0;
  color: var(--gp-text);
  font-size: 16px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gp-region-post h4 a {
  display: block;
  color: inherit;
  overflow-wrap: normal;
  word-break: normal;
}

.gp-legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.gp-legal-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 118px;
  padding: 16px;
  background: var(--gp-white);
  box-shadow: 0 8px 24px rgba(7, 31, 61, 0.055);
}

.gp-legal-card .gp-kicker {
  color: #0050a4;
}

.gp-legal-card h3 {
  margin: 10px 0 12px;
  color: var(--gp-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.gp-legal-card time {
  color: #526071;
  font-size: 13px;
}

.gp-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 6px;
}

.gp-loadmore-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: #08284a;
  color: var(--gp-white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(8, 40, 74, 0.12);
}

.gp-loadmore-wrap a:hover {
  filter: brightness(1.05);
  color: var(--gp-white);
}

/* Opinião em grade */

.gp-opinion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--gp-white);
  border: 1px solid var(--gp-line);
  border-radius: 18px;
  box-shadow: var(--gp-shadow);
}

.gp-opinion-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 120px;
  padding: 16px;
  border-right: 1px solid var(--gp-line);
}

.gp-opinion-card:last-child {
  border-right: 0;
}

.gp-opinion-card .gp-opinion-img,
.gp-opinion-card .gp-opinion-img img,
.gp-opinion-card .gp-opinion-img .gp-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 14px;
}

.gp-opinion-card .gp-opinion-title {
  font-size: 17px;
}

.gp-author-name {
  display: none;
}

/* =========================================================
   8. Arquivos e listas
   ========================================================= */

.gp-archive {
  padding-top: 28px;
}

.gp-archive > h1 {
  margin: 0 0 22px;
  color: var(--gp-navy);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.gp-post-list {
  display: grid;
  gap: 16px;
}

.gp-list-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.gp-list-card img,
.gp-list-card .gp-placeholder {
  width: 180px;
  height: 116px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 14px;
}

.gp-list-card h2 {
  margin: 5px 0 8px;
  color: var(--gp-text);
  font-size: 24px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.gp-list-card p {
  margin: 0;
  color: var(--gp-muted);
  font-size: 15px;
  line-height: 1.4;
}

/* =========================================================
   9. Matéria individual
   ========================================================= */

.gp-single,
.gp-single-v360 {
  padding-top: 32px;
}

.gp-single-head {
  max-width: 860px;
  margin: 0 auto 24px;
}

.gp-single-head h1,
.gp-single-v360 .gp-single-head h1 {
  margin: 10px 0 14px;
  color: var(--gp-navy);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.gp-single-head .gp-byline {
  display: none;
}

.gp-subtitle {
  margin: 0 0 18px;
  color: #475467;
  font-size: 22px;
  line-height: 1.35;
}

.gp-story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.gp-story-meta time {
  color: #344054;
}

.gp-featured,
.gp-single .gp-featured,
.gp-single-v360 .gp-featured {
  max-width: 980px;
  margin: 0 auto 30px;
}

.gp-featured img,
.gp-single .gp-featured img,
.gp-single-v360 .gp-featured img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 18px;
}

.gp-featured figcaption {
  padding: 8px 2px 0;
  color: var(--gp-muted);
  font-size: 13px;
  line-height: 1.35;
}

.gp-single-body,
.gp-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 42px;
  align-items: start;
  justify-content: center;
}

.gp-single-layout {
  grid-template-columns: minmax(0, 820px) 320px;
  gap: 44px;
}

.gp-article-main {
  min-width: 0;
  width: 100%;
}

.gp-content,
.gp-single-v360 .gp-content {
  color: #1f2937;
  font-size: 20px;
  line-height: 1.72;
}

.gp-content > * {
  max-width: 760px;
}

.gp-content > figure,
.gp-content > .wp-block-image,
.gp-content > .alignwide,
.gp-content > .alignfull {
  max-width: 100%;
}

.gp-content p {
  margin: 0 0 1.35em;
}

.gp-content > p:first-of-type {
  color: #111827;
  font-size: 21px;
  line-height: 1.68;
}

.gp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.gp-content a {
  color: var(--gp-navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gp-content a:hover,
.gp-content a:focus-visible {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.gp-content h2,
.gp-content h3 {
  color: var(--gp-navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.gp-content h2 {
  margin: 34px 0 14px;
  font-size: 30px;
}

.gp-content h3 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.gp-content blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  background: #f7f9fc;
  border-left: 5px solid var(--gp-orange);
  border-radius: 0 14px 14px 0;
  color: #1f2937;
  font-size: 21px;
  line-height: 1.55;
}

.gp-content > .gp-author-name,
.gp-content > .author,
.gp-content > .byline,
.gp-content > .post-author,
.gp-content > .entry-author {
  display: none;
}

.gp-content > .assinatura,
.gp-content > .autor {
  display: block;
}

/* Autor e compartilhamento */

.gp-after-article {
  max-width: 760px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--gp-line);
}

.gp-author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--gp-line);
  border-radius: 18px;
}

.gp-author-avatar {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 72px;
  background: #e7eef7;
  color: var(--gp-navy);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.gp-author-avatar img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
}

.gp-author-label {
  display: block;
  margin-bottom: 4px;
  color: var(--gp-orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gp-author-info h2 {
  margin: 0 0 8px;
  color: var(--gp-navy);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.gp-author-info p {
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.48;
}

.gp-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.gp-share-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--gp-navy);
  color: var(--gp-white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.gp-share-row a:nth-child(2) {
  background: #1f7a45;
}

/* Sidebar e relacionados */

.gp-sidebar,
.gp-single-v360 .gp-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.gp-widget {
  padding: 18px;
}

.gp-widget h3 {
  margin: 0 0 12px;
  color: var(--gp-navy);
  font-size: 20px;
  line-height: 1.1;
}

.gp-widget p {
  margin: 0 0 10px;
  line-height: 1.35;
}

.gp-widget-edition {
  background: linear-gradient(135deg, var(--gp-navy), var(--gp-navy-2));
  color: var(--gp-white);
}

.gp-widget-edition h3,
.gp-widget-edition a {
  color: var(--gp-white);
}

.gp-related-widget {
  padding: 0;
  overflow: hidden;
}

.gp-related-head {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--gp-line);
}

.gp-related-head h3 {
  margin: 0;
  color: var(--gp-navy);
  font-size: 20px;
  line-height: 1.1;
}

.gp-related-list {
  display: grid;
}

.gp-related-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--gp-white);
  border-bottom: 1px solid var(--gp-line);
  color: inherit;
  transition: background 0.18s ease, transform 0.18s ease;
}

.gp-related-card:last-child {
  border-bottom: 0;
}

.gp-related-card:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.gp-related-thumb,
.gp-related-thumb img,
.gp-related-thumb .gp-placeholder {
  width: 92px;
  height: 64px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 12px;
  overflow: hidden;
}

.gp-related-cat {
  display: block;
  margin: 0 0 5px;
  color: var(--gp-orange);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-related-text strong {
  display: block;
  color: var(--gp-navy);
  font-size: 15.5px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.018em;
}

/* =========================================================
   10. Publicidade Legal e QR
   ========================================================= */

.gp-legal-qr {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 16px;
  padding: 16px;
  background: var(--gp-white);
  border: 1px solid rgba(11, 42, 74, 0.14);
  border-radius: 16px;
}

.gp-legal-qr-img {
  flex: 0 0 auto;
  padding: 8px;
  background: var(--gp-white);
  border: 1px solid rgba(11, 42, 74, 0.10);
  border-radius: 12px;
  line-height: 0;
}

.gp-legal-qr-img img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  object-position: center;
  background: var(--gp-white);
}

.gp-legal-qr-text span {
  display: block;
  margin-bottom: 4px;
  color: #c64b00;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gp-legal-qr-text strong {
  display: block;
  color: #082447;
  font-size: 18px;
  line-height: 1.25;
}

.gp-legal-qr-text p {
  margin: 4px 0 8px;
  color: #46556a;
  font-size: 14px;
  line-height: 1.45;
}

.gp-legal-qr-text a {
  color: #082447;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   11. Rodapé
   ========================================================= */

.gp-footer,
.gp-site-footer {
  display: block;
  clear: both;
  width: 100%;
  margin-top: 54px;
  background: var(--gp-navy);
  color: var(--gp-white);
}

.gp-footer .gp-wrap,
.gp-site-footer .gp-wrap,
.gp-foot {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px;
  align-items: start;
  padding: 54px 0;
}

.gp-footer h2,
.gp-footer h3,
.gp-site-footer h2,
.gp-site-footer h3,
.gp-foot h2,
.gp-foot h3 {
  margin: 0 0 18px;
  color: var(--gp-white);
  font-weight: 900;
  line-height: 1.15;
}

.gp-footer p,
.gp-footer a,
.gp-footer li,
.gp-site-footer p,
.gp-site-footer a,
.gp-site-footer li,
.gp-foot p,
.gp-foot a,
.gp-foot li {
  color: var(--gp-white);
  font-size: 16px;
  line-height: 1.45;
}

.gp-footer ul,
.gp-site-footer ul,
.gp-foot ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-copy {
  padding: 16px 0;
  color: #d5dbe4;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* =========================================================
   12. Anúncios vazios e estabilidade
   ========================================================= */

.adsbygoogle:empty,
.gp-ad:empty,
.gp-ad-slot:empty,
.gp-ads:empty,
.ad-slot:empty,
.ad-container:empty,
.banner-area:empty,
.banner-slot:empty,
[id^="google_ads_iframe"]:empty,
[class*="adsense"]:empty,
[class*="ad-placeholder"]:empty {
  display: none;
  height: 0;
  min-height: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

/* content-visibility aplicado apenas abaixo da dobra.
   Evita conflitos com hero, header e primeiros cards. */
@supports (content-visibility: auto) {
  .gp-section:nth-of-type(n+3),
  .gp-sidebar,
  .gp-related-widget {
    content-visibility: auto;
    contain-intrinsic-size: 1px 760px;
  }
}

/* contain com uso moderado, sem interferir no tamanho do hero. */
.gp-panel,
.gp-region-box,
.gp-legal-card,
.gp-latest-line,
.gp-related-card {
  contain: layout paint style;
}

/* =========================================================
   13. Responsivo
   ========================================================= */

@media (max-width: 1100px) {
  .gp-hero,
  .gp-single-body,
  .gp-single-layout {
    grid-template-columns: 1fr;
  }

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

  .gp-dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .gp-dashboard .gp-panel:first-child {
    grid-column: 1 / -1;
  }

  .gp-opinion-grid,
  .gp-legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-opinion-card:nth-child(2n) {
    border-right: 0;
  }

  .gp-opinion-card {
    border-bottom: 1px solid var(--gp-line);
  }

  .gp-opinion-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .gp-footer .gp-wrap,
  .gp-site-footer .gp-wrap,
  .gp-foot {
    grid-template-columns: 1fr 1fr;
  }

  .gp-sidebar,
  .gp-single-v360 .gp-sidebar {
    position: static;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
  }

  .gp-related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-related-card:nth-child(odd) {
    border-right: 1px solid var(--gp-line);
  }
}

@media (max-width: 900px) {
  .gp-wrap {
    width: min(calc(100% - 28px), var(--gp-width));
  }

  .gp-topbar {
    display: none;
  }

  .gp-head .gp-wrap {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .custom-logo {
    max-width: 230px;
    max-height: 46px;
  }

  .gp-logo a {
    font-size: 30px;
  }

  .gp-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .gp-nav {
    display: none;
    flex: 0 0 100%;
    order: 5;
  }

  .gp-nav.is-open {
    display: block;
    width: 100%;
  }

  .gp-nav.is-open ul {
    display: block;
  }

  .gp-nav li {
    border-top: 1px solid var(--gp-line);
  }

  .gp-nav a {
    padding: 12px 0;
    line-height: 1.15;
  }

  .gp-actions {
    display: flex;
    order: 4;
    gap: 8px;
    margin-left: auto;
  }

  .gp-actions .gp-search {
    display: none;
  }

  .gp-hero {
    margin-top: 14px;
    gap: 14px;
  }

  .gp-side {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .gp-side-item {
    min-width: 280px;
    flex: 0 0 280px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    scroll-snap-align: start;
  }

  .gp-side-thumb,
  .gp-side-thumb img,
  .gp-side-thumb .gp-placeholder {
    width: 96px;
    height: 64px;
    border-radius: 12px;
  }

  .gp-side-item > div {
    padding: 0;
  }

  .gp-dashboard,
  .gp-region-grid,
  .gp-legal-grid {
    grid-template-columns: 1fr;
  }

  .gp-footer .gp-wrap,
  .gp-site-footer .gp-wrap,
  .gp-foot {
    grid-template-columns: 1fr;
  }

  .gp-list-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .gp-list-card img,
  .gp-list-card .gp-placeholder {
    width: 120px;
    height: 78px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .gp-head {
    top: 46px;
  }
}

@media (max-width: 700px) {
  .gp-single,
  .gp-single-v360 {
    padding-top: 18px;
  }

  .gp-single-head {
    margin-bottom: 16px;
  }

  .gp-single-head h1,
  .gp-single-v360 .gp-single-head h1 {
    font-size: 34px;
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  .gp-subtitle {
    font-size: 18px;
    line-height: 1.38;
  }

  .gp-featured,
  .gp-single .gp-featured,
  .gp-single-v360 .gp-featured {
    margin-bottom: 18px;
  }

  .gp-featured img,
  .gp-single .gp-featured img,
  .gp-single-v360 .gp-featured img {
    border-radius: 14px;
  }

  .gp-content,
  .gp-single-v360 .gp-content {
    font-size: 18px;
    line-height: 1.65;
  }

  .gp-content > *,
  .gp-after-article {
    max-width: 100%;
  }

  .gp-related-list {
    grid-template-columns: 1fr;
  }

  .gp-related-card:nth-child(odd) {
    border-right: 0;
  }

  .gp-related-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 14px;
  }

  .gp-related-thumb,
  .gp-related-thumb img,
  .gp-related-thumb .gp-placeholder {
    width: 84px;
    height: 58px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .gp-wrap {
    width: min(calc(100% - 22px), var(--gp-width));
  }

  .gp-head .gp-wrap {
    min-height: 60px;
  }

  .custom-logo {
    max-width: 218px;
    max-height: 42px;
  }

  .gp-menu-btn {
    padding: 10px 14px;
    font-size: 15px;
  }

  .gp-search {
    display: none;
  }

  .gp-hero {
    margin-top: 10px;
    gap: 12px;
  }

  .gp-hero-main {
    border-radius: 16px;
  }

  .gp-hero-media {
    aspect-ratio: 16 / 9;
  }

  .gp-hero-caption {
    padding: 5px 12px 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.25;
  }

  .gp-hero-body {
    padding: 8px 13px 14px;
  }

  .gp-hero-body .gp-kicker {
    margin: 0 0 6px;
    font-size: 11px;
  }

  .gp-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.05;
  }

  .gp-hero p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.34;
  }

  .gp-section {
    margin-top: 26px;
  }

  .gp-section-head {
    margin-bottom: 14px;
  }

  .gp-section-head h2 {
    font-size: 27px;
    line-height: 1.08;
  }

  .gp-section-head a {
    font-size: 16px;
  }

  .gp-panel {
    padding: 14px;
  }

  .gp-panel-head h2 {
    font-size: 22px;
  }

  .gp-latest-line {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
  }

  .gp-latest-cat {
    display: none;
  }

  .gp-edition {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .gp-edition-cover {
    min-height: 138px;
  }

  .gp-edition-cover img,
  .gp-edition-cover .gp-placeholder {
    height: 138px;
  }

  .gp-edition-title {
    font-size: 18px;
  }

  .gp-edition-features {
    display: none;
  }

  .gp-region-box {
    padding: 14px;
  }

  .gp-region-box h3 {
    font-size: 21px;
  }

  .gp-region-post {
    gap: 11px;
  }

  .gp-region-post > a:first-child,
  .gp-region-post > a:first-child img,
  .gp-region-post > a:first-child .gp-placeholder,
  .gp-region-post img,
  .gp-region-post .gp-placeholder {
    width: 92px;
    height: 60px;
    flex-basis: 92px;
  }

  .gp-region-post h4,
  .gp-region-post h4 a {
    font-size: 15px;
    line-height: 1.22;
  }

  .gp-legal-card {
    min-height: 0;
    padding: 13px 14px;
    border-radius: 15px;
  }

  .gp-legal-card .gp-kicker {
    font-size: 12px;
    line-height: 1.2;
  }

  .gp-legal-card h3 {
    margin: 9px 0 12px;
    font-size: 18px;
    line-height: 1.25;
  }

  .gp-opinion-grid {
    grid-template-columns: 1fr;
  }

  .gp-opinion-card {
    grid-template-columns: 76px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--gp-line);
  }

  .gp-opinion-card:last-child {
    border-bottom: 0;
  }

  .gp-opinion-card .gp-opinion-img,
  .gp-opinion-card .gp-opinion-img img,
  .gp-opinion-card .gp-opinion-img .gp-placeholder {
    width: 76px;
    height: 76px;
  }

  .gp-archive > h1 {
    font-size: 32px;
  }

  .gp-list-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .gp-list-card img,
  .gp-list-card .gp-placeholder {
    width: 104px;
    height: 70px;
  }

  .gp-list-card p {
    display: none;
  }

  .gp-content > p:first-of-type {
    font-size: 18.5px;
    line-height: 1.62;
  }

  .gp-content h2 {
    font-size: 25px;
  }

  .gp-content h3 {
    font-size: 21px;
  }

  .gp-after-article {
    margin-top: 28px;
    padding-top: 20px;
  }

  .gp-author-box {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .gp-author-avatar,
  .gp-author-avatar img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 17px;
  }

  .gp-author-info h2 {
    font-size: 19px;
  }

  .gp-author-info p {
    font-size: 14px;
  }

  .gp-share-row a {
    width: 100%;
    min-height: 44px;
  }

  .gp-legal-qr {
    align-items: flex-start;
  }

  .gp-legal-qr-img img {
    width: 96px;
    height: 96px;
  }

  .gp-legal-qr-text strong {
    font-size: 16px;
  }

  .gp-footer,
  .gp-site-footer {
    margin-top: 38px;
  }

  .gp-footer .gp-wrap,
  .gp-site-footer .gp-wrap,
  .gp-foot {
    gap: 22px;
    padding: 34px 0;
  }

  .gp-footer p,
  .gp-footer a,
  .gp-footer li,
  .gp-site-footer p,
  .gp-site-footer a,
  .gp-site-footer li {
    font-size: 15px;
  }

  .gp-copy {
    padding: 14px 12px;
    font-size: 12px;
  }
}

/* =========================================================
   14. Preferências do usuário e navegadores
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.001ms;
  }
}

@supports (-webkit-touch-callout: none) {
  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .gp-hero,
  .gp-dashboard,
  .gp-region-grid,
  .gp-legal-grid {
    align-items: start;
    grid-auto-rows: auto;
  }

  .gp-card,
  .gp-panel,
  .gp-side-item,
  .gp-region-box,
  .gp-legal-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .gp-region-post h4,
  .gp-region-post h4 a,
  .gp-related-text strong {
    word-break: normal;
    overflow-wrap: normal;
  }
}


/* =========================================================
   Novo GP5 5.1.1 — Refinamento do cabeçalho e menu hambúrguer
   ========================================================= */

.novo-gp5-menu-toggle,
.gp-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d8e0ec;
  border-radius: 14px;
  background: #ffffff;
  color: var(--gp-navy);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(7, 31, 61, 0.08);
}

.novo-gp5-menu-toggle span,
.gp-menu-btn span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.novo-gp5-menu-toggle span::before,
.novo-gp5-menu-toggle span::after,
.gp-menu-btn span::before,
.gp-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}

.novo-gp5-menu-toggle span::before,
.gp-menu-btn span::before {
  top: -7px;
}

.novo-gp5-menu-toggle span::after,
.gp-menu-btn span::after {
  top: 7px;
}

body.novo-gp5-menu-open .novo-gp5-menu-toggle span,
body.novo-gp5-menu-open .gp-menu-btn span,
.gp-menu-btn[aria-expanded="true"] span {
  background: transparent;
}

body.novo-gp5-menu-open .novo-gp5-menu-toggle span::before,
body.novo-gp5-menu-open .gp-menu-btn span::before,
.gp-menu-btn[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

body.novo-gp5-menu-open .novo-gp5-menu-toggle span::after,
body.novo-gp5-menu-open .gp-menu-btn span::after,
.gp-menu-btn[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.novo-gp5-mobile-panel {
  display: none;
}

@media (max-width: 900px) {
  .novo-gp5-menu-toggle,
  .gp-menu-btn {
    display: inline-flex;
    flex: 0 0 46px;
    margin-left: auto;
  }

  .gp-head .gp-wrap {
    position: relative;
  }

  .gp-nav {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    order: 20;
  }

  .gp-nav.is-open,
  body.novo-gp5-menu-open .gp-nav {
    display: block;
    padding: 8px 0 12px;
  }

  .gp-nav ul {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--gp-line);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(7,31,61,.12);
  }

  .gp-nav li {
    border-top: 1px solid #eef2f7;
  }

  .gp-nav li:first-child {
    border-top: 0;
  }

  .gp-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    line-height: 1.2;
    border-radius: 12px;
  }

  .gp-nav a:hover,
  .gp-nav a:focus-visible {
    background: #f4f7fb;
    color: var(--gp-orange);
  }

  .gp-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gp-actions .gp-search {
    display: none;
  }

  .gp-publique-menu {
    display: inline-flex;
  }

  .gp-publique-toggle {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .gp-publique-dropdown {
    right: 0;
    min-width: 190px;
  }
}

@media (max-width: 640px) {
  .novo-gp5-menu-toggle,
  .gp-menu-btn {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .gp-head .gp-wrap {
    min-height: 62px;
  }

  .custom-logo {
    max-width: 210px;
    max-height: 44px;
  }
}


/* =========================================================
   Novo GP5 5.1.2 — Hambúrguer também no desktop
   ========================================================= */

.novo-gp5-menu-toggle,
.gp-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  margin-left: 8px;
  border: 1px solid #d8e0ec;
  border-radius: 14px;
  background: #ffffff;
  color: var(--gp-navy);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(7, 31, 61, 0.08);
  position: relative;
  z-index: 100001;
}

.novo-gp5-menu-toggle span,
.gp-menu-btn span {
  position: relative;
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.novo-gp5-menu-toggle span::before,
.novo-gp5-menu-toggle span::after,
.gp-menu-btn span::before,
.gp-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}

.novo-gp5-menu-toggle span::before,
.gp-menu-btn span::before {
  top: -7px;
}

.novo-gp5-menu-toggle span::after,
.gp-menu-btn span::after {
  top: 7px;
}

body.novo-gp5-menu-open .novo-gp5-menu-toggle span,
body.novo-gp5-menu-open .gp-menu-btn span {
  background: transparent;
}

body.novo-gp5-menu-open .novo-gp5-menu-toggle span::before,
body.novo-gp5-menu-open .gp-menu-btn span::before {
  top: 0;
  transform: rotate(45deg);
}

body.novo-gp5-menu-open .novo-gp5-menu-toggle span::after,
body.novo-gp5-menu-open .gp-menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Desktop: menu vira painel suspenso quando aberto */
@media (min-width: 901px) {
  .gp-head .gp-wrap {
    position: relative;
  }

  .gp-nav {
    display: none;
  }

  body.novo-gp5-menu-open .gp-nav,
  .gp-nav.is-open {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 48px));
    z-index: 100000;
    background: #ffffff;
    border: 1px solid var(--gp-line);
    border-radius: 18px;
    box-shadow: 0 22px 44px rgba(7,31,61,.18);
    padding: 8px;
  }

  body.novo-gp5-menu-open .gp-nav ul,
  .gp-nav.is-open ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.novo-gp5-menu-open .gp-nav li,
  .gp-nav.is-open li {
    border-top: 1px solid #eef2f7;
  }

  body.novo-gp5-menu-open .gp-nav li:first-child,
  .gp-nav.is-open li:first-child {
    border-top: 0;
  }

  body.novo-gp5-menu-open .gp-nav a,
  .gp-nav.is-open a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 12px;
    color: var(--gp-navy);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
  }

  body.novo-gp5-menu-open .gp-nav a:hover,
  .gp-nav.is-open a:hover {
    background: #f4f7fb;
    color: var(--gp-orange);
  }
}

/* Mobile: painel em bloco abaixo do cabeçalho */
@media (max-width: 900px) {
  .novo-gp5-menu-toggle,
  .gp-menu-btn {
    display: inline-flex;
    flex: 0 0 46px;
    margin-left: auto;
  }

  .gp-nav {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    order: 20;
  }

  body.novo-gp5-menu-open .gp-nav,
  .gp-nav.is-open {
    display: block;
    padding: 8px 0 12px;
  }

  body.novo-gp5-menu-open .gp-nav ul,
  .gp-nav.is-open ul {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--gp-line);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(7,31,61,.12);
  }
}
