/* ==========================================================================
   Portal Prefeitura de Formosa do Oeste — Design System (tokens + UI)
   Tipografia: carregada em base.html.twig (Outfit + Source Sans 3)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens / Variáveis CSS
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Institucional */
  --pm-blue-900: #0a1e4a;
  --pm-blue-800: #0d2860;
  --pm-blue-700: #1a3a7a;
  --pm-blue-600: #1e4694;
  --pm-blue-500: #2557b4;
  --pm-blue-400: #3b72d4;
  --pm-blue-100: #dce8ff;
  --pm-blue-50:  #f0f5ff;
  --pm-blue-200: #bfdbfe;

  /* Superfícies */
  --pm-surface: #ffffff;
  --pm-surface-muted: #f4f6fb;

  --pm-green-700: #1b5e20;
  --pm-green-600: #2e7d32;
  --pm-green-500: #388e3c;
  --pm-green-400: #4caf50;
  --pm-green-100: #c8e6c9;
  --pm-green:     #2e7d32;

  --pm-gold-600: #e65100;
  --pm-gold-500: #f59e0b;
  --pm-gold-400: #fbbf24;
  --pm-gold-100: #fef3c7;

  --pm-red-600:  #c62828;
  --pm-red-500:  #e53935;
  --pm-red-100:  #ffcdd2;

  --pm-orange-500: #f57c00;
  --pm-orange-100: #ffe0b2;

  /* Neutros */
  --pm-gray-900: #111827;
  --pm-gray-800: #1f2937;
  --pm-gray-700: #374151;
  --pm-gray-600: #4b5563;
  --pm-gray-500: #6b7280;
  --pm-gray-400: #9ca3af;
  --pm-gray-300: #d1d5db;
  --pm-gray-200: #e5e7eb;
  --pm-gray-100: #f3f4f6;
  --pm-gray-50:  #f9fafb;
  --pm-white:    #ffffff;

  /* Sombras (tom azulado, mais suaves) */
  --pm-shadow-sm:  0 1px 2px rgba(10, 30, 74, 0.05), 0 2px 10px rgba(10, 30, 74, 0.06);
  --pm-shadow-md:  0 4px 8px rgba(10, 30, 74, 0.06), 0 12px 28px rgba(10, 30, 74, 0.08);
  --pm-shadow-lg:  0 8px 16px rgba(10, 30, 74, 0.07), 0 20px 48px rgba(10, 30, 74, 0.1);
  --pm-shadow-xl:  0 20px 40px rgba(10, 30, 74, 0.1), 0 40px 80px rgba(10, 30, 74, 0.08);

  /* Tipografia */
  --pm-font-body:    'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pm-font-heading: 'Outfit', 'Source Sans 3', system-ui, sans-serif;

  /* Espaçamentos */
  --pm-gap-xs:   .5rem;
  --pm-gap-sm:   .75rem;
  --pm-gap-md:   1rem;
  --pm-gap-lg:   1.5rem;
  --pm-gap-xl:   2rem;
  --pm-gap-2xl:  3rem;
  --pm-gap-3xl:  4rem;

  /* Bordas */
  --pm-radius-sm:  .375rem;
  --pm-radius-md:  .5rem;
  --pm-radius-lg:  .75rem;
  --pm-radius-xl:  1rem;
  --pm-radius-2xl: 1.25rem;
  --pm-radius-full: 9999px;

  /* Transições */
  --pm-transition: all .2s cubic-bezier(.4,0,.2,1);
  --pm-transition-slow: all .4s cubic-bezier(.4,0,.2,1);

  /* Bordas de cartão / foco */
  --pm-card-edge: rgba(15, 23, 42, 0.07);
  --pm-focus-ring-color: rgba(245, 158, 11, 0.55);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--pm-font-body);
  color: var(--pm-gray-800);
  background: var(--pm-surface-muted);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--pm-blue-600); text-decoration: none; transition: var(--pm-transition); }
a:hover { color: var(--pm-blue-800); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pm-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--pm-gray-900);
}

ul { list-style: none; }

/* --------------------------------------------------------------------------
   3. Barra de Topo (Informações + links rápidos)
   -------------------------------------------------------------------------- */
.pm-topbar {
  background: linear-gradient(
    180deg,
    #0f2a66 0%,
    var(--pm-blue-900) 45%,
    #081632 100%
  );
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 12px rgba(0, 0, 0, 0.12);
  max-width: 100%;
  overflow-x: visible;
}

.pm-topbar-inner {
  width: 100%;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: .5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  box-sizing: border-box;
}

.pm-topbar-inner i { margin-right: .3rem; }

.pm-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
  flex: 1 1 12rem;
  line-height: 1.35;
}

.pm-topbar-phone {
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pm-topbar-hours {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.pm-topbar-sep {
  flex-shrink: 0;
  opacity: 0.45;
}

.pm-inline-ic {
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
  opacity: 0.92;
}

.pm-topbar-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.pm-topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--pm-transition);
  min-width: 0;
  padding: 0.28rem 0.55rem;
  border-radius: var(--pm-radius-full);
  border: 1px solid transparent;
}

.pm-topbar-links a:hover {
  color: var(--pm-white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.pm-actions {
  display: flex;
  gap: .5rem;
  margin-left: .5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: var(--pm-radius-full);
  font-size: .78rem;
  font-weight: 600;
  transition: var(--pm-transition);
  white-space: nowrap;
  max-width: 100%;
}

.pm-btn-light {
  background: rgba(255,255,255,.15);
  color: var(--pm-white);
  border: 1px solid rgba(255,255,255,.25);
}
.pm-btn-light:hover { background: rgba(255,255,255,.25); color: var(--pm-white); }

.pm-btn-outline {
  background: transparent;
  color: var(--pm-gold-400);
  border: 1px solid var(--pm-gold-400);
}
.pm-btn-outline:hover { background: var(--pm-gold-400); color: var(--pm-blue-900); }

/* --------------------------------------------------------------------------
   4. Header / Navegação Principal
   -------------------------------------------------------------------------- */
.pm-header {
  background: linear-gradient(145deg, var(--pm-blue-800) 0%, var(--pm-blue-700) 48%, #163a7a 100%);
  box-shadow: var(--pm-shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: 100%;
  overflow-x: clip;
}

.pm-header-inner {
  width: 100%;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
  min-height: 70px;
  position: relative;
  flex-wrap: wrap;
  box-sizing: border-box;
}

#mainNav {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}

/* Logo / Brand */
.pm-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  padding: .75rem 0;
  margin-right: 2rem;
  flex-shrink: 0;
}

.pm-brand-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pm-gold-500) 0%, var(--pm-gold-400) 100%);
  border-radius: var(--pm-radius-md);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-blue-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pm-brand-mark .pm-icon {
  flex-shrink: 0;
}

.pm-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pm-brand-text span:first-child {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
}
.pm-brand-text span:last-child {
  font-family: var(--pm-font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pm-white);
  letter-spacing: .02em;
}

/* Navegação */
.pm-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.pm-nav > li {
  display: flex;
  align-items: center;
  position: relative;
}

.pm-nav > li > a,
.pm-nav > li > span {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: 0 .85rem;
  height: 100%;
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--pm-transition);
  border-bottom: 3px solid transparent;
}

.pm-nav > li > a:hover,
.pm-nav > li:hover > a,
.pm-nav > li:hover > span {
  color: var(--pm-white);
  background: rgba(255,255,255,.08);
  border-bottom-color: var(--pm-gold-400);
}

.pm-nav > li.active > a { border-bottom-color: var(--pm-gold-400); color: var(--pm-white); }

/* Dropdown */
.pm-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border-radius: 0 0 var(--pm-radius-lg) var(--pm-radius-lg);
  box-shadow: var(--pm-shadow-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 3px solid var(--pm-gold-500);
  z-index: 5000;
  padding: .5rem 0;
  animation: fadeDown .15s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pm-nav > li:hover .pm-dropdown { display: block; }

.pm-dropdown a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--pm-gray-700);
  border-left: 3px solid transparent;
  transition: var(--pm-transition);
}

.pm-dropdown a.pm-dd-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pm-dropdown a.pm-dd-link--ext {
  justify-content: space-between;
  flex-wrap: wrap;
}

.pm-dropdown a.pm-dd-link .pm-icon--ext {
  margin-left: auto;
}
.pm-dropdown a:hover {
  background: linear-gradient(90deg, var(--pm-blue-50) 0%, rgba(240, 245, 255, 0.5) 100%);
  color: var(--pm-blue-700);
  border-left-color: var(--pm-blue-500);
  padding-left: 1.5rem;
}

.pm-dropdown .dd-section {
  padding: .35rem 1.25rem .2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pm-gray-400);
  margin-top: .25rem;
}

/* Menu Hamburger mobile */
.pm-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--pm-white);
  padding: .5rem .75rem;
  border-radius: var(--pm-radius-md);
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: auto;
  align-self: center;
  z-index: 1002;
  flex-shrink: 0;
}

.pm-nav-toggle-icon[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   5. Hero / Banner
   -------------------------------------------------------------------------- */
.pm-hero {
  background: linear-gradient(135deg, var(--pm-blue-900) 0%, var(--pm-blue-700) 60%, var(--pm-blue-600) 100%);
  color: var(--pm-white);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.pm-hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.pm-hero h1 {
  font-family: var(--pm-font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--pm-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.pm-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
}

.pm-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pm-hero-buttons .pm-btn-hero {
  min-width: min(100%, 12rem);
  justify-content: center;
}

.pm-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--pm-radius-full);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--pm-transition);
  white-space: nowrap;
}

.pm-btn-hero-primary {
  background: var(--pm-gold-500);
  color: var(--pm-blue-900);
}
.pm-btn-hero-primary:hover { background: var(--pm-gold-400); color: var(--pm-blue-900); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.4); }

