/* ── Design Tokens ── */
:root {
  --frc-primary-color: #f8fd9f;
  --frc-secundary-color: #3b4c3f;
  --frc-bg: #fafafa;
  --frc-card-bg: #fefefe;
  --frc-green: #3d4f42;
  --frc-green-dark: #3b4c3f;
  --frc-green-light: #6a8a72;
  --frc-yellow: #f8fd9f;
  --frc-text: #161618;
  --frc-text-dark: #23262f;
  --frc-text-light: #9ca4ab;
  --frc-border: #dce4e8;
  --frc-font-primary: "Plus Jakarta Sans", sans-serif;
  --frc-font-heading: "Plus Jakarta Sans", sans-serif;
  --frc-font-button: "Plus Jakarta Sans", sans-serif;
  --frc-radius-card: 16px;
  --frc-radius-pill: 40px;
  --frc-container: 1170px;
  --frc-sidebar-w: 420px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--frc-font-primary);
  color: var(--frc-text);
  background: var(--frc-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Utility ── */
.frc-container {
  max-width: var(--frc-container);
  margin: 0 auto;
  padding: 0 20px;
}

.frc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Buttons ── */
.frc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--frc-font-button);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--frc-radius-pill);
  padding: 12px 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 0;
}

.frc-btn--primary {
  background: var(--frc-green-dark);
  color: #fff;
}

.frc-btn--primary:hover {
  opacity: 0.9;
}

.frc-btn--outline {
  background: transparent;
  color: var(--frc-text);
  border: 1px solid #222;
}

.frc-btn--outline:hover,
.frc-btn--outline.active {
  background: var(--frc-green-dark);
  color: #fff;
  border-color: var(--frc-green-dark);
}

.frc-btn--yellow {
  background: var(--frc-yellow);
  color: var(--frc-text-dark);
}

/* Card actions */
.frc-card-run {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.frc-card-run__media {
  position: relative;
}

.frc-card-run__thumb-link {
  display: block;
}

.frc-card-run > .frc-card-run__link {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
}

.frc-card-run__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--frc-text-light);
  border: 1px solid var(--frc-border);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 auto;
}

.frc-card-run__cta-spinner,
.frc-card-run__cta-check {
  display: none;
  flex: 0 0 auto;
}

.frc-card-run__cta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.frc-card-run__cta-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(61, 79, 66, 0.18);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: frc-card-run-spin 0.8s linear infinite;
}

.frc-card-run__cta-check {
  width: 14px;
  height: 14px;
  color: var(--frc-green-dark);
}

.frc-card-run__cta-check svg {
  display: block;
  width: 100%;
  height: 100%;
}

.frc-card-run__cta--overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.frc-card-run__cta.is-loading {
  box-shadow: 0 12px 30px rgba(61, 79, 66, 0.12);
}

.frc-card-run__cta.is-loading .frc-card-run__cta-spinner {
  display: inline-block;
}

.frc-card-run__cta.is-success {
  box-shadow: 0 12px 30px rgba(61, 79, 66, 0.12);
}

.frc-card-run__cta.is-success .frc-card-run__cta-check {
  display: inline-block;
  animation: frc-card-run-pop 0.26s ease-out;
}

.frc-card-run__cta--registered,
.frc-card-run__cta[disabled] {
  color: var(--frc-green-dark);
  border-color: rgba(61, 79, 66, 0.2);
  background: rgba(255, 255, 255, 0.92);
  cursor: default;
}

.frc-card-run__cta:hover {
  color: var(--frc-green-dark);
  border-color: var(--frc-green-light);
  background: rgba(61, 79, 66, 0.04);
}

.frc-card-run__cta[disabled]:hover {
  color: var(--frc-green-dark);
  border-color: rgba(61, 79, 66, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

/* ── Typography ── */
.frc-section-title {
  font-family: var(--frc-font-heading);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.frc-section-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--frc-green-light);
  color: var(--frc-green-light);
}

.frc-section-title a:hover {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .frc-section-title {
    font-size: 32px;
  }
}

@keyframes frc-card-run-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes frc-card-run-pop {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
