/* ═══════════════════════════════════════════════════════════════════════════
   CAP10K — SECTION COMPONENTS: TEXT & CARDS   (owner: W3a)
   Loaded after style.css. Holds only what Tailwind can't express well:
   the section shell, card mechanics, hover/motion and band-aware colour.

   COLOUR RULE: no hex literals. Everything comes from the --c10k-* tokens in
   style.css (which mirror cap10k_palette()), mixed toward #fff / #000 where a
   tint is needed — the same recipe the palette itself uses.

   SPECIFICITY NOTE: the Tailwind Play CDN injects its utilities AFTER this
   file, so anything that has to beat a utility is written as a double class
   (e.g. `.c10k-btn.c10k-btn--lg`, `.c10k-card .c10k-card__prose`).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── SECTION SHELL ─────────────────────────────────────────────────────────
   Moved to style.css in W13 — `.section`, `.section__inner`, `.section__title`
   and the callout/buttons rhythm now live there as the single canonical copy.
   Do not re-add them here.
   ──────────────────────────────────────────────────────────────────────── */

/* ── TONES the wrapper doesn't own ───────────────────────────────────────── */

.c10k-sec--muted { background: var(--c10k-sand-100); }

.c10k-sec--image {
  background-image: var(--section-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.c10k-sec--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.78));
}
.c10k-sec--image > * { position: relative; z-index: 1; }
.c10k-sec--image :is(h2, h3, h4, h5, h6),
.c10k-sec--image .section__title,
.c10k-sec--image .c10k-cta__title { color: #fff; }
.c10k-sec--image .eyebrow { color: rgba(255, 255, 255, 0.85); }

/* Light text on a coloured band. */
.section-band .eyebrow { color: rgba(255, 255, 255, 0.85); }
.section-band--lime .eyebrow { color: var(--c10k-lime-900); }

/* ── BUTTON SIZES (twins of the ACF `size` sub-field) ────────────────────── */

.c10k-btn.c10k-btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}
.c10k-btn.c10k-btn--md { padding: 0.75rem 1.5rem; }
.c10k-btn.c10k-btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
}

/* ── SHARED BITS ─────────────────────────────────────────────────────────── */

/* Whole-card click target. The card itself is position:relative. */
.c10k-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.c10k-textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--c10k-blue-600);
}
.c10k-textlink:hover { color: var(--c10k-blue-900); }
.c10k-textlink svg { transition: transform 0.2s var(--c10k-ease); }
.c10k-textlink:hover svg { transform: translateX(3px); }

.c10k-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c10k-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  color: var(--c10k-body);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.c10k-social:hover {
  background: var(--c10k-lime-500);
  color: var(--c10k-ink-900);
}

/* Row spacing for button rows in each layout. */
.c10k-rich__btns    { margin-top: 2rem; }
.c10k-callout__btns { margin-top: 1rem; }
.c10k-cta__btns     { margin-top: 2rem; }
.c10k-triad__btns   { margin-top: auto; padding-top: 1.1rem; }

/* ── 1. RICH TEXT ────────────────────────────────────────────────────────── */

.c10k-rich--center .prose { text-align: center; }
.c10k-rich--center .prose :is(ul, ol) {
  display: inline-block;
  text-align: left;
}
.c10k-rich--center .prose blockquote {
  display: inline-block;
  text-align: left;
}
/* Tables inside prose use the shared scroller, so kill prose's own table styling. */
.c10k-rich .table-wrap { margin-block: 1.75rem; }
.c10k-rich .table-wrap > table { display: table; }

/* ── 2. CALLOUT ──────────────────────────────────────────────────────────── */