.pm-btn-hero-secondary {
  background: rgba(255,255,255,.12);
  color: var(--pm-white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.pm-btn-hero-secondary:hover { background: rgba(255,255,255,.22); color: var(--pm-white); transform: translateY(-2px); }

/* Banner com slides */
.pm-banner-slider {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.pm-banner-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--pm-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: var(--pm-transition);
}
.pm-banner-card:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.pm-banner-card a { color: var(--pm-white); font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Seção Layout Base
   -------------------------------------------------------------------------- */
.pm-main {
  /* Sem min-height fixo: evita “faixa branca” entre conteúdo curto e o rodapé */
  position: relative;
  z-index: 0;
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.pm-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(1.25rem, env(safe-area-inset-left, 0px)) 0 max(1.25rem, env(safe-area-inset-right, 0px));
}

.pm-section {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}

/* Primeira secção após o mast da home: mais ar entre “Acesso rápido” e o restante */
.pm-home-mast + .pm-section {
  padding-top: clamp(3.25rem, 6vw, 4.5rem);
}

.pm-section-alt {
  background: linear-gradient(180deg, #fafbfd 0%, #eef2f8 48%, #f7f9fc 100%);
  border-block: 1px solid rgba(15, 23, 42, 0.06);
}

.pm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.pm-section-title {
  font-family: var(--pm-font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: var(--pm-gray-900);
  letter-spacing: -0.02em;
  text-wrap: balance;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pm-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.45em;
  background: linear-gradient(180deg, var(--pm-gold-500) 0%, var(--pm-blue-600) 100%);
  border-radius: var(--pm-radius-full);
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.35);
}

.pm-view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pm-blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.48rem 1.05rem;
  border: 1px solid rgba(37, 87, 180, 0.22);
  border-radius: var(--pm-radius-full);
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-blue-50) 100%);
  box-shadow: 0 1px 3px rgba(10, 30, 74, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: var(--pm-transition);
}
.pm-view-all:hover {
  background: linear-gradient(165deg, var(--pm-blue-500) 0%, var(--pm-blue-700) 100%);
  color: var(--pm-white);
  border-color: var(--pm-blue-600);
  box-shadow: 0 6px 20px rgba(10, 30, 74, 0.2);
  transform: translateY(-1px);
}

.pm-section-title--row::before {
  display: none;
}

.pm-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pm-icon svg {
  display: block;
}

.pm-icon--live {
  color: var(--pm-green-600);
}

.pm-icon--danger {
  color: #dc2626;
}

.pm-icon--ext {
  opacity: 0.85;
}

.pm-icon--muted-lg {
  opacity: 0.35;
  color: var(--pm-white);
}

.pm-icon--on-gold {
  color: var(--pm-blue-900);
}

.pm-bc-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
}

.pm-bc-home:hover {
  color: var(--pm-white);
}

.pm-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pm-h2-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pm-h2-icon .pm-icon {
  color: var(--pm-blue-600);
}

.pm-page-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pm-page-title-row > .pm-icon {
  color: var(--pm-gold-400);
}

.pm-page-header .pm-page-title-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  flex-shrink: 0;
  border-radius: var(--pm-radius-lg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pm-page-header .pm-page-title-ic .pm-icon {
  color: #fff;
}

.pm-quick-link {
  width: 100%;
}

.pm-quick-grid a.pm-quick-link::before {
  content: none;
}

.pm-quick-link--ext .pm-icon--ext {
  margin-left: 0.15rem;
}

.pm-card-concurso-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pm-news-latest-wrap {
  margin-top: 1.75rem;
}

.pm-news-latest-heading {
  font-size: 0.95rem;
  color: var(--pm-gray-500);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pm-card-obra-title {
  margin-top: 0.5rem;
}

.pm-obra-progress-wrap {
  margin-top: 0.5rem;
}

.pm-obra-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--pm-gray-500);
  margin-bottom: 0.25rem;
}

.pm-filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.pm-empty--icon {
  text-align: center;
}

.pm-empty--icon > .pm-icon:first-child {
  margin: 0 auto 0.75rem;
  color: var(--pm-gray-400);
  opacity: 0.55;
}

.pm-inline-alert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pm-inline-alert > span {
  flex: 1;
  min-width: 12rem;
}

.pm-footer-lgpd-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 52rem;
  margin: 0 auto;
  text-align: left;
  background: var(--pm-white);
  border: 1px solid rgba(37, 87, 180, 0.12);
  border-radius: var(--pm-radius-xl);
  padding: 1rem 1.35rem;
  box-shadow: 0 4px 20px rgba(10, 30, 74, 0.06);
}

.pm-footer-lgpd-inner p {
  margin: 0;
  line-height: 1.55;
}

.pm-footer-lgpd-inner a {
  color: var(--pm-blue-700, #1e3a6e);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pm-footer-lgpd-inner a:hover {
  color: var(--pm-blue-900, #0a1e4a);
}

.pm-icon--lgpd {
  color: var(--pm-blue-600);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   7. Cards de Interesse
   -------------------------------------------------------------------------- */
.pm-interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.pm-interest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-xl);
  text-align: center;
  transition: var(--pm-transition);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(10, 30, 74, 0.04);
}

.pm-interest:hover {
  border-color: var(--pm-blue-400);
  background: linear-gradient(180deg, var(--pm-blue-50) 0%, #ffffff 100%);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(37, 87, 180, 0.12);
}

.pm-interest-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--pm-blue-600), var(--pm-blue-500));
  border-radius: var(--pm-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-white);
  font-size: 1.25rem;
  transition: var(--pm-transition);
}

.pm-interest-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.pm-interest:hover .pm-interest-icon {
  background: linear-gradient(135deg, var(--pm-gold-600), var(--pm-gold-500));
}

.pm-interest span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--pm-gray-700);
  line-height: 1.3;
}

/* Bloco inicial da home: Interesses + Acesso rápido (substitui o hero) */
.pm-home-mast {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-surface) 72%, #f9fbfd 100%);
  padding: clamp(4.25rem, 10vw, 6.25rem) 0 clamp(3rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--pm-gray-200);
  box-shadow: 0 4px 24px rgba(10, 30, 74, 0.05);
}

.pm-home-mast::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 142, 60, 0.55),
    rgba(37, 87, 180, 0.45),
    transparent
  );
  pointer-events: none;
}

.pm-home-mast-heading {
  text-align: center;
  margin-bottom: 1.35rem;
}

.pm-home-mast-heading--spaced {
  margin-top: clamp(3.25rem, 7vw, 4.75rem);
  margin-bottom: 1.35rem;
}

.pm-home-mast-kicker {
  display: flex;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.pm-home-mast-kicker-ic {
  color: var(--pm-green-600);
}

.pm-home-mast-title {
  margin: 0;
  font-family: var(--pm-font-heading);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pm-green-700);
}

.pm-interests-grid--mast {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.pm-interest--mast {
  background: linear-gradient(180deg, var(--pm-white) 0%, var(--pm-gray-50) 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-lg);
  padding: 1.15rem 0.65rem;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(10, 30, 74, 0.04);
}

.pm-interest--mast:hover {
  background: var(--pm-white);
  border-color: var(--pm-green-400);
  box-shadow: 0 10px 28px rgba(22, 101, 52, 0.14);
  transform: translateY(-2px);
}

.pm-interest-icon--mast {
  background: transparent !important;
  color: var(--pm-gray-900) !important;
  border: 1px solid var(--pm-gray-200);
  border-radius: var(--pm-radius-md);
  width: 3.25rem;
  height: 3.25rem;
}

.pm-interest--mast:hover .pm-interest-icon--mast {
  background: rgba(22, 101, 52, 0.06) !important;
  border-color: var(--pm-green-300);
  color: var(--pm-gray-900) !important;
}

.pm-interest--mast span {
  color: var(--pm-gray-900);
  font-size: 0.8rem;
  font-weight: 600;
}

.pm-tabs--mast {
  justify-content: center;
  gap: 0.2rem;
  border-bottom-color: var(--pm-gray-200);
  margin-top: 0.85rem;
  margin-bottom: 1.65rem;
  padding: 0.35rem 0.4rem 0;
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.06) 0%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-bottom-color: var(--pm-gray-200);
  border-radius: var(--pm-radius-xl) var(--pm-radius-xl) 0 0;
}

.pm-tab--mast {
  padding: 0.65rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pm-gray-600);
  border-radius: var(--pm-radius-md) var(--pm-radius-md) 0 0;
}

.pm-mast-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.pm-mast-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 6.5rem;
  padding: 1rem 0.5rem;
  background: linear-gradient(180deg, var(--pm-white) 0%, var(--pm-gray-50) 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-lg);
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  transition: var(--pm-transition);
  box-shadow: 0 1px 3px rgba(10, 30, 74, 0.045);
}

.pm-mast-quick-card:hover {
  background: var(--pm-white);
  border-color: var(--pm-green-400);
  box-shadow: 0 10px 28px rgba(22, 101, 52, 0.12);
  transform: translateY(-2px);
}

.pm-mast-quick-card__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-gray-900);
}

.pm-mast-quick-card__ic svg {
  stroke-width: 2;
}

.pm-mast-quick-card__txt {
  color: var(--pm-gray-900);
  max-width: 11rem;
}

@media (max-width: 1100px) {
  .pm-interests-grid--mast,
  .pm-mast-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .pm-interests-grid--mast,
  .pm-mast-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-tabs--mast {
    justify-content: flex-start;
  }

  .pm-tab--mast {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }
}

/* --------------------------------------------------------------------------
   8. Acesso Rápido (Abas)
   -------------------------------------------------------------------------- */
.pm-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--pm-gray-200);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex-wrap: nowrap;
}

.pm-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--pm-gray-600);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--pm-transition);
  border-radius: var(--pm-radius-md) var(--pm-radius-md) 0 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.pm-tab:hover { color: var(--pm-blue-600); background: var(--pm-blue-50); }
.pm-tab[aria-selected="true"] {
  color: var(--pm-blue-700);
  border-bottom-color: var(--pm-blue-600);
  background: var(--pm-white);
  font-weight: 700;
  box-shadow: 0 -1px 0 rgba(37, 87, 180, 0.12) inset;
}

.pm-tabs--mast .pm-tab--mast:hover {
  color: var(--pm-green-700);
  background: transparent;
}

.pm-tabs--mast .pm-tab--mast[aria-selected="true"] {
  color: var(--pm-green-700);
  border-bottom-color: var(--pm-green-600);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  box-shadow: 0 -2px 14px rgba(22, 101, 52, 0.08);
}

.pm-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}

.pm-quick-grid a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.05rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-lg);
  font-size: .85rem;
  font-weight: 600;
  color: var(--pm-gray-700);
  transition: var(--pm-transition);
  box-shadow: 0 1px 3px rgba(10, 30, 74, 0.04);
}

.pm-quick-grid a::before {
  content: '→';
  color: var(--pm-blue-500);
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.88;
}

.pm-quick-grid a:hover {
  border-color: var(--pm-blue-400);
  background: linear-gradient(180deg, var(--pm-blue-50) 0%, #ffffff 100%);
  color: var(--pm-blue-800);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(37, 87, 180, 0.1);
}

/* --------------------------------------------------------------------------
   9. Cards de Notícias
   -------------------------------------------------------------------------- */
.pm-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pm-card-news {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--pm-radius-2xl);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10, 30, 74, 0.06), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  border: 1px solid var(--pm-card-edge);
  transition: var(--pm-transition);
  display: flex;
  flex-direction: column;
}

.pm-card-news:hover {
  box-shadow: var(--pm-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(37, 87, 180, 0.16);
}

.pm-card-news-image {
  height: 180px;
  background: linear-gradient(135deg, var(--pm-blue-800), var(--pm-blue-600));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 3rem;
}

.pm-card-news-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%, rgba(10, 30, 74, 0.28) 100%);
  pointer-events: none;
}

.pm-card-news-image > * {
  position: relative;
  z-index: 1;
}

.pm-card-news-body {
  padding: 1.35rem 1.3rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, transparent 100%);
}

