/* ==========================================================================
   Kloena Digital — Training & Mentorship
   Reuses the hero, category headers, eyebrow and closing-CTA components from
   multimedia.css, and adds the stat strip, offer cards and the year-by-year
   record of workshops, jams, talks and judging.
   ========================================================================== */

@import url("multimedia.css");

/* 1. Page shell
   ========================================================================== */
.page-training main.training {
  display: block;
  /* main is a flex item in the page column: allow it to shrink below the
     min-content width of its children instead of overflowing the viewport. */
  min-width: 0;
  width: min(1400px, 100%);
  margin-inline: auto;
  padding: clamp(6px, 1.4vw, 18px) clamp(20px, 3vw, 44px) 0;
}

.page-training main.training > section {
  width: 100%;
  margin-inline: auto;
}

/* 2. Hero artwork
   ========================================================================== */
.page-training .mm-hero__media img {
  object-position: 50% 44%;
  filter: grayscale(0.68) brightness(0.38) saturate(0.98);
}

/* 3. Stat strip
   ========================================================================== */
.tr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: clamp(8px, 1vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-stat {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.tr-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-2);
}

.tr-stat__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* 4. What we teach — offer cards
   ========================================================================== */
.tr-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin: clamp(14px, 2vw, 20px) 0 0;
  padding: 0;
  list-style: none;
}

.tr-offer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: border-color 0.45s ease, background 0.45s ease, transform 0.5s var(--ease);
}

.tr-offer:hover {
  border-color: rgba(255, 203, 0, 0.34);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 203, 0, 0.08), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transform: translateY(-2px);
}

.tr-offer__num {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.tr-offer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.tr-offer p {
  margin: 0;
  font-size: clamp(13px, 1vw, 14.5px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.tr-offer .mm-project__tags {
  margin-top: auto;
  padding-top: 6px;
}

/* 5. Year-by-year record
   ========================================================================== */
.tr-years {
  display: grid;
  gap: clamp(26px, 3.4vw, 44px);
}

.tr-year {
  display: grid;
  grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 36px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}

.tr-year__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255, 203, 0, 0.62);
}

.tr-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-entry {
  display: grid;
  grid-template-columns: 104px 88px minmax(0, 1fr) auto;
  gap: 6px clamp(12px, 1.6vw, 20px);
  align-items: start;
  padding: clamp(12px, 1.6vw, 18px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.tr-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Thumbnail — opens the shared lightbox */
.tr-thumb {
  position: relative;
  display: block;
  width: 104px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.tr-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.35) brightness(0.86);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}

.tr-thumb:hover img,
.tr-thumb:focus-visible img {
  filter: none;
  transform: scale(1.05);
}

.tr-thumb:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.tr-entry__date {
  margin: 0;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ink-faint);
}

.tr-entry__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: pretty;
}

.tr-entry__meta {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.tr-entry__meta strong {
  font-weight: 500;
  color: rgba(244, 246, 248, 0.52);
}

.tr-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-self: end;
  align-items: baseline;
}

.tr-entry__role {
  padding: 5px 10px;
  border: 1px solid rgba(255, 203, 0, 0.34);
  border-radius: 999px;
  background: rgba(255, 203, 0, 0.07);
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-2);
}

.tr-entry__place {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-faint);
}

/* 6. Partner strip
   ========================================================================== */
.tr-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-partners li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(244, 246, 248, 0.72);
}

/* 7. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .tr-year {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .tr-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .tr-thumb {
    width: min(200px, 100%);
    margin-bottom: 4px;
  }

  .tr-entry__tags {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .page-training .mm-hero__media img {
    object-position: 52% 38%;
  }

  .tr-offer {
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  /* The nav items no longer fit beside the logo: give the nav its own row
     and drop the pipe separators so no stray glyph wraps on its own. */
  .page-training .site-header {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .page-training .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .page-training .site-nav__list {
    gap: 4px 14px;
  }

  .page-training .site-nav__list > li + li::before {
    display: none;
  }

  .page-training .site-nav__link {
    padding: 4px 0;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tr-offer {
    transition: none;
  }

  .tr-offer:hover {
    transform: none;
  }

  .tr-thumb img {
    transition: none;
  }

  .tr-thumb:hover img,
  .tr-thumb:focus-visible img {
    transform: none;
  }
}