.c10k-callout {
  display: flex;
  gap: 0.875rem;
  max-width: 56rem;
  margin: 0;
  padding: 1.25rem 1.375rem;
}
.c10k-callout__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.1rem;
  border-radius: 9999px;
}
.callout--info    .c10k-callout__icon { background: color-mix(in srgb, var(--c10k-sky-500) 18%, #fff);     color: var(--c10k-sky-900); }
.callout--warning .c10k-callout__icon { background: color-mix(in srgb, var(--c10k-gold-500) 30%, #fff);    color: var(--c10k-gold-900); }
.callout--success .c10k-callout__icon { background: color-mix(in srgb, var(--c10k-lime-500) 26%, #fff);    color: var(--c10k-lime-900); }
.callout--danger  .c10k-callout__icon { background: color-mix(in srgb, var(--c10k-red-500) 14%, #fff);     color: var(--c10k-red-900); }

.c10k-callout__main { flex: 1 1 auto; min-width: 0; }
.c10k-callout__title { margin: 0.15rem 0 0.35rem; }
.c10k-callout .c10k-callout__body {
  font-size: 1rem;
  line-height: 1.62;
  max-width: none;
}
.c10k-callout .c10k-callout__body > :first-child { margin-top: 0; }
.c10k-callout .c10k-callout__body > :last-child  { margin-bottom: 0; }

/* ── 3. CTA BAND ─────────────────────────────────────────────────────────── */

.c10k-cta {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.c10k-cta__eyebrow {
  margin-bottom: 0.85rem;
  letter-spacing: 0.2em;
}
.c10k-cta__title {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.c10k-cta__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin: 1.1rem auto 0;
  border-radius: 2px;
  background: var(--c10k-lime-500);
}
.section-band--lime .c10k-cta__title::after { background: var(--c10k-ink-900); }

.c10k-cta .c10k-cta__body {
  max-width: 46rem;
  margin: 1.25rem auto 0;
  font-size: 1.125rem;
}
.section-band--lime .c10k-cta__body { --tw-prose-body: var(--c10k-ink-900); color: var(--c10k-ink-900); }

/* ── 4. BUTTON ROW ───────────────────────────────────────────────────────── */

.c10k-buttons { width: 100%; }

/* ── 5. ICON TRIADS ──────────────────────────────────────────────────────── */

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

.c10k-triad {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 1.85rem 1.375rem 1.6rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c10k-line);
  border-radius: var(--c10k-radius-card);
  transition: transform 0.3s var(--c10k-ease), box-shadow 0.3s var(--c10k-ease), border-color 0.2s ease;
}
.c10k-triad:hover,
.c10k-triad:focus-within {
  transform: translateY(-4px);
  border-color: var(--c10k-lime-500);
  box-shadow: 0 12px 40px -14px rgba(30, 32, 34, 0.28);
}
.c10k-triad__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--c10k-lime-500) 26%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c10k-lime-500) 55%, #fff);
  color: var(--c10k-ink-900);
}
.c10k-triad__img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}
.c10k-triad__title {
  margin: 1.05rem 0 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c10k-ink-900);
}
.c10k-triad__sub {
  margin: 0.4rem 0 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c10k-muted);
}
.c10k-triad .c10k-triad__body {
  margin-top: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: none;
}
.c10k-triad .c10k-triad__body > :first-child { margin-top: 0; }
.c10k-triad .c10k-triad__body > :last-child  { margin-bottom: 0; }

/* Triads on a coloured band become glass cards. */
.section-band .c10k-triad,
.c10k-sec--image .c10k-triad {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.section-band .c10k-triad__title,
.c10k-sec--image .c10k-triad__title { color: #fff; }
.section-band .c10k-triad__sub,
.c10k-sec--image .c10k-triad__sub { color: rgba(255, 255, 255, 0.85); }
.section-band--lime .c10k-triad { background: #fff; border-color: rgba(30, 32, 34, 0.14); }
.section-band--lime .c10k-triad__title { color: var(--c10k-ink-900); }
.section-band--lime .c10k-triad__sub { color: var(--c10k-muted); }

/* ── 6. CARD GRID ────────────────────────────────────────────────────────── */

.c10k-cards { margin: 0; padding: 0; list-style: none; }
.c10k-cards > li { min-width: 0; }

/* — shared card innards — */
.c10k-card__body,
.c10k-partner__body,
.c10k-story__body,
.c10k-bio__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.c10k-card__title {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--c10k-ink-900);
}
.c10k-card__title a { text-decoration: none; color: inherit; }
.card:hover .c10k-card__title { color: var(--c10k-blue-600); }
.c10k-card__eyebrow { margin: 0 0 0.4rem; }

.c10k-cards .c10k-card__prose {
  margin-top: 0.65rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: none;
}
.c10k-cards .c10k-card__prose > :first-child { margin-top: 0; }
.c10k-cards .c10k-card__prose > :last-child  { margin-bottom: 0; }

.c10k-card__more,
.c10k-card__body > .c10k-textlink { margin-top: auto; padding-top: 0.9rem; }

/* — variant: card — */
.c10k-card__media { aspect-ratio: 16 / 10; }

/* — variant: partner — */
.c10k-partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  padding: 1.5rem;
  /* A shelf light enough to read on both the white and the sand section tone. */
  background: color-mix(in srgb, var(--c10k-sand-100) 55%, #fff);
  border-bottom: 1px solid var(--c10k-line);
}
.c10k-partner__img {
  max-height: 7rem;
  max-width: 86%;
  width: auto;
  object-fit: contain;
}
.c10k-partner__cat { color: var(--c10k-lime-900); margin: 0 0 0.4rem; }
.c10k-partner__mark { margin-top: 1rem; }
.c10k-partner__markimg { height: 2.25rem; width: auto; max-width: 60%; object-fit: contain; }
.c10k-partner__body > .c10k-textlink { margin-top: auto; padding-top: 0.9rem; }

/* — variant: link (image tile) — */
.c10k-tile { position: relative; min-width: 0; }
.c10k-tile__a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--c10k-radius-card);
  background: var(--c10k-ink-900);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(30, 32, 34, 0.06), 0 8px 24px -12px rgba(30, 32, 34, 0.18);
}
.c10k-tile__a:focus-visible { outline-color: var(--c10k-lime-500); }
.c10k-tile__media { position: absolute; inset: 0; display: block; }
.c10k-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--c10k-ease);
}
a.c10k-tile__a:hover .c10k-tile__img { transform: scale(1.06); }
.c10k-tile__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.5) 62%, rgba(0, 0, 0, 0.88) 100%);
}
.c10k-tile--plain .c10k-tile__veil {
  background: linear-gradient(150deg, var(--c10k-ink-900), var(--c10k-blue-900));
}
.c10k-tile__label {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 1.3rem 1.25rem 1.15rem;
}
.c10k-tile__sub {
  display: block;
  margin-bottom: 0.4rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
}
.c10k-tile__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}
.c10k-tile__arrow {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.2s var(--c10k-ease);
}
a.c10k-tile__a:hover .c10k-tile__arrow { transform: translateX(4px); }
.c10k-tile__a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--c10k-lime-500);
  transition: box-shadow 0.2s var(--c10k-ease);
  pointer-events: none;
}
a.c10k-tile__a:hover::after { box-shadow: inset 0 0 0 3px var(--c10k-lime-500); }