.pm-card-news-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pm-blue-700);
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  border-radius: var(--pm-radius-full);
  background: linear-gradient(180deg, var(--pm-blue-50) 0%, #e2ebfb 100%);
  border: 1px solid rgba(37, 87, 180, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pm-card-news h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.pm-card-news h3 a { color: var(--pm-gray-900); }
.pm-card-news h3 a:hover { color: var(--pm-blue-700); }

.pm-card-news-date {
  font-size: .78rem;
  color: var(--pm-gray-400);
  margin-top: auto;
}

.pm-news-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

.pm-card-news--mosaic .pm-card-news-body {
  min-height: 7.5rem;
}

.pm-card-news--mosaic .pm-card-news-tag {
  color: var(--pm-gray-700);
  font-weight: 700;
  background: linear-gradient(180deg, var(--pm-gray-50) 0%, var(--pm-gray-100) 100%);
  border-color: var(--pm-gray-200);
}

.pm-card-news-image--a {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #2563eb 100%);
}

.pm-card-news-image--b {
  background: linear-gradient(145deg, #14532d 0%, #166534 50%, #22c55e 90%);
}

.pm-card-news-image--c {
  background: linear-gradient(145deg, #422006 0%, #92400e 45%, #d97706 100%);
}

.pm-card-news-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 0.35rem;
}

.pm-card-news--mosaic .pm-card-news-date {
  margin-top: 0;
  color: var(--pm-gray-500);
  font-weight: 600;
}

/* Turismo — faixa com cartão (home) */
.pm-tourism-band {
  position: relative;
  padding: 3.5rem 0;
  overflow: hidden;
}

.pm-tourism-band__bg {
  position: absolute;
  inset: -24px;
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.55), rgba(22, 101, 52, 0.35)),
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(34, 197, 94, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 70% 60%, rgba(59, 130, 246, 0.25), transparent 50%),
    linear-gradient(185deg, #0c4a6e 0%, #14532d 40%, #422006 100%);
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  transform: scale(1.06);
}

.pm-tourism-band__veil {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.pm-tourism-inner {
  position: relative;
  z-index: 1;
}

.pm-tourism-card {
  background: var(--pm-white);
  border-radius: var(--pm-radius-2xl);
  box-shadow: var(--pm-shadow-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.pm-tourism-kicker {
  margin: 0 0 1.25rem;
  font-family: var(--pm-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-green-600);
}

.pm-tourism-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.pm-tourism-photo {
  position: relative;
  display: block;
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
}

.pm-tourism-photo__img {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 35%, rgba(15, 23, 42, 0.78)),
    linear-gradient(135deg, #166534 0%, #0d9488 35%, #0f766e 70%, #14532d 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.pm-tourism-photo:hover .pm-tourism-photo__img {
  transform: scale(1.04);
}

.pm-tourism-photo__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  color: var(--pm-white);
  font-weight: 700;
  font-size: 0.95rem;
}

.pm-tourism-photo__cap .pm-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.pm-tourism-map {
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--pm-gray-200);
  min-height: 220px;
  background: var(--pm-gray-100);
}

.pm-tourism-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.pm-tourism-lead {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--pm-gray-600);
}

.pm-tourism-cta {
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Cards de Licitação (destaque)
   -------------------------------------------------------------------------- */
.pm-licitacao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.pm-card-licitacao {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 45%, #ffffff 100%);
  border-radius: var(--pm-radius-2xl);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--pm-shadow-sm);
  border: 1px solid var(--pm-card-edge);
  border-left: 5px solid var(--pm-blue-500);
  transition: var(--pm-transition);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pm-card-licitacao:hover {
  box-shadow: var(--pm-shadow-lg);
  transform: translateY(-3px);
  border-left-color: var(--pm-gold-500);
  border-color: rgba(37, 87, 180, 0.14);
}

.pm-card-licitacao-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}

.pm-card-licitacao-num {
  font-family: var(--pm-font-heading);
  font-size: .95rem;
  font-weight: 800;
  color: var(--pm-blue-700);
}

.pm-card-licitacao p {
  font-size: .88rem;
  color: var(--pm-gray-600);
  line-height: 1.5;
  flex: 1;
}

.pm-card-licitacao-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.pm-card-licitacao-date {
  font-size: .78rem;
  color: var(--pm-gray-400);
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* --------------------------------------------------------------------------
   11. Badges de Status
   -------------------------------------------------------------------------- */
.pm-badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  border-radius: var(--pm-radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pm-badge-aberta       { background: var(--pm-green-100); color: var(--pm-green-700); }
.pm-badge-em_andamento { background: var(--pm-blue-100);  color: var(--pm-blue-700); }
.pm-badge-encerrada    { background: var(--pm-gray-200);  color: var(--pm-gray-600); }
.pm-badge-homologada   { background: var(--pm-green-100); color: var(--pm-green-600); }
.pm-badge-cancelada    { background: var(--pm-red-100);   color: var(--pm-red-600); }
.pm-badge-suspensa     { background: var(--pm-orange-100); color: var(--pm-orange-500); }
.pm-badge-deserta      { background: var(--pm-gray-200);  color: var(--pm-gray-500); }

.pm-badge-concurso     { background: var(--pm-blue-100);  color: var(--pm-blue-700); }
.pm-badge-seletivo     { background: var(--pm-gold-100);  color: #92400e; }
.pm-badge-inscricoes   { background: var(--pm-green-100); color: var(--pm-green-700); }
.pm-badge-provas       { background: var(--pm-blue-100);  color: var(--pm-blue-700); }
.pm-badge-resultado    { background: var(--pm-gold-100);  color: #92400e; }
.pm-badge-encerrado    { background: var(--pm-gray-200);  color: var(--pm-gray-600); }

/* --------------------------------------------------------------------------
   12. Cards de Concursos e Chamamentos
   -------------------------------------------------------------------------- */
.pm-concurso-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pm-card-concurso {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid var(--pm-card-edge);
  border-left: 4px solid var(--pm-blue-500);
  border-radius: var(--pm-radius-2xl);
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: var(--pm-transition);
  box-shadow: 0 2px 10px rgba(10, 30, 74, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pm-card-concurso:hover {
  border-left-color: var(--pm-gold-500);
  box-shadow: var(--pm-shadow-md);
  transform: translateX(4px);
  border-color: rgba(37, 87, 180, 0.12);
}

.pm-card-concurso h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--pm-gray-800);
  margin-bottom: .2rem;
}

.pm-card-concurso-meta {
  font-size: .78rem;
  color: var(--pm-gray-400);
}

/* --------------------------------------------------------------------------
   13. Secretarias Grid
   -------------------------------------------------------------------------- */
.pm-secretarias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.pm-card-secretaria-contact .pm-meta-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.pm-meta-line--wrap {
  word-break: break-word;
}

.pm-empty--wide {
  grid-column: 1 / -1;
  max-width: 36rem;
}

/* —— Secretarias: índice + detalhe (refino visual) —— */
.pm-secretarias-index {
  padding-top: clamp(1.65rem, 4vw, 2.35rem);
  padding-bottom: clamp(2.35rem, 5.5vw, 3.35rem);
}

.pm-secretarias-index .pm-secretarias-grid,
.pm-home-secretarias-grid {
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 1.2rem;
}

.pm-home-secretarias .pm-section-header {
  margin-bottom: 1.15rem;
}

.pm-secretarias-index .pm-list-toolbar {
  margin-bottom: 1.15rem;
}

.pm-secretarias-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.2rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(125deg, #ffffff 0%, var(--pm-blue-50) 45%, #eef3fc 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-xl);
  box-shadow: 0 2px 14px rgba(10, 30, 74, 0.06);
  font-size: 0.88rem;
  color: var(--pm-gray-700);
}

.pm-secretarias-stats__badge strong {
  color: var(--pm-blue-900);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pm-secretarias-stats__hint {
  font-size: 0.84rem;
  color: var(--pm-gray-600);
  padding-left: 0.25rem;
  border-left: 3px solid var(--pm-gold-400);
}

.pm-card-secretaria {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--pm-gray-800);
  text-decoration: none;
  border-radius: var(--pm-radius-2xl);
  padding: 1.35rem 1.45rem 1.4rem;
  gap: 0.65rem;
  background: linear-gradient(165deg, #ffffff 0%, #f6f8fc 52%, #f0f4fb 100%);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    0 2px 6px rgba(10, 30, 74, 0.04),
    0 12px 28px rgba(10, 30, 74, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.pm-card-secretaria::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pm-gold-500), var(--pm-blue-500) 55%, var(--pm-blue-800));
  opacity: 0.95;
}

.pm-card-secretaria:hover {
  border-color: rgba(37, 87, 180, 0.28);
  box-shadow:
    0 4px 12px rgba(10, 30, 74, 0.08),
    0 20px 40px rgba(10, 30, 74, 0.1),
    inset 0 1px 0 #fff;
  transform: translateY(-4px);
}

.pm-card-secretaria:hover .pm-card-secretaria-title {
  color: var(--pm-blue-800);
}

.pm-card-secretaria:hover .pm-card-secretaria-cta {
  color: var(--pm-blue-900);
  gap: 0.45rem;
}

.pm-card-secretaria-icon {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: var(--pm-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-white);
  font-size: 1.15rem;
  background: linear-gradient(148deg, var(--pm-blue-700) 0%, var(--pm-blue-600) 45%, #1e4b96 100%);
  box-shadow:
    0 6px 16px rgba(30, 70, 148, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pm-card-secretaria-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0;
  color: var(--pm-gray-900);
  transition: color 0.18s ease;
}

.pm-card-secretaria-contact {
  font-size: 0.78rem;
  color: var(--pm-gray-600);
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.55rem;
  margin-top: 0.1rem;
  border-radius: var(--pm-radius-md);
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
  gap: 0.35rem;
}

.pm-card-secretaria-excerpt {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--pm-gray-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-card-secretaria-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pm-blue-600);
  transition: gap 0.2s ease, color 0.18s ease;
}

.pm-card-secretaria-cta__ic {
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.pm-secretaria-show {
  padding-top: clamp(1.65rem, 4vw, 2.35rem);
  padding-bottom: clamp(2.35rem, 5.5vw, 3.25rem);
}

.pm-detail-card--secretaria-main {
  padding-bottom: 1.85rem;
}

.pm-secretaria-about {
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--pm-gray-200);
}

.pm-prose-secretaria {
  font-size: 0.925rem;
  line-height: 1.72;
  max-width: 48rem;
  color: var(--pm-gray-800);
}

.pm-secretaria-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pm-detail-card--secretaria-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pm-secretaria-aside-line {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pm-secretaria-aside-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pm-gray-500);
}

.pm-secretaria-aside-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pm-blue-800);
  text-decoration: none;
}

.pm-secretaria-aside-value:hover {
  text-decoration: underline;
}

.pm-secretaria-aside-value--wrap {
  word-break: break-word;
  line-height: 1.45;
}

.pm-secretaria-hours {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--pm-gray-700);
  background: var(--pm-gray-50);
  border-radius: var(--pm-radius-md);
  border: 1px solid var(--pm-gray-200);
}

.pm-secretaria-hours .pm-icon {
  flex-shrink: 0;
  color: var(--pm-blue-600);
  margin-top: 0.1rem;
}

.pm-secretaria-back {
  margin-top: 0.35rem;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  gap: 0.45rem;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  padding: 0.55rem 0.85rem;
}

/* --------------------------------------------------------------------------
   14. Página de Licitações (listing)
   -------------------------------------------------------------------------- */
.pm-page-header {
  position: relative;
  background: linear-gradient(148deg, var(--pm-blue-900) 0%, var(--pm-blue-700) 48%, #1a3a6e 100%);
  color: var(--pm-white);
  padding: clamp(2.5rem, 6vw, 3.25rem) 0 clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(10, 30, 74, 0.18);
}

.pm-page-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.95), rgba(59, 130, 246, 0.5), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.pm-page-header h1 {
  color: var(--pm-white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.pm-page-header p { color: rgba(255,255,255,.75); font-size: .95rem; }

/* Filtros */
.pm-filters {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-2xl);
  padding: 1.5rem 1.65rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(10, 30, 74, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pm-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) 2fr;
  gap: .75rem;
  align-items: end;
}

.pm-filters-grid--secretarias {
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 10rem) auto;
  align-items: end;
}

@media (max-width: 900px) {
  .pm-filters-grid--secretarias {
    grid-template-columns: 1fr;
  }
}

.pm-page-header .pm-page-lead {
  max-width: 42rem;
  line-height: 1.55;
}

.pm-field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--pm-gray-600);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pm-field select,
.pm-field input {
  width: 100%;
  padding: .62rem .9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--pm-radius-md);
  font-size: .88rem;
  font-family: var(--pm-font-body);
  color: var(--pm-gray-800);
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
  transition: var(--pm-transition);
  appearance: none;
  box-shadow: inset 0 1px 2px rgba(10, 30, 74, 0.04);
}

.pm-field select:focus,
.pm-field input:focus {
  outline: none;
  border-color: var(--pm-blue-500);
  box-shadow: 0 0 0 3px rgba(37,87,180,.1);
}

.pm-btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.35rem;
  background: linear-gradient(165deg, var(--pm-blue-500) 0%, var(--pm-blue-700) 100%);
  color: var(--pm-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--pm-radius-md);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pm-transition);
  height: 2.6rem;
  box-shadow: 0 2px 10px rgba(10, 30, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.pm-btn-filter:hover {
  background: linear-gradient(165deg, var(--pm-blue-600) 0%, #152f5c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10, 30, 74, 0.25);
}

.pm-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
  color: var(--pm-gray-600);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-md);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pm-transition);
  text-decoration: none;
  height: 2.6rem;
  box-shadow: 0 1px 2px rgba(10, 30, 74, 0.04);
}
.pm-btn-reset:hover {
  background: var(--pm-gray-100);
  color: var(--pm-gray-900);
  border-color: var(--pm-gray-300);
}

