.acm-public-header {
  border-bottom: 1px solid #dbe5f1;
  background: #fff;
  box-shadow: 0 6px 22px #172b480d;
}

.acm-header-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 78px;
}

.acm-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #152d50;
}

.acm-header-logo {
  position: relative;
  display: block;
  width: 162px;
  height: 66px;
  overflow: hidden;
}

.acm-header-logo img {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
}

.acm-header-links,
.acm-header-actions {
  display: flex;
  align-items: center;
}

.acm-header-links { justify-content: center; gap: clamp(2px, .6vw, 9px); }
.acm-header-actions { gap: 8px; }

.acm-header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(8px, 1vw, 14px);
  border-radius: 9px;
  color: #344761;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.acm-header-links a:hover,
.acm-header-menu-panel a:hover {
  background: #eef4ff;
  color: #1d4d93;
}

.acm-public-header svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acm-header-account,
.acm-header-cta,
.acm-header-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d5e1f0;
  border-radius: 9px;
  background: #fff;
  color: #1c3d69;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.acm-header-account:hover,
.acm-header-menu summary:hover,
.acm-header-menu[open] summary {
  border-color: #b9cdeb;
  background: #eef4ff;
}

.acm-header-cta {
  padding-inline: 14px;
  border-color: #205ac0;
  background: #205ac0;
  color: #fff;
  box-shadow: 0 4px 10px #205ac026;
}

.acm-header-cta:hover {
  border-color: #184b9f;
  background: #184b9f;
}

.acm-public-header :is(a, button, summary):focus-visible {
  outline: 2px solid #205ac0;
  outline-offset: 2px;
}

.acm-header-menu,
.acm-header-menu .acm-header-menu-close,
.acm-header-menu[open] .acm-header-menu-open { display: none; }
.acm-header-menu[open] .acm-header-menu-close { display: block; }
.acm-header-menu summary { list-style: none; }
.acm-header-menu summary::-webkit-details-marker { display: none; }

.acm-header-menu-panel {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  display: grid;
  gap: 2px;
  width: min(100%, 340px);
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #d5e1f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px #172b4826;
}

.acm-header-menu-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #304763;
  font-size: 14px;
  font-weight: 700;
}

.acm-header-menu-panel .acm-header-menu-account {
  margin-top: 4px;
  background: #f2f6fc;
  color: #1c3d69;
}

@media (max-width: 1020px) {
  .acm-header-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 66px;
  }
  .acm-header-logo { width: 126px; height: 53px; }
  .acm-header-links,
  .acm-header-account { display: none; }
  .acm-header-menu { display: block; }
}

@media (max-width: 420px) {
  .acm-header-row { width: calc(100% - 24px); }
  .acm-header-logo { width: 108px; height: 46px; }
  .acm-header-cta { padding-inline: 10px; font-size: 12px; }
  .acm-header-cta svg,
  .acm-header-menu summary span { display: none; }
  .acm-header-menu summary { width: 44px; padding: 0; }
}
