/**
 * Fly Events — Distribution Ecosystem V5 (shared)
 * Scope: .fly-dist-methods, .fly-dist-eco-* utilities
 * Loaded ONLY on the three distribution landings. Does not alter global site chrome.
 *
 * Design direction: Premium — Human Connection + Digital Operations
 * Palette aligned with hub/street/drop V4 tokens (navy, electric blue, cyan, lime).
 */

/* Tokens scoped to distribution landings only (never bare :root site-wide). */
.fly-dist-v4,
.fly-street-page,
.fly-drop-page,
.fly-dist-methods {
  --fly-eco-navy: #0b1f33;
  --fly-eco-navy-2: #11304f;
  --fly-eco-blue: #1b6ef3;
  --fly-eco-blue-d: #1557c9;
  --fly-eco-cyan: #22d3ee;
  --fly-eco-lime: #b8f000;
  --fly-eco-lime-d: #9ad600;
  --fly-eco-ink: #0b1f33;
  --fly-eco-text: #41566b;
  --fly-eco-muted: #62778c;
  --fly-eco-line: rgba(11, 31, 51, 0.1);
  --fly-eco-bg: #f4f8ff;
  --fly-eco-surface: #ffffff;
  --fly-eco-radius: 16px;
  --fly-eco-radius-sm: 12px;
  --fly-eco-shadow: 0 8px 24px rgba(11, 31, 51, 0.08);
  --fly-eco-max: 1160px;
  --fly-eco-head: Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
  --fly-eco-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* —— Method selector —— */
.fly-dist-methods {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.45rem 0 0.35rem;
  background: transparent;
}

.fly-dist-methods__inner {
  width: min(100% - 2rem, var(--fly-eco-max));
  margin-inline: auto;
}

.fly-dist-methods__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .fly-dist-methods__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.fly-dist-methods__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--fly-eco-line);
  border-radius: var(--fly-eco-radius-sm);
  background: var(--fly-eco-surface);
  color: var(--fly-eco-ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.fly-dist-methods__link strong {
  font-family: var(--fly-eco-head);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
}

.fly-dist-methods__link span {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--fly-eco-muted);
}

a.fly-dist-methods__link:hover {
  border-color: rgba(27, 110, 243, 0.35);
  box-shadow: var(--fly-eco-shadow);
  transform: translateY(-1px);
}

a.fly-dist-methods__link:focus-visible {
  outline: 3px solid rgba(27, 110, 243, 0.55);
  outline-offset: 2px;
}

.fly-dist-methods__item.is-active .fly-dist-methods__link,
.fly-dist-methods__link.is-current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--fly-eco-navy) 0%, var(--fly-eco-navy-2) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.18);
  cursor: default;
}

.fly-dist-methods__item.is-active .fly-dist-methods__link span,
.fly-dist-methods__link.is-current span {
  color: rgba(255, 255, 255, 0.72);
}

/* Compact placement under breadcrumb / after hero on dense pages */
.fly-dist-methods--compact {
  padding-top: 0.35rem;
  padding-bottom: 0.15rem;
}

.fly-dist-methods--compact .fly-dist-methods__link {
  min-height: 2.85rem;
  padding: 0.55rem 0.75rem;
}

/* —— Shared reveal utility (pages can opt-in) —— */
.fly-dist-eco-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fly-dist-eco-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fly-dist-methods__link,
  a.fly-dist-methods__link:hover,
  .fly-dist-eco-reveal {
    transition: none !important;
    transform: none !important;
  }

  .fly-dist-eco-reveal {
    opacity: 1;
  }
}

/* Align body font on street/drop with hub when ecosystem CSS is present */
.fly-street-page,
.fly-drop-page {
  --st-font-body: var(--fly-eco-body);
  --dm-font-body: var(--fly-eco-body);
  font-family: var(--fly-eco-body);
}
