/* M-HERO chrome (header/footer) — from D:\FeelIt\horizoneurope\assets\css\main.css */
:root {
  --navy: #063677;
  --eu-blue: #063677;
  --deep-blue: #063677;
  --deep-blue-strong: #00227c;
  --accent: #fb871c;
  --sky: #fb871c;
  --vibrant-orange: #fb871c;
  --accent-deep: #ff6f00;
  --accent-hot: #fe4c00;
  --light-blue: #abcbf5;
  --cream: #fef3e2;
  --ink: #363237;
  --yellow: #ffdf2b;
  --ice: #e8f7fa;
  --aqua: #c0f0f7;
  --mist: #f5f8fb;
  --steel: #a3bad3;
  --sky-mid: #59c0e4;
  --violet: #5f6cfa;
  --amber: #ff6f00;
  --amber-soft: #fef3e2;
  --white: #ffffff;
  --muted: #5a6472;
  --line: #d4dee9;
  --shadow: 0 12px 40px rgba(6, 54, 119, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --header-h: 132px;
  --font-display: "Be Vietnam Pro", "Montserrat", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Thin top page-load bar (viewport top) */
.mhero-top-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.mhero-top-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.mhero-top-loader-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hot) 100%);
  box-shadow: 0 0 8px rgba(251, 135, 28, 0.55);
  transition: transform 0.18s linear;
  will-change: transform;
}

.mhero-top-loader.is-done .mhero-top-loader-bar {
  transition: transform 0.2s var(--ease), opacity 0.25s ease;
}

.mhero-top-loader.is-done {
  opacity: 0;
  transition: opacity 0.28s ease 0.05s;
}

@media (prefers-reduced-motion: reduce) {
  .mhero-top-loader,
  .mhero-top-loader-bar {
    transition: none !important;
  }
}

/* Shared list skeleton shimmer (events / opps / news / stories / ncp) */
.mhero-skel {
  display: block;
  background-color: #f2f2f2;
  background-image: linear-gradient(
    90deg,
    #f2f2f2 0%,
    #fafafa 38%,
    #fff 50%,
    #fafafa 62%,
    #f2f2f2 100%
  );
  background-size: 180% 100%;
  animation: mhero-skel-shimmer 1.85s linear infinite;
  border-radius: 4px;
}

.mhero-skel-card {
  pointer-events: none;
  box-shadow: none;
}

.mhero-skel-line {
  height: 0.52rem;
  width: 100%;
}

.mhero-skel-line--sm {
  width: 38%;
  height: 0.42rem;
}

.mhero-skel-line--badge {
  width: 48%;
  height: 0.82rem;
  border-radius: 999px;
}

.mhero-skel-line--title {
  width: 78%;
  height: 0.78rem;
}

.mhero-skel-line--md {
  width: 62%;
}

.mhero-skel-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

@keyframes mhero-skel-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mhero-skel {
    animation: none;
  }
}

