/* Media Center — header matching approved WordPress chrome */
.mc-site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  overflow: visible;
}

.mc-topbar {
  background: #1a1a1a;
  color: #fff;
  font-size: 0.85rem;
  min-height: 53px;
  position: relative;
  z-index: 30; /* keep address/email above crest */
}
.mc-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  padding: 0.55rem 0;
  min-height: 53px;
  /* clear hanging crest column — same as WP address visibility */
  padding-left: min(176px, 24vw);
}
.mc-topbar address {
  font-style: normal;
  margin: 0;
  margin-right: auto;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 28rem);
}
.mc-topbar a { color: #fff; text-decoration: none; }
.mc-topbar a:hover { color: var(--primaryColor); text-decoration: underline; }
.mc-topbar-email { font-weight: 600; }

.mc-social { display: flex; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.mc-social a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
}
.mc-social img { width: 18px; height: 18px; object-fit: contain; }

/* Language switcher — match WP white pill */
.mc-lang { position: relative; z-index: 60; }
.mc-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: #333;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem 0.35rem 0.45rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.mc-lang-btn img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}
.mc-lang-code { line-height: 1; }
.mc-lang-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-left: 1px;
  transition: transform 0.2s ease;
}
.mc-lang.is-open .mc-lang-arrow {
  transform: rotate(180deg);
}
.mc-lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  color: #1a1a1a;
  min-width: 200px;
  max-height: 280px;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  z-index: 70;
}
.mc-lang.is-open .mc-lang-menu,
.mc-lang-menu:not([hidden]) {
  display: block;
}
.mc-lang-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.mc-lang-menu a:hover,
.mc-lang-menu a.is-current {
  background: #eef3fb;
  color: var(--secondaryColor) !important;
}

/*
 * Main blue navigation + hanging crest (WP chrome: crest starts at blue bar, not over address).
 */
.mc-nav-shell {
  position: relative;
  background: var(--secondaryColor);
  min-height: 100px;
  z-index: 20;
  overflow: visible;
}

.mc-logo-panel {
  position: absolute;
  left: max(12px, calc((100% - var(--mc-max)) / 2));
  top: 0; /* WP: crest begins at blue nav — never covers topbar address */
  bottom: auto;
  z-index: 25;
  width: 158px;
  max-width: 158px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  padding: 10px 12px 18px;
  border-radius: 0 0 79px 79px;
  box-shadow: 0 6px 16px rgba(8, 20, 48, 0.12);
  box-sizing: border-box;
}
.mc-logo-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
}
.mc-logo-panel picture,
.mc-logo-panel figure {
  margin: 0;
  line-height: 0;
  width: 100%;
}
.mc-logo-panel img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

/* Join Us — over blue nav (WP .header_btn) */
.mc-nav-join {
  position: absolute;
  right: max(12px, calc((100% - var(--mc-max)) / 2));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 139px;
  max-width: 139px;
  height: 48px;
  padding: 0 40px 0 16px;
  background: url("../images/icons/btn-arrow.png") no-repeat center right 16px var(--primaryColor);
  border-radius: 5px;
  color: #fff !important;
  font-family: var(--priFont), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-sizing: border-box;
}
.mc-nav-join:hover {
  opacity: 0.88;
  color: #fff !important;
}

.mc-nav {
  background: transparent;
  color: #fff;
  min-height: 100px;
}
.mc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 100px;
  padding: 0.35rem 158px 0.35rem min(180px, 26vw);
}
.mc-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mc-nav-link {
  display: block;
  color: #fff !important;
  font-family: var(--priFont), sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.48rem 0.5rem;
  text-decoration: none !important;
  text-transform: capitalize;
  line-height: 1.2;
  border-radius: 5px;
  white-space: nowrap;
}
.mc-nav-link:hover { color: var(--primaryColor) !important; }
.mc-nav-link.is-active {
  background: var(--primaryColor);
  color: #1a1a1a !important;
}
.mc-nav-link.is-active:focus-visible,
.mc-nav-link:focus-visible {
  outline: 2px solid var(--primaryColor);
  outline-offset: 2px;
}