/* Lista de licitações */
.pm-licitacao-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-licitacao-item {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-xl);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  transition: var(--pm-transition);
  border-left: 5px solid var(--pm-blue-500);
  box-shadow: 0 2px 10px rgba(10, 30, 74, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pm-licitacao-item:hover {
  box-shadow: var(--pm-shadow-md);
  border-left-color: var(--pm-gold-500);
  border-color: rgba(37, 87, 180, 0.12);
}

.pm-licitacao-item-num {
  background: var(--pm-blue-50);
  border: 1.5px solid var(--pm-blue-100);
  border-radius: var(--pm-radius-lg);
  padding: .75rem 1rem;
  text-align: center;
  min-width: 80px;
}

.pm-licitacao-item-num .label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pm-blue-500);
}

.pm-licitacao-item-num .value {
  font-family: var(--pm-font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pm-blue-800);
  white-space: nowrap;
}

.pm-licitacao-item-body h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.pm-licitacao-item-body h3 a { color: var(--pm-gray-900); }
.pm-licitacao-item-body h3 a:hover { color: var(--pm-blue-700); }

.pm-licitacao-item-meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--pm-gray-500);
  margin-top: .4rem;
}

.pm-licitacao-item-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-end;
}

/* --------------------------------------------------------------------------
   15. Página de Detalhe da Licitação
   -------------------------------------------------------------------------- */
.pm-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.pm-detail-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-2xl);
  padding: 1.5rem 1.65rem;
  box-shadow: 0 2px 14px rgba(10, 30, 74, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pm-detail-card h2 {
  font-size: 1.1rem;
  color: var(--pm-blue-900);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: none;
  position: relative;
}

.pm-detail-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--pm-gold-500), var(--pm-blue-600));
  border-radius: 2px;
}

.pm-detail-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--pm-gray-200);
}

.pm-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: .5rem .75rem;
  align-items: start;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: .88rem;
}

.pm-detail-row:last-child { border-bottom: none; }
.pm-detail-row dt { font-weight: 600; color: var(--pm-gray-500); }
.pm-detail-row dd { color: var(--pm-gray-800); }

/* Timeline de Documentos */
.pm-timeline { position: relative; padding-left: 1.5rem; }
.pm-timeline::before {
  content: '';
  position: absolute;
  left: .35rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: var(--pm-gray-200);
}

.pm-timeline-item {
  position: relative;
  margin-bottom: 1rem;
}

.pm-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.15rem;
  top: .55rem;
  width: 10px;
  height: 10px;
  background: var(--pm-blue-500);
  border-radius: 50%;
  border: 2px solid var(--pm-white);
  box-shadow: 0 0 0 2px var(--pm-blue-500);
}

.pm-timeline-item-inner {
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-lg);
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  transition: var(--pm-transition);
  box-shadow: 0 1px 3px rgba(10, 30, 74, 0.04);
}

.pm-timeline-item-inner:hover { border-color: var(--pm-blue-300); box-shadow: var(--pm-shadow-sm); }

.pm-timeline-tipo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pm-blue-600); }
.pm-timeline-titulo { font-size: .88rem; font-weight: 600; color: var(--pm-gray-800); }
.pm-timeline-data { font-size: .75rem; color: var(--pm-gray-400); }

.pm-btn-download {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem 1rem;
  background: linear-gradient(165deg, var(--pm-blue-500) 0%, var(--pm-blue-700) 100%);
  color: var(--pm-white);
  border-radius: var(--pm-radius-full);
  font-size: .78rem;
  font-weight: 600;
  transition: var(--pm-transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(10, 30, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pm-btn-download:hover {
  background: linear-gradient(165deg, var(--pm-blue-600) 0%, #152f5c 100%);
  color: var(--pm-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 30, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   15b. Toolbar de listagem (export + contagem)
   -------------------------------------------------------------------------- */
.pm-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-lg);
  box-shadow: 0 2px 10px rgba(10, 30, 74, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pm-list-toolbar-count {
  margin: 0;
  font-size: 0.88rem;
}

.pm-list-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pm-list-toolbar-actions--exports {
  gap: 0.45rem;
}

.pm-list-toolbar-extra {
  margin: -0.35rem 0 1rem;
}

/* Botões estilo referência: CSV neutro, Imprimir neutro, Excel azul, PDF vermelho */
.pm-btn-export-tool,
.pm-btn-licit-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--pm-radius-md);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--pm-transition);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: var(--pm-gray-800, #1e293b);
}

.pm-btn-export-tool:hover,
.pm-btn-licit-tool:hover {
  background: var(--pm-gray-50, #f8fafc);
}

.pm-btn-export-tool--csv,
.pm-btn-licit-tool--csv {
  color: var(--pm-gray-800, #1e293b);
}

.pm-btn-export-tool--print,
.pm-btn-licit-tool--print {
  color: var(--pm-gray-800, #1e293b);
}

.pm-btn-export-tool--excel,
.pm-btn-licit-tool--excel {
  color: #1d4ed8;
  border-color: #3b82f6;
}

.pm-btn-export-tool--excel:hover,
.pm-btn-licit-tool--excel:hover {
  background: #eff6ff;
}

.pm-btn-export-tool--pdf,
.pm-btn-licit-tool--pdf {
  color: #b91c1c;
  border-color: #ef4444;
}

.pm-btn-export-tool--pdf:hover,
.pm-btn-licit-tool--pdf:hover {
  background: #fef2f2;
}

.pm-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pm-gray-800);
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-full);
  text-decoration: none;
  transition: var(--pm-transition);
  box-shadow: 0 1px 3px rgba(10, 30, 74, 0.04);
}

.pm-btn-export:hover {
  border-color: var(--pm-green-500);
  color: var(--pm-green-800);
  background: linear-gradient(180deg, var(--pm-green-100) 0%, #dcfce7 100%);
  transform: translateY(-1px);
}

.pm-law-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pm-law-list-item {
  padding: 0.95rem 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-lg);
  box-shadow: 0 1px 4px rgba(10, 30, 74, 0.04);
  transition: var(--pm-transition);
}

.pm-law-list-item:hover {
  border-color: rgba(37, 87, 180, 0.18);
  box-shadow: 0 4px 14px rgba(10, 30, 74, 0.08);
}

.pm-filters--inline {
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   16. Paginação
   -------------------------------------------------------------------------- */
.pm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border-radius: var(--pm-radius-xl);
  border: 1px solid var(--pm-card-edge);
  box-shadow: 0 2px 12px rgba(10, 30, 74, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pm-pagination a,
.pm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.35rem;
  border-radius: var(--pm-radius-md);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--pm-transition);
}

.pm-pagination a {
  border: 1px solid var(--pm-card-edge);
  color: var(--pm-gray-600);
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
}
.pm-pagination a:hover {
  border-color: var(--pm-blue-400);
  color: var(--pm-blue-700);
  background: var(--pm-blue-50);
  transform: translateY(-1px);
}

.pm-pagination .active {
  background: linear-gradient(165deg, var(--pm-blue-500) 0%, var(--pm-blue-700) 100%);
  color: var(--pm-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(30, 70, 148, 0.35);
}

.pm-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  font-size: 0.85rem;
  color: var(--pm-gray-400);
  user-select: none;
}

/* --------------------------------------------------------------------------
   17. Flash messages
   -------------------------------------------------------------------------- */
.flash {
  margin: 1rem auto;
  max-width: 1280px;
  width: calc(100% - 2.5rem);
  box-sizing: border-box;
  padding: 0.95rem 1.35rem 0.95rem 1.25rem;
  border-radius: var(--pm-radius-xl);
  font-weight: 500;
  border: 1px solid;
  border-left-width: 4px;
  border-left-color: var(--pm-gray-400);
  box-shadow: var(--pm-shadow-sm);
}
.flash-success { background: var(--pm-green-100); border-color: var(--pm-green-400); border-left-color: var(--pm-green-600); color: var(--pm-green-700); }
.flash-danger, .flash-error { background: var(--pm-red-100); border-color: var(--pm-red-500); border-left-color: var(--pm-red-600); color: var(--pm-red-600); }
.flash-warning { background: var(--pm-gold-100); border-color: var(--pm-gold-500); border-left-color: #d97706; color: #92400e; }
.flash-info { background: var(--pm-blue-100); border-color: var(--pm-blue-400); border-left-color: var(--pm-blue-600); color: var(--pm-blue-700); }

/* --------------------------------------------------------------------------
   18. Formulários (Ouvidoria / e-SIC / Contato)
   -------------------------------------------------------------------------- */
.pm-form {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-2xl);
  padding: 2rem 2.1rem;
  box-shadow: 0 8px 32px rgba(10, 30, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pm-article .pm-form {
  margin-top: 0.5rem;
}

.pm-form-group {
  margin-bottom: 1.25rem;
}

.pm-form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--pm-gray-700);
  margin-bottom: .4rem;
}

.pm-form-group input,
.pm-form-group select,
.pm-form-group textarea {
  width: 100%;
  padding: .72rem .95rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--pm-radius-md);
  font-size: .9rem;
  font-family: var(--pm-font-body);
  color: var(--pm-gray-800);
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
  transition: var(--pm-transition);
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(10, 30, 74, 0.04);
}

.pm-form-group input:focus,
.pm-form-group select:focus,
.pm-form-group textarea:focus {
  outline: none;
  border-color: var(--pm-blue-500);
  box-shadow: 0 0 0 3px rgba(37,87,180,.1);
}

.pm-form-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .88rem 2rem;
  background: linear-gradient(165deg, var(--pm-blue-500) 0%, var(--pm-blue-700) 100%);
  color: var(--pm-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--pm-radius-full);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--pm-transition);
  box-shadow: 0 4px 14px rgba(10, 30, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pm-form-submit:hover,
.pm-btn-submit:hover {
  background: linear-gradient(165deg, var(--pm-blue-600) 0%, #152f5c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 87, 180, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pm-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .88rem 2rem;
  width: 100%;
  margin-top: 0.25rem;
  background: linear-gradient(165deg, var(--pm-blue-500) 0%, var(--pm-blue-700) 100%);
  color: var(--pm-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--pm-radius-full);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--pm-transition);
  box-shadow: 0 4px 14px rgba(10, 30, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pm-form .field {
  margin-bottom: 1.25rem;
}

.pm-form .field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--pm-gray-700);
  margin-bottom: .4rem;
}

.pm-form .field input,
.pm-form .field textarea {
  width: 100%;
  padding: .72rem .95rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--pm-radius-md);
  font-size: .9rem;
  font-family: var(--pm-font-body);
  color: var(--pm-gray-800);
  background: linear-gradient(180deg, #ffffff 0%, var(--pm-gray-50) 100%);
  transition: var(--pm-transition);
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(10, 30, 74, 0.04);
}

.pm-form .field input:focus,
.pm-form .field textarea:focus {
  outline: none;
  border-color: var(--pm-blue-500);
  box-shadow: 0 0 0 3px rgba(37, 87, 180, 0.1);
}

/* Protocolo sucesso */
.pm-protocol-box {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--pm-green-100);
  border: 2px solid var(--pm-green-400);
  border-radius: var(--pm-radius-xl);
  max-width: 500px;
  margin: 2rem auto;
}

.pm-protocol-number {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--pm-green-700);
  background: var(--pm-white);
  padding: .75rem 1.5rem;
  border-radius: var(--pm-radius-md);
  display: inline-block;
  margin: 1rem 0;
  border: 2px dashed var(--pm-green-400);
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.pm-footer {
  background: linear-gradient(180deg, #e4eaf4 0%, var(--pm-gray-100) 45%, #dfe6f2 100%);
  color: var(--pm-gray-800);
  margin-top: 4rem;
  position: relative;
  padding-bottom: 0;
}

.pm-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(251, 191, 36, 0.9),
    rgba(59, 130, 246, 0.85),
    transparent
  );
}

.pm-footer-surface {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border-bottom: 1px solid var(--pm-gray-200);
  box-shadow: 0 -8px 40px rgba(10, 30, 74, 0.05);
}

.pm-footer-inst {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem max(1.25rem, env(safe-area-inset-left, 0px)) 1.75rem max(1.25rem, env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.35fr;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid rgba(37, 87, 180, 0.08);
}

.pm-footer-inst-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(145deg, rgba(10, 30, 74, 0.035) 0%, rgba(255, 255, 255, 0.5) 60%);
  border: 1px solid var(--pm-gray-200);
  border-radius: var(--pm-radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pm-footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.pm-footer-logo-line1 {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--pm-gray-500);
}

.pm-footer-logo-line2 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pm-footer-logo--surface {
  color: var(--pm-blue-900);
}

.pm-footer-inst-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pm-footer-inst-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pm-blue-800);
  text-decoration: none;
  padding: 0.45rem 0.55rem;
  margin: 0 -0.55rem;
  border-radius: var(--pm-radius-md);
  transition: var(--pm-transition);
}

