/* Load after the existing site styles. Shared by all five UTAGE anchors. */
html {
  scroll-padding-top: calc(var(--bar) + 14px);
}

:root {
  --bar: 82px;
}

/* Keep the existing charcoal/orange treatment; never truncate the invitation. */
a.outbound-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 22px);
  min-width: 0;
  max-width: 100%;
  height: auto;
  white-space: normal;
  text-decoration: none;
  text-overflow: clip;
  overflow: visible;
  cursor: pointer;
}

.outbound-cta > .cta-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  text-overflow: clip;
}

/* The supplied spans preserve the two meaningful phrases, including at 320px.
   Each phrase may wrap further rather than overflowing its available space. */
.outbound-cta > .cta-copy > span {
  display: block;
}

.outbound-cta > svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.mast-inner {
  gap: 24px;
}

.mast .brand {
  flex: 0 0 auto;
}

.mast nav {
  min-width: 0;
  gap: clamp(14px, 1.6vw, 28px);
}

.mast .nav-text {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mast .mast-cta.outbound-cta {
  flex: 0 1 auto;
  padding: 10px 14px;
  min-height: 58px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

.mast-cta.outbound-cta > svg {
  width: 16px;
  height: 16px;
}

.hero-cta.outbound-cta {
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding: 16px clamp(14px, 2vw, 24px);
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.65;
  letter-spacing: 0;
}

.entry-block .entry-submit.outbound-cta {
  display: flex;
  width: 100%;
  min-height: 76px;
  padding: 18px clamp(12px, 2vw, 24px);
  font-size: clamp(16px, 1.52vw, 23px);
  line-height: 1.65;
  letter-spacing: 0;
  text-align: center;
}

.entry-submit.outbound-cta > svg {
  width: 22px;
  height: 22px;
}

/* A light inner ring stays visible against orange; the outer ring separates
   keyboard focus from both the charcoal panels and the editorial paper. */
a.outbound-cta:focus-visible,
.entry-block a.entry-submit.outbound-cta:focus-visible {
  outline: 3px solid #f6f4ef;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #090a0a;
}

a.outbound-cta:active {
  transform: none;
}

/* Below desktop, reserve a full second row for the complete CTA instead of
   squeezing the wordmark or removing the tablet navigation links. */
@media (max-width: 1100px) {
  :root {
    --bar: 126px;
  }

  .mast-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, max-content);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 8px 18px;
    padding-block: 8px;
  }

  .mast .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .mast nav {
    display: contents;
  }

  .mast .nav-text {
    grid-row: 1;
    font-size: 12px;
    padding-block: 10px;
  }

  .mast .mast-cta.outbound-cta {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-height: 58px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }
}

@media (max-width: 700px) {
  :root {
    --bar: 116px;
  }

  .mast-inner {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px;
    padding-block: 8px;
  }

  .mast .brand {
    justify-self: center;
  }

  .mast .nav-text {
    display: none;
  }

  .mast .mast-cta.outbound-cta {
    min-height: 58px;
    padding: 8px 12px;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-cta.outbound-cta {
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    gap: 10px;
  }

  .entry-block .entry-submit.outbound-cta {
    padding: 16px 12px;
    gap: 10px;
    font-size: 16px;
  }

  .entry-submit.outbound-cta > svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.outbound-cta,
  a.outbound-cta:hover,
  a.outbound-cta:active {
    transition: none;
    animation: none;
    transform: none;
  }
}

@media (forced-colors: active) {
  a.outbound-cta {
    border: 1px solid ButtonText;
  }

  a.outbound-cta:focus-visible,
  .entry-block a.entry-submit.outbound-cta:focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}