.mc-nav-join-mobile {
  display: none;
}

.mc-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 0.95rem;
  min-height: 2.65rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.mc-nav-toggle:hover,
.mc-nav-toggle:focus-visible {
  background: var(--primaryColor);
  color: var(--primaryColor950, #1a1a1a);
  border-color: var(--primaryColor);
  outline: none;
}
.mc-nav-toggle[aria-expanded="true"] {
  background: var(--primaryColor);
  color: var(--primaryColor950, #1a1a1a);
  border-color: var(--primaryColor);
}
.mc-nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.mc-nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mc-nav-toggle[aria-expanded="true"] .mc-nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mc-nav-toggle[aria-expanded="true"] .mc-nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.mc-nav-toggle[aria-expanded="true"] .mc-nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Editorial section rail — text tabs, no pill wrap */
.mc-subnav {
  position: relative;
  z-index: 1;
  background: #fff;
  border-top: 3px solid var(--secondaryColor950, #0b2860);
  border-bottom: 1px solid #e4e9f2;
  box-shadow: 0 1px 0 rgba(11, 40, 96, 0.03);
}
.mc-subnav-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem 1.35rem;
  padding: 0;
  min-height: 0;
  padding-left: min(180px, 26vw);
}
.mc-subnav-rail {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  position: relative;
}
.mc-subnav-label {
  display: none;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding: 0 0.85rem 0 0;
  border-right: 1px solid #dce3ef;
  font-family: var(--priFont), sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a93a8;
  white-space: nowrap;
}
@media (min-width: 1100px) {
  .mc-subnav-label { display: block; }
}
.mc-subnav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c5cee0 transparent;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.5rem), transparent 100%);
}
.mc-subnav-links::-webkit-scrollbar {
  height: 3px;
}
.mc-subnav-links::-webkit-scrollbar-thumb {
  background: #c5cee0;
  border-radius: 2px;
}
.mc-subnav-links li {
  flex: 0 0 auto;
  display: flex;
}
.mc-subnav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #3a4558;
  font-family: var(--priFont), sans-serif;
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.85rem 0.7rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.mc-subnav-links a:hover {
  color: var(--secondaryColor);
  background: transparent;
  border-color: #c5d3ea;
}
.mc-subnav-links a.is-active {
  color: var(--secondaryColor950, #0b2860);
  background: transparent;
  border-bottom-color: var(--primaryColor, #f6b100);
  font-weight: 800;
  box-shadow: none;
}
.mc-subnav-links a:focus-visible {
  outline: 2px solid var(--secondaryColor);
  outline-offset: -2px;
  z-index: 1;
}

.mc-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: 2.5rem;
  max-width: none;
  min-width: 0;
  align-self: center;
  margin: 0.35rem 0;
  border: 0;
  background: transparent;
  overflow: visible;
  transition: width 0.22s ease;
}
.mc-search.is-open {
  width: min(240px, 42vw);
}
.mc-search-toggle {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--secondaryColor950, #0b2860);
  cursor: pointer;
  z-index: 2;
}
.mc-search-toggle:hover,
.mc-search-toggle:focus-visible {
  background: #eef3fb;
  color: var(--secondaryColor, #0942a2);
  outline: none;
}
.mc-search-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(9, 66, 162, 0.28);
}
.mc-search-icon {
  display: block;
}
.mc-search input[type="search"] {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.85rem 0 2.65rem;
  border: 1px solid #d0d8e6;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
  color: #141a24;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease;
}
.mc-search.is-open input[type="search"] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mc-search input[type="search"]::placeholder {
  color: #8a93a8;
}
.mc-search input[type="search"]:focus {
  outline: none;
  border-color: var(--secondaryColor);
  box-shadow: 0 0 0 2px rgba(9, 66, 162, 0.12);
}
.mc-search.is-open .mc-search-toggle {
  background: transparent;
}