html {
  height: 100%;
  scroll-padding-top: calc(var(--header-h, 132px) + 1.75rem);
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(251, 135, 28, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(6, 54, 119, 0.07), transparent 45%),
    var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Main grows so footer stays at the bottom of the viewport on short pages */
#main,
.wp-site-blocks > main,
body > main {
  flex: 1 0 auto;
  width: 100%;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

.site-footer {
  margin-top: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent, #fb871c);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  font-weight: 600;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header — scrolls away with page, then slides back in from top (pinned) */
#site-header-mount {
  display: block;
  /* height set in JS only when pinned, to avoid layout jump */
}

.site-header {
  position: relative;
  z-index: 300;
  width: 100%;
  overflow: visible;
  background: var(--white);
  border-top: 1px solid #f7941d;
  border-bottom: 1px solid #f7941d;
  box-shadow: 0 2px 8px rgba(11, 39, 72, 0.08);
}

/* After original header scrolled away — fixed bar slides down from top */
.site-header.is-pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom-color: #f7941d;
  box-shadow: 0 2px 8px rgba(11, 39, 72, 0.08);
  animation: headerSlideDown 0.7s cubic-bezier(0.22, 0.82, 0.28, 1) both;
}

/* After slide-in finishes — keep pinned without replaying animation (menu open/close). */
.site-header.is-pinned.is-pinned-ready {
  animation: none;
  transform: none;
  opacity: 1;
}

/* Soft merge back into page when returning to top (no hard jump) */
.site-header.is-pinned.is-unpinning {
  animation: none;
  background: var(--white);
  border-bottom-color: #f7941d;
  box-shadow: 0 2px 8px rgba(11, 39, 72, 0.08);
}

@keyframes headerSlideDown {
  from {
    transform: translate3d(0, -100%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-pinned {
    animation: none;
  }

  .site-header.is-pinned.is-unpinning {
    transition: none;
  }
}

.header-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.header-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.header-top-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1.15;
  min-width: 0;
  justify-self: start;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #0b2748;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(11, 39, 72, 0.5);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: none;
  min-width: 0;
  justify-content: center;
  overflow: visible;
  width: 100%;
}

.header-platform-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  width: auto;
  height: 40px;
  padding: 0 1.15rem 0 1.3rem;
  border: 1px solid var(--navy) !important;
  border-radius: 7px;
  background: var(--white) !important;
  color: var(--navy) !important;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  box-shadow: none !important;
}

.header-platform-ext {
  display: block;
  flex-shrink: 0;
}

.header-platform-btn:hover,
.header-platform-btn:focus-visible {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-select-wrap .nice-select {
  min-width: 0;
  vertical-align: middle;
}

.lang-select-wrap .nice-select-trigger {
  font: 600 0.875rem/1 var(--font-display);
  text-transform: uppercase;
  min-height: 40px;
  height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  border-color: #d1dbe8;
}

/* Fallback before nice-select JS runs */
.lang-select:not(.nice-select-native) {
  appearance: none;
  -webkit-appearance: none;
  font: 600 0.875rem/1 var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 14 16' fill='none'%3E%3Cpath d='M3.5 6.5L7 10l3.5-3.5' stroke='%231a4480' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center / 14px 16px;
  border: 1px solid #d1dbe8;
  border-radius: 20px;
  padding: 0.5rem 2rem 0.5rem 1rem;
  cursor: pointer;
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
}

.lang-select:not(.nice-select-native):hover,
.lang-select:not(.nice-select-native):focus {
  border-color: var(--navy);
  outline: none;
}

/* —— nice-select (horizoneurope 1:1) —— */
.nice-select {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  min-width: 160px;
  max-width: 100%;
}

.nice-select--compact {
  min-width: 4.25rem;
}

.nice-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
}

.nice-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  font: 500 0.9rem/1.2 var(--font-display);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.nice-select--compact .nice-select-trigger {
  min-width: 4.25rem;
  padding: 0.5rem 0.85rem;
  text-transform: uppercase;
}

.nice-select-trigger:hover,
.nice-select.is-open .nice-select-trigger {
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(6, 54, 119, 0.08);
}

.nice-select-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nice-select-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(6, 54, 119, 0.06);
}

.nice-select-trigger.is-placeholder .nice-select-label {
  color: var(--muted);
  font-weight: 500;
}

.nice-select-caret {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.nice-select.is-open .nice-select-caret {
  transform: rotate(180deg);
}

.nice-select-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 80;
  min-width: 100%;
  max-height: min(280px, 50vh);
  overflow: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(6, 54, 119, 0.14);
  box-sizing: border-box;
}

.nice-select--compact .nice-select-menu {
  min-width: 5.5rem;
  right: 0;
  left: auto;
}

.nice-select-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font: 500 0.9rem/1.3 var(--font-display);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nice-select-option:hover {
  background: rgba(251, 135, 28, 0.12);
  color: var(--accent, #fb871c);
}

.nice-select-option.is-active {
  background: var(--mist, #f5f8fb);
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}

.filters .nice-select {
  flex: 0 1 auto;
}

.form-field .nice-select,
.ops-field .nice-select,
.ops-filters .nice-select,
.sform-field .nice-select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.form-field .nice-select-trigger {
  border-radius: var(--radius-sm);
  min-height: 0;
  height: auto;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

.form-field .nice-select-trigger:hover,
.form-field .nice-select.is-open .nice-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 135, 28, 0.18);
}

.form-field .nice-select-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 135, 28, 0.22);
}

