/* NOTE ON THE TWO NON-OBVIOUS PROPERTIES BELOW.
   `--button-padding` defaults to a TOP-HEAVY `2px 40px 0`; the label only reads as
   vertically centred because `display: inline-flex` + `align-items: center` centre it
   regardless. Override `display` on a .button and the centring collapses in a way that
   looks like a padding bug but is not.
   `height` WAS a fixed value, so a long label could not grow the button: on phones the
   Content doc's CTAs ("Talk to our economic development team about your timeline")
   wrapped into left-aligned lines jammed against the pill's top edge. On this site
   --button-height is now a MINIMUM, with balanced vertical padding and centred lines,
   the same pattern as .gw-modal__trigger in styles.css. A one-line button renders
   exactly as before: the label stays centred in the same --button-height box.
   Any rule that turns a .button into a text link (height: auto; padding: 0) must
   also reset min-height: 0 (and line-height: 1, to stay as it was). See .text-link,
   .ecosystem-list and .news-strip in styles.css. */
.button{
  background: var(--button-bg);
  color: var(--button-color);
  border-radius: var(--button-radius);
  padding: var(--button-padding);
  padding-top: calc(0.8rem + 2px); /* keeps the theme padding's 2px optical offset */
  padding-bottom: 0.8rem;
  height: auto;
  min-height: var(--button-height);
  margin: var(--button-margin);
  font-family: var(--button-font-family);
  text-transform: var(--button-text-transform);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--animate-medium);
  font-weight: 500;
}
.button:hover{
  background: var(--button-bg-hover);
  color: var(--button-color-hover);
}
.light .button{
  background: var(--button-bg-light);
  color: var(--button-color-light);
}
.light .button:hover{
  background: var(--button-bg-hover-light);
  color: var(--button-color-hover-light);
}
.colour .button,
.main .button{
  background: var(--button-bg-main);
  color: var(--button-color-main);
}
.colour .button:hover,
.main .button:hover{
  background: var(--button-bg-hover-main);
  color: var(--button-color-hover-main);
}
.dark .button{
  background: var(--button-bg-dark);
  color: var(--button-color-dark);
}
.dark .button:hover{
  background: var(--button-bg-hover-dark);
  color: var(--button-color-hover-dark);
}
.button:focus,
.button:focus-within,
.button:focus-visible,
.button:target{
  box-shadow: var(--shadow);
}
.button.ghost-btn,
.light .button.ghost-btn{
  background: none;
  border: 2px solid var(--color-line);
  color: var(--ink);
}
.button.ghost-btn:hover,
.light .button.ghost-btn:hover{
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-bg);
}
.main .button.ghost-btn,
.colour .button.ghost-btn,
.light .button.ghost-btn{
  background: none;
  border: 2px solid hsla(0 0% 100% / .16);
  color: var(--color-bg);
}
.button.ghost-btn:hover,
.colour .button.ghost-btn:hover,
.light .button.ghost-btn:hover{
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-ink);
}
.btn-wrapper{
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 2.4rem 0 0;
}
.btn-wrapper .button{
  margin: 0;
}
@media screen and (max-width: 768px) {
  .btn-wrapper{
    flex-direction: column;
  }
}