
:root {
  --cm-primary: #0064f2;
  --cm-primary-strong: #0055d8;
  --cm-primary-soft: #eaf2ff;
  --cm-cyan: #00aeef;
  --cm-blue: #2196f3;
  --cm-navy: #0d2856;
  --cm-dark: #071b3a;
  --cm-page-bg: #f5f9ff;
  --cm-border: #dbeafe;
  --cm-muted: #6b7c93;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #1a1a18;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* CONSORMULTI public portal redesign. All selectors are scoped with cm-. */
.cm-public-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cm-page-bg);
  color: #0a1e3d;
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
}

.cm-page {
  background: #f5f9ff;
  padding: 0 0 68px;
}

.cm-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-right: 32px;
  padding-left: 32px;
}

.cm-topbar {
  min-height: 30px;
  display: flex;
  align-items: center;
  background: #0064f2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.cm-topbar-inner,
.cm-topbar-group,
.cm-topbar-link,
.cm-socials {
  display: flex;
  align-items: center;
}

.cm-topbar-inner {
  justify-content: space-between;
  gap: 24px;
}

.cm-topbar-group { gap: 19px; }
.cm-socials { gap: 10px; }
.cm-topbar-link { gap: 6px; opacity: .88; transition: opacity .2s ease, color .2s ease; }
.cm-topbar-link:hover,
.cm-topbar-link:focus-visible { color: #33c0f5; opacity: 1; }
.cm-topbar-dot { width: 5px; height: 5px; border: 1.5px solid currentColor; border-radius: 50%; }
.cm-social-link { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); }

.cm-public-header {
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 9px 30px rgba(13, 40, 86, .09);
}

.cm-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #dde4f0;
  backdrop-filter: blur(14px);
}

.cm-header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(285px, 325px) minmax(0, 1fr) 250px;
  align-items: center;
  gap: 28px;
}