.pm-footer-inst-nav a:hover,
.pm-footer-inst-nav a:focus-visible {
  color: var(--pm-blue-700);
  background: rgba(59, 130, 246, 0.08);
  padding-left: 0.55rem;
  outline: none;
}

.pm-footer-inst-ic {
  flex-shrink: 0;
  color: var(--pm-blue-600);
}

.pm-footer-inst-nav .pm-icon--ext {
  margin-left: auto;
  opacity: 0.55;
}

.pm-footer-inst-address {
  background: linear-gradient(180deg, var(--pm-gray-50) 0%, #fafbfd 100%);
  border: 1px solid var(--pm-gray-200);
  border-radius: var(--pm-radius-lg);
  padding: 1.25rem 1.35rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--pm-gray-700);
  box-shadow: 0 2px 12px rgba(10, 30, 74, 0.04);
}

.pm-footer-inst-line {
  margin: 0 0 0.65rem;
}

.pm-footer-inst-line:last-child {
  margin-bottom: 0;
}

.pm-footer-inst-address a {
  color: var(--pm-blue-700);
  font-weight: 600;
}

.pm-footer-inst-hours {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.5rem;
  margin-top: 0.35rem !important;
  border-top: 1px solid var(--pm-gray-200);
  font-size: 0.8rem;
  color: var(--pm-gray-600);
}

.pm-footer-links-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 1.75rem max(1rem, env(safe-area-inset-right, 0px));
}

.pm-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.pm-footer-grid--secondary {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
  margin: 0;
  padding: 1.85rem 1.5rem 2rem;
  gap: 1.75rem;
  background: linear-gradient(180deg, #f1f5fb 0%, #e8eef8 100%);
  border: 1px solid rgba(37, 87, 180, 0.14);
  border-radius: var(--pm-radius-2xl);
  box-shadow:
    0 6px 28px rgba(10, 30, 74, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pm-footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.pm-footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--pm-white);
  font-family: var(--pm-font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}

/* Cartão claro do rodapé: o bloco base usa texto branco; forçar contraste quando .pm-footer-logo--surface */
.pm-footer-logo.pm-footer-logo--surface {
  color: var(--pm-blue-900);
}

.pm-footer-logo.pm-footer-logo--surface .pm-footer-logo-line2 {
  color: var(--pm-blue-950, #0a1628);
}

.pm-footer-logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--pm-gold-500), var(--pm-gold-400));
  border-radius: var(--pm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-blue-900);
  flex-shrink: 0;
}

.pm-footer-desc {
  font-size: .83rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.pm-footer-desc.pm-footer-desc--surface {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--pm-gray-600);
}

.pm-footer-contact {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .5rem;
}

.pm-footer-contact span {
  font-size: .83rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.7);
}

.pm-footer-surface .pm-footer-col h4 {
  position: relative;
  color: var(--pm-blue-900);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 1.05rem;
  padding-bottom: 0.7rem;
  border-bottom: none;
}

.pm-footer-surface .pm-footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(37, 87, 180, 0.14);
}

.pm-footer-surface .pm-footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--pm-gold-500), var(--pm-blue-600));
  border-radius: 2px;
}

.pm-footer-col h4 {
  color: var(--pm-white);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.pm-footer-surface .pm-footer-col ul { display: flex; flex-direction: column; gap: .25rem; }

.pm-footer-col ul { display: flex; flex-direction: column; gap: .4rem; }

.pm-footer-surface .pm-footer-col ul a {
  font-size: .84rem;
  color: var(--pm-gray-700);
  transition: var(--pm-transition);
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 0.42rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: var(--pm-radius-md);
  text-decoration: none;
}

.pm-footer-surface .pm-footer-col ul a:hover,
.pm-footer-surface .pm-footer-col ul a:focus-visible {
  color: var(--pm-blue-800);
  background: rgba(59, 130, 246, 0.1);
  outline: none;
}

.pm-footer-surface .pm-footer-col ul a.pm-footer-link-ext > span {
  flex: 1;
  min-width: 0;
}

.pm-footer-surface .pm-footer-col ul a .pm-icon--ext {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.48;
}

.pm-footer-col ul a {
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  transition: var(--pm-transition);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.pm-footer-col ul a:hover { color: var(--pm-gold-400); padding-left: .25rem; }

.pm-footer-bottom {
  position: relative;
  background: var(--pm-blue-900);
  border-top: none;
  padding: 1.3rem 1.5rem 1.35rem;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  font-size: .825rem;
  line-height: 1.45;
  color: rgba(255,255,255,.88);
  text-align: center;
}

.pm-footer-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pm-gold-500), var(--pm-blue-400), var(--pm-gold-400));
  opacity: 0.95;
}

.pm-footer-bottom strong {
  color: var(--pm-white);
}

.pm-footer-lgpd {
  background: linear-gradient(180deg, var(--pm-gray-100) 0%, #e2e9f3 100%);
  padding: 1rem 1.25rem 1.35rem;
  text-align: center;
  font-size: .8rem;
  color: var(--pm-gray-600);
  border-top: 1px solid var(--pm-gray-200);
}

/* --------------------------------------------------------------------------
   20. Utilitários
   -------------------------------------------------------------------------- */
.pm-muted { color: var(--pm-gray-400); font-size: .85rem; }
.pm-text-center { text-align: center; }
.pm-mt-1 { margin-top: .5rem; }
.pm-mt-2 { margin-top: 1rem; }
.pm-mt-3 { margin-top: 1.5rem; }
.pm-mb-1 { margin-bottom: .5rem; }
.pm-mb-2 { margin-bottom: 1rem; }
.pm-mb-3 { margin-bottom: 1.5rem; }
.pm-empty { text-align: center; color: var(--pm-gray-600); padding: clamp(2.25rem, 5vw, 3.25rem); font-size: .95rem; line-height: 1.55; background: linear-gradient(135deg, var(--pm-gray-50) 0%, var(--pm-blue-50) 42%, #f3f6fb 100%); border-radius: var(--pm-radius-2xl); border: 1px solid var(--pm-card-edge); box-shadow: 0 2px 14px rgba(10, 30, 74, 0.05); }

/* Breadcrumb */
.pm-breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}
.pm-breadcrumb a { color: rgba(255,255,255,.75); }
.pm-breadcrumb a:hover { color: var(--pm-white); }
.pm-breadcrumb .sep { color: rgba(255,255,255,.3); }

/* Stat cards (home) */
.pm-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.pm-stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--pm-radius-xl);
  padding: 1.25rem;
  text-align: center;
}

.pm-stat-card .number {
  font-family: var(--pm-font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--pm-gold-400);
}

.pm-stat-card .label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-top: .25rem;
}

/* Obras progress bar */
.pm-progress {
  height: 6px;
  background: var(--pm-gray-200);
  border-radius: var(--pm-radius-full);
  overflow: hidden;
  margin-top: .4rem;
}

.pm-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pm-blue-500), var(--pm-green-500));
  border-radius: var(--pm-radius-full);
  transition: width .6s ease;
}

/* Obras grid */
.pm-obras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pm-card-obra {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid var(--pm-card-edge);
  border-radius: var(--pm-radius-2xl);
  padding: 1.35rem 1.4rem;
  transition: var(--pm-transition);
  box-shadow: 0 2px 10px rgba(10, 30, 74, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pm-card-obra:hover {
  box-shadow: var(--pm-shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(37, 87, 180, 0.14);
}

.pm-card-obra h4 { font-size: .92rem; font-weight: 700; margin-bottom: .4rem; }
.pm-card-obra p { font-size: .82rem; color: var(--pm-gray-500); margin-bottom: .75rem; }

/* Alerta de destaque */
.pm-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--pm-radius-xl);
  margin-bottom: 1.5rem;
  font-size: .88rem;
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(10, 30, 74, 0.04);
}

.pm-alert-info { background: linear-gradient(180deg, var(--pm-blue-50) 0%, #e8f0fe 100%); border-color: var(--pm-blue-100); color: var(--pm-blue-700); }
.pm-alert-warning { background: linear-gradient(180deg, var(--pm-gold-100) 0%, #fef3c7 100%); border-color: var(--pm-gold-400); color: #92400e; }

.pm-alert.pm-inline-alert {
  align-items: center;
}

/* --------------------------------------------------------------------------
   20b. Artigo institucional + conteúdo CMS (.prose)
   -------------------------------------------------------------------------- */
.pm-section--article {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.pm-article {
  max-width: 48rem;
  margin: 0 auto;
}

.pm-article-header {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--pm-card-edge);
  position: relative;
}

.pm-article-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--pm-gold-500), var(--pm-blue-600));
  border-radius: 2px;
}

.pm-article-title {
  margin: 0;
  font-family: var(--pm-font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--pm-blue-900);
}

.pm-article-meta {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pm-article-lead {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--pm-gray-600);
}

.pm-article-header > .pm-muted {
  margin: 0.75rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 36rem;
}

.pm-article-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pm-gray-200);
}

.pm-article-back a {
  font-weight: 600;
  color: var(--pm-blue-600);
}

.pm-article-back a:hover {
  color: var(--pm-blue-800);
}

.prose {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--pm-gray-800);
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--pm-font-heading);
  font-weight: 800;
  color: var(--pm-gray-900);
  line-height: 1.28;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.prose h2 { font-size: 1.35rem; color: var(--pm-blue-900); }
.prose h3 { font-size: 1.15rem; }
.prose h4 { font-size: 1.02rem; }

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  list-style: revert;
}

.prose li {
  margin: 0.35rem 0;
}

.prose a {
  color: var(--pm-blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--pm-blue-800);
}

.prose blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--pm-gold-500);
  background: linear-gradient(90deg, var(--pm-blue-50), transparent);
  border-radius: 0 var(--pm-radius-md) var(--pm-radius-md) 0;
  color: var(--pm-gray-700);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 30, 74, 0.06);
  border: 1px solid var(--pm-card-edge);
}

.prose th,
.prose td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--pm-gray-200);
}

