:root {
  --portal-navy: #001b44;
  --portal-blue: #002f6c;
  --portal-blue-bright: #0054a6;
  --portal-green: #78be20;
  --portal-green-dark: #078a45;
  --portal-text: #092d66;
  --portal-muted: #526b91;
  --portal-line: #dce6f1;
  --portal-surface: #ffffff;
  --portal-soft: #f3f7fb;
  --portal-radius: 18px;
  --portal-shadow: 0 16px 38px rgba(0, 35, 83, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--portal-text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1280px;
  padding-right: 28px;
  padding-left: 28px;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #b5dd36;
  outline-offset: 3px;
}

/* Header */
.topbar {
  height: 64px;
  padding: 0;
}

.topbar__inner {
  min-height: 64px;
}

.gov-logo--image {
  width: 210px;
  min-width: 210px;
  height: 64px;
  justify-items: start;
}

.gov-logo--image img {
  width: 178px;
  height: 54px;
  object-position: left center;
}

.access {
  gap: 24px;
  font-size: calc(0.88rem * var(--font-scale));
}

.access a,
.access button {
  padding: 8px 1px;
}

.accessibility-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.accessibility-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 20, 55, 0.28);
}

.theme-toggle {
  width: 30px;
  height: 30px;
  font-size: 17px !important;
}

.navbar {
  position: relative;
  z-index: 100;
  min-height: 102px;
  padding: 0;
  border-bottom: 1px solid #e8eef5;
  box-shadow: 0 6px 20px rgba(0, 36, 83, 0.08);
}

.navbar__inner {
  min-height: 102px;
  gap: 24px;
}

.brand {
  width: 224px;
  min-width: 224px;
  height: 102px;
  padding: 8px 0;
}

.brand-logo-img {
  width: 214px;
  max-height: 64px;
}

.nav-menu {
  align-self: stretch;
}

.nav-panel {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
}

.nav-panel .menu {
  align-content: center;
  justify-content: flex-start;
  gap: 15px 20px;
  padding: 12px 0;
  font-size: calc(0.86rem * var(--font-scale));
}

.nav-panel .menu a {
  line-height: 1.2;
  white-space: nowrap;
}

.nav-panel .info-btn {
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  font-size: calc(0.82rem * var(--font-scale));
}

.nav-panel .info-btn img {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  object-fit: contain;
}

.search {
  width: 46px;
  height: 46px;
}

.search:before {
  left: 13px;
  top: 12px;
}

.search:after {
  left: 27px;
  top: 27px;
}

/* Hero */
.portal-hero {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: linear-gradient(135deg, #003d85, #001b44);
}

.portal-hero .hero-bg-img {
  opacity: 1;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

.portal-hero.hero--image-banner .hero__inner,
.portal-hero.hero--image-banner .waves {
  display: none;
}

.portal-hero:not(.hero--image-banner) .hero__inner {
  display: flex;
}

.feature-link span,
.news-link span,
.section-link span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}

.portal-news .news-body a:after,
.portal-news .section-title a:after,
.portal-services .feature-link:after {
  display: none;
  content: none;
}

/* Main service cards */
.portal-services {
  position: relative;
  z-index: 3;
  display: flex;
  grid-template-columns: none;
  flex-direction: column;
  gap: 16px;
  margin-top: -54px;
  padding-bottom: 22px;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(216, 228, 240, 0.9);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow);
}

.feature-card--media-left .feature-media {
  order: -1;
}

.feature-content {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  align-items: center;
  padding: 42px 52px;
  background: #fff;
}

.feature-content--blue {
  background: linear-gradient(135deg, #00377e, #001f55);
  color: #fff;
}

.feature-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  align-self: start;
  border: 1px solid #cbdcf0;
  border-radius: 16px;
  background: #f3f8fd;
  color: #00449b;
}