.cm-logo-link { display: inline-flex; align-items: center; gap: 12px; width: min(100%, 325px); }
.cm-logo-img { width: 100%; height: 78px; object-fit: contain; object-position: left center; }
.cm-logo-symbol { width: 58px; height: 58px; flex: 0 0 auto; object-fit: contain; }
.cm-logo-copy { min-width: 0; display: grid; gap: 4px; color: #0d2856; }
.cm-logo-copy strong { font-family: 'Poppins',sans-serif; font-size: 25px; line-height: 1; letter-spacing: .35px; color: #0d2856; }
.cm-logo-copy small { max-width: 230px; color: var(--cm-primary); font-size: 7px; font-weight: 800; line-height: 1.25; text-transform: uppercase; }

.cm-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 1.9vw, 32px); }
.cm-nav-group { position: relative; }
.cm-nav-link {
  min-height: 88px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  color: #0d2856;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.cm-nav-link::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--cm-primary);
  transition: right .2s ease, left .2s ease;
}
.cm-nav-link:hover::after,
.cm-nav-link:focus-visible::after,
.cm-nav-link.is-active::after { right: 0; left: 0; }
.cm-nav-caret { width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); }
.cm-nav-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: -18px;
  min-width: 225px;
  padding: 9px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  border: 1px solid rgba(221,228,240,.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(13,40,86,.22);
  transition: .18s ease;
}
.cm-nav-group:hover .cm-nav-dropdown,
.cm-nav-group:focus-within .cm-nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.cm-nav-dropdown a { display: block; padding: 10px 12px; border-radius: 9px; color: #0d2856; font-size: 12px; font-weight: 800; }
.cm-nav-dropdown a:hover,
.cm-nav-dropdown a:focus-visible { background: #d0f0fc; color: #0a1e3d; }

.cm-search { height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 46px; border: 1px solid #b9c8dc; border-radius: 10px; overflow: hidden; background: #fff; }
.cm-search input { min-width: 0; border: 0; outline: 0; padding: 0 0 0 15px; color: #0a1e3d; background: transparent; font: inherit; font-size: 13px; }
.cm-search button { border: 0; display: grid; place-items: center; background: var(--cm-primary); color: #fff; cursor: pointer; transition: background .22s ease, transform .22s ease; }
.cm-search button:hover,
.cm-search button:focus-visible { background: var(--cm-primary-strong); }
.cm-search:focus-within { border-color: var(--cm-primary); box-shadow: 0 0 0 3px rgba(0,100,242,.14); }
.cm-menu-button { display: none; width: 44px; height: 44px; border: 1px solid #dde4f0; border-radius: 10px; background: #fff; color: #0d2856; cursor: pointer; }
.cm-mobile-menu { display: none; padding: 12px 24px 20px; border-top: 1px solid #dde4f0; background: #fff; }
.cm-mobile-menu a { display: block; padding: 12px 2px; border-bottom: 1px solid #eef2f8; color: #0d2856; font-size: 13px; font-weight: 850; }
.cm-mobile-search { margin: 10px 0; }

.cm-editorial-banner {
  position: relative;
  height: 156px;
  min-height: 156px;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  background: #0064f2;
  box-shadow: 0 14px 34px rgba(13,40,86,.12);
  isolation: isolate;
}
.cm-editorial-banner-bg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.cm-editorial-overlay-content { position: relative; z-index: 3; width: 340px; height: 100%; display: grid; align-content: center; justify-items: start; gap: 5px; padding: 8px 26px; color: #fff; background: linear-gradient(90deg,#0064f2 0%,#0064f2 82%,rgba(0,100,242,.9) 91%,rgba(0,100,242,0) 100%); pointer-events: auto; }
.cm-editorial-overlay-content h2 { max-width: 285px; margin: 0; color: #fff; font-family: 'Poppins',sans-serif; font-size: 25px; font-weight: 800; line-height: .98; letter-spacing: -.55px; }
.cm-editorial-overlay-content p { max-width: 285px; margin: 0; color: rgba(255,255,255,.94); font-size: 12px; font-weight: 700; line-height: 1.28; }
.cm-editorial-badge { width: fit-content; padding: 5px 8px; border-radius: 5px; background: #e91e8c; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .22px; text-transform: uppercase; }
.cm-editorial-cta { position: relative; min-height: 32px; display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; padding: 0 14px; overflow: hidden; border-radius: 999px; background: #fff; color: #0d2856; box-shadow: 0 8px 18px rgba(7,27,58,.16); font-size: 11px; font-weight: 900; transition: transform .22s ease,box-shadow .22s ease,background .22s ease,color .22s ease; }
.cm-editorial-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,100,242,.12),rgba(0,174,239,.18)); opacity: 0; transition: opacity .22s ease; }
.cm-editorial-cta span,
.cm-editorial-cta svg { position: relative; z-index: 1; }
.cm-editorial-cta svg { transition: transform .22s ease; }
.cm-editorial-cta:hover,
.cm-editorial-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 13px 26px rgba(7,27,58,.22); color: #0064f2; }
.cm-editorial-cta:hover::before,
.cm-editorial-cta:focus-visible::before { opacity: 1; }
.cm-editorial-cta:hover svg,
.cm-editorial-cta:focus-visible svg { transform: translateX(3px); }

/* New transparency banner: single image + clickable hotspots over drawn buttons */
.cm-transparency-banner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(13,40,86,.12);
  background: #0d2856;
}
.cm-transparency-banner__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.cm-transparency-banner__hotspot {
  position: absolute;
  z-index: 3;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.cm-transparency-banner__hotspot--portal { left: 62%; top: 62%; width: 16%; height: 22%; }
.cm-transparency-banner__hotspot--ouvidoria { left: 80%; top: 62%; width: 16%; height: 22%; }
.cm-transparency-banner__hotspot:focus-visible { outline: 2px solid #00aeef; outline-offset: 2px; }
.cm-transparency-banner__actions {
  display: none;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fbff;
  border-top: 1px solid #dde4f0;
}
.cm-transparency-banner__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #0d2856;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}
.cm-transparency-banner__btn:hover { background: #0064f2; color: #fff; }

/* screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .cm-transparency-banner__hotspot { display: none; }
  .cm-transparency-banner__actions { display: flex; }
  .cm-transparency-banner { border-radius: 14px; }
}

.cm-news-grid { display: grid; grid-template-columns: minmax(390px,430px) minmax(540px,1fr) minmax(290px,310px); gap: 18px; margin-top: 26px; align-items: stretch; }
.cm-feature-card,
.cm-secondary-card { position: relative; overflow: hidden; color: #fff; background: #0d2856; box-shadow: 0 14px 40px rgba(13,40,86,.16); }
.cm-feature-card { aspect-ratio: auto; height: 386px; min-height: 386px; border-radius: 18px; }
.cm-feature-card > img,
.cm-secondary-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-feature-card > img { object-position: center top; }
.cm-secondary-card > img { object-position: center center; }
.cm-feature-card::after,
.cm-secondary-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(3,16,38,.86) 0%,rgba(3,16,38,.54) 42%,rgba(3,16,38,.10) 100%); }
.cm-card-content { position: absolute; inset: auto 0 0; z-index: 2; padding: 22px 24px 24px; }
.cm-feature-card .cm-card-content { padding: 22px 24px 44px; }
.cm-feature-badge,
.cm-card-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 6px; color: #fff; background: var(--cm-primary); font-size: 8.5px; font-weight: 800; letter-spacing: .22px; text-transform: uppercase; }
.cm-feature-badge { position: absolute; top: 16px; left: 16px; z-index: 3; padding: 6px 10px; }
.cm-card-badge { padding: 4px 7px; }
.cm-feature-title { max-width: 540px; margin: 8px 0; font-family: 'Poppins', sans-serif; font-size: clamp(24px,1.95vw,30px); font-weight: 700; line-height: 1.06; letter-spacing: -.6px; text-shadow: 0 3px 14px rgba(0,0,0,.30); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-card-meta { display: flex; gap: 7px; flex-wrap: wrap; color: rgba(255,255,255,.84); font-size: 10px; font-weight: 600; }
.cm-read-button { margin-top: 12px; display: inline-flex; min-height: 33px; align-items: center; gap: 7px; padding: 0 13px; border-radius: 7px; background: var(--cm-primary); color: #fff; font-size: 10px; font-weight: 800; text-decoration: none; }
.cm-feature-dots { position: absolute; z-index: 4; left: 50%; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; transform: translateX(-50%); }
.cm-feature-dots button { width: 9px; height: 9px; border: 0; padding: 0; border-radius: 999px; background: rgba(255,255,255,.45); box-shadow: 0 1px 6px rgba(0,0,0,.18); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.cm-feature-dots button.is-active { background: var(--cm-primary); }
.cm-feature-dots button:hover,
.cm-feature-dots button:focus-visible { transform: scale(1.08); outline: none; }
.cm-secondary-grid { height: 386px; min-height: 386px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,auto); gap: 14px; }
.cm-secondary-card { aspect-ratio: auto; min-height: 0; height: 100%; border-radius: 14px; }
.cm-secondary-card .cm-card-content { padding: 14px 15px 15px; }
.cm-secondary-card h3 { margin: 7px 0; font-family: 'Poppins', sans-serif; font-size: clamp(13.5px,1vw,16px); font-weight: 700; line-height: 1.12; letter-spacing: -.2px; text-shadow: 0 2px 10px rgba(0,0,0,.25); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-secondary-card .cm-card-meta { font-size: 9.5px; font-weight: 600; }
.cm-card-number { position: absolute; top: 11px; left: 11px; z-index: 3; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 850; }
.cm-plantao { height: 386px; min-height: 386px; overflow: hidden; border: 1px solid #dde4f0; border-radius: 15px; background: #fff; box-shadow: 0 14px 40px rgba(13,40,86,.12); }
.cm-plantao-header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; color: #0d2856; background: #fff; border-bottom: 3px solid var(--cm-primary); }
.cm-plantao-header h3 { margin: 0; font-family: 'Poppins',sans-serif; font-size: 17px; }
.cm-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #f44336; box-shadow: 0 0 0 5px rgba(244,67,54,.13); }
.cm-plantao-list { padding: 0 16px; }
.cm-plantao-item { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #dde4f0; }
.cm-plantao-item time { color: var(--cm-primary); font-size: 11px; font-weight: 950; }
.cm-plantao-item strong { color: #0a1e3d; font-size: 12px; line-height: 1.28; }
.cm-plantao-more { display: inline-flex; align-items: center; gap: 5px; padding: 10px 16px 12px; color: var(--cm-primary); font-size: 11px; font-weight: 950; }

.cm-additional-news { margin-top: 18px; padding: 20px; border: 1px solid #e2e9f3; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(13,40,86,.08); }
.cm-additional-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.cm-additional-head h2 { margin: 0; color: #0d2856; font-family: 'Poppins',sans-serif; font-size: 17px; }
.cm-additional-head p { margin: 3px 0 0; color: #8fa3c0; font-size: 10px; }
.cm-additional-head a { color: #00aeef; font-size: 10px; font-weight: 900; }
.cm-additional-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.cm-additional-card { overflow: hidden; border: 1px solid #e2e9f3; border-radius: 13px; background: #fff; box-shadow: 0 8px 20px rgba(13,40,86,.07); transition: transform .26s ease, box-shadow .26s ease; }
.cm-additional-media { aspect-ratio: auto; height: 145px; position: relative; overflow: hidden; background: #0d2856; }
.cm-additional-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(3,16,38,.58),transparent 60%); }
.cm-additional-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cm-additional-badge { position: absolute; left: 9px; bottom: 9px; z-index: 2; padding: 4px 8px; border-radius: 5px; color: #fff; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.cm-additional-body { min-height: 90px; display: grid; align-content: start; gap: 7px; padding: 12px; }
.cm-additional-body h3 { margin: 0; color: #0a1e3d; font-family: 'Poppins',sans-serif; font-size: 11px; line-height: 1.34; }
.cm-additional-body small { color: #8fa3c0; font-size: 9px; font-weight: 650; }
.cm-additional-card:hover,
.cm-additional-card:focus-within { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(13,40,86,.15); }
.cm-additional-card:hover img,
.cm-additional-card:focus-within img { transform: scale(1.055); }

.cm-chip-row { display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; padding: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.cm-chip-row::-webkit-scrollbar { display: none; }
.cm-chip { min-height: 42px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 0 18px 0 10px; border: 1px solid rgba(13,40,86,.1); border-radius: 999px; background: #fff; color: #0d2856; box-shadow: 0 8px 22px rgba(13,40,86,.07); font-family: 'Poppins',sans-serif; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; scroll-snap-align: start; transition: transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease; }
.cm-chip:hover,
.cm-chip:focus-visible { transform: translateY(-2px); border-color: rgba(0,100,242,.32); box-shadow: 0 12px 28px rgba(13,40,86,.12); }
.cm-chip.is-active { border-color: #0064f2; color: #fff; background: #0064f2; }
.cm-chip-icon { width: 25px; height: 25px; display: grid; flex: 0 0 25px; place-items: center; border-radius: 999px; color: #fff; }
.cm-chip-icon svg { width: 14px; height: 14px; display: block; fill: none; }

.cm-institutional-banner { min-height: 300px; display: grid; align-items: center; position: relative; overflow: hidden; margin-top: 24px; border-radius: 18px; color: #fff; background: #071b3a; box-shadow: 0 22px 60px rgba(13,40,86,.22); }
.cm-institutional-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cm-institutional-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(3,16,38,.98) 0%,rgba(3,16,38,.9) 36%,rgba(3,16,38,.25) 78%); }
.cm-banner-shapes { position: absolute; left: 18px; bottom: -15px; z-index: 2; width: 150px; height: 170px; opacity: .82; }
.cm-banner-shapes span { position: absolute; width: 72px; height: 72px; clip-path: polygon(0 50%,100% 0,100% 100%); }
.cm-institutional-copy { position: relative; z-index: 3; max-width: 620px; padding: 44px 50px 44px 190px; }
.cm-institutional-copy small { color: #00aeef; font-weight: 950; letter-spacing: .5px; }
.cm-institutional-copy h2 { margin: 8px 0 12px; font-family: 'Poppins',sans-serif; font-size: clamp(28px,3vw,43px); line-height: 1.04; }
.cm-institutional-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.65; }
.cm-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cm-banner-button { min-height: 40px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; color: #fff; font-size: 11px; font-weight: 900; }
.cm-banner-button.primary { border-color: #00aeef; background: #00aeef; }

.cm-results-section { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); min-height: 320px; overflow: hidden; margin-top: 26px; border: 1px solid #dde4f0; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(13,40,86,.11); }
.cm-results-visual { min-height: 320px; position: relative; overflow: hidden; background: #0d2856; }
.cm-results-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cm-results-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(13,40,86,.12),rgba(13,40,86,.36)); }
.cm-results-section:hover .cm-results-visual img { transform: scale(1.025); }
.cm-results-copy { display: grid; align-content: center; padding: 38px 42px; }
.cm-results-copy > small { color: #00aeef; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.cm-results-copy h2 { margin: 7px 0 12px; color: #0d2856; font-family: 'Poppins',sans-serif; font-size: clamp(26px,2.6vw,39px); line-height: 1.08; }
.cm-results-copy > p { margin: 0; color: #607896; font-size: 12px; line-height: 1.65; }
.cm-results-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 24px; }
.cm-result-stat { padding: 13px 9px; border-radius: 12px; background: #f5f8ff; text-align: center; }
.cm-result-stat b { display: block; color: #0d2856; font-family: 'Poppins',sans-serif; font-size: 22px; }
.cm-result-stat span { color: #8fa3c0; font-size: 8px; font-weight: 700; text-transform: uppercase; }

.cm-areas-section { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 22px; align-items: stretch; margin: 18px 0; padding: 0; }
.cm-areas-copy { min-width: 0; display: grid; align-content: center; gap: 10px; }
.cm-areas-copy small { color: #0064f2; font-family: 'Poppins',sans-serif; font-size: 10px; font-weight: 900; line-height: 1; }
.cm-areas-copy h2 { margin: 0; color: #0064f2; font-family: 'Poppins',sans-serif; font-size: 28px; font-weight: 900; line-height: .92; letter-spacing: -.9px; text-transform: uppercase; }
.cm-areas-copy p { margin: 0; color: #587096; font-size: 11px; font-weight: 500; line-height: 1.45; }
.cm-areas-copy a { width: fit-content; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 7px; background: #0ea5ff; color: #fff; box-shadow: 0 8px 18px rgba(0,100,242,.16); font-size: 10px; font-weight: 900; }
.cm-area-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 12px; }
.cm-area-card { min-height: 132px; display: grid; align-content: center; justify-items: center; gap: 10px; overflow: hidden; padding: 16px 10px; border-radius: 13px; color: #fff; text-align: center; box-shadow: 0 16px 30px rgba(13,40,86,.12); transition: transform .22s ease,box-shadow .22s ease,filter .22s ease; }
.cm-area-card:hover,
.cm-area-card:focus-visible { transform: translateY(-3px); box-shadow: 0 22px 40px rgba(13,40,86,.17); filter: brightness(1.03); }
.cm-area-card .cm-area-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.42); border-radius: 11px; background: rgba(255,255,255,.12); color: #fff; }
.cm-area-card .cm-area-icon svg { width: 26px; height: 26px; }
.cm-area-card strong { max-width: 104px; margin: 0; color: #fff; font-family: 'Poppins',sans-serif; font-size: 11px; font-weight: 800; line-height: 1.1; letter-spacing: -.15px; }

.cm-ribbon { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); gap: 2px; overflow: hidden; margin-top: 26px; border: 1px solid #dde4f0; border-radius: 16px; background: #dde4f0; box-shadow: 0 10px 30px rgba(13,40,86,.08); }
.cm-ribbon-card { min-height: 106px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; background: linear-gradient(135deg,#fff,#f3f8ff); }
.cm-ribbon-card.compact { grid-template-columns: 52px minmax(0,1fr); }
.cm-ribbon-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #0d2856; background: #d0f0fc; }
.cm-ribbon h3 { margin: 0 0 4px; color: #0d2856; font-family: 'Poppins',sans-serif; font-size: 15px; }
.cm-ribbon p { margin: 0; color: #607896; font-size: 11px; line-height: 1.45; }
.cm-ribbon a { color: #00aeef; font-size: 10px; font-weight: 950; }
.cm-ribbon-button { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 7px; color: #fff !important; background: #0d2856; white-space: nowrap; }

.cm-latest-section,
.cm-municipality-section,
.cm-notices-quick { margin-top: 26px; padding: 20px; border: 1px solid #e2e9f3; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 10px 30px rgba(13,40,86,.08); }
.cm-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.cm-section-head h2 { margin: 0; color: #0d2856; font-family: 'Poppins',sans-serif; font-size: 15px; letter-spacing: .2px; text-transform: uppercase; }
.cm-section-head a { color: #00aeef; font-size: 10px; font-weight: 950; }
.cm-latest-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.cm-latest-card { overflow: hidden; border: 1px solid #e2e9f3; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(13,40,86,.07); transition: transform .2s ease, box-shadow .2s ease; }
.cm-latest-card:hover,
.cm-latest-card:focus-within { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(13,40,86,.14); }
.cm-latest-image { aspect-ratio: auto; height: 108px; position: relative; overflow: hidden; background: #0d2856; }
.cm-latest-image img { width: 100%; height: 100%; object-fit: cover; }
.cm-latest-badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; border-radius: 5px; color: #fff; font-size: 8px; font-weight: 950; text-transform: uppercase; }
.cm-latest-body { min-height: 118px; display: grid; align-content: start; gap: 6px; padding: 10px; }
.cm-latest-body h3 { margin: 0; color: #0a1e3d; font-size: 11px; line-height: 1.35; }
.cm-latest-body small { color: #8fa3c0; font-size: 9px; font-weight: 750; }
.cm-latest-body b { color: #00aeef; font-size: 9px; }

.cm-municipality-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.cm-municipality-card { overflow: hidden; position: relative; border: 1px solid #e2e9f3; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(13,40,86,.08); transition: transform .2s ease; }
.cm-municipality-card:hover,
.cm-municipality-card:focus-within { transform: translateY(-4px); }
.cm-municipality-photo { height: 142px; overflow: hidden; background: #eef2f8; }
.cm-municipality-photo img { width: 100%; height: 100%; object-fit: cover; }
.cm-municipality-seal { position: absolute; top: 115px; left: 12px; width: 49px; height: 49px; display: grid; place-items: center; overflow: hidden; border: 4px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 8px 20px rgba(13,40,86,.2); }
.cm-municipality-seal img { max-width: 35px; max-height: 35px; object-fit: contain; }
.cm-municipality-body { min-height: 78px; padding: 24px 12px 12px; text-align: center; }
.cm-municipality-body strong { display: block; color: #0d2856; font-size: 12px; }
.cm-municipality-body small { color: #8fa3c0; font-size: 9px; }

.cm-municipality-section.is-featured { padding: 28px; background: linear-gradient(145deg,#fff 0%,#f3f8ff 100%); }
.cm-municipality-section.is-featured .cm-section-head { align-items: end; margin-bottom: 22px; }
.cm-municipality-section.is-featured .cm-section-head h2 { font-size: 22px; text-transform: none; }
.cm-municipality-intro { max-width: 610px; margin: 5px 0 0; color: #607896; font-size: 11px; line-height: 1.55; }
.cm-municipality-section.is-featured .cm-municipality-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
.cm-municipality-section.is-featured .cm-municipality-photo { height: 185px; }
.cm-municipality-section.is-featured .cm-municipality-seal { top: 153px; width: 58px; height: 58px; }
.cm-municipality-section.is-featured .cm-municipality-seal img { max-width: 40px; max-height: 40px; }
.cm-municipality-section.is-featured .cm-municipality-body { min-height: 92px; padding-top: 31px; }
.cm-municipality-section.is-featured .cm-municipality-body strong { font-size: 14px; }

.cm-notices-quick { display: grid; grid-template-columns: 1fr 1.06fr; gap: 16px; background: transparent; border: 0; box-shadow: none; padding: 0; }
.cm-notices,
.cm-quick-links { padding: 20px; border: 1px solid #e2e9f3; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(13,40,86,.08); }
.cm-panel-title { margin: 0 0 14px; color: #0d2856; font-family: 'Poppins',sans-serif; font-size: 14px; }
.cm-notice-list { display: grid; }
.cm-notice-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef2f8; }
.cm-notice-item:last-child { border-bottom: 0; }
.cm-notice-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #fff; }
.cm-notice-item strong { display: block; color: #0a1e3d; font-size: 11px; line-height: 1.35; }
.cm-notice-item small { color: #8fa3c0; font-size: 9px; }
.cm-notice-item > a { color: #00aeef; font-size: 9px; font-weight: 950; white-space: nowrap; }
.cm-quick-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.cm-quick-tile { min-height: 112px; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 9px; border: 1px solid #eef2f8; border-radius: 12px; background: #f9fbff; text-align: center; box-shadow: 0 7px 18px rgba(13,40,86,.05); transition: transform .2s ease, background .2s ease; }
.cm-quick-tile:hover,
.cm-quick-tile:focus-visible { transform: translateY(-4px); background: #fff; }
.cm-quick-tile span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; }
.cm-quick-tile strong { color: #0d2856; font-size: 9px; line-height: 1.25; }

.cm-admin-notices-panel { display: grid; gap: 18px; }
.cm-admin-notices-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cm-admin-notices-layout { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr); gap: 18px; align-items: start; }
.cm-admin-notices-form,
.cm-admin-notices-list { display: grid; gap: 12px; min-width: 0; }
.cm-admin-notices-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cm-admin-notices-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cm-admin-notices-message { padding: 10px 14px; border: 1px solid #d7e4f2; border-radius: 12px; background: #f3f8ff; color: #0d2856; font-size: 13px; font-weight: 850; }
.cm-admin-notices-item,
.cm-admin-notices-source-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid #e2e9f3; border-radius: 14px; background: #fff; }
.cm-admin-notices-item.is-archived { background: #f8fafc; opacity: .74; }
.cm-admin-notices-item small,
.cm-admin-notices-source-item small { display: block; margin-bottom: 5px; color: #607896; font-size: 11px; font-weight: 850; }
.cm-admin-notices-item strong,
.cm-admin-notices-source-item strong { display: block; color: #0d2856; font-weight: 900; line-height: 1.28; }
.cm-admin-notices-item span { display: block; margin-top: 4px; color: #607896; font-size: 12px; line-height: 1.45; }
.cm-admin-notices-item-actions,
.cm-admin-notices-source-list { display: grid; gap: 8px; }
.cm-admin-notices-item-actions { grid-template-columns: repeat(2,minmax(0,auto)); justify-content: end; }
.cm-admin-notices-item-actions button,
.cm-admin-notices-source-item button { min-height: 34px; padding: 0 10px; border: 1px solid #d7e4f2; border-radius: 10px; background: #f9fbff; color: #0d2856; font-size: 11px; font-weight: 900; cursor: pointer; }
.cm-admin-notices-item-actions button:disabled,
.cm-admin-notices-source-item button:disabled { opacity: .48; cursor: default; }
.cm-admin-notices-sources { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }

.cm-home-bottom { display: grid; grid-template-columns: 1.35fr 1.1fr .9fr .85fr; gap: 14px; align-items: stretch; margin: 0 0 24px; }
.cm-home-bottom > .cm-latest-section,
.cm-home-bottom > .cm-municipality-section { min-width: 0; min-height: 250px; overflow: hidden; margin: 0; padding: 0; border: 1px solid rgba(13,40,86,.1); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(13,40,86,.07); }
.cm-home-bottom > .cm-notices-quick { display: contents; }
.cm-home-bottom .cm-notices,
.cm-home-bottom .cm-quick-links { min-width: 0; min-height: 250px; overflow: hidden; margin: 0; padding: 0; border: 1px solid rgba(13,40,86,.1); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(13,40,86,.07); }
.cm-home-bottom .cm-section-head,
.cm-home-bottom .cm-card-section-head { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 16px 8px; }
.cm-home-bottom .cm-section-head h2,
.cm-home-bottom .cm-card-section-head h2 { margin: 0; color: #0d2856; font-family: 'Poppins',sans-serif; font-size: 14px; font-weight: 900; line-height: 1; text-transform: none; }
.cm-home-bottom .cm-section-head a,
.cm-home-bottom .cm-card-section-head a { color: #0ea5ff; font-size: 10px; font-weight: 900; white-space: nowrap; }
.cm-home-bottom .cm-latest-grid { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cm-home-bottom .cm-latest-card { min-width: 128px; max-width: 128px; flex: 0 0 128px; overflow: hidden; border: 1px solid rgba(13,40,86,.1); border-radius: 10px; background: #fff; box-shadow: 0 8px 18px rgba(13,40,86,.06); scroll-snap-align: start; }
.cm-home-bottom .cm-latest-image { aspect-ratio: auto; height: 96px; }
.cm-home-bottom .cm-latest-badge { left: 7px; bottom: 7px; padding: 3px 6px; border-radius: 4px; font-size: 7px; font-weight: 900; }
.cm-home-bottom .cm-latest-body { min-height: 112px; display: grid; align-content: start; gap: 6px; padding: 9px; }
.cm-home-bottom .cm-latest-body h3 { margin: 0; font-size: 10px; font-weight: 800; line-height: 1.28; }
.cm-home-bottom .cm-latest-body small { color: #8fa3c0; font-size: 9px; font-weight: 700; }
.cm-home-bottom .cm-latest-body b { color: #0ea5ff; font-size: 9px; font-weight: 900; }
.cm-home-bottom .cm-municipality-grid { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cm-home-bottom .cm-municipality-card { min-width: 136px; max-width: 136px; flex: 0 0 136px; overflow: hidden; position: relative; border: 1px solid rgba(13,40,86,.1); border-radius: 10px; background: #fff; box-shadow: 0 8px 18px rgba(13,40,86,.06); text-align: center; scroll-snap-align: start; }
.cm-municipality-main-link { display: block; color: inherit; text-decoration: none; }
.cm-home-bottom .cm-municipality-photo { height: 96px; overflow: visible; background: #eaf2ff; }
.cm-home-bottom .cm-municipality-seal { top: 78px; left: 50%; width: 38px; height: 38px; transform: translateX(-50%); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(13,40,86,.14); }
.cm-home-bottom .cm-municipality-seal img { max-width: 27px; max-height: 27px; }
.cm-home-bottom .cm-municipality-body { min-height: 74px; padding: 24px 8px 12px; }
.cm-home-bottom .cm-municipality-body strong { display: block; color: #0d2856; font-size: 11px; font-weight: 900; line-height: 1.22; }
.cm-home-bottom .cm-municipality-body small { display: block; margin-top: 7px; color: #8fa3c0; font-size: 9px; font-weight: 700; }
.cm-city-instagram { width: 22px; height: 22px; display: grid; place-items: center; margin: 6px auto 8px; border-radius: 999px; background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); color: #fff; box-shadow: 0 6px 14px rgba(221,42,123,.22); transition: transform .2s ease,box-shadow .2s ease; }
.cm-city-instagram:hover,
.cm-city-instagram:focus-visible { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 20px rgba(221,42,123,.3); }
.cm-city-instagram svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.cm-home-bottom .cm-latest-grid,
.cm-home-bottom .cm-municipality-grid { scrollbar-width: none; }
.cm-home-bottom .cm-latest-grid::-webkit-scrollbar,
.cm-home-bottom .cm-municipality-grid::-webkit-scrollbar { display: none; }
.cm-home-bottom .cm-latest-grid.is-marquee,
.cm-home-bottom .cm-municipality-grid.is-marquee { width: max-content; min-width: 100%; overflow: visible; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
.cm-home-bottom .cm-latest-grid.is-marquee { animation-name: cmLatestRail; animation-duration: 46s; }
.cm-home-bottom .cm-municipality-grid.is-marquee { animation-name: cmMunicipalityRail; animation-duration: 52s; }
.cm-home-bottom .cm-latest-section:hover .cm-latest-grid.is-marquee,
.cm-home-bottom .cm-latest-section:focus-within .cm-latest-grid.is-marquee,
.cm-home-bottom .cm-municipality-section:hover .cm-municipality-grid.is-marquee,
.cm-home-bottom .cm-municipality-section:focus-within .cm-municipality-grid.is-marquee { animation-play-state: paused; }
@keyframes cmLatestRail { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes cmMunicipalityRail { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.cm-home-bottom .cm-notice-list { display: grid; gap: 0; padding: 0 16px 12px; }
.cm-home-bottom .cm-notice-item { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 66px; padding: 10px 0; border-bottom: 1px solid rgba(13,40,86,.08); }
.cm-home-bottom .cm-notice-item:last-child { border-bottom: 0; }
.cm-home-bottom .cm-notice-icon { width: 38px; height: 38px; border-radius: 10px; }
.cm-home-bottom .cm-notice-item:nth-child(1) .cm-notice-icon { background: #e91e8c; }
.cm-home-bottom .cm-notice-item:nth-child(2) .cm-notice-icon { background: #0ea5ff; }
.cm-home-bottom .cm-notice-item:nth-child(3) .cm-notice-icon { background: #7c4dbe; }
.cm-home-bottom .cm-notice-item strong { margin: 0; color: #0a1e3d; font-size: 11px; font-weight: 850; line-height: 1.25; }
.cm-home-bottom .cm-notice-item small { display: block; margin-top: 4px; color: #8fa3c0; font-size: 9px; font-weight: 700; }
.cm-home-bottom .cm-notice-item > a { color: #0ea5ff; font-size: 9px; font-weight: 900; white-space: nowrap; }
.cm-home-bottom .cm-quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 14px 14px; }
.cm-home-bottom .cm-quick-tile { min-height: 76px; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 9px 6px; border: 1px solid rgba(13,40,86,.08); border-radius: 10px; background: #fff; color: #0d2856; text-align: center; box-shadow: 0 8px 18px rgba(13,40,86,.05); transition: transform .2s ease,box-shadow .2s ease; }
.cm-home-bottom .cm-quick-tile:hover,
.cm-home-bottom .cm-quick-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(13,40,86,.12); }
.cm-home-bottom .cm-quick-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; }
.cm-home-bottom .cm-quick-tile strong { color: #0d2856; font-size: 9px; font-weight: 850; line-height: 1.15; }
.cm-home-bottom .cm-quick-tile:nth-child(1) .cm-quick-icon { background: #f44336; }
.cm-home-bottom .cm-quick-tile:nth-child(2) .cm-quick-icon { background: #0ea5ff; }
.cm-home-bottom .cm-quick-tile:nth-child(3) .cm-quick-icon { background: #5abb18; }
.cm-home-bottom .cm-quick-tile:nth-child(4) .cm-quick-icon { background: #2196f3; }
.cm-home-bottom .cm-quick-tile:nth-child(5) .cm-quick-icon { background: #e91e8c; }
.cm-home-bottom .cm-quick-tile:nth-child(6) .cm-quick-icon { background: #00a88e; }

.cm-more-news-actions { display: flex; justify-content: center; margin: 18px 0; }
.cm-more-news-button { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 20px; border: 0; border-radius: 999px; background: #0064f2; color: #fff; font-family: 'Poppins',sans-serif; font-size: 12px; font-weight: 900; cursor: pointer; box-shadow: 0 12px 28px rgba(0,100,242,.22); transition: transform .22s ease,box-shadow .22s ease,background .22s ease; }
.cm-more-news-button:hover,
.cm-more-news-button:focus-visible { transform: translateY(-2px); background: #0055d8; box-shadow: 0 16px 34px rgba(0,100,242,.28); }
.cm-more-news-button span { transition: transform .22s ease; }
.cm-more-news-button:hover span,
.cm-more-news-button:focus-visible span { transform: translateY(2px); }
.cm-extra-news-reveal { overflow: hidden; margin-bottom: 30px; animation: cmRevealNews .32s ease both; }
.cm-extra-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
  padding-top: 8px;
  margin-bottom: 12px;
}
.cm-extra-news-grid:empty { display: none; }
.cm-extra-news-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform .22s ease,box-shadow .22s ease; }
.cm-extra-news-card:hover,
.cm-extra-news-card:focus-visible { transform: scale(1.02); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.cm-extra-news-card img { width: 100%; aspect-ratio: auto; height: 135px; object-fit: cover; object-position: center center; }
.cm-extra-news-card span { display: inline-flex; margin: 16px 16px 8px; padding: 4px 10px; border-radius: 4px; background: var(--cm-pt-brand); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cm-extra-news-card strong { display: block; margin: 0 16px; color: #1e293b; font-size: 16px; font-weight: 700; line-height: 1.3; }
.cm-extra-news-card small { display: block; margin: 12px 16px 16px; color: #64748b; font-size: 12px; font-weight: 500; }
@keyframes cmRevealNews { from { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: translateY(0); clip-path: inset(0); } }

.cm-map-section { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1fr); gap: 44px; align-items: center; margin: 34px 0 30px; }
.cm-map-art-card { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(13,40,86,.12); }
.cm-map-art-card img { display: block; width: 100%; height: auto; }
.cm-map-copy > span { display: inline-flex; padding: 9px 18px; border-radius: 0 10px 10px 0; background: #eaf2ff; color: #0064f2; font-size: 13px; font-weight: 900; }
.cm-map-copy h2 { max-width: 620px; margin: 22px 0 18px; color: #0a1e3d; font-family: 'Poppins',sans-serif; font-size: clamp(36px,4vw,64px); font-weight: 900; line-height: .98; letter-spacing: -1.8px; }
.cm-map-copy h2 strong { color: #0064f2; }
.cm-map-copy p { max-width: 650px; margin: 0; color: #334866; font-size: 18px; line-height: 1.65; }
.cm-map-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 34px; }
.cm-map-stats div { border-right: 1px solid rgba(13,40,86,.16); }
.cm-map-stats div:last-child { border-right: 0; }
.cm-map-stats strong { display: block; color: #0064f2; font-size: 34px; font-weight: 900; line-height: 1; }
.cm-map-stats small { display: block; margin-top: 8px; color: #334866; font-size: 14px; line-height: 1.25; }

.cm-floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 80; min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 999px; background: #25d366; color: #fff; font-family: 'Poppins',sans-serif; font-size: 13px; font-weight: 900; box-shadow: 0 16px 40px rgba(37,211,102,.35); transition: transform .22s ease,box-shadow .22s ease,filter .22s ease; }
.cm-floating-whatsapp:hover,
.cm-floating-whatsapp:focus-visible { transform: translateY(-3px); filter: brightness(1.04); box-shadow: 0 20px 48px rgba(37,211,102,.42); }
.cm-floating-whatsapp svg { width: 21px; height: 21px; fill: currentColor; }

.cm-footer { margin-top: 0; color: #fff; background: linear-gradient(90deg,#0064f2 0%,#006ef5 100%); }
.cm-footer-main { display: grid; grid-template-columns: 1.25fr repeat(4,minmax(0,1fr)); gap: 34px; padding-top: 46px; padding-bottom: 38px; }
.cm-footer-brand img { width: 260px; height: 66px; object-fit: contain; object-position: left center; }
.cm-footer-brand-mark { display: flex; align-items: center; gap: 10px; }
.cm-footer-brand-mark { width: fit-content; padding: 8px 12px; border-radius: 12px; background: #fff; }
.cm-footer-brand-mark img,
.cm-footer-logo { width: min(220px,100%); height: auto; max-height: 72px; flex: 0 0 auto; object-fit: contain; }
.cm-footer-brand-mark strong { color: #fff; font-family: 'Poppins',sans-serif; font-size: 22px; letter-spacing: .5px; }
.cm-footer-brand p { max-width: 300px; margin: 18px 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.65; }
.cm-footer-socials { display: flex; gap: 9px; }
.cm-footer-socials a { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: rgba(13,40,86,.25); }
.cm-footer-column h3 { margin: 0 0 16px; color: #fff; font-family: 'Poppins',sans-serif; font-size: 13px; }
.cm-footer-column a,
.cm-footer-column span { display: block; margin: 9px 0; color: rgba(255,255,255,.7); font-size: 10px; line-height: 1.45; }
.cm-footer-column a:hover,
.cm-footer-column a:focus-visible { color: #33c0f5; }
.cm-footer-bottom { border-top: 1px solid rgba(255,255,255,.34); }
.cm-footer-bottom-inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.55); font-size: 9px; }
.cm-footer-legal { display: flex; gap: 18px; }

.cm-empty { min-height: 180px; display: grid; place-items: center; padding: 24px; border: 1px dashed #b9c8dc; border-radius: 16px; color: #607896; background: #fff; text-align: center; }

.cm-feature-card > img,
.cm-secondary-card > img,
.cm-latest-image img,
.cm-municipality-photo img { transition: transform .3s ease; }
.cm-feature-card,
.cm-secondary-card { transition: transform .28s ease, box-shadow .28s ease; will-change: transform; }
.cm-feature-card > img,
.cm-secondary-card > img { will-change: transform; }
.cm-feature-card:hover,
.cm-feature-card:focus-visible,
.cm-secondary-card:hover,
.cm-secondary-card:focus-visible { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(13,40,86,.24); }
.cm-feature-card:hover > img,
.cm-feature-card:focus-visible > img,
.cm-secondary-card:hover > img,
.cm-secondary-card:focus-visible > img { transform: scale(1.045); }
.cm-latest-card:hover .cm-latest-image img,
.cm-latest-card:focus-within .cm-latest-image img,
.cm-municipality-card:hover .cm-municipality-photo img,
.cm-municipality-card:focus-within .cm-municipality-photo img { transform: scale(1.055); }
.cm-read-button,
.cm-banner-button,
.cm-ribbon-button,
.cm-section-intro a { transition: transform .22s ease, filter .22s ease, box-shadow .22s ease; }
.cm-read-button:hover,
.cm-banner-button:hover,
.cm-ribbon-button:hover,
.cm-section-intro a:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 20px rgba(13,40,86,.16); }

.cm-public-shell a:focus-visible,
.cm-public-shell button:focus-visible,
.cm-public-shell input:focus-visible { outline: 3px solid rgba(0,174,239,.55); outline-offset: 3px; }

@media (max-width: 1180px) {
  .cm-container { padding-right: 28px; padding-left: 28px; }
  .cm-header-inner { min-height: 84px; grid-template-columns: minmax(220px,1fr) auto auto; }
  .cm-logo-img { height: 64px; }
  .cm-logo-symbol { width: 54px; height: 54px; }
  .cm-logo-copy strong { font-size: 22px; }
  .cm-nav { display: none; }
  .cm-menu-button { display: grid; place-items: center; }
  .cm-mobile-menu { display: grid; }
  .cm-editorial-banner { height: 150px; min-height: 150px; }
  .cm-editorial-banner-bg { width: 190%; left: -45%; }
  .cm-editorial-overlay-content { width: 315px; padding: 8px 22px; }
  .cm-editorial-overlay-content h2 { font-size: 22px; }
  .cm-news-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .cm-feature-card { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .cm-secondary-grid { height: auto; min-height: auto; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; gap: 14px; }
  .cm-secondary-card { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .cm-plantao { height: auto; min-height: auto; }
  .cm-plantao-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .cm-additional-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cm-results-section { grid-template-columns: 1fr; }
  .cm-results-visual { min-height: 290px; }
  .cm-areas-section { grid-template-columns: 1fr; }
  .cm-area-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .cm-latest-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .cm-latest-card { min-width: 205px; scroll-snap-align: start; }
  .cm-municipality-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cm-municipality-section.is-featured .cm-municipality-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cm-quick-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cm-home-bottom { grid-template-columns: 1fr 1fr; }
  .cm-home-bottom > .cm-notices-quick { grid-column: 1 / -1; }
  .cm-footer-main { grid-template-columns: 1.2fr repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .cm-page { padding-top: 0; }
  .cm-container { padding-right: 18px; padding-left: 18px; }
  .cm-topbar { min-height: 30px; }

  /* Garantir que Últimas notícias apareça ANTES de Links rápidos no mobile */
  .cm-home-bottom .cm-latest-section { order: 1; }
  .cm-home-bottom .cm-notices-quick { order: 2; }
  .cm-topbar-inner { overflow-x: auto; }
  .cm-topbar-group { gap: 14px; flex: 0 0 auto; }
  .cm-topbar-group.secondary { display: none; }
  .cm-header { position: relative; }
  .cm-header-inner { min-height: 72px; grid-template-columns: minmax(0,1fr); gap: 12px; padding-right: 76px; }
  .cm-logo-link { width: 230px; }
  .cm-logo-img { height: 56px; }
  .cm-logo-symbol { width: 44px; height: 44px; }
  .cm-logo-copy strong { font-size: 18px; }
  .cm-logo-copy small { display: none; }
  .cm-header-inner > .cm-search { display: none; }
  .cm-menu-button { position: absolute; top: 14px; right: 18px; z-index: 3; }
  .cm-editorial-banner { height: 220px; min-height: 220px; border-radius: 15px; }
  .cm-editorial-banner-bg { width: 520%; left: -210%; }
  .cm-editorial-overlay-content { width: 100%; max-width: 285px; padding: 20px; align-content: start; }
  .cm-editorial-overlay-content h2 { font-size: 21px; line-height: 1; }
  .cm-editorial-overlay-content p { font-size: 11px; }
  .cm-news-grid { margin-top: 14px; gap: 14px; }
  .cm-feature-card { aspect-ratio: auto; height: 335px; min-height: 335px; border-radius: 14px; }
  .cm-card-content { padding: 20px; }
  .cm-feature-card .cm-card-content { padding: 16px 16px 48px; }
  .cm-feature-title { font-size: 21px; font-weight: 700; line-height: 1.1; }
  .cm-feature-dots { bottom: 12px; }
  .cm-secondary-grid { display: grid; grid-template-columns: 1fr; gap: 12px; height: auto; min-height: auto; overflow: visible; padding-bottom: 0; }
  .cm-secondary-card { min-width: 0; width: 100%; aspect-ratio: auto; height: 175px; min-height: 175px; border-radius: 12px; scroll-snap-align: initial; }
  .cm-secondary-card h3 { font-size: 15px; font-weight: 700; line-height: 1.15; }
  .cm-plantao-list { grid-template-columns: 1fr; }
  .cm-chip-row { gap: 10px; margin: 14px 0 10px; }
  .cm-chip { min-height: 38px; padding: 0 14px 0 8px; font-size: 11px; }
  .cm-chip-icon { width: 23px; height: 23px; flex-basis: 23px; }
  .cm-additional-news { padding: 16px; }
  .cm-additional-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-additional-media { height: 120px; aspect-ratio: auto; }
  .cm-results-copy { padding: 28px 24px; }
  .cm-results-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-institutional-banner { min-height: 330px; }
  .cm-institutional-banner::after { background: linear-gradient(to right,rgba(3,16,38,.97),rgba(3,16,38,.58)); }
  .cm-banner-shapes { width: 90px; height: 100px; opacity: .55; }
  .cm-banner-shapes span { width: 45px; height: 45px; }
  .cm-institutional-copy { padding: 34px 24px 34px 88px; }
  .cm-institutional-copy h2 { font-size: 29px; }
  .cm-areas-section { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .cm-section-intro { max-width: 400px; }
  .cm-area-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-area-card { min-height: 116px; }
  .cm-ribbon { grid-template-columns: 1fr; gap: 1px; }
  .cm-ribbon-card { grid-template-columns: 46px 1fr; }
  .cm-ribbon-card .cm-ribbon-button { grid-column: 1 / -1; justify-content: center; }
  .cm-latest-section,
  .cm-municipality-section { padding: 16px; }
  .cm-municipality-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .cm-municipality-section.is-featured { padding: 18px; }
  .cm-municipality-section.is-featured .cm-municipality-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .cm-municipality-section.is-featured .cm-municipality-photo { height: 145px; }
  .cm-municipality-section.is-featured .cm-municipality-seal { top: 116px; width: 54px; height: 54px; }
  .cm-municipality-section.is-featured .cm-municipality-card { min-width: 0; }
  .cm-municipality-card { min-width: 220px; scroll-snap-align: start; }
  .cm-notices-quick { grid-template-columns: 1fr; }
  .cm-home-bottom { grid-template-columns: 1fr; }
  .cm-home-bottom > .cm-latest-section,
  .cm-home-bottom > .cm-municipality-section,
  .cm-home-bottom .cm-notices,
  .cm-home-bottom .cm-quick-links { min-height: auto; }
  .cm-home-bottom .cm-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-home-bottom > .cm-notices-quick { grid-column: auto; }
  .cm-admin-notices-layout,
  .cm-admin-notices-sources,
  .cm-admin-notices-item,
  .cm-admin-notices-source-item { grid-template-columns: 1fr; }
  .cm-admin-notices-item-actions { justify-content: stretch; }
  .cm-footer-main { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .cm-footer-brand { grid-column: 1 / -1; }
  .cm-footer-bottom-inner { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
}

@media (max-width: 480px) {
  .cm-container { padding-right: 16px; padding-left: 16px; }
  .cm-logo-link { width: 205px; }
  .cm-feature-card { aspect-ratio: auto; height: 315px; min-height: 315px; border-radius: 12px; }
  .cm-feature-title { font-size: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cm-secondary-card { width: 100%; min-width: 0; aspect-ratio: auto; height: 165px; min-height: 165px; border-radius: 11px; }
  .cm-secondary-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .cm-additional-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .cm-additional-media { height: 120px; aspect-ratio: auto; }
  .cm-additional-body { min-height: 120px; padding: 10px; }
  .cm-additional-body h3 { font-size: 10px; }
  .cm-institutional-copy { padding-left: 66px; }
  .cm-banner-shapes { left: 4px; }
  .cm-ribbon-card { padding: 16px; }
  .cm-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-admin-notices-fields,
  .cm-admin-notices-item-actions { grid-template-columns: 1fr; }
  .cm-notice-item { grid-template-columns: 38px minmax(0,1fr); }
  .cm-notice-item > a { grid-column: 2; }
  .cm-footer-main { grid-template-columns: 1fr; }
  .cm-footer-brand { grid-column: auto; }
  .cm-footer-legal { flex-wrap: wrap; }
}

@media (max-width: 960px) {
  .cm-map-section { grid-template-columns: 1fr; gap: 24px; }
  .cm-map-copy h2 { font-size: 38px; }
}

@media (max-width: 1080px) {
  .cm-extra-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 640px) {
  .cm-extra-news-grid { grid-template-columns: 1fr; gap: 16px; }
  .cm-map-section { margin-bottom: 50px; }
  .cm-map-copy { text-align: center; }
  .cm-map-copy > span { border-radius: 10px; }
  .cm-map-copy h2 { font-size: 32px; }
  .cm-map-copy p { font-size: 15px; }
  .cm-map-stats { grid-template-columns: 1fr; gap: 0; margin-top: 28px; text-align: center; }
  .cm-map-stats div { width: 100%; padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(13,40,86,.12); }
  .cm-map-stats div:first-child { padding-top: 0; }
  .cm-map-stats div:last-child { padding-bottom: 0; border-bottom: 0; }
  .cm-areas-section { margin-top: 0; padding-top: 38px; border-top: 1px solid rgba(13,40,86,.10); }
  .cm-areas-copy { justify-items: center; text-align: center; }
  .cm-areas-copy p { max-width: 340px; }
  .cm-floating-whatsapp { right: 14px; bottom: 14px; min-height: 46px; padding: 0 14px; font-size: 12px; }
}

/* ================================================================
   Fileira inferior SEM municípios
   ================================================================ */
.cm-home-bottom.cm-home-bottom-without-municipalities {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: 14px;
  align-items: stretch;
  margin: 0 0 34px;
}

.cm-home-bottom.cm-home-bottom-without-municipalities > .cm-latest-section {
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(13, 40, 86, .10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 40, 86, .07);
}

.cm-home-bottom.cm-home-bottom-without-municipalities > .cm-notices-quick {
  display: grid;
  grid-template-columns: 1fr .86fr;
  gap: 14px;
  min-width: 0;
}

@media (max-width: 1180px) {
  .cm-home-bottom.cm-home-bottom-without-municipalities {
    grid-template-columns: 1fr;
  }

  .cm-home-bottom.cm-home-bottom-without-municipalities > .cm-notices-quick {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .cm-home-bottom.cm-home-bottom-without-municipalities > .cm-notices-quick {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Nova seção grande de Municípios Consorciados
   ================================================================ */
.cm-municipality-showcase {
  margin: 42px 0 42px;
  padding: 36px 0 10px;
}

.cm-municipality-showcase-head {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.cm-municipality-showcase-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px 24px;
  transform: skewX(-8deg);
  background: #eaf2ff;
  color: #0064f2;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.cm-municipality-showcase-head h2 {
  margin: 0;
  color: #0a1e3d;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -1.9px;
}

.cm-municipality-showcase-head h2 strong {
  color: #0064f2;
}

.cm-municipality-showcase-head p {
  max-width: 760px;
  margin: 22px auto 0;
  color: #334866;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.cm-municipality-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cm-municipality-showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(13, 40, 86, .12);
  transition: transform .24s ease, box-shadow .24s ease;
}

.cm-municipality-showcase-card:hover,
.cm-municipality-showcase-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(13, 40, 86, .18);
}

.cm-municipality-showcase-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cm-municipality-showcase-photo {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #eaf2ff;
}

.cm-municipality-showcase-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .34s ease;
}

.cm-municipality-showcase-card:hover .cm-municipality-showcase-photo img,
.cm-municipality-showcase-card:focus-within .cm-municipality-showcase-photo img {
  transform: scale(1.045);
}

.cm-municipality-state {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 48px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #334866;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(13, 40, 86, .16);
}

.cm-municipality-showcase-body {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 18px 22px;
}

.cm-municipality-showcase-body h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: #0a1e3d;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.cm-municipality-showcase-body svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #e53935;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.cm-municipality-showcase-instagram {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff;
  box-shadow: 0 8px 18px rgba(221, 42, 123, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cm-municipality-showcase-instagram:hover,
.cm-municipality-showcase-instagram:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 24px rgba(221, 42, 123, .30);
}

.cm-municipality-showcase-instagram svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.cm-municipality-showcase-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.cm-municipality-showcase-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: #0064f2;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,100,242,.22);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.cm-municipality-showcase-actions a:hover,
.cm-municipality-showcase-actions a:focus-visible {
  transform: translateY(-2px);
  background: #0055d8;
  box-shadow: 0 16px 34px rgba(0,100,242,.28);
}

/* ================================================================
   Responsividade da nova seção de municípios
   ================================================================ */
@media (max-width: 1180px) {
  .cm-municipality-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-municipality-showcase-photo {
    height: 230px;
  }
}

@media (max-width: 760px) {
  .cm-municipality-showcase {
    margin: 32px 0;
    padding-top: 22px;
  }

  .cm-municipality-showcase-head {
    margin-bottom: 24px;
    text-align: left;
  }

  .cm-municipality-showcase-head h2 {
    font-size: 36px;
  }

  .cm-municipality-showcase-head p {
    font-size: 15px;
  }

  .cm-municipality-showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cm-municipality-showcase-photo {
    height: 220px;
  }

  .cm-municipality-showcase-body h3 {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .cm-municipality-showcase-photo {
    height: 190px;
  }
}

/* Fileira inferior uniforme: notícias, comunicados e links rápidos. */
.cm-home-bottom.cm-home-bottom-without-municipalities {
  grid-template-columns: minmax(0,1.25fr) minmax(0,.95fr) minmax(0,.78fr);
  gap: 14px;
  align-items: stretch;
}

.cm-home-bottom.cm-home-bottom-without-municipalities > .cm-notices-quick {
  display: contents;
}

/* Quando não há comunicados: ocultar a coluna de comunicados, expandir "Últimas notícias", manter "Links rápidos" */
.cm-home-bottom.cm-home-bottom-without-municipalities.cm-home-bottom--no-notices {
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
}

.cm-home-bottom.cm-home-bottom-without-municipalities > .cm-latest-section,
.cm-home-bottom.cm-home-bottom-without-municipalities .cm-notices,
.cm-home-bottom.cm-home-bottom-without-municipalities .cm-quick-links {
  min-width: 0;
  min-height: 290px;
  height: 100%;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
}

/* Duas fileiras contínuas, cada uma com uma cópia para fechar o loop. */
.cm-municipality-showcase {
  overflow: hidden;
}

.cm-municipality-marquee {
  display: grid;
  gap: 24px;
  overflow: hidden;
  padding: 8px 0 18px;
}

.cm-municipality-marquee-row {
  width: 100%;
  overflow: hidden;
  scrollbar-width: none;
  /* min-width:100% removido — travava o track no mobile */
}

.cm-municipality-marquee-row::-webkit-scrollbar {
  display: none;
}

.cm-municipality-marquee-track {
  width: max-content;
  display: flex;
  animation: cmMunicipalityShowcaseForward 96s linear infinite;
  will-change: transform;
}

.cm-municipality-marquee-row.is-reverse .cm-municipality-marquee-track {
  animation-name: cmMunicipalityShowcaseReverse;
  animation-duration: 92s;
}

.cm-municipality-marquee-row:hover .cm-municipality-marquee-track,
.cm-municipality-marquee-row:focus-within .cm-municipality-marquee-track {
  animation-play-state: paused;
}

.cm-municipality-marquee-group {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}

.cm-municipality-showcase-card {
  width: 320px;
  min-width: 320px;
  flex: 0 0 320px;
}

.cm-municipality-showcase-photo {
  height: 220px;
}

.cm-municipality-showcase-body {
  min-height: 116px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px 20px 20px;
}

.cm-municipality-showcase-body h3 {
  font-size: 20px;
}

.cm-municipality-showcase-body p {
  margin: 0;
  color: #607896;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

@keyframes cmMunicipalityShowcaseForward {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes cmMunicipalityShowcaseReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 1180px) {
  .cm-home-bottom.cm-home-bottom-without-municipalities {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .cm-home-bottom.cm-home-bottom-without-municipalities .cm-quick-links {
    grid-column: 1 / -1;
  }

  .cm-municipality-showcase-card {
    width: 286px;
    min-width: 286px;
    flex-basis: 286px;
  }

  .cm-municipality-showcase-photo {
    height: 198px;
  }
}

@media (max-width: 760px) {
  .cm-home-bottom.cm-home-bottom-without-municipalities {
    grid-template-columns: 1fr;
  }

  .cm-home-bottom.cm-home-bottom-without-municipalities .cm-quick-links {
    grid-column: auto;
  }

  .cm-home-bottom.cm-home-bottom-without-municipalities > .cm-latest-section,
  .cm-home-bottom.cm-home-bottom-without-municipalities .cm-notices,
  .cm-home-bottom.cm-home-bottom-without-municipalities .cm-quick-links {
    min-height: 270px;
  }

  .cm-home-bottom .cm-latest-grid,
  .cm-home-bottom .cm-latest-grid.is-marquee {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    animation: none !important;
    transform: none !important;
    will-change: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .cm-home-bottom .cm-latest-card {
    flex: 0 0 min(72vw, 220px);
    min-width: min(72vw, 220px);
    max-width: min(72vw, 220px);
  }

  /* ── Marquee de municípios: garantir flex + animação no mobile ── */
  .cm-municipality-marquee {
    gap: 16px;
    overflow: hidden;
  }

  .cm-municipality-marquee-row {
    overflow: hidden;
    width: 100%;
  }

  .cm-municipality-marquee-track {
    display: flex;
    width: max-content;
    min-width: max-content;
    gap: 16px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
    animation-duration: 112s;
  }

  .cm-municipality-marquee-row.is-reverse .cm-municipality-marquee-track {
    animation-duration: 108s;
  }

  .cm-municipality-marquee-group {
    display: flex;
    gap: 16px;
    padding-right: 16px;
  }

  /* ── Marquee de Últimas Notícias: garantir flex + animação no mobile ── */
  .cm-home-bottom .cm-latest-grid.is-marquee,
  .cm-home-bottom .cm-municipality-grid.is-marquee {
    display: flex;
    width: max-content;
    min-width: max-content;
    overflow: visible;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
  }

  .cm-home-bottom .cm-latest-card {
    flex: 0 0 128px;
  }

  .cm-home-bottom .cm-municipality-card {
    flex: 0 0 136px;
  }

  .cm-municipality-showcase-card {
    width: 258px;
    min-width: 258px;
    flex: 0 0 258px;
  }

  .cm-municipality-showcase-photo {
    height: 178px;
  }

  .cm-municipality-showcase-body {
    min-height: 106px;
    padding: 15px 16px 17px;
  }

  .cm-municipality-showcase-body h3 {
    font-size: 17px;
  }

  .cm-municipality-showcase-body p {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .cm-municipality-showcase-card {
    width: 232px;
    min-width: 232px;
    flex: 0 0 232px;
  }

  .cm-municipality-showcase-photo {
    height: 158px;
  }

  .cm-municipality-marquee-track {
    gap: 14px;
  }

  .cm-municipality-marquee-group {
    gap: 14px;
    padding-right: 14px;
  }
}

/* Cards de Municípios Consorciados Prontos (WebP) */
.cm-municipality-showcase-card-ready {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: 0 16px 36px rgba(13, 40, 86, .12);
  width: 326px;
  min-width: 326px;
  flex: 0 0 326px;
}

.cm-municipality-showcase-card-ready .cm-municipality-showcase-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cm-municipality-ready-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 18px;
  transition: transform .34s ease, filter .34s ease;
}

.cm-municipality-showcase-card-ready:hover .cm-municipality-ready-card-image,
.cm-municipality-showcase-card-ready:focus-within .cm-municipality-ready-card-image {
  transform: scale(1.025);
  filter: brightness(1.02);
}

@media (max-width: 1180px) {
  .cm-municipality-showcase-card-ready {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
  }
}

@media (max-width: 760px) {
  .cm-municipality-showcase-card-ready {
    flex: 0 0 274px;
    width: 274px;
    min-width: 274px;
  }
}

@media (max-width: 420px) {
  .cm-municipality-showcase-card-ready {
    flex: 0 0 250px;
    width: 250px;
    min-width: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-extra-news-reveal { animation: none !important; }
  .cm-municipality-marquee-track { animation: none !important; transform: none !important; }
  .cm-municipality-marquee-row { overflow-x: auto; }
  .cm-home-bottom .cm-latest-grid.is-marquee,
  .cm-home-bottom .cm-municipality-grid.is-marquee { animation: none !important; transform: none !important; }
  .cm-public-shell *,
  .cm-public-shell *::before,
  .cm-public-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* POTÉ REDESIGN STYLES */
:root {
  --cm-pt-brand: #0b3b8c;
  --cm-pt-brand-dark: #072a66;
  --cm-pt-flash: #d92027;
}

.cm-pt-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cm-pt-topbar {
  background: var(--cm-pt-brand-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.cm-pt-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}

.cm-pt-topbar-group { display: flex; align-items: center; gap: 16px; }
.cm-pt-topbar-link { color: #fff; opacity: 0.9; transition: opacity 0.2s; }
.cm-pt-topbar-link:hover { opacity: 1; }
.cm-pt-socials { display: flex; align-items: center; gap: 12px; margin-left: 16px; }
.cm-pt-social-link { color: #fff; opacity: 0.9; }
.cm-pt-social-link:hover { opacity: 1; }

.cm-pt-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.cm-pt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.cm-pt-logo {
  display: block;
}

.cm-pt-logo img {
  height: 64px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  object-position: left center;
}

.cm-pt-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.cm-pt-search:focus-within { border-color: var(--cm-pt-brand); }
.cm-pt-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}
.cm-pt-search button {
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: #64748b;
  cursor: pointer;
}

.cm-pt-header-actions { display: flex; align-items: center; gap: 16px; }
.cm-pt-btn-outline {
  display: none;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s;
}
@media (min-width: 768px) { .cm-pt-btn-outline { display: block; } }
.cm-pt-btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; }

.cm-pt-menu-btn {
  display: block;
  background: transparent;
  border: none;
  color: var(--cm-pt-brand);
  cursor: pointer;
}
@media (min-width: 1024px) { .cm-pt-menu-btn { display: none; } }

.cm-pt-nav-bar {
  background: var(--cm-pt-brand);
  display: none;
}
@media (min-width: 1024px) { .cm-pt-nav-bar { display: block; } }

.cm-pt-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cm-pt-nav-group { position: relative; }
.cm-pt-nav-link {
  display: block;
  padding: 14px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.cm-pt-nav-link:hover, .cm-pt-nav-link.is-active { opacity: 1; }

.cm-pt-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
}
.cm-pt-nav-group:hover .cm-pt-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cm-pt-nav-dropdown a {
  display: block;
  padding: 8px 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}
.cm-pt-nav-dropdown a:hover { background: #f8fafc; color: var(--cm-pt-brand); }

.cm-pt-mobile-menu {
  background: #ffffff;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.cm-pt-mobile-link { display: block; padding: 12px 0; font-weight: 600; color: #1e293b; border-bottom: 1px solid #f1f5f9; }
.cm-pt-mobile-sublink { display: block; padding: 10px 0 10px 24px; font-weight: 500; color: #475569; border-bottom: 1px solid #f1f5f9; }

/* Ticker */
.cm-pt-ticker-wrap {
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  height: 40px;
  align-items: center;
}
.cm-pt-ticker-label {
  background: var(--cm-pt-flash);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}
.cm-pt-ticker-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 16px;
  background: var(--cm-pt-flash);
  transform: skewX(-20deg);
  z-index: -1;
}
.cm-pt-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.cm-pt-ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.cm-pt-ticker-track:hover .cm-pt-ticker-content {
  animation-play-state: paused;
}
.cm-pt-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: color 0.2s;
}
.cm-pt-ticker-item:hover { color: var(--cm-pt-brand); }
.cm-pt-ticker-bullet {
  width: 6px;
  height: 6px;
  background: var(--cm-pt-flash);
  border-radius: 50%;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.cm-pt-hero {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 32px;
  font-family: 'Inter', sans-serif;
}
@media (max-width: 768px) {
  .cm-pt-hero { padding: 16px; }
}

.cm-pt-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .cm-pt-hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.cm-pt-hero-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
}
.cm-pt-hero-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cm-pt-hero-side { grid-template-columns: 1fr 1fr; }
}
.cm-pt-hero-side-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
}
@media (min-width: 1024px) {
  .cm-pt-hero-side-card { aspect-ratio: 4 / 3; }
}

.cm-pt-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.group:hover .group-hover-scale {
  transform: scale(1.05);
}

.cm-pt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.cm-pt-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.cm-pt-badge {
  display: inline-block;
  background: var(--cm-pt-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.cm-pt-hero-title {
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.cm-pt-hero-side-title {
  color: #fff;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* Grok — recuperação definitiva do hero quase bom */

.cm-hero-editorial {
  width: calc(100% - 32px);
  max-width: 1160px;
  margin: 22px auto 32px;
}

.cm-hero-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
  height: 345px;
  align-items: start;
}

.cm-hero-side-stack {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.cm-hero-editorial .cm-feature-card,
.cm-hero-editorial .cm-secondary-card {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  border-radius: 14px;
  overflow: hidden;
  background: #0d2856;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(13, 40, 86, .14);
  transform: none;
  aspect-ratio: auto;
}

.cm-hero-editorial .cm-feature-card {
  /* container size controlled by grid (392px); thumbnail adapts */
}

.cm-hero-editorial .cm-secondary-card {
  /* container size controlled by grid; thumbnail adapts */
}

.cm-hero-editorial .cm-feature-card > img,
.cm-hero-editorial .cm-secondary-card > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.cm-hero-editorial .cm-feature-card:hover,
.cm-hero-editorial .cm-feature-card:focus-visible,
.cm-hero-editorial .cm-secondary-card:hover,
.cm-hero-editorial .cm-secondary-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(13, 40, 86, .2);
}

.cm-hero-editorial .cm-feature-card:hover > img,
.cm-hero-editorial .cm-feature-card:focus-visible > img,
.cm-hero-editorial .cm-secondary-card:hover > img,
.cm-hero-editorial .cm-secondary-card:focus-visible > img {
  transform: scale(1.03);
}

.cm-hero-editorial .cm-feature-card::after,
.cm-hero-editorial .cm-secondary-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(3, 16, 38, .86) 0%, rgba(3, 16, 38, .5) 42%, rgba(3, 16, 38, .08) 100%);
  pointer-events: none;
}

.cm-hero-editorial .cm-feature-card .cm-card-content,
.cm-hero-editorial .cm-secondary-card .cm-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: block;
}

.cm-hero-editorial .cm-feature-card .cm-card-content {
  padding: 16px 18px 28px;
}

.cm-hero-editorial .cm-secondary-card .cm-card-content {
  padding: 14px 15px 15px;
}

.cm-hero-editorial .cm-feature-title {
  max-width: 92%;
  margin: 8px 0 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .3);
}

.cm-hero-editorial .cm-secondary-card h3 {
  max-width: 95%;
  margin: 7px 0 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.cm-hero-editorial .cm-feature-badge,
.cm-hero-editorial .cm-card-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  background: var(--cm-primary);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .22px;
  text-transform: uppercase;
}

.cm-hero-editorial .cm-feature-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 10px;
}

.cm-hero-editorial .cm-card-badge {
  padding: 4px 7px;
}

.cm-hero-editorial .cm-card-number {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 3;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.cm-hero-editorial .cm-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  color: rgba(255, 255, 255, .84);
  font-size: 10px;
  font-weight: 600;
}

.cm-hero-editorial .cm-read-button {
  margin-top: 12px;
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 7px;
  background: var(--cm-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.cm-hero-editorial .cm-feature-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.cm-hero-editorial .cm-feature-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.cm-hero-editorial .cm-feature-dots button.is-active {
  background: var(--cm-primary);
}

.cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-grid,
.cm-extra-news-reveal:first-of-type .cm-extra-news-grid {
  width: calc(100% - 32px);
  max-width: 1160px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-card,
.cm-extra-news-reveal:first-of-type .cm-extra-news-card {
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05);
  transform: none;
}

.cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-card:hover,
.cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-card:focus-visible,
.cm-extra-news-reveal:first-of-type .cm-extra-news-card:hover,
.cm-extra-news-reveal:first-of-type .cm-extra-news-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
}

.cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-card img,
.cm-extra-news-reveal:first-of-type .cm-extra-news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-card span,
.cm-extra-news-reveal:first-of-type .cm-extra-news-card span {
  margin: 14px 14px 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--cm-primary);
  font-size: 9px;
  font-weight: 800;
}

.cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-card strong,
.cm-extra-news-reveal:first-of-type .cm-extra-news-card strong {
  margin: 0 14px;
  font-size: 15px;
  line-height: 1.3;
}

.cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-card small,
.cm-extra-news-reveal:first-of-type .cm-extra-news-card small {
  margin: 10px 14px 14px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-grid,
  .cm-extra-news-reveal:first-of-type .cm-extra-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .cm-hero-editorial-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 380px;
  }

  .cm-hero-side-stack {
    height: auto;
    grid-template-rows: none;
  }

  .cm-hero-editorial .cm-feature-card {
    aspect-ratio: auto;
    height: auto;
    min-height: 370px;
  }

  .cm-hero-editorial .cm-secondary-card {
    aspect-ratio: auto;
    height: auto;
    min-height: 140px;
  }
}

@media (max-width: 640px) {
  .cm-hero-editorial {
    width: calc(100% - 24px);
    margin: 18px auto 26px;
  }

  .cm-hero-editorial .cm-feature-card {
    aspect-ratio: auto;
    min-height: 330px;
  }

  .cm-hero-side-stack {
    gap: 12px;
  }

  .cm-hero-editorial .cm-feature-card .cm-card-content {
    padding: 16px 16px 36px;
  }

  .cm-hero-editorial .cm-feature-title {
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.06;
  }

  .cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-grid,
  .cm-extra-news-reveal:first-of-type .cm-extra-news-grid {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Mobile Poté-like — CONSORMULTI */

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .cm-hero-editorial {
    width: calc(100% - 24px);
    max-width: none;
    margin: 18px auto 28px;
  }

  .cm-hero-editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
  }

  .cm-hero-side-stack {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
    height: auto;
  }

  .cm-hero-editorial .cm-feature-card {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
  }

  .cm-hero-editorial .cm-secondary-card {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
  }

  .cm-hero-editorial .cm-feature-card > img,
  .cm-hero-editorial .cm-secondary-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .cm-hero-editorial .cm-feature-card::after,
  .cm-hero-editorial .cm-secondary-card::after {
    background: linear-gradient(
      to top,
      rgba(0, 18, 50, .90) 0%,
      rgba(0, 18, 50, .62) 48%,
      rgba(0, 18, 50, .12) 100%
    );
  }

  .cm-hero-editorial .cm-feature-card .cm-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 16px 44px;
  }

  .cm-hero-editorial .cm-secondary-card .cm-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
  }

  .cm-hero-editorial .cm-feature-title {
    max-width: 100%;
    font-size: clamp(22px, 6.4vw, 28px);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .cm-hero-editorial .cm-secondary-card h3 {
    max-width: 100%;
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

  .cm-hero-editorial .cm-feature-badge {
    top: 14px;
    left: 14px;
    padding: 6px 9px;
    font-size: 9px;
    border-radius: 6px;
  }

  .cm-hero-editorial .cm-card-badge {
    margin-bottom: 7px;
    padding: 5px 8px;
    font-size: 9px;
    border-radius: 6px;
  }

  .cm-hero-editorial .cm-card-number {
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 8px;
  }

  .cm-hero-editorial .cm-card-meta {
    margin-top: 9px;
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .cm-hero-editorial .cm-read-button {
    min-height: 34px;
    margin-top: 13px;
    padding: 0 13px;
    font-size: 11px;
    border-radius: 8px;
  }

  .cm-hero-editorial .cm-feature-dots {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Grade normal abaixo dos 3 primeiros cards: igual Poté, 2 cards por linha */
  .cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-grid,
  .cm-extra-news-reveal:first-of-type .cm-extra-news-grid,
  .cm-extra-news-grid,
  .cm-additional-grid,
  .cm-additional-news-grid,
  .cm-news-extra-grid {
    width: calc(100% - 24px);
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 28px auto 0;
  }

  .cm-extra-news-card,
  .cm-additional-card,
  .cm-additional-news-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
  }

  .cm-extra-news-card:hover,
  .cm-extra-news-card:focus-visible {
    transform: none;
  }

  .cm-extra-news-card img,
  .cm-additional-card img,
  .cm-additional-news-card img,
  .cm-additional-media img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
  }

  .cm-extra-news-card .cm-card-content,
  .cm-additional-card .cm-card-content,
  .cm-additional-news-card .cm-card-content {
    padding: 12px;
  }

  .cm-extra-news-card h3,
  .cm-extra-news-card strong,
  .cm-additional-card h3,
  .cm-additional-news-card h3 {
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .cm-extra-news-card span {
    margin: 12px 12px 6px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .cm-extra-news-card strong {
    margin: 0 12px;
  }

  .cm-extra-news-card small {
    margin: 8px 12px 12px;
    font-size: 11px;
    line-height: 1.2;
  }

  .cm-extra-news-card .cm-card-meta,
  .cm-additional-card .cm-card-meta,
  .cm-additional-news-card .cm-card-meta {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.2;
  }

  .cm-extra-news-card .cm-card-badge,
  .cm-additional-card .cm-card-badge,
  .cm-additional-news-card .cm-card-badge {
    font-size: 8px;
    padding: 5px 7px;
    border-radius: 5px;
  }
}

@media (max-width: 430px) {
  .cm-hero-editorial {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .cm-hero-editorial .cm-feature-card {
    aspect-ratio: auto;
    height: 310px;
    min-height: 310px;
  }

  .cm-hero-editorial .cm-secondary-card {
    aspect-ratio: auto;
    height: 160px;
    min-height: 160px;
  }

  .cm-hero-editorial .cm-feature-title {
    font-size: clamp(20px, 6.2vw, 25px);
  }

  .cm-hero-editorial .cm-secondary-card h3 {
    font-size: clamp(15px, 4.7vw, 18px);
  }

  .cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-grid,
  .cm-extra-news-reveal:first-of-type .cm-extra-news-grid,
  .cm-extra-news-grid,
  .cm-additional-grid,
  .cm-additional-news-grid,
  .cm-news-extra-grid {
    width: calc(100% - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cm-extra-news-card h3,
  .cm-extra-news-card strong,
  .cm-additional-card h3,
  .cm-additional-news-card h3 {
    font-size: 14px;
    line-height: 1.24;
  }
}

/* Somente em telas extremamente pequenas a grade pode virar 1 coluna */
@media (max-width: 320px) {
  .cm-hero-editorial + .cm-extra-news-reveal .cm-extra-news-grid,
  .cm-extra-news-reveal:first-of-type .cm-extra-news-grid,
  .cm-extra-news-grid,
  .cm-additional-grid,
  .cm-additional-news-grid,
  .cm-news-extra-grid {
    grid-template-columns: 1fr;
  }
}

/* Logo horizontal + rodapé institucional final */

.cm-pt-logo {
  flex: 0 0 auto;
  min-width: 0;
}

.cm-pt-logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: min(320px, 34vw);
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 1080px) {
  .cm-pt-logo img {
    height: 58px;
    max-width: min(300px, 42vw);
  }
}

@media (max-width: 760px) {
  .cm-pt-header-inner {
    min-height: 72px;
    gap: 14px;
  }

  .cm-pt-logo img {
    height: 52px;
    max-width: min(260px, 58vw);
  }
}

@media (max-width: 430px) {
  .cm-pt-logo img {
    height: 50px;
    max-width: min(260px, 74vw);
  }
}

.cm-footer {
  background: var(--cm-pt-brand);
  color: #fff;
}

.cm-footer-main {
  grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.cm-footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.cm-footer-brand .cm-footer-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 60px;
  max-width: min(300px, 100%);
  object-fit: contain;
  object-position: left top;
  border-radius: 10px;
  background: #fff;
  padding: 8px 14px;
}

.cm-footer-brand p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.55;
}

.cm-footer-column h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.cm-footer-column a,
.cm-footer-column span {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.45;
}

.cm-footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.cm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: var(--cm-pt-brand);
}

.cm-footer-bottom-inner {
  min-height: 56px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

.cm-footer-legal a {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
}

@media (max-width: 1080px) {
  .cm-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .cm-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cm-footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .cm-footer-brand .cm-footer-logo {
    max-height: 54px;
    max-width: min(280px, 100%);
  }

  .cm-footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 18px;
  }
}

/* Ajuste final — topbar mobile CONSORMULTI */

@media (max-width: 760px) {
  .cm-pt-topbar.cm-utility-bar {
    min-height: 32px;
    height: 32px;
    overflow: hidden;
  }

  .cm-pt-topbar-inner {
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    overflow: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .cm-pt-topbar-group,
  .cm-utility-bar-left,
  .cm-utility-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .cm-utility-bar-right {
    margin-left: auto;
  }

  .cm-pt-topbar-link {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .cm-pt-topbar-inner {
    justify-content: flex-start;
    gap: 12px;
  }

  .cm-pt-topbar-link {
    font-size: 10.5px;
  }

  .cm-utility-bar-right,
  .cm-pt-topbar-group.cm-utility-bar-right {
    display: none;
  }
}

/* =========================================================
   Seção Região — inspiração Poté adaptada ao CONSORMULTI
   ========================================================= */

.cm-regional-section {
  width: min(100%, 1180px);
  margin: 44px auto 0;
  padding: 0 16px;
}

.cm-regional-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}

.cm-regional-main {
  min-width: 0;
}

.cm-regional-section .cm-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--cm-pt-brand, #0b3b8c);
}

.cm-regional-section .cm-section-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-regional-section .cm-section-more {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
}

.cm-regional-section .cm-section-more:hover {
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-regional-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 22px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.cm-regional-lead-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  height: 210px;
  min-height: 210px;
  border-radius: 14px;
  background: #dbeafe;
}

.cm-regional-lead-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.cm-regional-lead-card:hover .cm-regional-lead-image {
  transform: scale(1.04);
}

.cm-regional-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  background: #0d6efd;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.cm-regional-lead-content {
  min-width: 0;
}

.cm-regional-lead-content h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cm-regional-lead-content p {
  margin: 12px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.cm-regional-lead-content small {
  display: block;
  margin-top: 14px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.3;
}

.cm-regional-list {
  margin-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, .28);
}

.cm-regional-list-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .28);
  color: inherit;
  text-decoration: none;
}

.cm-regional-list-item img {
  flex: 0 0 112px;
  width: 112px;
  height: 80px;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.cm-regional-list-item h4 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.cm-regional-list-item:hover h4 {
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-regional-list-item small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.cm-regional-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.cm-most-read-box {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: 0 16px 35px rgba(15, 23, 42, .05);
}

.cm-most-read-box h2 {
  margin: 0;
  padding: 14px 18px;
  background: var(--cm-pt-brand, #0b3b8c);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.cm-most-read-box ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-most-read-box li + li {
  border-top: 1px solid rgba(148, 163, 184, .22);
}

.cm-most-read-box a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
}

.cm-most-read-box a span {
  flex: 0 0 auto;
  color: #cbd5e1;
  font-size: 28px;
  line-height: .9;
  font-weight: 900;
}

.cm-most-read-box a strong {
  color: #1e293b;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.cm-most-read-box a:hover strong {
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-newsletter-box {
  border-radius: 14px;
  padding: 22px;
  background: #0b347c;
  color: #fff;
  box-shadow: 0 18px 40px rgba(13, 71, 161, .18);
}

.cm-newsletter-box h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
}

.cm-newsletter-box p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  line-height: 1.5;
}

.cm-newsletter-box form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-newsletter-box input {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  outline: none;
}

.cm-newsletter-box button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0b347c;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.cm-newsletter-box button:hover {
  background: #f1f5f9;
}

@media (max-width: 980px) {
  .cm-regional-section {
    margin-top: 34px;
  }

  .cm-regional-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cm-regional-lead-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cm-regional-lead-image-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 640px) {
  .cm-regional-section {
    width: 100%;
    margin-top: 28px;
    padding: 0 16px;
  }

  .cm-regional-section .cm-section-heading {
    margin-bottom: 18px;
    padding-bottom: 9px;
  }

  .cm-regional-section .cm-section-heading h2 {
    font-size: 19px;
  }

  .cm-regional-section .cm-section-more {
    font-size: 13px;
  }

  .cm-regional-lead-card {
    display: block;
  }

  .cm-regional-lead-image-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 13px;
  }

  .cm-regional-lead-content {
    padding-top: 16px;
  }

  .cm-regional-lead-content h3 {
    font-size: 21px;
    line-height: 1.2;
  }

  .cm-regional-lead-content p {
    font-size: 14px;
    line-height: 1.55;
  }

  .cm-regional-list {
    margin-top: 22px;
  }

  .cm-regional-list-item {
    gap: 14px;
    padding: 16px 0;
  }

  .cm-regional-list-item img {
    width: 104px;
    aspect-ratio: 4 / 3;
    height: auto;
    flex-basis: 104px;
    border-radius: 9px;
  }

  .cm-regional-list-item h4 {
    font-size: 16px;
    line-height: 1.25;
  }

  .cm-most-read-box h2 {
    padding: 14px 16px;
  }

  .cm-most-read-box a {
    padding: 14px 16px;
  }

  .cm-newsletter-box {
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .cm-regional-section {
    padding: 0 14px;
  }

  .cm-regional-lead-image-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .cm-regional-list-item img {
    width: 96px;
    aspect-ratio: 4 / 3;
    height: auto;
    flex-basis: 96px;
  }

  .cm-regional-list-item h4 {
    font-size: 15px;
  }
}

/* =========================================================
   Seções editoriais — inspiração Poté adaptada ao CONSORMULTI
   ========================================================= */

.cm-editorial-sections {
  width: min(100%, 1180px);
  margin: 46px auto 0;
  padding: 0 16px;
}

.cm-three-card-section {
  width: 100%;
}

.cm-editorial-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--cm-pt-brand, #0b3b8c);
}

.cm-editorial-heading h2 {
  margin: 0;
  color: var(--cm-pt-brand, #0b3b8c);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.cm-editorial-heading a {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}

.cm-editorial-heading a:hover {
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-three-card-section-red .cm-editorial-heading {
  border-bottom-color: #e11d48;
}

.cm-three-card-section-red .cm-editorial-heading h2,
.cm-three-card-section-red .cm-editorial-heading a:hover {
  color: #e11d48;
}

.cm-three-card-section-green .cm-editorial-heading {
  border-bottom-color: #047857;
}

.cm-three-card-section-green .cm-editorial-heading h2,
.cm-three-card-section-green .cm-editorial-heading a:hover {
  color: #047857;
}

.cm-three-card-section-teal .cm-editorial-heading {
  border-bottom-color: #0f766e;
}

.cm-three-card-section-teal .cm-editorial-heading h2,
.cm-three-card-section-teal .cm-editorial-heading a:hover {
  color: #0f766e;
}

.cm-three-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cm-municipality-news-section {
  width: 100%;
  min-width: 0;
}

.cm-municipality-news-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.cm-municipality-news-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cm-municipality-news-controls button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(13, 40, 86, .18);
  border-radius: 50%;
  background: #fff;
  color: var(--cm-pt-brand, #0b3b8c);
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.cm-municipality-news-controls button:hover,
.cm-municipality-news-controls button:focus-visible {
  border-color: var(--cm-pt-brand, #0b3b8c);
  background: var(--cm-pt-brand, #0b3b8c);
  color: #fff;
  transform: translateY(-1px);
}

.cm-municipality-news-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cm-municipality-news-rail::-webkit-scrollbar {
  display: none;
}

.cm-municipality-news-card {
  min-width: 0;
  scroll-snap-align: start;
}

.cm-municipality-news-card .cm-editorial-card {
  height: 100%;
}

.cm-editorial-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.cm-editorial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 71, 161, .28);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .09);
}

.cm-editorial-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  height: 176px;
  min-height: 176px;
  background: #dbeafe;
}

.cm-editorial-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.cm-editorial-card:hover .cm-editorial-card-media img {
  transform: scale(1.045);
}

.cm-editorial-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.cm-editorial-card-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.cm-editorial-card:hover .cm-editorial-card-body h3 {
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-editorial-card-body p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.cm-editorial-card-body small {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.25;
}

.cm-dual-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
}

.cm-dual-editorial-column {
  min-width: 0;
}

.cm-dual-editorial-column-green .cm-editorial-heading {
  border-bottom-color: #047857;
}

.cm-dual-editorial-column-green .cm-editorial-heading h2,
.cm-dual-editorial-column-green .cm-editorial-heading a:hover {
  color: #047857;
}

.cm-dual-editorial-column-teal .cm-editorial-heading {
  border-bottom-color: #0f766e;
}

.cm-dual-editorial-column-teal .cm-editorial-heading h2,
.cm-dual-editorial-column-teal .cm-editorial-heading a:hover {
  color: #0f766e;
}

.cm-overlay-editorial-card {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.cm-overlay-editorial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.cm-overlay-editorial-card:hover img {
  transform: scale(1.045);
}

.cm-overlay-editorial-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .22) 52%, rgba(0, 0, 0, .05));
  pointer-events: none;
}

.cm-overlay-editorial-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
}

.cm-overlay-editorial-content h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.cm-overlay-editorial-content p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

@media (max-width: 980px) {
  .cm-editorial-sections {
    margin-top: 36px;
  }

  .cm-three-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cm-municipality-news-rail {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .cm-editorial-card-media {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .cm-dual-editorial-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 34px;
  }

  .cm-overlay-editorial-card {
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

@media (max-width: 640px) {
  .cm-editorial-sections {
    width: 100%;
    margin-top: 32px;
    padding: 0 16px;
  }

  .cm-editorial-heading {
    margin-bottom: 18px;
    padding-bottom: 9px;
  }

  .cm-editorial-heading h2 {
    font-size: 19px;
  }

  .cm-editorial-heading a {
    font-size: 13px;
  }

  .cm-municipality-news-heading-actions {
    gap: 8px;
  }

  .cm-municipality-news-controls button {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .cm-municipality-news-rail {
    grid-auto-columns: min(84vw, 320px);
    gap: 14px;
  }

  .cm-three-card-grid {
    gap: 18px;
  }

  .cm-editorial-card {
    border-radius: 13px;
  }

  .cm-editorial-card-media {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .cm-editorial-card-body {
    padding: 15px 16px 17px;
  }

  .cm-editorial-card-body h3 {
    font-size: 17px;
    line-height: 1.28;
  }

  .cm-editorial-card-body p {
    font-size: 14px;
    line-height: 1.55;
  }

  .cm-dual-editorial-grid {
    gap: 28px;
    margin-top: 36px;
  }

  .cm-overlay-editorial-card {
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 13px;
  }

  .cm-overlay-editorial-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .cm-overlay-editorial-content h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .cm-overlay-editorial-content p {
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .cm-editorial-sections {
    padding: 0 14px;
  }

  .cm-editorial-card-media {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .cm-overlay-editorial-card {
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

/* Ajustes pontuais CONSORMULTI: mobile, logo, galeria e cards */

.cm-municipality-card,
.cm-municipality-showcase-card,
.cm-municipality-section.is-featured .cm-municipality-card {
  background: #fff;
}

.cm-latest-image img {
  object-position: center top;
}

@media (max-width: 760px) {
  .cm-home-bottom .cm-latest-grid,
  .cm-home-bottom .cm-latest-grid.is-marquee {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    animation: none !important;
    transform: none !important;
    will-change: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .cm-home-bottom .cm-latest-card {
    flex: 0 0 min(84vw, 300px);
    min-width: min(84vw, 300px);
    max-width: min(84vw, 300px);
  }

  .cm-home-bottom .cm-latest-image {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .cm-home-bottom .cm-latest-image img {
    object-fit: cover;
    object-position: center top;
  }

  .cm-editorial-heading,
  .cm-regional-section .cm-section-heading {
    align-items: flex-start;
    gap: 10px;
    overflow: visible;
  }

  .cm-editorial-heading h2,
  .cm-regional-section .cm-section-heading h2 {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.08;
    word-break: break-word;
  }

  .cm-editorial-heading a,
  .cm-regional-section .cm-section-more {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1.2;
  }
}

@media (max-width: 430px) {
  .cm-editorial-heading h2,
  .cm-regional-section .cm-section-heading h2 {
    max-width: 100%;
    font-size: 17px;
    word-break: break-word;
  }

  .cm-editorial-heading a,
  .cm-regional-section .cm-section-more {
    font-size: 12px;
  }
}

/* =========================================================
   Galeria e Vídeos — CONSORMULTI inspirado em Poté
   ========================================================= */

.cm-media-showcase {
  width: min(100%, 1180px);
  margin: 44px auto 0;
  padding: 0 16px;
}

.cm-gallery-section,
.cm-video-section {
  width: 100%;
}

.cm-video-section {
  margin-top: 42px;
}

.cm-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--cm-pt-brand, #0b3b8c);
}

.cm-gallery-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cm-gallery-heading a {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cm-gallery-heading a:hover {
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-gallery-heading-blue {
  border-bottom-color: var(--cm-pt-brand, #0b3b8c);
}

.cm-gallery-heading-blue h2 {
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-gallery-heading-red {
  border-bottom-color: #e11d48;
}

.cm-gallery-heading-red h2,
.cm-gallery-heading-red a:hover {
  color: #e11d48;
}

.cm-gallery-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 168px);
  gap: 12px;
}

.cm-gallery-mosaic-adaptive {
  grid-template-rows: none;
}

.cm-gallery-mosaic-count-1 {
  grid-template-columns: 1fr;
}

.cm-gallery-mosaic-count-1 .cm-gallery-card-featured {
  grid-row: auto;
  height: 230px;
}

.cm-gallery-mosaic-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-gallery-mosaic-count-2 .cm-gallery-card,
.cm-gallery-mosaic-count-3 .cm-gallery-card,
.cm-gallery-mosaic-count-4 .cm-gallery-card {
  height: 168px;
}

.cm-gallery-mosaic-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cm-gallery-mosaic-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-gallery-mosaic-count-4 .cm-gallery-card-featured {
  grid-column: 1 / -1;
  grid-row: auto;
  height: 230px;
}

.cm-gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.cm-gallery-card-featured {
  grid-row: span 2;
}

.cm-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.cm-gallery-card:hover img {
  transform: scale(1.045);
}

.cm-gallery-card-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .76), rgba(0, 0, 0, .24) 54%, rgba(0, 0, 0, .06));
  pointer-events: none;
}

.cm-gallery-card-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.cm-gallery-card-featured .cm-gallery-card-title {
  font-size: 18px;
}

.cm-gallery-carousel {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.cm-gallery-carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.cm-gallery-card-compact {
  width: 220px;
  height: 132px;
  flex: 0 0 auto;
}

@keyframes cmGalleryMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.cm-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cm-video-card {
  position: relative;
  display: block;
  overflow: hidden;
  height: 190px;
  min-width: 0;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.cm-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.cm-video-card:hover img {
  transform: scale(1.045);
}

.cm-video-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .10));
}

.cm-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.cm-video-play svg {
  width: 58px;
  height: 58px;
  padding: 17px;
  border-radius: 999px;
  color: var(--cm-pt-brand, #0b3b8c);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .20);
}

.cm-video-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .58);
}

.cm-news-video-player {
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: 18px;
  background: #071b3a;
}

.cm-news-video-player video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #071b3a;
}

.cm-news-video-external {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: 18px;
  background: #071b3a;
}

.cm-news-video-external img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cm-news-video-external a {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #0ea5ff;
  color: #0d2856;
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  .cm-municipality-news-rail {
    scroll-behavior: auto;
  }

  .cm-gallery-carousel-track {
    animation: none;
  }

  .cm-gallery-card img,
  .cm-video-card img {
    transition: none;
  }
}

@media (max-width: 980px) {
  .cm-media-showcase {
    margin-top: 36px;
  }

  .cm-gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 12px;
  }

  .cm-gallery-card {
    height: 150px;
  }

  .cm-gallery-card-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 230px;
  }

  .cm-video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cm-video-card {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .cm-media-showcase {
    width: 100%;
    margin-top: 32px;
    padding: 0 16px;
  }

  .cm-gallery-heading {
    margin-bottom: 18px;
    padding-bottom: 9px;
  }

  .cm-gallery-heading h2 {
    font-size: 19px;
  }

  .cm-gallery-heading a {
    font-size: 13px;
  }

  .cm-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cm-gallery-card {
    height: 132px;
    border-radius: 11px;
  }

  .cm-gallery-card-featured {
    grid-column: 1 / -1;
    height: 190px;
  }

  .cm-gallery-card-title {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 13px;
  }

  .cm-gallery-card-featured .cm-gallery-card-title {
    font-size: 16px;
  }

  .cm-gallery-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .cm-gallery-carousel-track {
    animation: none;
    width: auto;
  }

  .cm-gallery-card-compact {
    width: 74vw;
    max-width: 280px;
    height: 150px;
    scroll-snap-align: start;
  }

  .cm-video-section {
    margin-top: 38px;
  }

  .cm-video-card {
    height: 210px;
    border-radius: 13px;
  }

  .cm-video-play svg {
    width: 54px;
    height: 54px;
    padding: 16px;
  }

  .cm-video-title {
    left: 14px;
    right: 14px;
    bottom: 13px;
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .cm-media-showcase {
    padding: 0 14px;
  }

  .cm-gallery-card {
    height: 124px;
  }

  .cm-gallery-card-featured {
    height: 180px;
  }

  .cm-video-card {
    height: 195px;
  }
}

/* Galeria visual-only (home), páginas públicas, lightbox e painel admin */
.cm-gallery-card-visual .cm-gallery-card-gradient,
.cm-gallery-card-visual .cm-gallery-card-title {
  display: none;
}

button.cm-gallery-card {
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
}

.cm-gallery-page,
.cm-videos-page {
  padding-top: 28px;
  padding-bottom: 48px;
}

.cm-gallery-page-head {
  margin-bottom: 28px;
}

.cm-gallery-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 950;
  color: var(--cm-pt-brand, #0b3b8c);
}

.cm-gallery-page-head p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.5;
  max-width: 720px;
}

.cm-gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.cm-gallery-page-grid .cm-gallery-card {
  aspect-ratio: 4 / 3;
  height: auto;
}

.cm-gallery-page-item {
  display: grid;
  gap: 8px;
}

.cm-gallery-download {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(16, 39, 77, 0.12);
  border-radius: 999px;
  color: #10274d;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
}

.cm-gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.cm-gallery-load-more button {
  background: #00b8f0;
  border: 0;
  border-radius: 999px;
  color: #071d3c;
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 0 18px;
}

.cm-upload-progress {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.cm-upload-progress span {
  color: #10274d;
  font-size: 0.86rem;
  font-weight: 850;
}

.cm-upload-progress progress {
  accent-color: #00b8f0;
  height: 10px;
  width: 100%;
}

.cm-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 18, 39, .82);
}

.cm-gallery-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  object-fit: contain;
}

.cm-gallery-lightbox-close,
.cm-gallery-lightbox-prev,
.cm-gallery-lightbox-next {
  position: absolute;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

.cm-gallery-lightbox-close {
  top: 18px;
  right: 18px;
}

.cm-gallery-lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.cm-gallery-lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.cm-gallery-lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  max-width: min(90vw, 760px);
  color: #fff;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}

.cm-videos-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cm-video-page-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.cm-video-page-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0f172a;
  object-fit: cover;
}

.cm-video-page-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #0f172a;
}

.cm-video-page-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.cm-admin-gallery-grid,
.cm-admin-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.cm-admin-gallery-item,
.cm-admin-videos-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.cm-admin-gallery-item img,
.cm-admin-videos-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.cm-admin-gallery-item small,
.cm-admin-videos-item small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
}

.cm-admin-videos-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 640px) {
  .cm-gallery-lightbox {
    padding: 14px;
  }

  .cm-gallery-lightbox-prev,
  .cm-gallery-lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .cm-gallery-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* FAQ / Dúvidas Frequentes - Home (última seção visual antes do footer) */
.cm-faq-section {
  background: #f8fafc;
  padding: 64px 20px 80px;
  border-top: 1px solid #e2e8f0;
}

.cm-faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.cm-faq-header {
  text-align: center;
  margin-bottom: 32px;
}

.cm-faq-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.cm-faq-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #0f172a;
}

.cm-faq-highlight {
  color: #0284c8;
}

.cm-faq-subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
}

.cm-faq-list {
  display: grid;
  gap: 12px;
}

.cm-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.cm-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
}

.cm-faq-question:hover {
  background: #f8fafc;
}

.cm-faq-icon {
  flex-shrink: 0;
  font-size: 13px;
  color: #64748b;
  transition: transform .2s ease;
}

.cm-faq-item.is-open .cm-faq-icon {
  transform: rotate(180deg);
}

.cm-faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
  border-top: 1px solid #f1f5f9;
}

.cm-faq-cta {
  margin-top: 28px;
  text-align: center;
}

.cm-faq-cta-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: #475569;
}

.cm-faq-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  background: #0284c8;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s ease, transform .1s ease;
  box-shadow: 0 6px 16px rgba(2, 132, 200, .25);
}

.cm-faq-cta-button:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .cm-faq-section {
    padding: 48px 16px 64px;
  }
  .cm-faq-title {
    font-size: 26px;
  }
  .cm-faq-question {
    padding: 14px 16px;
    font-size: 14.5px;
  }
  .cm-faq-answer {
    padding: 0 16px 16px;
    font-size: 14px;
  }
}

/* Premium municipal profile */
.cm-muni-page {
  background: #f3f7fc;
  color: #10213d;
  overflow-x: hidden;
}

.cm-muni-shell {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
}

.cm-muni-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}

.cm-muni-hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 28%, rgba(45, 197, 255, .22), transparent 28%),
    linear-gradient(180deg, rgba(4, 25, 66, .1), rgba(4, 25, 66, .45));
}

.cm-muni-hero-inner {
  padding: 76px 0 128px;
}

.cm-muni-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: #d8f6ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cm-muni-hero h1 {
  max-width: 820px;
  margin: 20px 0 6px;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: .95;
  letter-spacing: 0;
}

.cm-muni-mayor {
  color: #37d2ff;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
}

.cm-muni-role {
  margin-top: 3px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.cm-muni-hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  line-height: 1.65;
}

.cm-muni-overlap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 24px;
  align-items: start;
  margin-top: -92px;
  position: relative;
  z-index: 2;
}

.cm-muni-institutional-card,
.cm-muni-panorama-card,
.cm-muni-about,
.cm-muni-indicator-card,
.cm-muni-tourism-card,
.cm-muni-useful-card,
.cm-muni-event-card {
  border: 1px solid #e2eaf6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(14, 46, 92, .1);
}

.cm-muni-institutional-card {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #042a66, #074a9a);
  aspect-ratio: 16 / 9.6;
}

.cm-muni-institutional-card > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
}

.cm-muni-institutional-card::after {
  display: none;
}

.cm-muni-mayor-photo {
  display: none;
}

.cm-muni-mayor-photo img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.cm-muni-mayor-photo strong,
.cm-muni-mayor-photo span {
  display: block;
}

.cm-muni-mayor-photo strong {
  margin-top: 8px;
  color: #082450;
  font-size: 13px;
}

.cm-muni-mayor-photo span {
  color: #5c6f8e;
  font-size: 11px;
  line-height: 1.35;
}

.cm-muni-panorama-card {
  padding: 24px;
  min-height: 420px;
}

.cm-muni-card-head,
.cm-muni-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cm-muni-card-head span,
.cm-muni-section-kicker {
  color: #1374c8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cm-muni-card-head h2,
.cm-muni-section-head h2 {
  margin: 6px 0 0;
  color: #082450;
  font-size: clamp(22px, 2.4vw, 30px);
}

.cm-muni-card-head img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.cm-muni-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.cm-muni-overview-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e8eef7;
  border-radius: 14px;
  background: #f8fbff;
}

.cm-muni-overview-item i,
.cm-muni-indicator-card i,
.cm-muni-useful-card i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4f7ff;
  color: #0478bc;
  font-style: normal;
  font-weight: 900;
}

.cm-muni-overview-item i {
  grid-row: span 2;
}

.cm-muni-overview-item span,
.cm-muni-indicator-card span,
.cm-muni-useful-card > span {
  display: block;
  margin-top: 8px;
  color: #62758f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cm-muni-overview-item strong,
.cm-muni-indicator-card strong,
.cm-muni-useful-card strong {
  display: block;
  margin-top: 4px;
  color: #082450;
  font-size: 16px;
  line-height: 1.25;
}

.cm-muni-overview-item span,
.cm-muni-overview-item strong {
  margin-top: 0;
}

.cm-muni-overview-item strong {
  font-size: 14px;
}

.cm-muni-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8eef7;
  color: #71849d;
  font-size: 12px;
}

.cm-muni-source-row a,
.cm-muni-section-head a,
.cm-muni-tourism-card a,
.cm-muni-useful-card a {
  color: #0579bd;
  font-weight: 900;
  text-decoration: none;
}

.cm-muni-about-row,
.cm-muni-section {
  margin-top: 28px;
}

.cm-muni-about-row {
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(420px, .42fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e2eaf6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(14, 46, 92, .1);
}

.cm-muni-about {
  border: 0;
  border-right: 1px solid #dfe8f5;
  border-radius: 0;
  padding: 24px 28px;
  box-shadow: none;
}

.cm-muni-about p {
  margin: 10px 0 0;
  color: #405571;
  max-width: 880px;
  font-size: 15px;
  line-height: 1.65;
}

.cm-muni-focus-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 0;
  background: linear-gradient(145deg, #ffffff, #f3f8ff);
}

.cm-muni-focus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #eef5ff;
  color: #0b61d8;
  flex-shrink: 0;
}

.cm-muni-focus-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: #0b61d8;
  fill: none;
}

.cm-muni-focus-strip span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid #dfe8f5;
  border-bottom: 1px solid #dfe8f5;
  border-radius: 0;
  background: transparent;
  color: #0b61d8;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: none;
}

.cm-muni-focus-strip span::before {
  content: '';
  display: none;
}

.cm-muni-focus-strip span:last-child {
  border-right: 0;
}

.cm-muni-focus-strip span:nth-child(2n) {
  border-right: 0;
}

.cm-muni-focus-strip span:nth-child(n + 3) {
  border-bottom: 0;
}

.cm-muni-section {
  padding: 4px 0;
}

.cm-muni-indicator-grid,
.cm-muni-useful-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.cm-muni-indicator-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.cm-muni-useful-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.cm-muni-indicator-card,
.cm-muni-useful-card {
  min-width: 0;
  padding: 16px;
}

.cm-muni-indicator-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 12px;
  row-gap: 3px;
  min-height: 138px;
  height: 100%;
  align-content: start;
}