.prose th {
  background: linear-gradient(180deg, var(--pm-blue-800), var(--pm-blue-700));
  color: var(--pm-white);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose tr:nth-child(even) td {
  background: var(--pm-gray-50);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose img {
  border-radius: var(--pm-radius-lg);
  margin: 1.25rem 0;
  box-shadow: var(--pm-shadow-md);
}

.prose code {
  font-size: 0.88em;
  background: var(--pm-gray-100);
  padding: 0.12em 0.4em;
  border-radius: var(--pm-radius-sm);
  border: 1px solid var(--pm-gray-200);
}

.prose pre {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--pm-blue-900);
  color: #e2e8f0;
  border-radius: var(--pm-radius-lg);
  overflow-x: auto;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   20c. Acessibilidade (skip link + barra flutuante + classes em <html>)
   -------------------------------------------------------------------------- */
.pm-skip-link {
  position: fixed;
  z-index: 10080;
  left: max(0.5rem, env(safe-area-inset-left, 0px));
  top: max(0.5rem, env(safe-area-inset-top, 0px));
  padding: 0.65rem 1rem;
  background: var(--pm-blue-900);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--pm-radius-md);
  box-shadow: var(--pm-shadow-lg);
  transform: translateY(-200%);
  transition: transform 0.2s ease, outline-offset 0.15s ease;
  text-decoration: none;
}

.pm-skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--pm-gold-400);
  outline-offset: 3px;
}

.pm-a11y {
  position: fixed;
  z-index: 10060;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-family: var(--pm-font-body);
  pointer-events: none;
}

.pm-a11y > * {
  pointer-events: auto;
}

.pm-a11y-fab {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem 0.55rem 0.65rem;
  border: none;
  border-radius: var(--pm-radius-full);
  background: linear-gradient(145deg, var(--pm-blue-700), var(--pm-blue-900));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(10, 30, 74, 0.45);
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pm-a11y-fab:hover {
  box-shadow: 0 6px 22px rgba(10, 30, 74, 0.55);
}

.pm-a11y-fab:active {
  transform: scale(0.98);
}

.pm-a11y-fab:focus-visible {
  outline: 3px solid var(--pm-gold-400);
  outline-offset: 3px;
}

.pm-a11y-fab__ic {
  display: flex;
  flex-shrink: 0;
}

.pm-a11y-fab__ic .pm-icon {
  color: #fff;
}

.pm-a11y-fab__label {
  max-width: 9.5rem;
  line-height: 1.15;
  text-align: left;
}

@media (max-width: 480px) {
  .pm-a11y-fab__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pm-a11y-fab {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

.pm-a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(10, 22, 74, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pm-a11y.is-open .pm-a11y-backdrop {
  opacity: 1;
  visibility: visible;
}

.pm-a11y-panel {
  position: relative;
  z-index: 2;
  width: min(20.5rem, calc(100vw - 1.5rem));
  max-height: min(28rem, 70vh);
  overflow-y: auto;
  padding: 1rem 1.05rem 1.1rem;
  background: var(--pm-surface);
  color: var(--pm-gray-800);
  border-radius: var(--pm-radius-xl);
  box-shadow: var(--pm-shadow-xl);
  border: 1px solid var(--pm-gray-200);
  -webkit-overflow-scrolling: touch;
  transform: translateY(0.5rem) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.pm-a11y.is-open .pm-a11y-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.pm-a11y-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pm-a11y-panel__title {
  font-family: var(--pm-font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pm-blue-900);
  margin: 0;
}

.pm-a11y-panel__intro {
  font-size: 0.82rem;
  color: var(--pm-gray-600);
  line-height: 1.45;
  margin: 0 0 1rem;
}

.pm-a11y-panel__doclink {
  font-weight: 600;
  color: var(--pm-blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pm-a11y-panel__doclink:hover {
  color: var(--pm-blue-900);
}

.pm-a11y-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--pm-radius-md);
  background: transparent;
  color: var(--pm-gray-700);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, color 0.15s ease;
}

.pm-a11y-icon-btn:hover {
  background: var(--pm-gray-100);
  color: var(--pm-blue-900);
}

.pm-a11y-icon-btn:focus-visible {
  outline: 2px solid var(--pm-gold-400);
  outline-offset: 2px;
}

.pm-a11y-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pm-a11y-icon-btn--border {
  border: 1px solid var(--pm-gray-200);
  background: var(--pm-surface-muted);
}

.pm-a11y-row {
  margin-bottom: 0.85rem;
}

.pm-a11y-row__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pm-gray-600);
  margin-bottom: 0.45rem;
}

.pm-a11y-row__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pm-a11y-font-level {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pm-blue-800);
}

.pm-a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--pm-gray-200);
  border-radius: var(--pm-radius-lg);
  background: var(--pm-surface-muted);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pm-gray-800);
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pm-a11y-toggle:hover {
  border-color: var(--pm-gray-300);
}

.pm-a11y-toggle:focus-visible {
  outline: 2px solid var(--pm-gold-400);
  outline-offset: 2px;
}

.pm-a11y-toggle__pill {
  position: relative;
  width: 2.5rem;
  height: 1.35rem;
  flex-shrink: 0;
  border-radius: var(--pm-radius-full);
  background: var(--pm-gray-300);
  transition: background 0.2s ease;
}

.pm-a11y-toggle__pill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.35rem - 4px);
  height: calc(1.35rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.pm-a11y-toggle.is-on {
  border-color: var(--pm-blue-400);
  background: rgba(30, 70, 148, 0.08);
}

.pm-a11y-toggle.is-on .pm-a11y-toggle__pill {
  background: var(--pm-blue-600);
}

.pm-a11y-toggle.is-on .pm-a11y-toggle__pill::after {
  transform: translateX(1.15rem);
}

.pm-a11y-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--pm-gray-200);
}

.pm-a11y-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pm-blue-600);
}

.pm-a11y-link:focus-visible {
  outline: 2px solid var(--pm-gold-400);
  outline-offset: 2px;
  border-radius: 2px;
}

.pm-a11y-reset {
  margin-left: auto;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--pm-gray-300);
  border-radius: var(--pm-radius-md);
  background: var(--pm-surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pm-gray-700);
  cursor: pointer;
  touch-action: manipulation;
}

.pm-a11y-reset:hover {
  border-color: var(--pm-gray-400);
  color: var(--pm-gray-900);
}

.pm-a11y-reset:focus-visible {
  outline: 2px solid var(--pm-gold-400);
  outline-offset: 2px;
}

/* Escalas de texto (raiz) */
html.pm-a11y-font-1 { font-size: 106.25%; }
html.pm-a11y-font-2 { font-size: 114%; }
html.pm-a11y-font-3 { font-size: 122%; }

/* Alto contraste — reforço de tokens usados no portal */
html.pm-a11y-contrast {
  --pm-card-edge: rgba(0, 0, 0, 0.28);
  --pm-gray-900: #0a0a0a;
  --pm-gray-800: #141414;
  --pm-gray-700: #1f1f1f;
  --pm-gray-600: #2d2d2d;
  --pm-blue-900: #000814;
  --pm-blue-800: #001030;
  --pm-blue-700: #001a4a;
  --pm-blue-600: #002a7a;
  --pm-surface-muted: #ececec;
}

html.pm-a11y-contrast body.pm-site {
  background: #f2f2f2 !important;
}

html.pm-a11y-contrast .pm-topbar,
html.pm-a11y-contrast .pm-header,
html.pm-a11y-contrast .pm-footer-bottom {
  background: #000 !important;
  color: #fff !important;
}

html.pm-a11y-contrast .pm-topbar a,
html.pm-a11y-contrast .pm-header .pm-nav > li > a,
html.pm-a11y-contrast .pm-header .pm-nav > li > span {
  color: #fff !important;
}

html.pm-a11y-contrast .pm-footer-bottom strong {
  color: #fde68a;
}

/* Links sublinhados (exceto controles do widget e skip já visível ao foco) */
html.pm-a11y-underline body.pm-site a:not(.pm-a11y-fab):not(.pm-a11y-icon-btn):not(.pm-a11y-toggle):not(.pm-a11y-reset):not(.pm-skip-link) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Acessibilidade — modos adicionais (painel próprio; classes aplicadas em <html>) */
html.pm-a11y-contrast-inv {
  filter: invert(1) hue-rotate(180deg);
}

html.pm-a11y-contrast-inv .pm-a11y,
html.pm-a11y-contrast-inv .pm-a11y * {
  filter: invert(1) hue-rotate(180deg);
}

html.pm-a11y-contrast-dark body.pm-site {
  background: #0b1220 !important;
  color: #e5e7eb !important;
}

html.pm-a11y-contrast-dark body.pm-site .pm-main,
html.pm-a11y-contrast-dark body.pm-site .pm-home-mast,
html.pm-a11y-contrast-dark body.pm-site .pm-card,
html.pm-a11y-contrast-dark body.pm-site .pm-panel,
html.pm-a11y-contrast-dark body.pm-site .pm-tabs,
html.pm-a11y-contrast-dark body.pm-site .pm-quick-card {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #374151 !important;
}

html.pm-a11y-contrast-dark body.pm-site .pm-topbar,
html.pm-a11y-contrast-dark body.pm-site .pm-header,
html.pm-a11y-contrast-dark body.pm-site .pm-footer-bottom {
  background: #020617 !important;
  color: #f9fafb !important;
}

html.pm-a11y-contrast-dark body.pm-site a {
  color: #93c5fd !important;
}

html.pm-a11y-highlight-links body.pm-site main a {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px;
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
}

html.pm-a11y-spacing-1 body.pm-site {
  letter-spacing: 0.04em;
  word-spacing: 0.1em;
}

html.pm-a11y-spacing-2 body.pm-site {
  letter-spacing: 0.08em;
  word-spacing: 0.18em;
}

html.pm-a11y-lh-1 body.pm-site {
  line-height: 1.65 !important;
}

html.pm-a11y-lh-2 body.pm-site {
  line-height: 1.85 !important;
}

html.pm-a11y-lh-3 body.pm-site {
  line-height: 2.05 !important;
}

html.pm-a11y-ta-1 body.pm-site .pm-main {
  text-align: justify;
}

html.pm-a11y-ta-2 body.pm-site .pm-main {
  text-align: center;
}

html.pm-a11y-ta-3 body.pm-site .pm-main {
  text-align: right;
}

html.pm-a11y-sat-1 body.pm-site {
  filter: saturate(0.55);
}

html.pm-a11y-sat-2 body.pm-site {
  filter: saturate(1.35);
}

html.pm-a11y-sat-3 body.pm-site {
  filter: saturate(0) contrast(1.08);
}

html.pm-a11y-hide-img body.pm-site main img,
html.pm-a11y-hide-img body.pm-site main picture > img {
  opacity: 0 !important;
  visibility: hidden !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html.pm-a11y-dyslexia body.pm-site {
  font-family: "Atkinson Hyperlegible", "Source Sans 3", system-ui, sans-serif !important;
}

html.pm-a11y-cursor-1 body.pm-site,
html.pm-a11y-cursor-1 body.pm-site * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='10' fill='none' stroke='%230f172a' stroke-width='3'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%230f172a'/%3E%3C/svg%3E") 16 16, auto !important;
}

html.pm-a11y-cursor-2 body.pm-site,
html.pm-a11y-cursor-2 body.pm-site * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 4v24M4 16h24' stroke='%230f172a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, crosshair !important;
}

html.pm-a11y-cursor-3 body.pm-site,
html.pm-a11y-cursor-3 body.pm-site * {
  cursor: grab !important;
}

.pm-a11y-tip-host {
  position: fixed;
  z-index: 10070;
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  bottom: max(4.75rem, env(safe-area-inset-bottom, 0px));
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.55rem 0.75rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.85rem;
  line-height: 1.35;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.pm-a11y-tip-host.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pm-a11y-panel__hint {
  font-size: 0.72rem;
  color: var(--pm-gray-600);
  margin: -0.15rem 0 0.75rem;
  line-height: 1.35;
}

.pm-a11y-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.pm-a11y-feature-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0.5rem 0.55rem;
  text-align: left;
  border: 1px solid var(--pm-gray-200);
  border-radius: var(--pm-radius-md);
  background: #fff;
  cursor: pointer;
  min-height: 3.4rem;
  font: inherit;
  color: inherit;
}

