/*
 * WFP Utilities Module
 * Supplemental utility classes.
 */

/* =============================================================================
   DISPLAY
   ============================================================================= */

.wfp-hide-mobile  { }
.wfp-hide-desktop { display: none; }

@media (max-width: 782px) {
  .wfp-hide-mobile  { display: none; }
  .wfp-hide-desktop { display: revert; }
}

/* =============================================================================
   SPACING HELPERS
   ============================================================================= */

.wfp-mt-0  { margin-top: 0 !important; }
.wfp-mb-0  { margin-bottom: 0 !important; }
.wfp-mt-s  { margin-top: var(--space-s) !important; }
.wfp-mb-s  { margin-bottom: var(--space-s) !important; }
.wfp-mt-m  { margin-top: var(--space-m) !important; }
.wfp-mb-m  { margin-bottom: var(--space-m) !important; }
.wfp-mt-l  { margin-top: var(--space-l) !important; }
.wfp-mb-l  { margin-bottom: var(--space-l) !important; }
.wfp-mt-xl { margin-top: var(--space-xl) !important; }
.wfp-mb-xl { margin-bottom: var(--space-xl) !important; }

/* =============================================================================
   DIVIDERS
   ============================================================================= */

.wfp-divider {
  border: none;
  border-top: var(--border);
  margin: var(--space-l) 0;
}

.wfp-divider--accent {
  border-top: 2px solid var(--accent);
}

/* =============================================================================
   BADGES / LABELS
   ============================================================================= */

.wfp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-full);
  font-size: var(--step--2);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.wfp-badge--default  { background: var(--base-2); color: var(--contrast-2); border: var(--border); }
.wfp-badge--accent   { background: var(--accent); color: var(--base-3); }
.wfp-badge--accent-2 { background: var(--accent-2); color: var(--base-3); }
.wfp-badge--youth    { background: #1a6b3c; color: #fff; }
.wfp-badge--community { background: #7f4f24; color: #fff; }

/* =============================================================================
   LOADING STATE
   ============================================================================= */

@keyframes wfp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.wfp-skeleton {
  background: var(--base-2);
  border-radius: var(--radius);
  animation: wfp-pulse 1.5s ease-in-out infinite;
}

/* =============================================================================
   ASPECT RATIOS
   ============================================================================= */

.wfp-ratio-16-9 { aspect-ratio: 16 / 9; }
.wfp-ratio-4-3  { aspect-ratio: 4 / 3; }
.wfp-ratio-1-1  { aspect-ratio: 1; }
.wfp-ratio-3-2  { aspect-ratio: 3 / 2; }

/* =============================================================================
   OVERFLOW
   ============================================================================= */

.wfp-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wfp-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wfp-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================================================
   PRINT
   ============================================================================= */

@media print {
  .site-header,
  .site-footer,
  .wfp-section-nav,
  .wfp-related-stories,
  .wfp-author-box {
    display: none !important;
  }

  .wfp-article {
    max-width: 100%;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
