/* Workspace navigation stays within the portal; the municipal header is untouched. */
.epg .epg-dashboard { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; }
.epg .epg-main { min-width: 0; scroll-margin-top: 30px; }
.epg .epg-sidebar { background: #f5f7fb; border: 1px solid #e2e8f0; border-radius: 22px; padding: 21px 12px 15px; }
.epg .epg-sidebar-brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 22px; margin-bottom: 8px; border-bottom: 1px solid #e0e7ef; }
.epg .epg-brand-mark { flex-shrink: 0; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #21445c; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.1em; padding-right: 3px; }
.epg .epg-sidebar-brand h2 { margin: 0; color: #17364c; font-size: 22px; line-height: 1.1; font-weight: 750; letter-spacing: -.04em; }
.epg .epg-sidebar-brand p { font-size: 12px; color: #596e80; margin: 5px 0 0; }
.epg .epg-nav { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.epg .epg-nav-item { display: flex; align-items: center; gap: 10px; padding: 13px 11px; border: 1px solid transparent; border-radius: 12px; color: #38536a; min-width: 0; font-size: 14px; line-height: 1.3; }
.epg .epg-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.epg .epg-nav-item strong { display: block; font-size: 14px; font-weight: 600; }
.epg .epg-nav-item small { display: block; font-size: 12px; color: #607487; margin-top: 5px; }
.epg a.epg-nav-item:hover { color: #12616d; background: #e8f0f4; }
.epg .epg-nav-item.epg-nav-active { color: #fff; background: #21445c; font-weight: 650; box-shadow: 0 4px 10px #193d5712; }
.epg .epg-nav-item.epg-nav-pending { color: #667c8e; border: 1px dashed #d8e2ea; }
.epg .epg-top-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); gap: 20px; }
.epg .epg-board { padding: 23px; }
.epg .epg-board h3 { font-size: clamp(22px, 2.3vw, 28px); }
.epg .epg-editorial { display: block; margin-top: 30px; }
.epg .epg-news-grid { display: block; }
.epg .epg-story-lead { display: grid; grid-template-columns: minmax(200px, .9fr) minmax(0, 1.1fr); gap: 24px; padding: 0 0 22px; align-items: center; }
.epg .epg-story-lead .epg-story-image, .epg .epg-story-lead .epg-story-placeholder { height: 215px; }
.epg .epg-story-lead .epg-story-body { padding: 0; }
.epg .epg-story-lead h4 { font-size: 23px; line-height: 1.3; }
.epg .epg-section-heading h3 { font-size: 27px; margin-bottom: 20px; }
.epg .epg-footer { margin-top: 22px; }
@media (min-width: 1051px) {
  .epg .epg-sidebar { position: sticky; top: 45px; }
}
@media (max-width: 1050px) {
  .epg .epg-dashboard { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
  .epg .epg-sidebar { padding: 16px; }
  .epg .epg-sidebar-brand { border: 0; padding: 0; margin-bottom: 14px; }
  .epg .epg-nav { flex-direction: row; flex-wrap: wrap; padding-top: 0; gap: 8px; }
  .epg .epg-nav-item { padding: 10px 12px; }
  .epg .epg-nav-item small { display: none; }
}
@media (max-width: 850px) {
  .epg .epg-top-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .epg .epg-sidebar { border-radius: 18px; }
  .epg .epg-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epg .epg-nav-item { font-size: 13px; padding: 11px 9px; gap: 8px; }
  .epg .epg-nav-item strong { font-size: 13px; }
  .epg .epg-nav-item svg { width: 17px; height: 17px; }
  .epg .epg-story-lead { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .epg .epg-story-lead .epg-story-image { height: 210px; }
  .epg .epg-story-lead h4 { font-size: 22px; }
}

/* Only pages explicitly containing the portal shortcode receive this body class.
   Hide municipal menu controls, leaving the header branding visible. */
body.epg-workspace-page .main-navigation .main-nav,
body.epg-workspace-page .main-navigation .menu-bar-items,
body.epg-workspace-page .main-navigation .menu-toggle,
body.epg-workspace-page .main-navigation .navigation-search,
body.epg-workspace-page .secondary-navigation,
body.epg-workspace-page .mobile-menu-control-wrapper,
body.epg-workspace-page .slideout-navigation,
body.epg-workspace-page .site-header .wp-block-navigation { display: none !important; }
.epg .epg-sidebar-return { border-top: 1px solid #dfe7ee; padding-top: 12px; margin-top: 22px; }
.epg .epg-sidebar-return .epg-nav-item { font-size: 13px; color: #546b7e; line-height: 1.4; }
@media (max-width: 1050px) {
  .epg .epg-sidebar-return { margin-top: 12px; padding-top: 8px; }
  .epg .epg-sidebar-return .epg-nav-item { display: inline-flex; }
}

/* A slim, centred municipal signature instead of the old full navigation row. */
body.epg-workspace-page .site-header { background: #fff; border-bottom: 1px solid #e6ecf1; box-shadow: none; }
body.epg-workspace-page .site-header .inside-header { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 1240px; min-height: 0; padding: 12px 20px; margin: 0 auto; }
body.epg-workspace-page .site-header .site-logo { margin: 0; padding: 0; line-height: 0; }
body.epg-workspace-page .site-header .site-logo a { display: inline-block; line-height: 0; }
body.epg-workspace-page .site-header .site-logo img { display: block; width: auto !important; height: auto !important; max-width: min(260px, 78vw) !important; max-height: 52px !important; object-fit: contain; }
body.epg-workspace-page .main-navigation:not(:has(.navigation-branding, .site-logo, .site-branding)) { display: none !important; }
body.epg-workspace-page .main-navigation:has(.navigation-branding, .site-logo, .site-branding) { background: #fff; box-shadow: none; }
body.epg-workspace-page .main-navigation .inside-navigation { justify-content: center; min-height: 0; padding: 10px 20px; }
body.epg-workspace-page .main-navigation .navigation-branding { margin: 0 auto; }
body.epg-workspace-page .main-navigation .navigation-branding img,
body.epg-workspace-page .main-navigation .navigation-logo img { width: auto !important; height: auto !important; max-height: 52px !important; max-width: min(260px, 78vw) !important; padding: 0; object-fit: contain; }
body.epg-workspace-page .site-content { padding-top: 0; }
body.epg-workspace-page .site-main { margin-top: 0; }
body.epg-workspace-page .inside-article { padding-top: 20px; }
.epg .epg-dashboard { padding-top: 0; }
@media (max-width: 1050px) { .epg .epg-dashboard { padding-top: 0; } }
@media (max-width: 540px) {
  body.epg-workspace-page .site-header .inside-header { padding: 10px 16px; }
  body.epg-workspace-page .site-header .site-logo img,
  body.epg-workspace-page .main-navigation .navigation-branding img,
  body.epg-workspace-page .main-navigation .navigation-logo img { max-height: 42px !important; max-width: 215px !important; }
  body.epg-workspace-page .inside-article { padding-top: 16px; }
}

/* Latest three municipal news banners, newest first. */
.epg .epg-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.epg .epg-story-banner { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #e1e8ef; border-radius: 17px; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.epg .epg-story-banner:hover { transform: translateY(-3px); box-shadow: 0 10px 22px #1e405514; }
.epg .epg-story-banner .epg-story-image,
.epg .epg-story-banner .epg-story-placeholder { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.epg .epg-story-banner .epg-story-body { padding: 16px; }
.epg .epg-story-banner .epg-story-date { font-size: 12px; }
.epg .epg-story-banner h4 { font-size: 18px; line-height: 1.35; font-weight: 650; margin: 8px 0 0; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .epg .epg-news-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .epg .epg-story-banner { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: stretch; }
  .epg .epg-story-banner .epg-story-image,
  .epg .epg-story-banner .epg-story-placeholder { height: 100%; min-height: 125px; aspect-ratio: auto; }
  .epg .epg-story-banner .epg-story-placeholder { padding: 10px; font-size: 24px; }
  .epg .epg-story-banner .epg-story-placeholder span { font-size: 12px; }
  .epg .epg-story-banner .epg-story-body { padding: 13px; }
  .epg .epg-story-banner h4 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .epg .epg-story-banner:hover { transform: none; } }

.epg .epg-sidebar-brand h2{font-size:20px;line-height:1.15;overflow-wrap:normal}