.pm-a11y-feature-btn:hover {
  border-color: var(--pm-blue-400);
  background: #f8fafc;
}

.pm-a11y-feature-btn.is-on,
.pm-a11y-feature-btn--toggle.is-on {
  border-color: var(--pm-blue-500);
  background: #eff6ff;
}

.pm-a11y-feature-btn__t {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--pm-blue-900);
}

.pm-a11y-feature-btn__s {
  font-size: 0.68rem;
  color: var(--pm-gray-600);
  line-height: 1.25;
}

.pm-a11y.pm-a11y--large .pm-a11y-fab {
  transform: scale(1.14);
  transform-origin: bottom right;
}

.pm-a11y.pm-a11y--large .pm-a11y-panel {
  width: min(22.5rem, calc(100vw - 1rem));
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   21. Responsividade
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pm-footer-grid { grid-template-columns: 1fr 1fr; }
  .pm-footer-grid--secondary { grid-template-columns: 1fr 1fr; }
  .pm-footer-inst {
    grid-template-columns: 1fr 1fr;
  }
  .pm-footer-inst-address {
    grid-column: 1 / -1;
  }
  .pm-footer-links-panel {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .pm-news-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }
  .pm-detail-grid { grid-template-columns: 1fr; }
  /* Filtros: uma coluna em tablet para não esmagar campos */
  .pm-filters-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Ordem: cabeçalho (marca + menu) primeiro, barra de utilidades depois */
  body.pm-site {
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body.pm-site > .pm-header {
    order: 1;
  }

  body.pm-site > .pm-topbar {
    order: 2;
  }

  body.pm-site > .pm-main {
    order: 3;
  }

  body.pm-site > .pm-footer {
    order: 4;
  }

  .pm-header {
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Barra superior — mobile: faixa de atalhos, sem recorte nas bordas */
  .pm-topbar {
    font-size: 0.76rem;
  }

  .pm-topbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem max(0.65rem, env(safe-area-inset-left, 0px)) 0.55rem max(0.65rem, env(safe-area-inset-right, 0px));
    gap: 0.5rem;
  }

  .pm-topbar-meta {
    flex: none;
    font-size: inherit;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.75rem;
    width: 100%;
    padding: 0.42rem 0.7rem;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--pm-radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .pm-topbar-sep {
    display: none;
  }

  .pm-topbar-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 191, 36, 0.5) rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0.45rem;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    scroll-padding-inline: 0.4rem;
  }

  .pm-topbar-search {
    flex-shrink: 0;
    margin: 0;
  }

  .pm-topbar-search__input {
    width: min(7.5rem, 24vw);
    min-width: 4.5rem;
  }

  .pm-actions {
    display: contents;
  }

  .pm-topbar-links a {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: var(--pm-radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
  }

  .pm-topbar-links a:hover,
  .pm-topbar-links a:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pm-white);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .pm-actions .pm-btn {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: max-content;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    max-width: none;
  }

  /* Nav fechada: fora do layout (display:contents quebrava o flex em alguns browsers) */
  #mainNav:not(.open) {
    display: none;
  }

  /* Drawer em ecrã cheio */
  #mainNav.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10002;
    flex: none;
    width: 100%;
    min-width: 0;
    order: unset;
    margin: 0;
    padding: 0;
    align-items: stretch;
    justify-content: flex-end;
    background: rgba(10, 22, 74, 0.62);
  }

  .pm-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10003;
    touch-action: manipulation;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: var(--pm-radius-md);
  }

  .pm-nav-toggle-icon--menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pm-nav-toggle-icon--close {
    display: none;
    align-items: center;
    justify-content: center;
  }

  .pm-nav-toggle.is-open .pm-nav-toggle-icon--menu {
    display: none;
  }

  .pm-nav-toggle.is-open .pm-nav-toggle-icon--close {
    display: flex;
  }

  .pm-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(20rem, 90vw);
    flex: none;
    max-height: 100%;
    margin: 0;
    padding: max(0.65rem, env(safe-area-inset-top, 0px)) 0 1rem;
    background: var(--pm-blue-900);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: none;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.35);
  }

  #mainNav.open .pm-nav {
    display: flex;
    min-height: 100%;
  }

  .pm-nav > li {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pm-nav > li > a,
  .pm-nav > li > span {
    padding: 0.85rem 1.25rem;
    width: 100%;
    height: auto;
    min-height: 2.75rem;
    white-space: normal;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .pm-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    border-radius: 0;
    max-width: 100%;
  }

  .pm-nav > li.open .pm-dropdown {
    display: block;
  }

  .pm-header-inner {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.45rem 0.75rem;
    min-height: 58px;
  }

  .pm-brand {
    margin-right: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.35rem 0;
  }

  .pm-brand-mark {
    width: 42px;
    height: 42px;
  }

  .pm-brand-text span:last-child {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  }

  .pm-hero h1 { font-size: 1.5rem; }
  .pm-footer-inst {
    grid-template-columns: 1fr;
    padding: 1.75rem max(0.85rem, env(safe-area-inset-left, 0px)) 1.25rem max(0.85rem, env(safe-area-inset-right, 0px));
    gap: 1.35rem;
  }
  .pm-footer-links-panel {
    padding: 0 max(0.85rem, env(safe-area-inset-left, 0px)) 1.35rem max(0.85rem, env(safe-area-inset-right, 0px));
  }
  .pm-footer-grid--secondary {
    padding: 1.45rem 1rem 1.6rem;
  }
  .pm-footer-lgpd-inner {
    padding: 0.9rem 1rem;
  }
  .pm-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pm-footer-bottom { flex-direction: column; text-align: center; }

  .pm-licitacao-item { grid-template-columns: 1fr; }
  .pm-licitacao-item-num { display: flex; align-items: center; gap: .5rem; }
  .pm-licitacao-item-actions { align-items: flex-start; }

  .pm-news-grid { grid-template-columns: 1fr; }
  .pm-news-grid--home { grid-template-columns: 1fr; }
  .pm-tourism-split {
    grid-template-columns: 1fr;
  }
  .pm-tourism-band {
    padding: 2.25rem 0;
  }
  .pm-secretarias-grid { grid-template-columns: 1fr 1fr; }
  .pm-stats-row { grid-template-columns: 1fr 1fr; }
  .pm-filters-grid { grid-template-columns: 1fr; }

  .pm-filters,
  .pm-filters--inline {
    padding: 1.15rem 1.1rem;
  }

  .pm-page-header {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .pm-page-header h1 {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
  }

  .pm-page-title-row > .pm-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
  }

  .pm-page-header .pm-page-title-ic {
    width: 2.65rem;
    height: 2.65rem;
  }

  .pm-page-header .pm-page-title-ic .pm-icon {
    width: 1.45rem;
    height: 1.45rem;
  }

  .pm-section--article {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }

  .pm-article {
    max-width: 100%;
    padding-inline: 0.15rem;
  }

  .pm-form {
    padding: 1.35rem 1.1rem;
    margin-inline: 0;
    max-width: 100%;
    border-radius: var(--pm-radius-xl);
  }

  .flash {
    width: min(1280px, calc(100vw - 1rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    margin-left: auto;
    margin-right: auto;
  }

  .pm-detail-row {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
    padding: 0.65rem 0;
  }

  .pm-detail-row dt {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
  }

  .pm-detail-row dd {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .pm-card-concurso {
    flex-direction: column;
    align-items: stretch;
  }

  .pm-card-concurso-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .pm-card-concurso-actions .pm-btn-download {
    justify-content: center;
    width: 100%;
  }

  .prose {
    font-size: 0.98rem;
    line-height: 1.68;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .prose table {
    font-size: 0.82rem;
    min-width: 100%;
  }

  .prose th,
  .prose td {
    padding: 0.45rem 0.5rem;
  }

  .pm-pagination {
    gap: 0.35rem;
    padding: 0.65rem 0.5rem;
    margin-left: env(safe-area-inset-left, 0px);
    margin-right: env(safe-area-inset-right, 0px);
  }

  .pm-pagination a,
  .pm-pagination span {
    min-width: 2.15rem;
    height: 2.15rem;
    font-size: 0.8rem;
  }

  .pm-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pm-list-toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .pm-list-toolbar-actions .pm-btn-export,
  .pm-list-toolbar-actions .pm-btn-export-tool,
  .pm-list-toolbar-actions .pm-btn-licit-tool {
    flex: 1;
    justify-content: center;
  }

  .pm-filter-actions {
    width: 100%;
  }

  .pm-filter-actions .pm-btn-filter,
  .pm-filter-actions .pm-btn-reset {
    flex: 1;
    min-width: 8rem;
    justify-content: center;
  }

  .pm-hero-buttons .pm-btn-hero {
    width: 100%;
    max-width: 22rem;
  }
}

@media (max-width: 480px) {
  .pm-interests-grid { grid-template-columns: repeat(3, 1fr); }
  .pm-secretarias-grid { grid-template-columns: 1fr; }
  .pm-licitacao-grid { grid-template-columns: 1fr; }
  .pm-stats-row { grid-template-columns: 1fr; }
  .pm-article-title {
    font-size: clamp(1.28rem, 6vw, 1.65rem);
  }
  .pm-tabs--mast {
    border-radius: var(--pm-radius-md) var(--pm-radius-md) 0 0;
  }
  .pm-tab--mast {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   22. Animações
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pm-animate {
  animation: fadeIn .5s ease forwards;
}

.pm-animate-delay-1 { animation-delay: .1s; opacity: 0; }
.pm-animate-delay-2 { animation-delay: .2s; opacity: 0; }
.pm-animate-delay-3 { animation-delay: .3s; opacity: 0; }

/* Scroll animations via Intersection Observer (aplicado via JS inline) */
.pm-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.pm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   23. Camada premium (v2) — mesh hero, tipografia, foco, acessibilidade
   ========================================================================== */

body.pm-site {
  background-color: var(--pm-surface-muted);
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -18%, rgba(37, 87, 180, 0.08), transparent 52%),
    radial-gradient(ellipse 45% 30% at 100% 0%, rgba(245, 158, 11, 0.06), transparent 42%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(37, 87, 180, 0.045), transparent 50%);
  overflow-x: clip;
}

.pm-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 8vw, 5.75rem) 1.5rem;
  overflow: hidden;
  background: transparent;
  text-align: center;
  color: var(--pm-white);
}

.pm-hero::before {
  content: none;
}

.pm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    155deg,
    var(--pm-blue-900) 0%,
    #0c2461 38%,
    var(--pm-blue-700) 72%,
    #1a4a8c 100%
  );
}

.pm-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.pm-hero-glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.38;
  pointer-events: none;
}

.pm-hero-glow--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -18%;
  right: -5%;
  background: #fbbf24;
}

.pm-hero-glow--2 {
  width: min(340px, 55vw);
  height: min(340px, 55vw);
  bottom: -15%;
  left: -8%;
  background: #38bdf8;
}

.pm-hero-outer {
  position: relative;
  z-index: 2;
}