.form-field .nice-select-option:hover {
  background: rgba(251, 135, 28, 0.12);
  color: var(--accent, #fb871c);
}

.form-field .nice-select-option.is-active {
  background: var(--cream, #fef3e2);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}

.ops-filters .nice-select-trigger,
#ops-filters-drawer .nice-select-trigger {
  border-radius: 10px;
  width: 100%;
}

.sform-field .nice-select-trigger {
  min-height: 44px;
  height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid #d1dbe8;
  border-radius: 6px;
  background: #f0f3f8;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.sform-field .nice-select-trigger:hover,
.sform-field .nice-select.is-open .nice-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 135, 28, 0.18);
}

.sform-field .nice-select-trigger.is-placeholder .nice-select-label {
  color: #8a9cb0;
}

.sform-field .nice-select-option:hover {
  background: rgba(251, 135, 28, 0.12);
  color: var(--accent, #fb871c);
}

.sform-field .nice-select-option.is-active {
  background: rgba(251, 135, 28, 0.12);
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent, #fb871c);
}

/* Inline SVG icons on CTAs */
.btn .btn-ico,
.home-ops-btn .btn-ico,
.resource-btn .btn-ico,
.hero-call-btn .btn-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  display: block;
}

.btn .btn-label,
.home-ops-btn .btn-label,
.resource-btn .btn-label {
  line-height: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover {
  border-color: var(--sky);
  color: var(--eu-blue);
}

.header-search {
  position: relative;
  width: 425px;
  max-width: 100%;
  flex-shrink: 0;
  min-width: 0;
  justify-self: center;
}

.header-search-form {
  margin: 0;
  width: 100%;
  position: relative;
}

.header-search-ico {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 1;
}

.header-search-input {
  width: 100%;
  box-sizing: border-box;
  font: 400 0.875rem/1.3 var(--font-body);
  color: var(--navy);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.625rem 2.2rem 0.625rem 2.5rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 40px;
}

.header-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.header-search-input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(251, 135, 28, 0.15);
}

.header-search-clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.header-search-clear[hidden] {
  display: none !important;
}

.header-search-clear:hover {
  background: var(--mist);
  color: var(--navy);
}

.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.header-search-popup {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: auto;
  transform: none;
  z-index: 120;
  width: max(100%, min(420px, 92vw));
  max-height: min(520px, 70vh);
  overflow: hidden !important;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(6, 54, 119, 0.14);
  padding: 0;
}

.header-search-popup:not([hidden]) {
  display: block !important;
}

.header-search-popup[hidden] {
  display: none !important;
}

/* Results scroll; footer stays fixed at bottom of dropdown. */
.hs-popup-body {
  max-height: min(520px, 70vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0;
  box-sizing: border-box;
}

.header-search-popup.has-see-all {
  padding-bottom: 3.25rem;
}

.header-search-popup.has-see-all .hs-popup-body {
  max-height: calc(min(520px, 70vh) - 3.25rem);
  padding-bottom: 0.35rem;
}

.hs-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  margin: 0;
  background: var(--white);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -8px 16px rgba(6, 54, 119, 0.06);
}

.hs-label,
.hs-section-title {
  margin: 0;
  padding: 0 1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.hs-section-title {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.35rem;
}

.hs-section + .hs-section {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}

.hs-popular,
.hs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hs-popular-item,
.hs-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  font: inherit;
}

.hs-popular-item:hover,
.hs-item:hover {
  background: var(--mist);
}

.hs-popular-item svg {
  color: var(--muted);
  flex-shrink: 0;
}

.hs-item-ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  flex-shrink: 0;
}

.hs-item-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hs-item-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-item-text small {
  font-size: 0.75rem;
  color: var(--muted);
}

.hs-item-arrow {
  color: var(--steel);
  flex-shrink: 0;
}