.cm-muni-indicator-card i {
  grid-row: 1 / span 5;
  width: 38px;
  height: 38px;
  font-size: 16px;
}

.cm-muni-indicator-card span,
.cm-muni-indicator-card strong,
.cm-muni-indicator-card em,
.cm-muni-indicator-card small,
.cm-muni-indicator-card b {
  grid-column: 2;
}

.cm-muni-indicator-card b {
  width: fit-content;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f8ef;
  color: #067647;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.cm-muni-indicator-card em {
  display: block;
  margin-top: 2px;
  color: #3f536f;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.cm-muni-indicator-card small,
.cm-muni-useful-card small {
  display: block;
  margin-top: 6px;
  color: #72849b;
  font-size: 12px;
  line-height: 1.45;
}

.cm-muni-tourism-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.cm-muni-tourism-card {
  overflow: hidden;
}

.cm-muni-tourism-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.cm-muni-tourism-card div {
  padding: 14px;
}

.cm-muni-tourism-card strong {
  display: block;
  color: #082450;
  font-size: 15px;
}

.cm-muni-tourism-card p {
  margin: 7px 0 9px;
  color: #526780;
  font-size: 13px;
  line-height: 1.45;
}

.cm-muni-useful-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 4px;
  min-height: 136px;
  height: auto;
  overflow: hidden;
}

