/* Defines the styles for Key achievements. */
/* Applies styling to .key-achievements. */
.key-achievements {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

/* Applies styling to .key-achievements .key-card. */
.key-achievements .key-card {
  scroll-snap-align: start;
}

/* Applies styling to .key-card. */
.key-card {
  border: 0;
  border-radius: 16px;
  padding: 1.4rem;
  background: #ffffff;
  box-shadow: none;
  min-width: 260px;
}

/* Applies styling to .key-icon. */
.key-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  color: var(--teal);
}

/* Applies styling to .key-icon svg. */
.key-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

/* Applies styling to .key-title. */
.key-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
}

/* Applies styling to .key-kicker. */
.key-kicker {
  margin: 0 0 0.6rem 0;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Applies styling to .key-body. */
.key-body {
  margin: 0;
  color: #000000;
  font-size: 1rem;
}

/* Defines the styles for Highlights. */
/* Applies styling to .highlights-wrap. */
.highlights-wrap {
  padding-top: 0;
}

/* Applies styling to .highlights-grid. */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Applies styling to .highlight-item. */
.highlight-item {
  border: 0;
  border-radius: 16px;
  padding: 1.4rem;
  background: #ffffff;
}

/* Applies styling to .highlight-link. */
.highlight-link {
  color: var(--ink);
  font-weight: 600;
}

/* Applies styling to .heading-arrow. */
.heading-arrow {
  color: var(--teal);
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Applies styling to .highlight-link:hover .heading-arrow. */
.highlight-link:hover .heading-arrow {
  transform: translateX(4px);
}

/* Defines the styles for Index skills section (non-boxed style). */
/* Applies styling to .page-index #skills .highlight-item. */
.page-index #skills .highlight-item {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0.7rem 0;
}

/* Defines the styles for Stats summary (elements page). */
/* Applies styling to .stats-wide. */
.stats-wide {
  padding: 0;
}

/* Defines the styles for Scroll reveal. */
/* Applies styling to .reveal. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
  will-change: opacity, transform;
}

/* Applies styling to .reveal.is-visible. */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* This changes the layout on prefers-reduced-motion: reduce screens. */
@media (prefers-reduced-motion: reduce) {
/* Applies styling to .reveal. */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Applies styling to .summary-band. */
.summary-band {
  background: var(--teal);
  padding: 3rem 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  margin-top: 0;
  color: #ffffff;
}

/* Applies styling to .summary-grid. */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* Applies styling to .summary-band .summary-grid. */
.summary-band .summary-grid {
  width: 92%;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

/* Applies styling to .summary-card. */
.summary-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  min-width: 0;
}

/* Applies styling to .summary-value. */
.summary-value {
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
}

/* Applies styling to .summary-label. */
.summary-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

/* This changes the layout on min-width: 601px screens. */
@media (min-width: 601px) {
/* Applies styling to .summary-band .summary-grid. */
  .summary-band .summary-grid {
    width: 100%;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
  }
}

/* This changes the layout on min-width: 701px screens. */
@media (min-width: 701px) {
/* Applies styling to .summary-band .summary-grid. */
  .summary-band .summary-grid {
    width: 92%;
  }
}

/* This changes the layout on min-width: 737px screens. */
@media (min-width: 737px) {
/* Applies styling to .summary-band. */
  .summary-band {
    padding: 4.5rem 0;
  }

/* Applies styling to .summary-band .summary-grid. */
  .summary-band .summary-grid {
    width: 85%;
  }

/* Applies styling to .summary-card. */
  .summary-card {
    padding: clamp(0.6rem, 1.2vw, 1.1rem) clamp(0.7rem, 1.4vw, 1.25rem);
    border-radius: 16px;
  }

/* Applies styling to .summary-value. */
  .summary-value {
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  }

/* Applies styling to .summary-label. */
  .summary-label {
    font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  }
}

/* This changes the layout on min-width: 981px screens. */
@media (min-width: 981px) {
/* Applies styling to .key-achievements. */
  .key-achievements {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

/* Applies styling to .highlights-grid. */
  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

/* Applies styling to .summary-grid. */
  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
  }
}

/* Applies styling to .stats-wide > .inner. */
.stats-wide > .inner {
  max-width: 100em;
}
