.wp-theme-oichalia-municipal :is(.navlinks, .mobile-menu) .heritage-menu .mega-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wp-theme-oichalia-municipal :is(.navlinks, .mobile-menu) a.heritage-menu-link {
  display: grid;
  grid-template-columns: clamp(72px, 11vw, 150px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.4vw, 21px);
  padding: clamp(8px, 1.2vw, 14px);
  min-width: 0;
  white-space: normal;
  background: #ecf2f8;
  color: #172f54;
  border: 1px solid #d5deeb;
  border-radius: 12px;
}
.wp-theme-oichalia-municipal .mobile-menu a.heritage-menu-link { background: #1b2d48; color: #fff; border-color: #6f86a3; }
.heritage-menu-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.heritage-menu-link strong, .heritage-menu-link small { display: block; }
.heritage-menu-link strong { font-size: clamp(16px, 1.6vw, 24px); }
.heritage-menu-link small { font-size: .88rem; line-height: 1.4; font-weight: 500; }
.heritage-menu-arrow { font-size: 1.35rem; padding-right: 5px; }
.wp-theme-oichalia-municipal :is(.navlinks, .mobile-menu) a.heritage-menu-link:is(:hover, :focus-visible) { border-color: #986d36; }

.heritage-page { padding-block: 34px 60px; }
.heritage-intro figure { min-height: 330px; }
.heritage-intro figure img { object-position: center 41%; }
.wp-theme-oichalia-municipal .heritage-book-link { color: #173c68; text-decoration: underline; }
.heritage-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px; }
.wp-theme-oichalia-municipal .heritage-navigation a {
  padding: 8px 15px; border: 1px solid #d5deeb; border-radius: 8px;
  color: #18395b; background: #fff; font-weight: 750;
}
.wp-theme-oichalia-municipal .heritage-navigation a[aria-current] { color: #fff; background: #1b3659; }
.heritage-group + .heritage-group { margin-top: 34px; }
.heritage-group > h2 { margin: 0 0 14px; color: #172f54; font-size: clamp(22px, 3vw, 32px); }
.heritage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.heritage-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid #d5deeb; border-radius: 12px; background: #fff;
}
.heritage-card > img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.heritage-card-copy { display: flex; flex-direction: column; flex: 1; padding: 17px; }
.heritage-card h3 { margin: 0; color: #18395b; font-size: 1.12rem; line-height: 1.28; }
.heritage-card p { margin: 8px 0 14px; color: #344b66; line-height: 1.52; }
.wp-theme-oichalia-municipal .heritage-card a { align-self: flex-start; margin-top: auto; color: #1d507d; font-weight: 700; }
.wp-theme-oichalia-municipal .heritage-card a:hover, .heritage-credit a { text-decoration: underline; text-underline-offset: 3px; }
.heritage-credit { margin: 24px 0 0; font-size: .92rem; color: #445a73; }
@media (max-width: 940px) { .heritage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 610px) {
  .heritage-grid, .wp-theme-oichalia-municipal .mobile-menu .heritage-menu .mega-inner { grid-template-columns: minmax(0, 1fr); }
  .heritage-intro figure { min-height: 245px; }
}
