/* Page 1 / Central-Card: fixed shell, independently scrolling municipal content. */
#pmWelcomeOverlay .pm-hub {
  --hub-accent: #2476ce;
  --hub-accent-hover: #1b5fa8;
  --hub-ink: #1b2a3d;
  --hub-muted: #5f7388;
  --hub-border: #e4eaf0;
  width: min(1280px, 94vw);
  height: min(900px, 90dvh);
  max-height: calc(100dvh - 24px);
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 44px;
  padding: 0;
  color: var(--hub-ink);
  font-family: 'Roboto', 'Inter', sans-serif;
  background: url('/assets/img/welcome-hub/beed0.png') center / cover;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(15, 35, 71, 0.45) !important;
  overflow: hidden;
}
.pm-hub *, .pm-hub *::before, .pm-hub *::after { box-sizing: border-box; }
.pm-hub h1, .pm-hub h2, .pm-hub h3, .pm-hub p { margin: 0; }
#pmWelcomeOverlay .pm-hub h2, #pmWelcomeOverlay .pm-hub h3,
#pmWelcomeOverlay .pm-hub #pmWelcomeWeatherTemp { color: var(--hub-ink) !important; }
.pm-hub button, .pm-hub input, .pm-hub a { font: inherit; }
.pm-hub button, .pm-hub a { -webkit-tap-highlight-color: transparent; }
.pm-hub button { cursor: pointer; }
.pm-hub a { text-decoration: none; }
.pm-hub :focus-visible { outline: 3px solid var(--hub-accent); outline-offset: 3px; }
.pm-hub [hidden] { display: none !important; }
.pm-hub__header { display: flex; align-items: center; gap: 18px; padding: 12px 28px 12px 32px; background: #fffffff0; border-bottom: 1px solid var(--hub-border); backdrop-filter: blur(12px); z-index: 1; }
.pm-hub__brand { width: 130px; height: 40px; object-fit: contain; }
.pm-hub__date { margin: 0 auto !important; font: 500 13px 'Inter', sans-serif; color: #595959; }
.pm-hub__weather { display: flex; align-items: center; gap: 10px; font-size: 12px; white-space: nowrap; }
.pm-hub__weather svg { width: 26px; height: 26px; color: #ffae00; }
.pm-hub__weather-icon { display: flex; }
.pm-hub__login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 35px; padding: 8px 14px; border-radius: 99px; background: var(--hub-accent); color: white; font-size: 14px !important; white-space: nowrap; }
.pm-hub__login:hover { background: var(--hub-accent-hover); }
#pmWelcomeOverlay .pm-hub__login, #pmWelcomeOverlay .pm-hub__login span { color: #fff !important; }
#pmWelcomeOverlay .pm-hub__more { color: #07162b !important; }
.pm-hub__close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #ebedf0; color: #666; font-size: 23px !important; font-weight: 300; }
.pm-hub__body { display: grid; grid-template-columns: 31.33% minmax(0, 1fr); min-height: 0; overflow-x: hidden; overflow-y: visible; }
.pm-hub__sidebar {
  min-height: 0;
  height: 100%;
  padding: 28px 32px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  background: #fff;
  border-bottom-right-radius: 0;
}
.pm-hub__intro { flex: 0 0 auto; }
.pm-hub__intro h1 { font: 800 clamp(25px, 3.05vw, 42px)/1.1 'Onest', 'Inter', sans-serif; letter-spacing: -.8px; color: #1a1a1a; }
.pm-hub__intro h1 span { display: block; color: var(--hub-accent); }
.pm-hub__intro p { margin-top: 12px; color: var(--hub-muted); font: 400 15px/1.45 'DM Sans', sans-serif; }
.pm-hub__media-stack { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; }
.pm-hub__video-card, .pm-hub__quick {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(13, 41, 66, 0.12), 0 1px 3px rgba(13, 41, 66, 0.06);
}
.pm-hub__video-card { padding: 12px; flex: 0 0 auto; width: 100%; min-width: 0; }
.pm-hub__video-card h2 { margin-bottom: 8px; font-size: 14px; line-height: 1.3; }
.pm-hub__video { position: relative; aspect-ratio: 16/9; min-height: 140px; overflow: hidden; border-radius: 8px; background: #e5eaf0; }
.pm-hub__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pm-hub__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; color: white; background: #2476cedd; border: 1px solid white; border-radius: 50%; display: grid; place-items: center; }
.pm-hub__video.is-playing .pm-hub__play { display: none; }
.pm-hub__video-hint { position: absolute; inset: auto 4px 4px; padding: 6px; font-size: 11px; background: white; }
.pm-hub__quick { padding: 12px 16px 8px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.pm-hub__quick h2 { font-size: 16px; line-height: 20px; margin-bottom: 4px; flex: 0 0 auto; }
.pm-hub__quick-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5d6ea transparent; }
.pm-hub__quick-list::-webkit-scrollbar { width: 4px; }
.pm-hub__quick-list::-webkit-scrollbar-thumb { border-radius: 4px; background: #c5d6ea; }
.pm-hub__quick button { display: flex; align-items: center; gap: 20px; width: 100%; height: 42px; padding: 0 8px; text-align: left; border: 0; border-top: 1px solid var(--hub-border); background: transparent; color: var(--hub-muted); font-size: 14px; }
.pm-hub__quick button svg { width: 22px; height: 22px; flex: 0 0 22px; }
.pm-hub__quick button img:last-child { margin-left: auto; }
.pm-hub__quick button:hover, .pm-hub__quick button[aria-current='true'] { color: var(--hub-accent); background: #eaf3fb; }
.pm-hub__scroll { min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.pm-hub__landing {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vh, 22px);
  padding: 20px 32px 14px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
}
.pm-hub__systems { --systems-gap: 18px; --systems-visible: 3; position: relative; flex: 0 0 auto; }
.pm-hub__systems-viewport { overflow-x: hidden; overflow-y: visible; padding: 10px 0; margin: -10px 0; }
.pm-hub__systems-track { display: flex; width: 100%; gap: var(--systems-gap); transition: transform .4s ease; }
.pm-hub__systems-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: auto;
  margin-bottom: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--hub-accent);
  box-shadow: 0 2px 10px rgba(13, 41, 66, 0.22);
  line-height: 0;
}
.pm-hub__systems-nav svg { display: block; }
.pm-hub__systems-nav:hover { background: #eaf3fb; }
.pm-hub__systems-nav:disabled { color: #b7c6d6; cursor: default; }
.pm-hub__systems-nav:disabled:hover { background: #fff; }
.pm-hub__systems-nav--prev { left: 0; margin-left: -17px; }
.pm-hub__systems-nav--next { right: 0; margin-right: -17px; }
.pm-hub__system { display: flex; flex-direction: column; flex: 0 0 calc((100% - (var(--systems-visible) - 1) * var(--systems-gap)) / var(--systems-visible)); min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 10px; box-shadow: 0 5px 16px #0d29421f; text-align: left; transition: transform .15s; }
.pm-hub__system:hover { transform: translateY(-3px); }
.pm-hub__system-art { --pm-card: #2476ce; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; width: 100%; min-height: 120px; padding: 16px 18px; background: var(--pm-card); color: white; }
.pm-hub__system-art > .pm-hub__system-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; filter: brightness(90%); }
.pm-hub__system-art > img:not(.pm-hub__system-photo),
.pm-hub__system-art > strong,
.pm-hub__system-art > small { position: relative; z-index: 3; }
.pm-hub__system-art > img:not(.pm-hub__system-photo) { filter: drop-shadow(2px 2px 4px rgb(0 0 0 / 1)) !important; }
.pm-hub__system-art > strong,
.pm-hub__system-art > small { text-shadow: 2px 2px 6px rgb(0 0 0 / 1), 0 0 12px rgb(0 0 0 / 0.9) !important; }
.pm-hub__system--simpa .pm-hub__system-art { --pm-card: #d49b13; }
.pm-hub__system--obras .pm-hub__system-art { --pm-card: #1d7738; }
.pm-hub__system--ouvidoria .pm-hub__system-art { --pm-card: #6d28a8; }
.pm-hub__system--sogov .pm-hub__system-art { --pm-card: #1a56c4; }
.pm-hub__system--transparencia .pm-hub__system-art { --pm-card: #0e7490; }
.pm-hub__system-mark { width: 30px; height: 30px; }
.pm-hub__system strong { font-size: 16px; line-height: 20px; }
.pm-hub__system small { font-size: 13px; line-height: 18px; }
.pm-hub__system-foot { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 18px; color: var(--hub-accent); background: white; font-size: 14px; }
.pm-hub__more { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; margin-top: 12px; border: 0; border-radius: 99px; background: #f3f6fa; color: #07162b; font-size: 14px !important; font-weight: 700 !important; flex: 0 0 auto; align-self: flex-start; }
.pm-hub__section { margin: 0 32px 24px; padding: 24px 28px; background: #fff; border-radius: 20px; scroll-margin-top: 24px; box-shadow: 0 5px 16px #0d29421f; }
.pm-hub__landing > .pm-hub__section--news {
  position: relative;
  margin: 0;
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 28px 16px;
}
.pm-hub__section-head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pm-hub__section-copy { min-width: 0; padding-right: 168px; }
.pm-hub__view-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 6px 10px 6px 8px;
  border-radius: 0 20px 0 20px;
  background: var(--hub-accent);
}
.pm-hub__view-switch-thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.pm-hub__view-switch button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
}
.pm-hub__view-switch button img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.pm-hub__view-switch button:hover:not([aria-pressed='true']) { background: rgba(255, 255, 255, 0.14); }
.pm-hub__views { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pm-hub__view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pm-hub__view[hidden] { display: none !important; }
.pm-hub__panel-copy { margin-top: 14px; font: 400 14px/1.5 'DM Sans', sans-serif; color: var(--hub-muted); }
.pm-hub__section h2 { font: 700 18px/1.3 'Onest', sans-serif; color: #1b2a3d; }
.pm-hub__section > p,
.pm-hub__section-head > p,
.pm-hub__section-copy p { margin-top: 4px; font: 400 13px/1.5 'DM Sans', sans-serif; color: var(--hub-muted); }
.pm-hub__news-list { list-style: none; padding: 0; margin: 14px 0 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5d6ea transparent; }
.pm-hub__news-list::-webkit-scrollbar { width: 4px; }
.pm-hub__news-list::-webkit-scrollbar-thumb { border-radius: 4px; background: #c5d6ea; }
.pm-hub__news-list:empty { display: none; }
.pm-hub__news-list a { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e2e8f0; color: #282828; }
.pm-hub__news-list a > img { flex: 0 0 80px; width: 80px; height: 60px; object-fit: cover; border-radius: 6px; background: #e8eef4; }
.pm-hub__news-list small { display: block; margin-bottom: 4px; font: 600 11px 'DM Sans', sans-serif; color: var(--hub-accent); text-transform: uppercase; }
.pm-hub__news-list strong { font: 600 14px/1.45 'Onest', sans-serif; color: #282828; }
.pm-hub__news-empty { margin-top: 14px; font: 400 13px/1.5 'DM Sans', sans-serif; color: var(--hub-muted); flex: 0 0 auto; }
.pm-hub__news-empty[hidden] { display: none !important; }
.pm-hub__view.is-loaded .pm-hub__news-empty { display: none !important; }
.pm-hub__view--tourism .pm-hub__tourism { margin: 14px 0 0; flex: 1 1 auto; min-height: 0; height: auto; }
.pm-hub__tourism {
  display: block;
  position: relative;
  margin: 0;
  min-height: 160px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #fff;
  background: #16324f url('/assets/img/welcome-hub/turismo-ponte.jpg') center / cover no-repeat;
  box-shadow: 0 5px 16px #0d29421f;
  scroll-margin-top: 24px;
}
.pm-hub__tourism::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 22, 43, 0.78) 0%, rgba(7, 22, 43, 0.42) 55%, rgba(7, 22, 43, 0.12) 100%);
}
.pm-hub__tourism-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 620px;
  padding: 28px 30px;
  color: #fff;
}
.pm-hub__tourism-copy strong { font: 700 28px/1.15 'Onest', sans-serif; }
.pm-hub__tourism-copy small { font: 400 14px/1.45 'DM Sans', sans-serif; color: rgba(255,255,255,.92); }
.pm-hub__tourism-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: #fff;
  color: #07162b;
  font: 700 14px/1 'Roboto', sans-serif;
}
.pm-hub__tourism-cta img { filter: none; }
.pm-hub__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 40px; background: #fff; color: #808080; font: 400 11px 'Inter', sans-serif; border-top: 1px solid var(--hub-border); }
.pm-hub__footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pm-hub__footer-links a { border: 0; background: none; color: var(--hub-accent); font-size: 11px; padding: 0; }
.pm-hub__footer-links a:hover { text-decoration: underline; }
@media (max-height: 800px) and (min-width: 761px) {
  #pmWelcomeOverlay .pm-hub { height: 94dvh; grid-template-rows: 60px minmax(0, 1fr) 36px; }
  .pm-hub__sidebar { padding: 18px 26px 22px; gap: 14px; }
  .pm-hub__intro h1 { font-size: 32px; }
  .pm-hub__intro p { font-size: 13px; margin-top: 8px; }
  .pm-hub__media-stack { gap: 8px; min-height: 0; }
  .pm-hub__video-card { padding: 12px; width: 100%; max-width: none; align-self: stretch; }
  .pm-hub__video { min-height: 150px; }
  .pm-hub__video-card h2 { font-size: 13px; margin-bottom: 6px; }
  .pm-hub__quick { padding: 10px 14px; min-height: 0; }
  .pm-hub__quick button { height: 38px; }
  .pm-hub__landing { padding: 16px 24px 14px; gap: 16px; height: 100%; max-height: 100%; overflow-x: hidden; overflow-y: visible; }
  .pm-hub__section { margin-inline: 24px; }
  .pm-hub__landing > .pm-hub__section--news { margin-inline: 0; }
}
@media (max-width: 1050px) {
  .pm-hub__sidebar { padding-inline: 22px; }
  .pm-hub__date { font-size: 11px; }
  .pm-hub__header { gap: 10px; padding-inline: 20px; }
  .pm-hub__system-art { padding-inline: 12px; }
  .pm-hub__system strong { font-size: 14px; }
  .pm-hub__system small { font-size: 11px; }
  .pm-hub__systems { --systems-gap: 12px; }
}
/* The old mobile welcome used full-screen !important rules. Scope its replacement. */
@media (max-width: 1024px) {
  #pmWelcomeOverlay .pm-hub {
    width: min(1280px, 96vw) !important;
    height: calc(100dvh - 88px) !important;
    flex: none !important;
    max-height: calc(100dvh - 88px) !important;
    border-radius: 18px !important;
    background: url('/assets/img/welcome-hub/beed0.png') center / cover !important;
  }
  #pmWelcomeOverlay { justify-content: flex-start; align-items: center; padding-top: 8px; }
}
@media (max-width: 760px) {
  #pmWelcomeOverlay .pm-hub { width: calc(100vw - 16px); height: calc(100dvh - 88px); max-height: none; border-radius: 18px; grid-template-rows: 58px minmax(0, 1fr) 32px; }
  .pm-hub__header { gap: 8px; padding: 8px 12px; }
  .pm-hub__brand { width: 96px; height: 34px; }
  .pm-hub__date { display: none; }
  .pm-hub__weather { margin-left: auto; gap: 4px; }
  .pm-hub__login { font-size: 11px !important; padding-inline: 9px; min-height: 32px; }
  .pm-hub__login img { display: none; }
  .pm-hub__close { width: 30px; height: 30px; flex-basis: 30px; }
  .pm-hub__body { grid-template-columns: 150px minmax(0, 1fr); }
  .pm-hub__sidebar { padding: 14px 10px 18px; gap: 12px; border-radius: 0; background: #fff; }
  .pm-hub__intro h1 { font-size: 18px; letter-spacing: -.4px; }
  .pm-hub__intro p { font-size: 10px; margin-top: 8px; }
  .pm-hub__media-stack { gap: 6px; }
  .pm-hub__video-card { padding: 8px; }
  .pm-hub__video-card h2 { font-size: 11px; margin-bottom: 6px; }
  .pm-hub__video { min-height: 96px; }
  .pm-hub__play { width: 32px; height: 32px; }
  .pm-hub__quick { padding: 8px; }
  .pm-hub__quick h2 { font-size: 12px; line-height: 16px; }
  .pm-hub__quick button { padding: 0 2px; gap: 5px; height: 34px; font-size: 10px; }
  .pm-hub__quick button img:first-child { display: inline-block; width: 16px; height: 16px; }
  .pm-hub__quick button img:last-child { display: none; }
  .pm-hub__landing { padding: 12px 10px 14px; gap: 12px; height: 100%; max-height: 100%; overflow-x: hidden; overflow-y: visible; }
  .pm-hub__systems { --systems-gap: 8px; --systems-visible: 1; }
  .pm-hub__systems-nav--prev { left: 6px; margin-left: 0; }
  .pm-hub__systems-nav--next { right: 6px; margin-right: 0; }
  .pm-hub__section-copy { padding-right: 148px; }
  .pm-hub__view-switch { height: 40px; border-radius: 0 18px 0 18px; }
  .pm-hub__view-switch button { width: 30px; height: 28px; }
  .pm-hub__system-art { min-height: 78px; padding: 8px 10px; gap: 2px; }
  .pm-hub__system-art > img:not(.pm-hub__system-photo):not(.pm-hub__research-art) { display: none; }
  .pm-hub__system small { font-size: 10px; line-height: 14px; }
  .pm-hub__system-foot { min-height: 26px; padding: 4px 10px; font-size: 11px; }
  .pm-hub__section { margin: 0 10px 14px; padding: 16px 12px; }
  .pm-hub__landing > .pm-hub__section--news { margin: 0; }
  .pm-hub__section h2 { font-size: 16px; }
  .pm-hub__news-list a { gap: 8px; align-items: flex-start; }
  .pm-hub__news-list a > img { flex-basis: 44px; width: 44px; height: 42px; }
  .pm-hub__news-list strong { font-size: 11px; }
  .pm-hub__view--tourism .pm-hub__tourism,
  .pm-hub__tourism { min-height: 140px; }
  .pm-hub__tourism-copy { padding: 18px 16px; }
  .pm-hub__tourism-copy strong { font-size: 22px; }
  .pm-hub__footer { padding: 6px 12px; font-size: 9px; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-hub__system,
  .pm-hub__systems-track,
  .pm-hub__view-switch-thumb { transition: none; }
}