.feature-content--blue .feature-icon {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.feature-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feature-content h2 {
  margin: 0 0 12px;
  color: var(--portal-text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.feature-content--blue h2 {
  color: #fff;
}

.feature-content p {
  max-width: 580px;
  margin: 0 0 20px;
  color: #254a78;
  font-size: 0.98rem;
  line-height: 1.65;
}

.feature-content--blue p {
  color: #e4efff;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #003d8f;
  font-weight: 800;
  text-decoration: none;
}

.feature-content--blue .feature-link {
  color: #fff;
}

.feature-media {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: #dceaf6;
}

.feature-media:after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 47, 108, 0.08), transparent 55%);
  content: "";
  pointer-events: none;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-media img {
  transform: scale(1.025);
}

/* News */
.portal-news {
  padding-top: 34px;
  padding-bottom: 58px;
}

.section-title {
  gap: 24px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 2px 0 0;
  color: var(--portal-text);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.section-eyebrow {
  color: var(--portal-green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #003d8f;
  text-decoration: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.news-card {
  display: flex;
  min-height: 450px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e9f2;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 35, 83, 0.1);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  box-shadow: 0 18px 38px rgba(0, 35, 83, 0.17);
  transform: translateY(-4px);
}

.news-image {
  display: block;
  height: 188px;
  overflow: hidden;
  background: #dce8f4;
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.035);
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

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

.news-body .tag {
  position: static;
  margin: 0;
  padding: 6px 11px;
  font-size: 0.72rem;
}

.news-body time {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.news-body h3 {
  min-height: 2.7em;
  margin: 0 0 12px;
  color: var(--portal-text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.news-body p {
  margin: 0 0 20px;
  color: #38577d;
  font-size: 0.9rem;
  line-height: 1.55;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: #003d8f;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.news-link span {
  width: 24px;
  height: 24px;
}

/* Trust */
.trust {
  padding: 42px 0 50px;
  background: linear-gradient(180deg, #edf6ff, #f8fbff);
}

.trust h2 {
  margin: 0 0 30px;
  color: var(--portal-text);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.trust h2 span {
  color: #16843e;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.trust-grid .trust-item {
  display: flex;
  min-height: 126px;
  grid-template-columns: none;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid #d9e7f4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  font-size: initial;
}

.trust-grid .trust-item > div {
  display: block;
  font-size: initial;
}

.trust-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  grid-row: auto;
  place-items: center;
  border-radius: 17px;
  background: #e3eef9;
  color: #003174;
  font-size: 30px;
}

.trust-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #003174;
  font-size: 0.88rem;
  line-height: 1.3;
}

.trust-grid p {
  grid-column: auto;
  color: #496585;
  font-size: 0.8rem;
  line-height: 1.45;
}

.urgent-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.urgent-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 18, 48, 0.62);
  cursor: pointer;
}

.urgent-popup__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 17, 46, 0.38);
  animation: urgent-popup-in 0.22s ease-out;
}

.urgent-popup.is-closing .urgent-popup__dialog {
  animation: urgent-popup-out 0.18s ease-in forwards;
}

.urgent-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 27, 68, 0.9);
  color: #fff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.urgent-popup__image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  background: #002f6c;
}

.urgent-popup__body {
  padding: 28px 32px 32px;
}

.urgent-popup__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #078a45;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.urgent-popup h2 {
  margin: 0 0 12px;
  color: var(--portal-text);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.12;
}

.urgent-popup p {
  margin: 0;
  color: #38577d;
  font-size: 1rem;
  line-height: 1.65;
}

.urgent-popup__link {
  display: inline-flex;
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #008a45;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.urgent-popup__link:hover,
.urgent-popup__link:focus-visible {
  background: #006f39;
}

@keyframes urgent-popup-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes urgent-popup-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* Dark mode compatibility */
.theme-dark .portal-news,
.theme-dark .feature-content,
.theme-dark .news-card,
.theme-dark .trust-grid .trust-item,
.theme-dark .urgent-popup__dialog {
  background: #16233a;
}

.theme-dark .feature-content h2,
.theme-dark .news-body h3,
.theme-dark .trust h2,
.theme-dark .trust-grid strong,
.theme-dark .urgent-popup h2 {
  color: #eff6ff;
}

.theme-dark .feature-content p,
.theme-dark .news-body p,
.theme-dark .trust-grid p,
.theme-dark .urgent-popup p {
  color: #c8d7ea;
}

.theme-dark .trust {
  background: #101a2d;
}

.content-page {
  max-width: 1100px;
}

.rich-content {
  color: #244a78;
  font-size: 1rem;
  line-height: 1.75;
}

.rich-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 35, 83, 0.13);
}

.rich-content figure {
  margin: 28px 0;
}

.rich-content figcaption {
  margin-top: 8px;
  color: #526b91;
  font-size: 0.85rem;
  text-align: center;
}

.page-gallery,
.page-attachments {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid #dce6f1;
}

.page-gallery h2,
.page-attachments h2 {
  color: var(--portal-text);
}

.page-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.page-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 14px;
  background: #fff;
}

.page-gallery-grid img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.page-gallery-grid figcaption {
  padding: 12px 14px;
  color: #38577d;
  font-size: 0.85rem;
}

