/* =====================================================================
   FLYTE RUN CLUB — SPONSORS & PARTNERS
   Uses the same tokens as styles.css so it inherits the brand exactly.
   Nothing in here affects any other section.
   ===================================================================== */

.brands { margin: 0; padding: 0; list-style: none; }

.brands__note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: -0.35em 0 38px;
}
.brands__note svg { flex: 0 0 auto; color: var(--accent); }

.brands__heading {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.brands__heading + .brands { margin-bottom: 52px; }
.brands:last-child { margin-bottom: 0; }

/* 2 per row on phones */
.brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 18px;
  justify-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 190px;
}

/* the logo circle */
.brand__logo {
  display: block;
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(.2,.7,.2,1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

a.brand__logo:hover,
a.brand__logo:focus-visible {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--ink);
  box-shadow: 0 8px 18px rgba(20, 20, 20, 0.14);
}
a.brand__logo:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a.brand__logo:active { transform: translateY(-1px) scale(1.01); }

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 14px 0 0;
  text-wrap: balance;
}


/* Sponsors read a little larger than partners. Laid out with wrapping flex
   rather than a fixed grid so an odd number stays centred. */
.brands--sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px 20px;
}
.brands--sponsors .brand { width: min(42%, 190px); }
.brands--sponsors .brand__logo { width: 112px; height: 112px; }
.brands--sponsors .brand__name { font-size: 1.1rem; margin-top: 16px; }

@media (min-width: 620px) {
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .brands--sponsors { gap: 40px 36px; }
  .brands--sponsors .brand { width: 200px; }
}

@media (min-width: 900px) {
  .brands { gap: 48px 28px; }
  .brand__logo { width: 104px; height: 104px; }
  .brands--sponsors .brand__logo { width: 140px; height: 140px; }
  .brands--sponsors .brand__name { font-size: 1.2rem; }
}

/* A logo whose website hasn't been filled in yet isn't clickable, so it
   shouldn't look it. js/sponsors.js adds the attribute. */
.brand__logo[data-todo] { cursor: default; }

/* Phones: same treatment as the rest of the page, so the route line fades
   out underneath the names instead of running through them. */
@media (max-width: 799px) {
  .brands__note,
  .brand__name {
    background-color: var(--bg);
    box-shadow: 0 0 14px 7px var(--bg);
  }
}

/* ---------- Nav room for the extra "Sponsors" link ----------
   A fifth item makes the desktop nav wrap onto two lines between roughly
   800 and 1020px. Keeping each label on one line and tightening the gap in
   that band fixes it; wider screens are untouched. */
@media (min-width: 800px) {
  .nav__links a,
  .nav__brand span,
  .nav__cta { white-space: nowrap; }
}
@media (min-width: 800px) and (max-width: 1023px) {
  .nav__links { gap: 18px; font-size: 0.88rem; }
  .nav__inner { gap: 12px; }
}