.pm-hero-content {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.pm-hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--pm-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pm-hero-accent {
  background: linear-gradient(118deg, #ffffff 0%, #fef3c7 42%, #fbbf24 78%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pm-hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

.pm-hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 6px 36px rgba(0, 0, 0, 0.28);
}

.pm-hero .pm-stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.pm-hero .pm-stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.pm-stats-row--spaced {
  margin-top: 2.5rem;
}

@media (min-width: 769px) {
  .pm-header {
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
}

a:focus-visible,
button:focus-visible,
.pm-tab:focus-visible,
.pm-nav-toggle:focus-visible,
.pm-btn:focus-visible,
.pm-btn-hero:focus-visible,
.pm-btn-download:focus-visible {
  outline: 2px solid var(--pm-gold-400);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--pm-focus-ring-color);
}

::selection {
  background: rgba(245, 158, 11, 0.38);
  color: var(--pm-blue-900);
}

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

  .pm-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .pm-hero .pm-stat-card:hover {
    transform: none;
  }

  .pm-tourism-band__bg {
    filter: none;
    transform: none;
  }
}

html.pm-a11y-reduce-motion *,
html.pm-a11y-reduce-motion *::before,
html.pm-a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

html.pm-a11y-reduce-motion .pm-reveal {
  opacity: 1 !important;
  transform: none !important;
}

html.pm-a11y-reduce-motion .pm-hero .pm-stat-card:hover {
  transform: none;
}

html.pm-a11y-reduce-motion .pm-tourism-band__bg {
  filter: none;
  transform: none;
}

/* --------------------------------------------------------------------------
   Licitações — busca detalhada (referência portal transparência)
   -------------------------------------------------------------------------- */
.pm-busca-detalhada {
  background: linear-gradient(180deg, #eceff3 0%, #e2e6ec 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--pm-radius-lg, 12px);
  padding: 1rem 1.25rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.pm-busca-detalhada__title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-gray-800, #1e293b);
}

.pm-busca-detalhada__form {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.pm-busca-detalhada__grid {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.55rem 0.65rem;
  box-sizing: border-box;
  vertical-align: top;
}

.pm-busca-detalhada__grid--single-row > .pm-field {
  flex: 0 1 auto;
  min-width: 0;
}

.pm-busca-detalhada__field--ano {
  flex: 0 0 5.75rem;
  width: 5.75rem;
}

.pm-busca-detalhada__field--mod {
  flex: 0 0 11rem;
  width: 11rem;
}

.pm-busca-detalhada__field--status {
  flex: 0 0 9rem;
  width: 9rem;
}

.pm-busca-detalhada__field--objeto {
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: 22rem;
}

.pm-busca-detalhada__field--num {
  flex: 0 0 7.5rem;
  width: 7.5rem;
}

.pm-busca-detalhada__field--pp {
  flex: 0 0 5.25rem;
  width: 5.25rem;
}

.pm-busca-detalhada__actions-inline {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.35rem;
  padding-left: 0.15rem;
}

.pm-busca-detalhada__actions-inline .pm-btn-busca-detalhada,
.pm-busca-detalhada__actions-inline .pm-btn-busca-detalhada-reset {
  white-space: nowrap;
}

.pm-busca-detalhada .pm-field label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pm-gray-700, #334155);
}

.pm-busca-detalhada .pm-field select,
.pm-busca-detalhada .pm-field input {
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pm-btn-busca-detalhada {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(165deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pm-radius-md, 8px);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
  transition: var(--pm-transition, 0.15s ease);
}

.pm-btn-busca-detalhada:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.pm-btn-busca-detalhada-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pm-gray-700, #334155);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--pm-radius-md, 8px);
  text-decoration: none;
  transition: var(--pm-transition, 0.15s ease);
}

.pm-btn-busca-detalhada-reset:hover {
  background: var(--pm-gray-50, #f8fafc);
  border-color: var(--pm-gray-400, #94a3b8);
}

.pm-print-only-title {
  display: none;
}

@media print {
  body.pm-page-licitacao-index .pm-topbar,
  body.pm-page-licitacao-index .pm-header,
  body.pm-page-licitacao-index .pm-footer,
  body.pm-page-licitacao-index .pm-busca-detalhada,
  body.pm-page-licitacao-index .pm-list-toolbar,
  body.pm-page-licitacao-index .pm-pagination,
  body.pm-page-licitacao-index .pm-page-header {
    display: none !important;
  }

  body.pm-page-licitacao-index .pm-print-only-title {
    display: block;
    font-size: 1.1rem;
    margin: 0 0 1rem;
    font-weight: 700;
  }

  body.pm-page-licitacao-index .pm-licitacao-item {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* --------------------------------------------------------------------------
   Páginas de erro (HTTP) — layout leve, sem menu completo
   -------------------------------------------------------------------------- */
body.pm-error-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #f0f6ff 0%, #f8fafc 45%, #eef2f7 100%);
}

.pm-error-top {
  background: linear-gradient(90deg, #0a1e4a 0%, #132b5e 100%);
  color: #fff;
  padding: 0.85rem max(1rem, env(safe-area-inset-left, 0px)) 0.85rem max(1rem, env(safe-area-inset-right, 0px));
  box-shadow: 0 2px 12px rgba(10, 30, 74, 0.25);
}

.pm-error-top__inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pm-error-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.pm-error-brand:hover {
  color: #fde68a;
}

.pm-error-brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pm-error-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pm-error-brand__pre {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.pm-error-brand__name {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.pm-error-top__code {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  opacity: 0.35;
}

.pm-error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) max(1rem, env(safe-area-inset-left, 0px)) clamp(2rem, 5vw, 4rem) max(1rem, env(safe-area-inset-right, 0px));
}

.pm-error-card {
  width: min(32rem, 100%);
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pm-error-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.pm-error-card__title {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.pm-error-card__lead {
  font-size: 1rem;
  line-height: 1.55;
  color: #334155;
  margin: 0 0 0.75rem;
}

.pm-error-card__hint {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0 0 1.35rem;
}

.pm-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1.25rem;
}

.pm-error-actions .pm-btn {
  font-size: 0.88rem;
}

.pm-error-search {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pm-error-search__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
}

.pm-error-search__btn {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #0a1e4a;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.pm-error-search__btn:hover {
  filter: brightness(1.08);
}

.pm-error-foot {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  padding: 1rem max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right, 0px));
}

.pm-error-foot p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   PNTP / mapa do site / busca / breadcrumbs
   -------------------------------------------------------------------------- */
.pm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pm-breadcrumb {
  margin: 0 0 0.75rem;
}

.pm-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--pm-muted, #5c6578);
}

.pm-breadcrumb__list li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  opacity: 0.45;
  pointer-events: none;
}

.pm-breadcrumb__list a {
  color: var(--pm-blue-700, #1e3a6e);
}

.pm-breadcrumb__list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* PNTP 2.9 / 2.8 — faixa Radar e redes na home */
.pm-pntp-radar-wrap {
  padding-bottom: 0.35rem;
}

.pm-pntp-radar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: linear-gradient(100deg, #0f766e 0%, #0e7490 55%, #155e75 100%);
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.22);
}

.pm-pntp-radar-logo {
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.pm-pntp-radar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.pm-pntp-radar-link:hover {
  color: #ecfeff;
  text-decoration: underline;
}

.pm-pntp-radar-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.pm-home-social {
  padding: 0.65rem 0 0.25rem;
}

.pm-home-social__title {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--pm-navy-900, #0f172a);
}

.pm-home-social__hint {
  margin: 0;
  font-size: 0.85rem;
}

.pm-social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-social-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--pm-gray-200, #e2e8f0);
  background: var(--pm-white, #fff);
  color: var(--pm-blue-800, #1e3a6e);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.pm-social-chip:hover {
  border-color: var(--pm-blue-300, #93c5fd);
  background: var(--pm-gray-50, #f8fafc);
}

.pm-sic-context {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--pm-gray-200, #e2e8f0);
  background: var(--pm-gray-50, #f8fafc);
}

.pm-sic-context__title {
  font-size: 1rem;
  margin: 0 0 0.65rem;
}

.pm-sic-context__list {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
}

.pm-sic-context__links {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.pm-ouv-presencial {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--pm-gray-200, #e2e8f0);
  background: var(--pm-gray-50, #f8fafc);
}

.pm-ouv-presencial__title {
  font-size: 1rem;
  margin: 0 0 0.65rem;
}

.pm-ouv-presencial__list {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
}

.pm-sic-ac-result__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.pm-sic-ac-form {
  margin-top: 0.5rem;
}

.pm-sic-ac-foot,
.pm-sic-ac-miss {
  margin-top: 1rem;
}

.pm-sic-stats {
  margin: 1.75rem 0 1rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--pm-gray-200, #e2e8f0);
  background: #fff;
}

.pm-sic-stats__title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.pm-sic-stats__sub {
  font-size: 0.95rem;
  margin: 1rem 0 0.4rem;
}

.pm-sic-stats__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0.75rem 0 0;
}

.pm-sic-stats__totals div {
  margin: 0;
}

.pm-sic-stats__totals dt {
  font-size: 0.8rem;
  color: var(--pm-muted, #5c6578);
  margin: 0;
}

.pm-sic-stats__totals dd {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
}

.pm-table-scroll {
  overflow-x: auto;
  margin: 0.5rem 0 0;
}

.pm-table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pm-table-simple th,
.pm-table-simple td {
  border: 1px solid var(--pm-gray-200, #e2e8f0);
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.pm-table-simple th {
  background: var(--pm-gray-50, #f8fafc);
}

.pm-pntp-licit-extras {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(10, 30, 74, 0.12);
  background: linear-gradient(165deg, #f0f6ff 0%, #f8fafc 100%);
}

.pm-pntp-licit-extras__title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--pm-blue-900, #0a1e4a);
}

.pm-pntp-licit-extras__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.pm-pntp-obras-hint {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(10, 30, 74, 0.1);
  background: var(--pm-gray-50, #f8fafc);
}

.pm-pntp-obras-hint__p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--pm-gray-800, #1e293b);
}

.pm-pntp-obras-hint--standalone {
  margin-top: 0.35rem;
}

.pm-site-map__block {
  margin-bottom: 2rem;
}

.pm-site-map__heading {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
  color: var(--pm-blue-900, #0a1e4a);
}

.pm-site-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.pm-site-map__list--dense {
  font-size: 0.92rem;
}

.pm-site-map__list li {
  break-inside: avoid;
  padding: 0.2rem 0;
}

.pm-site-map__list a {
  color: var(--pm-blue-700, #1e3a6e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .pm-site-map__list {
    columns: 1;
  }
}

.pm-topbar-search {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0.15rem;
}

.pm-topbar-search__input {
  width: min(10rem, 28vw);
  min-width: 5.5rem;
  padding: 0.22rem 0.45rem;
  font-size: 0.78rem;
  border-radius: var(--pm-radius-full, 999px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--pm-white, #fff);
}

.pm-topbar-search__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.pm-topbar-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.45rem;
  border-radius: var(--pm-radius-full, 999px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: var(--pm-white, #fff);
  cursor: pointer;
  transition: var(--pm-transition, 0.15s ease);
}

.pm-topbar-search__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.pm-site-search {
  margin: 1.25rem 0 1.5rem;
}

.pm-site-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pm-site-search__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--pm-radius-md, 10px);
  border: 1px solid rgba(10, 30, 74, 0.18);
  font-size: 1rem;
}

.pm-site-search-results__title {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--pm-blue-900, #0a1e4a);
}

.pm-site-search-results__list {
  list-style: disc;
  margin: 0 0 0 1.1rem;
  padding: 0;
}

.pm-site-search-results__list li {
  margin: 0.35rem 0;
}

.pm-site-search-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--pm-card-edge, #e2e8f0);
  border-radius: var(--pm-radius-lg, 12px);
  background: #fff;
  box-shadow: 0 1px 6px rgba(10, 30, 74, 0.05);
}

.pm-site-search-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pm-site-search-table th,
.pm-site-search-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--pm-gray-100, #f1f5f9);
}

.pm-site-search-table th {
  background: var(--pm-gray-50, #f8fafc);
  font-weight: 700;
  color: var(--pm-blue-900, #0a1e4a);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pm-site-search-table tr:last-child td {
  border-bottom: none;
}

.pm-site-search-type {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .pm-site-search-table thead {
    display: none;
  }

  .pm-site-search-table tr {
    display: block;
    border-bottom: 1px solid var(--pm-gray-100, #f1f5f9);
    padding: 0.5rem 0;
  }

  .pm-site-search-table td {
    display: block;
    border: none;
    padding: 0.25rem 0.85rem;
  }

  .pm-site-search-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--pm-gray-600, #475569);
  }
}