.attachment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.attachment-list a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dce6f1;
  border-radius: 12px;
  background: #f7faff;
  color: #003d8f;
  text-decoration: none;
}

.attachment-list a > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #003d8f;
  color: #fff;
}

.attachment-list small {
  display: block;
  margin-top: 3px;
  color: #526b91;
}

.content-category {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0057d9;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.news-detail time {
  display: block;
  margin-bottom: 22px;
  color: #526b91;
}

.news-detail-image {
  display: block;
  width: 100%;
  max-height: 540px;
  margin: 22px 0;
  object-fit: cover;
  border-radius: 18px;
}

.news-lead {
  color: #244a78;
  font-size: 1.15rem;
  line-height: 1.65;
}

/* Rodapé preservado no layout anterior. */
.footer {
  background: linear-gradient(90deg, #002060, #00357a);
  color: #fff;
}

.footer .container {
  max-width: 1210px;
  padding-right: 28px;
  padding-left: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 35px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.footer h4 {
  margin: 1.33em 0;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin: 10px 0;
  color: #e9f3ff;
  font-size: 14px;
  text-decoration: none;
}

.footer p {
  color: #e9f3ff;
  font-size: 14px;
}

.footer .social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer .social a {
  display: grid;
  width: 26px;
  height: 26px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #003174;
  font-weight: 900;
}

.footer-logos {
  background: #fff;
  color: #14336a;
}

.footer-logos__inner {
  display: grid;
  min-height: 92px;
  grid-template-columns: 1.2fr 1.2fr 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  font-size: 13px;
}

.footer-logo-img {
  max-width: 250px;
  max-height: 62px;
}

.footer-logo-slot {
  min-width: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
}

.footer-logo-link {
  display: grid !important;
  width: 100%;
  margin: 0 !important;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-logo-link:hover,
.footer-logo-link:focus-visible {
  background: #f2f6fb;
  transform: translateY(-2px);
}

.footer-logo-link img {
  display: block;
  width: auto;
  max-width: 250px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.footer-seal-image img {
  display: block;
  width: auto;
  max-width: 108px;
  height: auto;
  max-height: 86px;
  object-fit: contain;
}

.footer-logo-slot--empty {
  visibility: hidden;
}

.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 55px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  background: #001b44;
  font-size: 13px;
}

/* Tablet */
@media (max-width: 1100px) {
  .navbar {
    min-height: 112px;
  }

  .navbar__inner {
    min-height: 112px;
    gap: 18px;
  }

  .brand {
    width: 188px;
    min-width: 188px;
    height: 112px;
  }

  .brand-logo-img {
    width: 180px;
  }

  .nav-panel .menu {
    gap: 13px 16px;
    font-size: calc(0.78rem * var(--font-scale));
  }

  .nav-panel .info-btn {
    padding: 10px 14px;
  }

  .portal-hero {
    height: 390px;
  }

  .feature-content {
    padding: 34px;
  }

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

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

}

@media (max-width: 900px) and (min-width: 761px) {
  .navbar {
    min-height: 148px;
  }

  .navbar__inner {
    min-height: 148px;
  }

  .brand {
    height: 148px;
  }

  .nav-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }

  .nav-panel .menu {
    grid-column: 1 / -1;
  }

  .nav-panel .info-btn {
    grid-column: 1;
  }

  .nav-panel .search-form {
    grid-column: 2;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .topbar__inner {
    align-items: center;
  }

  .navbar,
  .navbar__inner {
    min-height: 76px;
  }

  .brand {
    height: 76px;
  }

  .brand-logo-img {
    width: 174px;
  }

  .nav-menu {
    align-self: center;
  }

  .nav-panel {
    display: none;
    width: min(360px, calc(100vw - 36px));
    max-height: calc(100dvh - 190px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    z-index: 110;
  }

  .nav-menu.is-open .nav-panel {
    display: grid;
  }

  .nav-menu.is-open .menu-toggle {
    outline: 3px solid #b6df3d;
    outline-offset: 3px;
  }

  .nav-panel .menu {
    font-size: calc(0.92rem * var(--font-scale));
  }

  .portal-hero {
    height: clamp(250px, 55vw, 350px);
    background: #0065a4;
  }

  .portal-hero .hero-bg-img {
    object-fit: contain;
  }

  .portal-services {
    gap: 18px;
    margin-top: 0;
    padding-top: 22px;
  }

  .feature-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature-card--media-left .feature-media {
    order: initial;
  }

  .feature-content {
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 28px 22px;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  .feature-icon svg {
    width: 29px;
    height: 29px;
  }

  .feature-media {
    min-height: 210px;
  }

  .portal-news {
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card {
    min-height: 0;
  }

  .news-image {
    height: 200px;
  }

  .news-body h3 {
    min-height: 0;
  }

  .trust {
    padding: 36px 0 42px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid .trust-item {
    min-height: 112px;
  }

  .page-gallery-grid,
  .attachment-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logos__inner {
    grid-template-columns: 1fr;
    padding: 24px 28px;
    text-align: center;
  }

  .footer-logo-link {
    min-width: 0;
  }

  .footer .seal,
  .footer .sic,
  .footer .footer-brand {
    justify-self: center;
  }

}

@media (max-width: 420px) {
  .brand-logo-img {
    width: 148px;
  }

  .feature-content {
    grid-template-columns: 1fr;
  }

  .feature-icon {
    margin-bottom: 2px;
  }

  .news-image {
    height: 180px;
  }

}

@media (max-width: 700px) {
  .bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-links {
    justify-content: flex-start;
    gap: 12px 18px;
  }
}

/* Card "Em manutenção" no lugar da lista de notícias (Painel > Home > Notícias) */
.news-notice {
  display: flex;
  max-width: 640px;
  margin: 8px auto 0;
  padding: 40px 32px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--portal-line);
  border-top: 5px solid var(--portal-green);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 12px 28px rgba(0, 35, 83, 0.08);
  color: var(--portal-text);
  text-align: center;
}

.news-notice__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: rgba(120, 190, 32, 0.16);
  color: var(--portal-green-dark);
}

.news-notice__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-notice__title {
  color: var(--portal-blue);
  font-size: 1.4rem;
}

.news-notice p {
  max-width: 480px;
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.theme-dark .news-notice {
  border-color: #2a3b57;
  border-top-color: var(--portal-green);
  background: #16233a;
  color: #e6eefb;
}

.theme-dark .news-notice__title {
  color: #fff;
}

.theme-dark .news-notice p {
  color: #c4d3ea;
}

@media (max-width: 600px) {
  .news-notice {
    padding: 30px 20px;
  }
}

/* Card de manutenção na largura do conteúdo, com faixas de "interditado" em cima e embaixo */
.news-notice {
  position: relative;
  max-width: none;
  margin: 8px 0 0;
  padding: 52px 32px;
  overflow: hidden;
  border-top: 1px solid var(--portal-line);
}

.news-notice::before,
.news-notice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(-45deg, #f5b700 0 18px, #1f2a3a 18px 36px);
}

.news-notice::before {
  top: 0;
}

.news-notice::after {
  bottom: 0;
}

.news-notice__icon {
  width: 72px;
  height: 72px;
  background: rgba(245, 183, 0, 0.18);
  color: #9a6b00;
}

.news-notice__icon svg {
  width: 38px;
  height: 38px;
}

.theme-dark .news-notice__icon {
  color: #f5c542;
}

.news-notice,
.theme-dark .news-notice {
  border-top: 1px solid var(--portal-line);
}

.theme-dark .news-notice {
  border-top-color: #2a3b57;
}

/* Modo escuro: a seção Notícias não ganha um bloco de fundo próprio (no claro ela é transparente) */
.theme-dark .portal-news {
  background: transparent;
}

/* Modo escuro: link do card de serviço legível sobre o fundo escuro */
.theme-dark .portal-services .feature-link {
  color: #ffffff;
}

/* Modo escuro: sem sombras em volta dos cards (no fundo escuro viravam uma mancha azul-escura) */
.theme-dark .feature-card,
.theme-dark .news-card,
.theme-dark .news-card:hover,
.theme-dark .news-notice,
.theme-dark .trust-grid .trust-item {
  box-shadow: none;
}

/* Modo escuro: seção Confiança com um fundo leve e transparente, como a faixa clara do modo claro */
.theme-dark .trust {
  background: rgba(140, 188, 255, 0.05);
}

/* Modo escuro: fundo dos ícones da seção Confiança em azul translúcido (em vez do quadrado claro) */
.theme-dark .trust-icon {
  background: rgba(140, 188, 255, 0.12);
  color: #cfe0ff;
}

/* O tema antigo (style.css) tirava a borda direita do último valor; aqui todos os cards têm a borda completa */
.trust-grid .trust-item:last-child {
  border-right: 1px solid #d9e7f4;
}