.cm-muni-useful-entry {
  grid-column: 2;
  margin-top: 3px;
  padding-top: 0;
  border-top: 0;
  min-width: 0;
}

.cm-muni-useful-card > i {
  grid-row: span 4;
}

.cm-muni-useful-card > span,
.cm-muni-useful-card > strong,
.cm-muni-useful-card > a,
.cm-muni-useful-card > small {
  grid-column: 2;
}

.cm-muni-useful-card > span {
  margin-top: 0;
  font-size: 10px;
  line-height: 1.15;
}

.cm-muni-useful-card strong,
.cm-muni-useful-entry strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 13px;
  line-height: 1.25;
}

.cm-muni-useful-card small,
.cm-muni-useful-entry small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 1.3;
}

.cm-muni-useful-card a {
  font-size: 12px;
  line-height: 1.3;
}

.cm-muni-useful-entry b {
  display: block;
  margin-top: 4px;
  color: #0478bc;
  font-size: 12px;
  line-height: 1.25;
}

.cm-muni-useful-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.cm-muni-cta-card {
  background: linear-gradient(145deg, #ffffff, #eef9ff);
  border-color: #bddff1;
}

.cm-muni-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
  gap: 22px;
  margin-top: 20px;
}

.cm-muni-timeline::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 34px;
  height: 2px;
  background: #b9d5ff;
}

