/* Only reposition the existing hero button, beside “de sitio.” */
.hero h1 .pill-link {
  vertical-align: middle;
  margin: 0 0 0 26px;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 751px) {
  .hero h1 .pill-link {
    padding: 16px 24px;
    gap: 20px;
    border-radius: 32px;
    font-size: 18px;
    line-height: 1.2;
  }
  .hero h1 .pill-link span { font-size: 25px; }
}

@media (max-width: 750px) {
  .hero h1 .pill-link { margin-left: 12px; }
}

/* Key teaching credentials, set as a continuous line just under the header. */
.hero-credentials {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.8vw, 46px);
  width: 100%;
  min-height: 46px;
  padding: 9px 6vw 8px;
  pointer-events: none;
}

.hero-credentials span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  white-space: normal;
  font: clamp(11px, .95vw, 14px)/1.35 var(--mono);
  letter-spacing: -.25px;
}

.hero-credentials b {
  color: var(--orange);
  font: 17px/1 var(--sans);
}

.hero-credentials strong { font-weight: 500; }
.credential-break { font-style: normal; }

@media (min-width: 751px) {
  .hero-credentials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .hero-credentials > span { justify-content: center; text-align: center; font-size: clamp(9px, .95vw, 14px); }
  .hero-credentials > span:nth-child(n + 2) strong { white-space: nowrap; }
  .hero-credentials .credential-break { display: block; font-size: 0; line-height: 0; }
  .hero-credentials b { flex-shrink: 0; font-size: 21px; }
}

@media (max-width: 750px) {
  .hero-credentials {
    justify-content: flex-start;
    gap: 12px 26px;
    flex-wrap: wrap;
  }
}

@media (max-width: 750px) {
  .hero-credentials {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    min-height: 0;
    padding: 14px 7vw 13px;
  }

  .hero-credentials span {
    white-space: normal;
    font-size: 10px;
  }
}

/* A soft colour wash makes the two information links react as surfaces, not just text. */
.format-chips a {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .28s ease, box-shadow .28s ease !important;
}

.format-chips a:first-child:hover {
  background-color: rgba(244, 220, 199, .78) !important;
  box-shadow: 0 8px 22px rgba(173, 89, 58, .12);
}

.format-chips a:nth-child(2):hover {
  background-color: rgba(222, 235, 135, .74) !important;
  box-shadow: 0 8px 22px rgba(104, 117, 52, .13);
}

/* Give the second headline line a little more breathing room. */
.hero h1 .hero-line-two { display: inline-block; padding-top: .1em; }

/* Larger desktop actions, with separate slots for labels, icons and arrows. */
@media (min-width: 751px) {
  .hero .hero-sticker em {
    font-size: 14px !important;
    line-height: 1.35 !important;
    max-width: 100%;
  }
  .hero .format-chips a {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 24px 53px 25px;
    align-items: center;
    column-gap: 8px;
    padding-right: 0 !important;
  }
  .hero .format-chips a > span { grid-column: 1; grid-row: 1; }
  .hero .format-chips a .hero-online-icon {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 24px;
    height: 24px;
  }
  .hero .format-chips a i {
    position: static !important;
    grid-column: 3;
    grid-row: 1;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap;
  }
  .hero .format-chips a b {
    position: static !important;
    grid-column: 4;
    grid-row: 1;
    text-align: center;
  }
  .hero .format-chips a:hover > span,
  .hero .format-chips a:hover i,
  .hero .format-chips a:hover b { transform: none !important; }
}
