/* Scoped to the existing v2 header; the six primary links remain a single row. */
.mhp-v2 .mhp-header-inner { gap: 12px; }
.mhp-v2 .mhp-i18n-switcher { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; flex: 0 0 204px; width: 204px; }
.mhp-v2 .mhp-i18n-switcher a, .mhp-v2 .mhp-i18n-switcher span { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 30px; padding: 3px 2px; border: 1px solid #b9d5e1; border-radius: 5px; background: #fff; color: #174960; text-decoration: none; font-size: 11px; font-weight: 750; line-height: 1; }
.mhp-v2 .mhp-i18n-switcher a[aria-current] { background: #006da6; border-color: #006da6; color: #fff; }
.mhp-v2 .mhp-i18n-switcher a:hover { background: #e3f5fc; color: #074b6d; }
.mhp-v2 .mhp-i18n-switcher a:focus-visible { outline: 3px solid #efac36; outline-offset: 2px; }
.mhp-v2 .mhp-i18n-switcher .mhp-i18n-unavailable { color: #687c84; background: #f2f4f5; border-color: #d5dfe3; }
.mhp-v2 .mhp-primary { grid-template-columns: repeat(6, minmax(0, 1fr)); min-width: 0; }
.mhp-v2 .mhp-primary a { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .mhp-v2 .mhp-header-inner { flex-wrap: wrap; gap: 4px 12px; }
  .mhp-v2 .mhp-primary { order: 3; flex: 0 0 100%; width: 100%; }
}
@media (max-width: 640px) {
  .mhp-v2 .mhp-header-inner { width: 95%; column-gap: 8px; }
  .mhp-v2 .mhp-brand { flex: 0 0 175px; max-width: 100%; min-width: 0; }
  .mhp-v2 .mhp-brand img { width: 100%; max-width: 100%; }
  .mhp-v2 .mhp-i18n-switcher { order: 2; margin-left: 0; flex: 0 0 100%; width: 100%; }
  .mhp-v2 .mhp-i18n-switcher a, .mhp-v2 .mhp-i18n-switcher span { min-height: 44px; }
  /* Override the theme's inherited align-items:center so taller labels stretch the whole row. */
  .mhp-v2 .mhp-primary { gap: 2px; align-items: stretch; }
  .mhp-v2 .mhp-primary a { font-size: 12px; padding-inline: 1px; letter-spacing: -.02em; }
  .mhp-v2 .mhp-primary a small { font-size: 8px; letter-spacing: 0; }
  /* Keep the two-word home labels at their natural space; balance other long labels when supported. */
  @supports (text-wrap: balance) {
    .mhp-v2 .mhp-primary a:not(:first-child) span { word-break: break-all; text-wrap: balance; }
  }
}

/* The homepage's inline card styles provide the colors and Chinese defaults.
   Override only their two subnav-link pseudo-elements; their aria-current
   attribute is maintained by the existing router and exposes the current page. */
@media (max-width: 640px) {
  /* The theme otherwise forces nowrap, which clips longer translated labels. */
  html:is([lang|="en"], [lang|="el"], [lang|="it"], [lang|="es"], [lang|="pt"]) .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) { align-items: stretch; }
  html:is([lang|="en"], [lang|="el"], [lang|="it"], [lang|="es"], [lang|="pt"]) .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go] { white-space: normal; }
  html:is([lang|="en"], [lang|="el"], [lang|="it"], [lang|="es"], [lang|="pt"]) .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go] > span { max-width: 100%; overflow-wrap: anywhere; }
}
html[lang|="en"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go]:not([aria-current])::after { content: "View"; }
html[lang|="en"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go][aria-current]::after { content: "Viewing"; }
html[lang|="el"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go]:not([aria-current])::after { content: "Δείτε"; }
html[lang|="el"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go][aria-current]::after { content: "Προβάλλεται"; }
html[lang|="it"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go]:not([aria-current])::after { content: "Visualizza"; }
html[lang|="it"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go][aria-current]::after { content: "In visualizzazione"; }
html[lang|="es"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go]:not([aria-current])::after { content: "Ver"; }
html[lang|="es"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go][aria-current]::after { content: "En pantalla"; }
html[lang|="pt"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go]:not([aria-current])::after { content: "Ver"; }
html[lang|="pt"] .mhp-v2[data-mhp-page="home-v2"] nav.mhp-subnav:is([data-mhp-subnav="scenarios"], [data-mhp-subnav="services"]) > a[data-mhp-go][aria-current]::after { content: "A visualizar"; }