.cm-muni-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  padding: 16px;
  min-height: 132px;
  height: 100%;
  box-shadow: none;
  z-index: 1;
}

.cm-muni-event-card::before {
  content: none;
}

.cm-muni-event-card span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 6px;
  border: 1px solid #b9d5ff;
  border-radius: 10px;
  background: #e8f7ff;
  color: #0478bc;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.cm-muni-event-card strong {
  display: block;
  margin-top: 0;
  color: #082450;
  font-size: 15px;
  align-self: end;
}

.cm-muni-event-card p {
  grid-column: 2;
  margin: 2px 0 0;
  color: #526780;
  font-size: 13px;
  line-height: 1.45;
}

.cm-muni-event-card:only-child {
  max-width: 620px;
}

.cm-muni-gallery-track {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.cm-muni-gallery-track figure {
  flex: 0 0 230px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2eaf6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(14, 46, 92, .1);
}

.cm-muni-gallery-track img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.cm-muni-gallery-track figcaption {
  padding: 9px 11px;
  color: #526780;
  font-size: 12px;
  font-weight: 700;
}

.cm-muni-gallery-track figure:only-child {
  flex-basis: 360px;
}

.cm-muni-related-posts,
.cm-muni-related-opps {
  margin-top: 16px;
}

.cm-muni-related-posts > div,
.cm-muni-related-opps > div {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.cm-muni-related-posts article {
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(14, 46, 92, .08) !important;
}

.cm-muni-related-posts article > a > div:first-child {
  height: 112px !important;
}

.cm-muni-related-posts article > a > div:nth-child(2) {
  padding: 14px !important;
}

.cm-muni-related-posts article > div:last-child {
  display: none;
}

.cm-muni-related-posts h3 {
  font-size: 15px !important;
}

.cm-muni-related-posts p {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.cm-muni-related-opps article {
  padding: 16px !important;
  border-radius: 12px !important;
  min-height: 118px;
}

@media (max-width: 1180px) {
  .cm-muni-shell {
    width: min(100% - 48px, 1320px);
  }

  .cm-muni-overlap {
    grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  }

  .cm-muni-tourism-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cm-muni-indicator-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cm-muni-useful-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .cm-muni-hero {
    min-height: 460px;
  }

  .cm-muni-overlap,
  .cm-muni-about-row {
    grid-template-columns: 1fr;
  }

  .cm-muni-about {
    border-right: 0;
    border-bottom: 1px solid #dfe8f5;
  }

  .cm-muni-focus-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-muni-focus-strip span:nth-child(2n) {
    border-right: 0;
  }

  .cm-muni-indicator-grid,
  .cm-muni-useful-grid,
  .cm-muni-timeline,
  .cm-muni-gallery-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-muni-useful-card {
    height: auto;
    min-height: 128px;
  }

  .cm-muni-tourism-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-muni-related-posts > div,
  .cm-muni-related-opps > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .cm-muni-shell {
    width: min(100% - 24px, 1320px);
  }

  .cm-muni-hero {
    min-height: 430px;
  }

  .cm-muni-hero-inner {
    padding: 64px 0 116px;
  }

  .cm-muni-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .cm-muni-hero p {
    font-size: 15px;
  }

  .cm-muni-overlap {
    margin-top: -74px;
    gap: 16px;
  }

  .cm-muni-panorama-card,
  .cm-muni-about,
  .cm-muni-indicator-card,
  .cm-muni-useful-card,
  .cm-muni-event-card {
    padding: 18px;
  }

  .cm-muni-overview-grid,
  .cm-muni-indicator-grid,
  .cm-muni-useful-grid,
  .cm-muni-tourism-grid,
  .cm-muni-timeline,
  .cm-muni-gallery-track {
    grid-template-columns: 1fr;
  }

  .cm-muni-focus-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-muni-focus-strip span {
    min-height: 74px;
    padding: 12px 8px;
  }

  .cm-muni-related-posts > div,
  .cm-muni-related-opps > div {
    grid-template-columns: 1fr !important;
  }

  .cm-muni-event-card:only-child {
    grid-column: auto;
  }

  .cm-muni-card-head {
    align-items: flex-start;
  }

  .cm-muni-card-head img {
    width: 58px;
    height: 58px;
  }

  .cm-muni-source-row,
  .cm-muni-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cm-muni-mayor-photo {
    display: none;
  }

  .cm-muni-mayor-photo img {
    grid-row: span 2;
  }
}
/* =========================================================
   Festas Tradicionais — Layout Timeline
   ========================================================= */

.cm-muni-traditional-section {
  overflow: hidden;
}

.cm-muni-traditional-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cm-muni-traditional-head h2 {
  margin: 0;
  color: #0d2856;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.cm-muni-section-link {
  color: #0064f2;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.cm-muni-traditional-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 10px 0 8px;
}

.cm-muni-traditional-item {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.cm-muni-traditional-date {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(0, 100, 242, .22);
  border-radius: 10px;
  background: #f8fbff;
  color: #0064f2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  box-shadow: 0 10px 22px rgba(13, 40, 86, .06);
  flex-shrink: 0;
}

.cm-muni-traditional-diamond {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #0064f2;
  border-radius: 3px;
  transform: rotate(45deg);
}

.cm-muni-traditional-date strong {
  color: #0064f2;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
}

.cm-muni-traditional-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.cm-muni-traditional-copy strong {
  display: block;
  color: #0d2856;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.cm-muni-traditional-copy small {
  display: block;
  color: #6b7c93;
  font-size: 14px;
  font-weight: 600;
}

.cm-muni-traditional-connector {
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  width: 78px;
  height: 2px;
  background: rgba(0, 100, 242, .24);
  transform: translateY(-50%);
  pointer-events: none;
}

.cm-muni-traditional-connector::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0064f2;
  transform: translateY(-50%);
}

@media (max-width: 1100px) {
  .cm-muni-traditional-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
  }

  .cm-muni-traditional-connector {
    display: none;
  }
}

@media (max-width: 640px) {
  .cm-muni-traditional-head {
    align-items: flex-start;
  }

  .cm-muni-traditional-head h2 {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.1;
  }

  .cm-muni-section-link {
    font-size: 13px;
    padding-top: 4px;
  }

  .cm-muni-traditional-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  .cm-muni-traditional-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(13, 40, 86, .06);
  }

  .cm-muni-traditional-date {
    width: 54px;
    height: 54px;
    border-radius: 9px;
  }

  .cm-muni-traditional-date strong {
    font-size: 16px;
  }

  .cm-muni-traditional-copy strong {
    font-size: 15px;
  }

  .cm-muni-traditional-copy small {
    font-size: 13px;
  }

  .cm-muni-traditional-connector {
    display: none;
  }
}

@media (max-width: 390px) {
  .cm-muni-traditional-head {
    gap: 8px;
  }

  .cm-muni-section-link {
    font-size: 12px;
  }

  .cm-muni-traditional-item {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 12px;
  }
}

/* Correção pontual: no mobile, Últimas notícias e Links rápidos devem empilhar sem sobreposição. */
@media (max-width: 760px) {
  .cm-home-bottom,
  .cm-home-bottom.cm-home-bottom-without-municipalities,
  .cm-home-bottom.cm-home-bottom-without-municipalities.cm-home-bottom--no-notices {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .cm-home-bottom > .cm-latest-section,
  .cm-home-bottom .cm-latest-section,
  .cm-home-bottom > .cm-notices-quick,
  .cm-home-bottom .cm-notices-quick,
  .cm-home-bottom .cm-quick-links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    overflow: visible;
    margin: 0;
  }

  .cm-home-bottom.cm-home-bottom-without-municipalities > .cm-notices-quick {
    display: block;
  }

  .cm-home-bottom .cm-latest-section {
    order: 1;
  }

  .cm-home-bottom .cm-notices-quick {
    order: 2;
    display: block;
  }

  .cm-home-bottom .cm-quick-links {
    margin-top: 0;
  }

  .cm-home-bottom .cm-latest-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .cm-home-bottom .cm-latest-card {
    flex: 0 0 265px;
    width: 265px;
    max-width: 82vw;
    min-width: 0;
    scroll-snap-align: start;
  }

  .cm-home-bottom .cm-quick-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .cm-home-bottom .cm-latest-card {
    flex-basis: 250px;
    width: 250px;
    max-width: 82vw;
  }

  .cm-home-bottom .cm-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ============================================================
   WP THEME ADDITIONS — Classes not in original React CSS
   ============================================================ */

/* Internal hero (InternalHero component) */
.cm-internal-hero {
    min-height: 280px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #071b3a;
}
.cm-internal-hero-inner { position: relative; z-index: 1; padding: 64px 0; }
.cm-internal-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0;
    color: #fff;
}
.cm-internal-breadcrumb { margin: 14px 0 0; color: rgba(255,255,255,.76); font-size: 14px; font-weight: 600; }
.cm-internal-breadcrumb a { color: #33c0f5; }

/* Page hero (Hero component — listagem/institucional) */
.cm-page-hero {
    background: linear-gradient(135deg, #071b3a, #0d2856 55%, #1a3a6b);
    color: #fff;
    padding: 84px 0 64px;
    position: relative;
    overflow: hidden;
}
.cm-page-hero-inner { position: relative; z-index: 1; }
.cm-page-hero-eyebrow {
    display: block;
    color: #33c0f5;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.cm-page-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.06;
    margin: 0 0 18px;
    color: #fff;
    max-width: 800px;
}
.cm-page-hero-accent { color: #33c0f5; }
.cm-page-hero-text {
    max-width: 660px;
    color: rgba(255,255,255,.72);
    font-size: 17px;
    line-height: 1.72;
    margin: 0;
}

/* Post card (WP generic news card) */
.cm-post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(13,40,86,.07);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.cm-post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(13,40,86,.13); }
.cm-post-card__thumb-wrap { display: block; overflow: hidden; height: 175px; background: #0d2856; }
.cm-post-card__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-post-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cm-post-card__cat {
    display: inline-block;
    background: #0064f2;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 3px 8px;
    width: fit-content;
}
.cm-post-card__title { margin: 4px 0; }
.cm-post-card__title a { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; color: #071b3a; line-height: 1.22; }
.cm-post-card__title a:hover { color: #0064f2; }
.cm-post-card__excerpt { color: #64748b; font-size: 13px; line-height: 1.6; margin: 0; flex: 1; }
.cm-post-card__date { color: #94a3b8; font-size: 11px; font-weight: 700; margin-top: auto; padding-top: 10px; }
.cm-post-card--large .cm-post-card__thumb-wrap { height: 240px; }
.cm-post-card--large .cm-post-card__title a { font-size: 20px; }

/* Post grid (news list) */
.cm-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

/* Generic page content area */
.cm-page-content { max-width: 860px; }
.cm-page-content h1, .cm-page-content h2, .cm-page-content h3 { color: #071b3a; font-family: 'Poppins', sans-serif; }
.cm-page-content p { color: #475569; line-height: 1.72; }
.cm-page-content a { color: #0064f2; }
.cm-page-content a:hover { text-decoration: underline; }

/* Archive/list page table */
.cm-list-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cm-list-table th { background: #071b3a; color: #fff; padding: 13px 14px; text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.cm-list-table td { padding: 14px; border-bottom: 1px solid #e2e8f0; color: #334155; vertical-align: top; }
.cm-list-table tr:last-child td { border-bottom: none; }
.cm-list-table tr:hover td { background: #f8fafc; }
.cm-list-table a { color: #0064f2; font-weight: 600; }

/* Filter bar (WP version — GET form) */
.cm-filter-bar { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; margin-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cm-filter-bar input,
.cm-filter-bar select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.cm-filter-bar input:focus,
.cm-filter-bar select:focus { border-color: #0064f2; outline: none; background: #fff; }
.cm-filter-bar button[type="submit"] {
    height: 44px;
    padding: 0 22px;
    background: #0064f2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.cm-filter-bar button[type="submit"]:hover { background: #0052cc; }

/* Pagination */
.cm-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.cm-pagination a,
.cm-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #e2e8f0; color: #0d2856; font-size: 14px; font-weight: 700; background: #fff; }
.cm-pagination a:hover { background: #0064f2; color: #fff; border-color: #0064f2; }
.cm-pagination .current { background: #0064f2; color: #fff; border-color: #0064f2; }

/* Single post layout */
.cm-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.cm-single-main img { max-width: 100%; border-radius: 12px; }
.cm-single-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 20px; margin-bottom: 28px; }
.cm-single-meta-item { display: grid; gap: 4px; }
.cm-single-meta-label { color: #94a3b8; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.cm-single-meta-value { color: #1e293b; font-size: 14px; font-weight: 700; }
.cm-single-content { font-size: 17px; line-height: 1.78; color: #334155; }
.cm-single-content p { margin: 0 0 20px; }
.cm-single-content h2, .cm-single-content h3 { color: #071b3a; font-family: 'Poppins', sans-serif; margin-top: 36px; }
.cm-single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cm-single-tags a { display: inline-block; padding: 5px 13px; background: #f1f5f9; border-radius: 99px; font-size: 12px; font-weight: 700; color: #0d2856; }
.cm-single-tags a:hover { background: #0064f2; color: #fff; }
.cm-single-vote { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e2e8f0; display: flex; align-items: center; gap: 14px; }
.cm-single-vote strong { color: #0d2856; font-size: 15px; }
.cm-vote-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; color: #0d2856; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .18s; font-family: inherit; }
.cm-vote-btn:hover, .cm-vote-btn.is-voted { background: #0064f2; color: #fff; border-color: #0064f2; }
.cm-sidebar { display: grid; gap: 20px; position: sticky; top: 120px; }
.cm-sidebar-widget { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.cm-sidebar-widget h3 { margin: 0 0 14px; color: #0d2856; font-size: 15px; font-family: 'Poppins', sans-serif; }
.cm-sidebar-recent-post { display: grid; grid-template-columns: 66px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; align-items: center; }
.cm-sidebar-recent-post:last-child { border-bottom: none; }
.cm-sidebar-recent-post img { width: 66px; height: 50px; object-fit: cover; border-radius: 8px; }
.cm-sidebar-recent-post a { display: block; color: #0d2856; font-size: 12px; font-weight: 700; line-height: 1.28; }
.cm-sidebar-recent-post small { display: block; color: #94a3b8; font-size: 11px; margin-top: 3px; }

/* Transparency card grid */
.cm-transp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cm-transp-card { min-height: 145px; display: grid; align-content: start; gap: 10px; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 6px 18px rgba(13,40,86,.06); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.cm-transp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13,40,86,.12); }
.cm-transp-card-icon { width: 40px; height: 40px; border-radius: 10px; background: #e0f0ff; color: #0064f2; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.cm-transp-card strong { color: #0d2856; font-size: 14px; }
.cm-transp-card span { color: #64748b; font-size: 12px; line-height: 1.5; }

/* Quick access grid (home page) */
.cm-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.cm-quick-item { min-height: 158px; display: grid; align-content: start; gap: 10px; padding: 20px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); text-decoration: none; transition: background .2s; }
.cm-quick-item:hover { background: rgba(255,255,255,.14); }
.cm-quick-num { width: 42px; height: 42px; border-radius: 99px; background: #33c0f5; color: #071b3a; display: grid; place-items: center; font-weight: 950; font-size: 13px; }
.cm-quick-item strong { color: #fff; font-size: 14px; }
.cm-quick-item span { color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.5; }

/* Municipality cards */
.cm-municipality-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 24px; }
.cm-municipality-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; text-decoration: none; }
.cm-municipality-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(13,40,86,.12); }
.cm-municipality-card__thumb { height: 160px; background: #0d2856; position: relative; overflow: hidden; }
.cm-municipality-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-municipality-card__body { padding: 16px; flex: 1; }
.cm-municipality-card__name { font-size: 16px; font-weight: 800; color: #071b3a; margin: 0 0 4px; font-family: 'Poppins', sans-serif; }
.cm-municipality-card__region { font-size: 11px; font-weight: 700; color: #0064f2; text-transform: uppercase; }
.cm-municipality-card__meta { margin-top: 8px; font-size: 12px; color: #64748b; }

/* Empty state */
.cm-empty-state { text-align: center; padding: 48px 24px; background: #f8fafc; border-radius: 14px; border: 1.5px dashed #cbd5e1; }
.cm-empty-state strong { display: block; color: #0d2856; font-size: 17px; margin-bottom: 8px; }
.cm-empty-state p { color: #64748b; margin: 0; }

/* FAQ section (home) */
.cm-faq-section { padding: 72px 0; background: #f8fafc; }
.cm-faq-list { max-width: 740px; margin: 32px auto 0; display: grid; gap: 12px; }
.cm-faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.cm-faq-item summary { padding: 18px 22px; font-weight: 700; color: #0d2856; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.cm-faq-item summary::-webkit-details-marker { display: none; }
.cm-faq-item summary::after { content: '+'; color: #0064f2; font-size: 22px; font-weight: 400; flex-shrink: 0; }
.cm-faq-item[open] summary::after { content: '–'; }
.cm-faq-item p { padding: 0 22px 18px; margin: 0; color: #475569; line-height: 1.72; }

/* Search results */
.cm-search-result { display: grid; gap: 8px; padding: 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; transition: box-shadow .18s; }
.cm-search-result:hover { box-shadow: 0 8px 22px rgba(13,40,86,.1); }
.cm-search-type { font-size: 10px; font-weight: 900; text-transform: uppercase; color: #0064f2; letter-spacing: .5px; }
.cm-search-title { font-size: 16px; font-weight: 700; color: #071b3a; line-height: 1.25; }
.cm-search-desc { font-size: 13px; color: #64748b; line-height: 1.55; }
.cm-search-meta { font-size: 11px; color: #94a3b8; font-weight: 600; }

/* Video card */
.cm-video-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.cm-video-card__thumb { position: relative; height: 175px; background: #071b3a; }
.cm-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-video-card__play { position: absolute; inset: 0; display: grid; place-items: center; }
.cm-video-card__play span { width: 50px; height: 50px; border-radius: 99px; background: rgba(0,100,242,.88); color: #fff; display: grid; place-items: center; font-size: 20px; }
.cm-video-card__body { padding: 16px; }
.cm-video-card__title { font-size: 15px; font-weight: 700; color: #071b3a; margin: 0 0 6px; line-height: 1.25; }
.cm-video-card__meta { font-size: 12px; color: #94a3b8; }

/* Gallery grid */
.cm-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cm-gallery-item { position: relative; overflow: hidden; border-radius: 12px; background: #071b3a; aspect-ratio: 4/3; }
.cm-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cm-gallery-item:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
    .cm-single-layout { grid-template-columns: 1fr; }
    .cm-sidebar { position: static; }
}