/* — variant: story — */
.c10k-story__media { aspect-ratio: 4 / 5; }
.c10k-story__quote {
  position: relative;
  margin: 0;
  padding-left: 1.05rem;
  border-left: 4px solid var(--c10k-lime-500);
}
.c10k-story__attrib {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--c10k-line);
}
.c10k-story__name {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c10k-ink-900);
}
.c10k-story__role {
  margin: 0.28rem 0 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c10k-muted);
}
.c10k-story__body > .c10k-textlink { margin-top: auto; padding-top: 0.7rem; }

/* — variant: bio — */
.c10k-bio__media { aspect-ratio: 4 / 5; }
.c10k-bio__role { margin: 0.4rem 0 0; }
/* Standing copy on a bio card that also has disclosures — the mile marker / venue /
   "Participating since" line the old page printed in the open. (W13) */
.c10k-bio__meta { margin: 0.65rem 0 0; font-size: 0.95rem; }
.c10k-bio__meta > :first-child { margin-top: 0; }
.c10k-bio__meta > :last-child { margin-bottom: 0; }
.c10k-bio__details { margin: 0.9rem 0 0; }
.c10k-bio__details + .c10k-bio__details { margin-top: 0.5rem; }
.c10k-bio .accordion > summary {
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.c10k-bio .accordion > summary::after { width: 1.5rem; height: 1.5rem; font-size: 1rem; }
.c10k-bio .accordion-body { padding: 0 0.9rem 0.9rem; }
.c10k-bio__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
/* The bio card expands in place; the hover lift would fight the accordion. */
.c10k-bio:hover, .c10k-bio:focus-within { transform: none; }

/* ── 7. LOGO GRID ────────────────────────────────────────────────────────── */

.c10k-logos__tier + .c10k-logos__tier { margin-top: 2.75rem; }
.c10k-logos__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c10k-muted);
}
.c10k-logos__label span { flex: 0 0 auto; }
.c10k-logos__label::before,
.c10k-logos__label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--c10k-line);
}
.section-band .c10k-logos__label { color: rgba(255, 255, 255, 0.9); }
.section-band .c10k-logos__label::before,
.section-band .c10k-logos__label::after { background: rgba(255, 255, 255, 0.28); }
.section-band--lime .c10k-logos__label { color: var(--c10k-lime-900); }
.section-band--lime .c10k-logos__label::before,
.section-band--lime .c10k-logos__label::after { background: rgba(30, 32, 34, 0.25); }

