/* One flat button system, shared by the header, pages and editor blocks. */
.flc-button,
.header-cta,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  background: var(--flc-blue);
  color: #fff;
  font-family: var(--flc-font);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.flc-button:visited,
.header-cta:visited,
.wp-block-button__link:visited {
  color: #fff;
}

.flc-button:hover,
.flc-button:focus,
.header-cta:hover,
.header-cta:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--flc-blue-deep);
  color: #fff;
}

.flc-button-yellow,
.flc-button-yellow:visited {
  background: var(--flc-gold);
  color: #172b48;
}

.flc-button-yellow:hover,
.flc-button-yellow:focus {
  background: #f6d779;
  color: #172b48;
}

.flc-button-secondary,
.flc-button-secondary:visited {
  background: #edf3fb;
  color: var(--flc-blue);
}

.flc-button-secondary:hover,
.flc-button-secondary:focus {
  background: #dce8f7;
  color: var(--flc-blue);
}

.flc-button:focus-visible,
.header-cta:focus-visible,
.wp-block-button__link:focus-visible,
.flc-hero-link:focus-visible,
.flc-slider-controls button:focus-visible {
  outline: 3px solid var(--flc-gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .flc-button, .header-cta, .wp-block-button__link { transition: none; }
}

/* Pointer clicks stay flat; keyboard focus remains explicit. */
.flc-button:focus:not(:focus-visible),
.header-cta:focus:not(:focus-visible),
.flc-hero-link:focus:not(:focus-visible) { outline: none; }

.flc-button:focus-visible,
.header-cta:focus-visible,
.wp-block-button__link:focus-visible { outline-color: var(--flc-blue); }

.flc-hero .flc-button:focus-visible { outline-color: var(--flc-gold); }

/* Content typography must not recolor links that are styled as buttons. */
.entry-content a.flc-button,
.entry-content a.wp-block-button__link { color: #fff; }
.entry-content a.flc-button-yellow { color: #172b48; }
.entry-content a.flc-button-secondary { color: var(--flc-blue); }