.hs-empty {
  margin: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.hs-see-all {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.hs-see-all:hover {
  color: var(--navy);
}

/* Full search results page */
.search-result-group {
  margin-bottom: 1.75rem;
}

.search-result-group-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.search-result-group-title span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.search-result-card:hover {
  border-color: rgba(251, 135, 28, 0.4);
  box-shadow: 0 10px 24px rgba(6, 54, 119, 0.08);
  transform: translateY(-1px);
  color: inherit;
}

.search-result-card-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  flex-shrink: 0;
}

.search-result-card-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.search-result-card-text strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.search-result-card-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.search-result-card-arrow {
  color: var(--steel);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

.site-nav-mobile-top {
  display: none;
}

.site-nav-mobile-actions {
  display: none;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.nav-list > li {
  position: relative;
  flex-shrink: 0;
  min-width: 0;
  border: 0;
  box-shadow: none;
  list-style: none;
}

/* Strip WP/TT25 chrome without killing layout controls */
.site-header .nav-list a,
.site-header .brand,
.site-header .brand:hover,
.site-header .brand:focus,
.site-header .brand:focus-visible {
  text-decoration: none !important;
  box-shadow: none !important;
}

.site-header .nav-list a:focus,
.site-header .nav-list a:focus-visible,
.wp-site-blocks .site-header .nav-list a:focus {
  outline: none !important;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #334155;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.nav-list a:hover {
  color: var(--navy);
  background: transparent;
}

.nav-list a[aria-current="page"],
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--navy);
  font-weight: 700;
  background: transparent;
}

.nav-list a:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: #f7941d;
  opacity: 0;
  transform: scaleX(0.85);
  transform-origin: center;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.nav-list > li > a:hover::after {
  opacity: 0.45;
  transform: scaleX(1);
}

.nav-list > li > a[aria-current="page"]::after,
.nav-list > li.current-menu-item > a::after,
.nav-list > li.current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-list > li.nav-item-bpms > a,
.nav-list > li.nav-item-bpms > a:hover,
.nav-list > li.nav-item-bpms > a[aria-current="page"],
.nav-list > li.nav-item-bpms.current-menu-item > a,
.nav-list > li.nav-item-bpms.current_page_item > a {
  color: var(--accent) !important;
  font-weight: 700;
}

.nav-list > li.nav-item-bpms > a::after {
  opacity: 0;
}

.nav-list > li.nav-item-bpms > a:hover::after {
  opacity: 0.45;
  transform: scaleX(1);
  background: var(--accent);
}

.nav-list > li.nav-item-bpms > a[aria-current="page"]::after,
.nav-list > li.nav-item-bpms.current-menu-item > a::after,
.nav-list > li.nav-item-bpms.current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
  background: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn .btn-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  display: block;
}

.btn .btn-label {
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 8px 22px rgba(6, 54, 119, 0.2);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(251, 135, 28, 0.3);
}

