/* Release Notes Section */
#release-notes .section-inner {
  max-width: 980px;
  margin: 0 auto;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.release-overview {
  margin-bottom: 1.5rem;
}

.release-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.release-card {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.02);
}

.release-card-title {
  margin: 0 0 0.25rem;
}

.release-card-tagline {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.release-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.release-list-sub {
  list-style-type: circle;
  margin-left: 0.75rem;
}

.release-next {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.5rem;
}

.release-next-title {
  margin-top: 0;
}

.release-footnote {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Simple responsive enhancement */
@media (min-width: 800px) {
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Macro table */
.release-macro {
  margin: 2rem 0 2.5rem;
}

.release-macro-title {
  margin-bottom: 0.25rem;
}

.release-macro-intro {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.release-macro-scroll {
  width: 100%;
  overflow-x: auto;
}

.release-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.release-table th,
.release-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.release-table th {
  font-weight: 600;
  font-size: 0.9rem;
}

.release-macro-footnote {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Micro meta line inside each card */
.release-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.release-meta-item {
  display: inline-block;
}

.release-meta-separator {
  margin: 0 0.35rem;
}

/* Release Version Block */
.release-version-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
}

.release-version-item {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Slight visual enhancement for next-release card */
.upcoming-release {
  border-left: 4px solid #F2C078; /* gold accent from your palette */
}

/* Fine print / explanatory note */
.upcoming-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .release-version-block {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Horizontal Sprint Timeline */
.sprint-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 2rem 0 2.5rem;
  padding: 0 0.75rem;
}

.sprint-timeline-track {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.sprint-timeline-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.sprint-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbd8ce; /* your warm neutral */
  font-weight: 600;
  font-size: 0.9rem;
  color: #465E69;
  margin-bottom: 0.4rem;
}

.sprint-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Completed sprint state */
.sprint-timeline-item.completed .sprint-number {
  background: #F2C078; /* your gold accent */
  color: #000;
}

/* Responsive */
@media (max-width: 600px) {
  .sprint-timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
  }
  .sprint-timeline-track {
    display: none;
  }
  .sprint-timeline-item {
    margin-bottom: 1rem;
  }
}
/* Sprint Progress Indicator */
.sprint-progress {
  margin: 2.5rem 0 2rem;
}

.sprint-progress-title {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.sprint-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.sprint-progress-fill {
  height: 100%;
  background: #F2C078; /* gold accent */
  transition: width 0.6s ease;
}

.sprint-progress-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.stage {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0.85;
}

.stage.completed {
  background: #F2C078;
  color: black;
}

.stage.active {
  background: #9EB5BE; /* teal from your palette */
  color: black;
  font-weight: 600;
}

.stage.upcoming {
  background: rgba(0, 0, 0, 0.08);
  opacity: 0.6;
}

/* MOBILE LAYOUT FOR PROJECT PROGRESS */
@media (max-width: 600px) {
  /* hide the horizontal bar on small screens if you haven't already */
  .sprint-progress-bar {
    display: none;
  }

  .sprint-progress-stages {
    position: relative;
    padding-left: 1.5rem;  /* space for the vertical line + dots */
    margin-top: 0.5rem;
  }

  /* vertical line */
  .sprint-progress-stages::before {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: rgba(0, 0, 0, 0.15);
  }

  /* reset rectangles and fix padding */
  .stage {
    position: relative;
    background: transparent;          /* no big rectangle on mobile */
    margin-bottom: 0.35rem;
    padding: 0.15rem 1.6 0.15rem 0.9rem; /* balanced left/right */
    font-size: 0.9rem;
  }

  /* status colors via dots + text weight */
  .stage.completed {
    font-weight: 600;
  }
  .stage.completed::before {
    background: #F2C078;              /* gold for completed */
  }

  .stage.active {
    font-weight: 600;
  }
  .stage.active::before {
    background: #9EB5BE;              /* teal for current sprint */
  }

  .stage.upcoming {
    opacity: 0.7;
  }
}

/* --- MOBILE FIXES FOR PROJECT PROGRESS --- */
@media (max-width: 480px) {

    /* Adjust spacing inside each sprint rectangle */
    .progress-item {
        padding: 0.55rem 1.6rem 0.55rem 0.8rem;  /* top | right | bottom | left */
        margin-right: 0.4rem;      /* avoid crowding when wrapping */
    }


    /* Horizontal spacing between Sprint items */
    .progress-row {
        gap: 0.45rem;               /* more natural spacing between items */
    }

    /* Ensure rows don't stick too close to each other */
    .progress-block {
        row-gap: 0.6rem;
    }
}

@media (max-width: 600px) {
    .sprint-progress-stages .dot {
        display: none !important;
    }
}

/* ================================
   Release Notes — Archived Narratives (Option 1)
   Mobile-first, no JS
================================ */

.rn-archive {
  margin-top: 12px;
  border: 1px solid rgba(77, 85, 91, 0.14);
  border-radius: 12px;
  background: rgba(219, 216, 206, 0.22); /* soft neutral */
  overflow: hidden;
}

.rn-archive__summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;

  /* subtle focus style handled below */
  outline: none;
}

.rn-archive__summary::-webkit-details-marker {
  display: none;
}

.rn-archive__label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(77, 85, 91, 0.90);
}

.rn-archive__hint {
  font-size: 12px;
  color: rgba(77, 85, 91, 0.62);
  white-space: nowrap;
}

/* caret indicator */
.rn-archive__summary::after {
  content: "▾";
  margin-left: 6px;
  color: rgba(77, 85, 91, 0.65);
  transform: translateY(-1px);
}

.rn-archive[open] .rn-archive__summary::after {
  content: "▴";
}

.rn-archive__panel {
  padding: 12px;
  border-top: 1px solid rgba(77, 85, 91, 0.10);
}

.rn-archive__intro {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(77, 85, 91, 0.78);
}

.rn-archive__content {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(77, 85, 91, 0.88);
}

/* Make archived content feel "secondary" without being hard to read */
.rn-archive__content h2,
.rn-archive__content h3 {
  margin: 10px 0 6px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.rn-archive__content p {
  margin: 0 0 10px 0;
}

.rn-archive__content ul {
  margin: 6px 0 10px 18px;
}

.rn-archive__content li {
  margin: 4px 0;
}

/* Focus/keyboard accessibility */
.rn-archive__summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(242, 192, 120, 0.35); /* your warm accent */
  border-radius: 10px;
}

/* Hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .rn-archive__summary:hover {
    background: rgba(219, 216, 206, 0.32);
  }
}

/* Wider screens: slightly more breathing room */
@media (min-width: 768px) {
  .rn-archive__summary {
    padding: 12px 14px;
  }
  .rn-archive__panel {
    padding: 14px;
  }
}
/* -------------------------------
   Archived narratives disclosure
   (Option 1 - mobile first)
-------------------------------- */

.rn-archive {
  margin-top: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(77, 85, 91, 0.14);
  overflow: clip;
}

.rn-archive__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  user-select: none;
}

.rn-archive__summary::-webkit-details-marker {
  display: none;
}

.rn-archive__label {
  font-family: "Arsenal SC", serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: rgba(77, 85, 91, 0.86);
}

.rn-archive__hint {
  font-size: 12px;
  color: rgba(77, 85, 91, 0.62);
  white-space: nowrap;
}

/* subtle caret */
.rn-archive__summary::after {
  content: "▾";
  margin-left: 8px;
  color: rgba(77, 85, 91, 0.55);
  transform: translateY(-1px);
}

.rn-archive[open] .rn-archive__summary::after {
  content: "▴";
}

.rn-archive__panel {
  padding: 0 14px 14px;
}

.rn-archive__intro {
  margin: 0;
  padding: 10px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(77, 85, 91, 0.78);
  border-top: 1px solid rgba(77, 85, 91, 0.10);
}

.rn-archive__content {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(77, 85, 91, 0.88);
}

/* spacing for whatever HTML you render inside (p, ul, h3, etc.) */
.rn-archive__content p {
  margin: 0 0 10px;
}

.rn-archive__content ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.rn-archive__content li {
  margin: 0 0 6px;
}

.rn-archive__content h3,
.rn-archive__content h4 {
  margin: 14px 0 8px;
  font-family: "Arsenal SC", serif;
  letter-spacing: 0.03em;
  color: rgba(77, 85, 91, 0.92);
}

.rn-archive__loading {
  margin: 0;
  color: rgba(77, 85, 91, 0.65);
  font-style: italic;
}

/* slightly wider layout on desktop */
@media (min-width: 900px) {
  .rn-archive__summary {
    padding: 12px 16px;
  }
  .rn-archive__panel {
    padding: 0 16px 16px;
  }
}
