.header-espa-trigger {
  display: inline-flex;
  flex: 0 1 170px;
  align-items: center;
  justify-content: center;
  width: 170px;
  min-width: 118px;
  padding: .08rem .12rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.header-espa-trigger:hover {
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
  transform: translateY(-1px);
}

.header-espa-trigger:focus-visible {
  outline: 3px solid var(--yellow-soft);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(0,158,227,.72);
}

.header-espa-banner {
  display: block;
  width: 100%;
  height: 34px;
  object-fit: contain;
}

.espa-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.espa-modal[hidden] { display: none; }

.espa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(4px);
}

.espa-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(78vh, 680px);
  overflow: auto;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(26,26,24,.12);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}

.espa-modal-title {
  margin: 0 2.4rem .75rem 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
}

.espa-modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.espa-modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(26,26,24,.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.espa-modal-close:hover {
  background: var(--yellow);
}

body.espa-modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .header-espa-trigger { flex-basis: 142px; width: 142px; min-width: 106px; }
  .header-espa-banner { height: 28px; }
}

@media (max-width: 620px) {
  .header-tools { gap: .4rem; }
  .header-espa-trigger { flex-basis: 104px; width: 104px; min-width: 92px; padding: .05rem .1rem; border-radius: 8px; }
  .header-espa-banner { height: 24px; }
  .espa-modal-dialog { padding: 1.1rem 1rem; border-radius: 18px; }
  .espa-modal-copy { font-size: .94rem; line-height: 1.55; }
}

@media (max-width: 420px) {
  .nav-shell { gap: .65rem; }
  .brand { width: 88px; }
  .brand img { width: 84px; }
  .menu-toggle { width: 40px; height: 40px; }
  .header-espa-trigger { flex-basis: 72px; width: 72px; min-width: 68px; }
  .header-espa-banner { height: 20px; }
  .language-toggle { min-width: 36px; padding-inline: .25rem; }
}