.btn-accent {
  background: var(--accent, #fb871c);
  color: var(--white);
  border-color: var(--accent, #fb871c);
  box-shadow: 0 8px 22px rgba(251, 135, 28, 0.28);
}

.btn-accent:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 10px 24px rgba(6, 54, 119, 0.22);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(6, 54, 119, 0.28);
  box-shadow: 0 4px 14px rgba(6, 54, 119, 0.06);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(251, 135, 28, 0.12);
}

/* Add to Calendar dropdown — always in chrome so links don’t fall back to orange underlines */
.event-cal-menu {
  position: relative;
  width: 100%;
}

.event-cal-menu .event-cal-toggle {
  width: 100%;
}

.event-cal-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 !important;
  padding: 0.4rem !important;
  list-style: none !important;
  background: var(--white, #fff);
  border: 1px solid rgba(6, 54, 119, 0.2);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(6, 54, 119, 0.16);
}

.event-cal-list[hidden] {
  display: none !important;
}

.event-cal-list > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.event-cal-list > li::marker {
  content: none;
  display: none;
}

a.event-cal-option,
button.event-cal-option,
.event-cal-option {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.85rem !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: var(--navy, #063677) !important;
  font-family: var(--font-display, "Be Vietnam Pro", sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.event-cal-option:hover,
.event-cal-option:focus-visible {
  background: rgba(6, 54, 119, 0.07) !important;
  color: var(--navy, #063677) !important;
  outline: none;
}

.event-cal-option:hover .event-cal-ico,
.event-cal-option:focus-visible .event-cal-ico {
  color: var(--accent, #fb871c);
  background: rgba(251, 135, 28, 0.14);
}

.event-cal-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 7px;
  background: rgba(6, 54, 119, 0.08);
  color: var(--navy, #063677);
}

.event-cal-ico svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.event-cal-option-label {
  flex: 1 1 auto;
  min-width: 0;
}

.event-drawer-actions .event-cal-menu {
  overflow: visible;
}

.event-drawer-actions .event-cal-list {
  position: static;
  margin-top: 0.35rem !important;
}

/* Outline filter chips (FAQ / generic category rows) */
.category-filters,
.faq-tabs.category-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.category-filters .category-filter,
.faq-tabs .category-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-display, "Be Vietnam Pro", sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--navy, #063677);
  background: var(--white, #fff);
  border: 1.5px solid rgba(6, 54, 119, 0.28);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 4px 14px rgba(6, 54, 119, 0.06);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.category-filters .category-filter:hover,
.faq-tabs .category-filter:hover {
  background: var(--navy, #063677);
  color: var(--white, #fff);
  border-color: var(--navy, #063677);
  box-shadow: 0 8px 20px rgba(6, 54, 119, 0.16);
}

.category-filters .category-filter.is-active,
.faq-tabs .category-filter.is-active,
.category-filters .category-filter[aria-selected="true"],
.faq-tabs .category-filter[aria-selected="true"] {
  background: var(--navy, #063677);
  color: var(--white, #fff);
  border-color: var(--navy, #063677);
  box-shadow: 0 8px 20px rgba(6, 54, 119, 0.18);
}

.category-filters .category-filter:focus-visible,
.faq-tabs .category-filter:focus-visible {
  outline: 2px solid var(--navy, #063677);
  outline-offset: 2px;
}

/* Segmented tab bars — Events / Knowledge / NCP (match horizoneurope) */
.knowledge-tabs,
.ncp-tabs,
.events-view-tabs,
.knowledge-lang-tabs,
.category-filters.knowledge-tabs,
.category-filters.ncp-tabs,
.category-filters.events-view-tabs,
.category-filters.knowledge-lang-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.35rem;
  padding: 0.35rem;
  background: linear-gradient(180deg, #f5f8fc 0%, #f0f3f7 100%);
  border: 1px solid rgba(6, 54, 119, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.knowledge-tabs .category-filter,
.ncp-tabs .category-filter,
.events-view-tabs .category-filter,
.knowledge-lang-tabs .category-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-display, "Be Vietnam Pro", sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
  color: #5a6472;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.knowledge-tabs .category-filter:hover,
.ncp-tabs .category-filter:hover,
.events-view-tabs .category-filter:hover,
.knowledge-lang-tabs .category-filter:hover {
  color: var(--navy, #063677);
  background: rgba(255, 255, 255, 0.85);
  border-color: transparent;
  box-shadow: none;
}

.knowledge-tabs .category-filter.is-active,
.ncp-tabs .category-filter.is-active,
.events-view-tabs .category-filter.is-active,
.knowledge-lang-tabs .category-filter.is-active,
.knowledge-tabs .category-filter[aria-selected="true"],
.ncp-tabs .category-filter[aria-selected="true"],
.events-view-tabs .category-filter[aria-selected="true"],
.knowledge-lang-tabs .category-filter[aria-selected="true"] {
  background: var(--accent, #fb871c);
  border-color: transparent;
  color: var(--white, #fff);
  box-shadow: 0 6px 16px rgba(251, 135, 28, 0.28);
}

.knowledge-tabs .category-filter:focus-visible,
.ncp-tabs .category-filter:focus-visible,
.events-view-tabs .category-filter:focus-visible,
.knowledge-lang-tabs .category-filter:focus-visible {
  outline: 2px solid var(--navy, #063677);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .knowledge-tabs,
  .ncp-tabs,
  .events-view-tabs,
  .knowledge-lang-tabs,
  .category-filters.knowledge-tabs,
  .category-filters.ncp-tabs,
  .category-filters.events-view-tabs,
  .category-filters.knowledge-lang-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .knowledge-tabs::-webkit-scrollbar,
  .ncp-tabs::-webkit-scrollbar,
  .events-view-tabs::-webkit-scrollbar,
  .knowledge-lang-tabs::-webkit-scrollbar,
  .category-filters.knowledge-tabs::-webkit-scrollbar,
  .category-filters.ncp-tabs::-webkit-scrollbar,
  .category-filters.events-view-tabs::-webkit-scrollbar,
  .category-filters.knowledge-lang-tabs::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .category-filters .category-filter,
  .faq-tabs .category-filter,
  .knowledge-tabs .category-filter,
  .ncp-tabs .category-filter,
  .knowledge-lang-tabs .category-filter,
  .events-view-tabs .category-filter {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
  }
}

/* Solid navy CTA — same shell as primary, explicit border for consistency */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 8px 22px rgba(6, 54, 119, 0.2);
}

.btn-navy:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(251, 135, 28, 0.3);
}

.btn-navy .btn-ico,
.btn-navy .btn-label {
  color: inherit;
}

/* Detail back link — shared (events “← Evenimente”) */
.detail-back {
  display: inline-flex;
  align-items: center;
  color: var(--accent, #fb871c);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  transition: color 0.2s var(--ease, ease), opacity 0.2s var(--ease, ease);
}

.detail-back:hover,
.detail-back:focus-visible {
  color: var(--white);
  text-decoration: none;
  opacity: 1;
}

/* Light surfaces if back is not inside hero */
.section .detail-back,
.news-article .detail-back,
.prose-width .detail-back,
.news-back .detail-back {
  color: var(--accent, #fb871c);
}

.section .detail-back:hover,
.news-article .detail-back:hover,
.prose-width .detail-back:hover,
.news-back .detail-back:hover,
.section .detail-back:focus-visible,
.news-article .detail-back:focus-visible,
.prose-width .detail-back:focus-visible,
.news-back .detail-back:focus-visible {
  color: var(--navy, #063677);
}

/* Newsletter */
.newsletter-band {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(171, 203, 245, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(251, 135, 28, 0.08), transparent 50%),
    var(--mist);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.newsletter-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.35rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.newsletter-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.newsletter-copy h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.newsletter-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 18rem;
  justify-content: flex-end;
  max-width: 100%;
}

.newsletter-input {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 280px;
  font: 400 0.95rem/1.3 var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder {
  color: var(--steel);
}

.newsletter-input:focus {
  border-color: var(--navy);
}

.newsletter-btn {
  flex-shrink: 0;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
}

/* Global floating toasts — slide in from top. */
.mhero-toast-host {
  position: fixed;
  top: calc(var(--header-h, 88px) + 0.75rem);
  left: 50%;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: min(28rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.mhero-toast {
  --toast-accent: var(--navy);
  --toast-accent-soft: rgba(6, 54, 119, 0.1);
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.15rem 0.8rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--toast-accent);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 18px 44px rgba(6, 54, 119, 0.18);
  font-family: var(--font-body);
  text-align: left;
  opacity: 0;
  transform: translateY(-1.25rem);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.mhero-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mhero-toast-icon {
  grid-row: 1 / span 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--toast-accent-soft);
  color: var(--toast-accent);
}

.mhero-toast-title {
  grid-column: 2;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.mhero-toast-text {
  grid-column: 2;
  min-width: 0;
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #4b5a6d;
}

.mhero-toast-title + .mhero-toast-text {
  margin-top: 0.2rem;
}

/* No title: text carries the emphasis and centers next to the icon. */
.mhero-toast:not(.has-title) .mhero-toast-text {
  align-self: center;
  grid-row: 1 / span 2;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.mhero-toast-close {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.2rem -0.35rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7c8a9c;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mhero-toast-close:hover,
.mhero-toast-close:focus-visible {
  background: var(--mist);
  color: var(--navy);
}

.mhero-toast--success {
  --toast-accent: #1f7a4d;
  --toast-accent-soft: rgba(31, 122, 77, 0.12);
}

.mhero-toast--error,
.mhero-toast--warning {
  --toast-accent: var(--accent);
  --toast-accent-soft: rgba(251, 135, 28, 0.14);
}

.mhero-toast--info {
  --toast-accent: var(--navy);
  --toast-accent-soft: rgba(6, 54, 119, 0.1);
}

@media (max-width: 600px) {
  .mhero-toast {
    padding: 0.85rem 0.95rem;
  }
}

/* Honeypot — hidden from humans, present in DOM for bots. */
.newsletter-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(0, 1.55fr);
  gap: 2rem 2.75rem;
  align-items: start;
}

.footer-identity {
  min-width: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}

.footer-brand-row .footer-eu-emblem {
  height: 42px;
  width: auto;
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.footer-blurb {
  margin: 0;
  max-width: 36ch;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent, #fb871c);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a,
.footer-list .footer-cookie-settings {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.footer-list .current-menu-item > a {
  color: var(--white);
}

.footer-list .footer-cookie-settings:hover {
  color: var(--accent, #fb871c);
}

.footer-eu {
  margin-top: 1.05rem;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.4rem;
  border-left: 3px solid var(--accent, #fb871c);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 12px 12px 0;
}

.footer-eu-emblem {
  display: block;
  width: 90px;
  height: auto;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.footer-eu-funded {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}

.footer-eu-disclaimer {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.footer-bottom-project {
  margin-left: 0;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1280px) {

  /* Full-screen mobile menu; header (logo + toggle) stays on top */
  .site-header {
    overflow: visible;
    z-index: 300;
  }

  .header-shell {
    position: relative;
  }

  .header-top {
    position: relative;
    z-index: 320;
  }

  .site-nav {
    display: none !important;
  }

  .site-nav.open {
    display: flex !important;
    flex: none !important;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    transform: none !important;
    padding: calc(var(--header-h, 7rem) + 0.5rem) 1.25rem 1.5rem;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 310;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  body.mhero-nav-open .site-header {
    background: #ffffff;
  }

  /* Pinned header stays put while menu is open (no slide replay). */
  body.mhero-nav-open .site-header.is-pinned {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .site-nav .nav-list {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
  }

  .site-nav-mobile-top {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.85rem;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid #d4dee9;
    box-sizing: border-box;
  }

  .site-nav-mobile-top .lang-select-wrap {
    flex: 0 0 auto;
    max-width: 45%;
  }

  .site-nav-mobile-top .lang-select-wrap .nice-select,
  .site-nav-mobile-top .lang-select:not(.nice-select-native) {
    width: auto;
    min-width: 4.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-nav-mobile-top .nice-select-trigger,
  .site-nav-mobile-top .lang-select:not(.nice-select-native) {
    width: auto;
    min-width: 4.5rem;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .site-nav-mobile-top .header-platform-btn {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    max-width: calc(100% - 5.5rem);
    height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
  }

  .site-nav-mobile-actions {
    display: none !important;
  }

  .nav-list a {
    width: 100%;
    justify-content: flex-start;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.9rem 0.35rem;
    white-space: normal;
    color: #334155 !important;
  }

  .nav-list a[aria-current="page"],
  .nav-list .current-menu-item > a,
  .nav-list .current_page_item > a {
    color: var(--navy) !important;
    font-weight: 700;
  }

  .nav-list > li.nav-item-bpms > a,
  .nav-list > li.nav-item-bpms > a:hover,
  .nav-list > li.nav-item-bpms > a[aria-current="page"] {
    color: var(--accent) !important;
    font-weight: 700;
  }

  .nav-list > li > a::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Row 1: logo + hamburger | Row 2: search */
  .header-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand end"
      "search search";
    align-items: center;
    gap: 0.75rem 0.5rem;
  }

  .brand {
    grid-area: brand;
    order: unset;
    flex: unset;
    min-width: 0;
  }

  .header-top-end {
    grid-area: end;
    order: unset;
    margin-left: 0;
    flex: unset;
    gap: 0.4rem;
  }

  .header-top-end > .lang-select-wrap,
  .header-top-end > .header-platform-btn {
    display: none !important;
  }

  .header-search {
    grid-area: search;
    order: unset;
    display: block;
    width: 100%;
    flex: unset;
  }

  .header-platform-btn {
    height: 36px;
    padding: 0 0.75rem 0 0.85rem;
    font-size: 0.88rem;
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
  }
}

@media (max-width: 720px) {
  .newsletter-form {
    justify-content: stretch;
  }

  .newsletter-input {
    max-width: none;
    width: 100%;
  }

  .newsletter-btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-bottom-project {
    margin-left: 0;
    text-align: left;
    max-width: 100%;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .footer-blurb {
    max-width: none;
  }
}
