/* Isolated five-section chapter styles.
   Prefix: sf-chapter-* only.
   Do not change styles.css, updates.js, sf-nav.css, or sf-nav.js. */

.sf-chapter-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.sf-chapter-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.sf-chapter-lede {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.sf-chapter-tech,
.sf-chapter-next,
.sf-chapter-connect {
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.2rem 1.4rem;
}

.sf-chapter-tech-copy {
  min-width: 0;
}

.sf-chapter-tech-statement {
  margin: 0 0 0.75rem;
  color: #e8f0ff;
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.sf-chapter-capability {
  margin: 1.45rem 0 0;
  padding: 1.35rem 1.15rem 1.2rem;
  border-top: 1px solid rgba(45, 226, 197, 0.22);
  border-bottom: 1px solid rgba(45, 226, 197, 0.16);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(45, 226, 197, 0.08), transparent 58%);
}

.sf-chapter-capability-mark {
  margin: 0 0 1rem;
  color: #8ea3c4;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sf-chapter-capability-core {
  margin: 0 0 1.2rem;
  text-align: center;
}

.sf-chapter-capability-brand {
  margin: 0 0 0.28rem;
  color: #2de2c5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.sf-chapter-capability-focus {
  margin: 0;
  color: #e8f0ff;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.sf-chapter-capability-list {
  list-style: none;
  margin: 0;
  padding: 0.95rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.2rem;
  border-top: 1px solid rgba(159, 177, 207, 0.14);
}

.sf-chapter-capability-list li {
  margin: 0;
  color: #d7e4f8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

.sf-chapter-path {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0.35rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.sf-chapter-node {
  margin: 0;
  min-width: 0;
  padding: 0 0 1.25rem 1.15rem;
  border-left: 1px solid rgba(45, 226, 197, 0.32);
  background: transparent;
  position: relative;
}

.sf-chapter-node:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.sf-chapter-node::before {
  content: "";
  position: absolute;
  left: -0.29rem;
  top: 0.28rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #071018;
  border: 1px solid #2de2c5;
}

.sf-chapter-node strong {
  display: block;
  margin-bottom: 0.18rem;
  color: #e8f0ff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.sf-chapter-node-date {
  margin: 0 0 0.35rem;
  color: #2de2c5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sf-chapter-node p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.sf-chapter-connect-contexts {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.4rem;
}

.sf-chapter-connect-contexts li {
  margin: 0;
  min-width: 0;
  padding: 0;
}

.sf-chapter-connect-label {
  margin: 0 0 0.28rem;
  color: #d7e8ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sf-chapter-connect-contexts p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sf-chapter-connect-actions {
  margin-top: 1.25rem;
}

.sf-progress-visual.sf-featured-media .sf-chapter-media {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
}

.sf-progress-visual.sf-featured-media .sf-chapter-media img {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.sf-chapter-media-cap {
  position: static;
  flex: 0 0 auto;
  z-index: 2;
  margin: 0;
  padding: 0.42rem 0.58rem 0.46rem;
  background: rgba(6, 12, 20, 0.96);
  color: #d7e4f8;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

@media (min-width: 841px) {
  .sf-chapter-capability-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    text-align: center;
  }

  .sf-chapter-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 0.55rem;
  }

  .sf-chapter-path::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 0.52rem;
    height: 1px;
    background: rgba(45, 226, 197, 0.32);
  }

  .sf-chapter-node {
    padding: 1.15rem 0.4rem 0;
    border-left: 0;
    text-align: center;
  }

  .sf-chapter-node:last-child {
    padding-bottom: 0;
  }

  .sf-chapter-node::before {
    left: 50%;
    top: 0.28rem;
    transform: translateX(-50%);
  }

  .sf-chapter-connect-contexts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .sf-chapter-tech,
  .sf-chapter-next,
  .sf-chapter-connect {
    padding: 0.95rem;
  }

  .sf-chapter-media-cap {
    font-size: 0.68rem;
    padding: 0.4rem 0.5rem 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-chapter-capability,
  .sf-chapter-path,
  .sf-chapter-node {
    transition: none !important;
    animation: none !important;
  }
}
