/**
 * Links styled as buttons ("Apply Now »"), chosen in the editor's Style menu.
 *
 * Colours are from the campus palette (brand.berkeley.edu/visual-identity/colors)
 * and pass WCAG AA contrast for normal text:
 *   Berkeley Blue  #002676, white text        13.7:1
 *   Blue Medium    #004AAE, white text         8.1:1
 *   Green Dark     #00553A, white text         8.9:1
 *   California Gold #FDB515, Berkeley Blue text 7.7:1
 *
 * Markup: <a class="btn stats-button stats-button--green" href="...">.
 * .btn keeps the theme's body-link underline rules (a:not(.btn)) off these;
 * the rules below undo the rest of the theme's .btn look.
 */
a.btn.stats-button {
  display: inline-block;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  vertical-align: middle;
  transition: none;
}

/* Hover and focus: underline the text; keep the colours. */
a.btn.stats-button:hover,
a.btn.stats-button:focus {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a.btn.stats-button:focus-visible {
  outline: 3px solid #002676;
  outline-offset: 2px;
}

a.btn.stats-button--blue,
a.btn.stats-button--blue:hover,
a.btn.stats-button--blue:focus {
  background-color: #002676;
  color: #fff;
}

a.btn.stats-button--blue-medium,
a.btn.stats-button--blue-medium:hover,
a.btn.stats-button--blue-medium:focus {
  background-color: #004aae;
  color: #fff;
}

a.btn.stats-button--green,
a.btn.stats-button--green:hover,
a.btn.stats-button--green:focus {
  background-color: #00553a;
  color: #fff;
}

a.btn.stats-button--gold,
a.btn.stats-button--gold:hover,
a.btn.stats-button--gold:focus {
  background-color: #fdb515;
  color: #002676;
}

/* The external link and mail icons. style.css hides them on .btn, which also
   hides their "(link is external)" label from screen readers. */
a.btn.stats-button svg.ext,
a.btn.stats-button svg.mailto {
  display: inline;
  margin-left: 0.25em;
  fill: currentColor;
}