.c10k-logos__grid { margin: 0; padding: 0; list-style: none; justify-items: center; }
.c10k-logo { min-width: 0; width: 100%; max-width: 20rem; }
.c10k-logos__grid[data-cols="1"] .c10k-logo { max-width: 26rem; }
.c10k-logos__grid[data-cols="1"] .c10k-logo__a,
.c10k-logos__grid[data-cols="2"] .c10k-logo__a { height: 8rem; }
.c10k-logo__a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.5rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--c10k-line);
  border-radius: 0.875rem;
  transition: transform 0.25s var(--c10k-ease), box-shadow 0.25s var(--c10k-ease), border-color 0.2s ease;
}
a.c10k-logo__a:hover,
a.c10k-logo__a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--c10k-lime-500);
  box-shadow: 0 10px 30px -14px rgba(30, 32, 34, 0.32);
}
.c10k-logo__img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.86;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
a.c10k-logo__a:hover .c10k-logo__img,
a.c10k-logo__a:focus-visible .c10k-logo__img,
.c10k-logo__a:hover .c10k-logo__img {
  filter: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .c10k-logo__img { filter: none; opacity: 1; }
}

/* ── 8. STATS ────────────────────────────────────────────────────────────── */

.c10k-stats { margin: 0; padding: 0; list-style: none; }
.c10k-stat { min-width: 0; text-align: center; }
.c10k-stat::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 4px;
  margin: 0 auto 1.1rem;
  border-radius: 2px;
  background: var(--c10k-lime-500);
}
.c10k-stat__value {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(2.75rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--c10k-ink-900);
}
.c10k-stat__unit {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.5em;
  margin-left: 0.08em;
}
.c10k-stat__unit--lead { margin: 0 0.06em 0 0; }
.c10k-stat__label {
  margin: 0.7rem 0 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c10k-ink-900);
}
.c10k-stat__sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--c10k-muted);
}
.section-band .c10k-stat__value,
.section-band .c10k-stat__label,
.c10k-sec--image .c10k-stat__value,
.c10k-sec--image .c10k-stat__label { color: #fff; }
.section-band .c10k-stat__sub,
.c10k-sec--image .c10k-stat__sub { color: rgba(255, 255, 255, 0.85); }
.section-band--lime .c10k-stat__value,
.section-band--lime .c10k-stat__label { color: var(--c10k-ink-900); }
.section-band--lime .c10k-stat__sub { color: var(--c10k-lime-900); }
.section-band--lime .c10k-stat::before { background: var(--c10k-ink-900); }

/* ── 9. COLUMNS ──────────────────────────────────────────────────────────── */

.c10k-col { min-width: 0; }
.c10k-cols .c10k-col__prose { font-size: 1rem; line-height: 1.65; max-width: none; }
.c10k-col > :first-child { margin-top: 0; }
.c10k-col > :last-child  { margin-bottom: 0; }
.c10k-col {
  padding-top: 1.15rem;
  border-top: 3px solid var(--c10k-lime-500);
}
.section-band--lime .c10k-col { border-top-color: var(--c10k-ink-900); }

/* ── MOTION ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .c10k-triad,
  .c10k-logo__a,
  .c10k-tile__img,
  .c10k-textlink svg,
  .c10k-tile__arrow { transition: none !important; }
  .c10k-triad:hover,
  a.c10k-logo__a:hover { transform: none; }
  a.c10k-tile__a:hover .c10k-tile__img { transform: none; }
}
