/* 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: 0px solid rgba(0, 0, 0, 0.08); /* Turn off the line at the bottom of Next Release section*/
  padding-top: 0.2rem; /* This controls the space between the Upcoming Release line and the data from database*/
}

.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 current release */
.current-release {
  border-left: 4px solid #F2C078; /* gold to match the completed sprints color code */
}

/* Slight visual enhancement for next-release card */
.upcoming-release {
  border-left: 4px solid #c5c2b9; /* grey to match the upcoming sprints color code */
}



/* 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: 0.5rem 0 0.5rem;
}

.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;
  margin-bottom: 0.50rem;
}

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

.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;
}

/* =========================================
   Project Progress — Legend (key)
   Additive only (no regressions)
========================================= */

.progress-legend{
  display: flex;
  justify-content: flex-end;   /* bottom-right */
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.2;
  color: rgba(77, 85, 91, 0.78);
}

.progress-legend-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.progress-legend-swatch{
  width: 10px;
  height: 10px;

  /* circles by default; change to 3px for small squares */
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,0.12);
  box-sizing: border-box;
  flex: 0 0 auto;
}

/* Match your existing status colors */
.progress-legend-swatch.is-completed{ background: #F2C078; } /* completed */
.progress-legend-swatch.is-active{    background: #9EB5BE; } /* active/current */
.progress-legend-swatch.is-upcoming{  background: #c5c2b9; } /* upcoming */

/* Mobile: keep it calm (avoid forcing right alignment when wrapping) */
@media (max-width: 520px){
  .progress-legend{
    justify-content: flex-start;
    font-size: 0.8rem;
  }
}


/* 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;
    }
}

/* ================================
   /* -------------------------------
   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;
  }
}

/* ==============================
   Epic 87 (Sprint 10) Enhancements
   Additive only: totals row + dynamic bottom sections
   ============================== */

.rn-totals-row td {
  font-weight: 600;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
}

.rn-totals-row .rn-totals-label {
  white-space: nowrap;
}

.sprint-progress + .sprint-progress {
  margin-top: 14px;
}


/* Timeline note - refined footnote */
.rn-timeline-note{
  margin-top: 10px;
  padding-top: 10px;
  /*border-top: 1px solid rgba(0,0,0,0.10);*/
  max-width: 920px;
}

.rn-timeline-note__label{
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(77, 85, 91, 0.55);
}

.rn-timeline-note__line{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.78;
}

.rn-timeline-note__line + .rn-timeline-note__line{
  margin-top: 6px;
}

.rn-timeline-note__muted{
  opacity: 0.62;
}

/* subtle sophistication: quiet left rule, no “box” */
.rn-timeline-note--ruled{
  position: relative;
  padding-left: 14px;
}

.rn-timeline-note--ruled::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 2px;
  width: 2px;
  background: rgba(0,0,0,0.14);
  border-radius: 2px;
}

@media (max-width: 520px){
  .rn-timeline-note{
    margin-top: 8px;
    padding-top: 8px;
  }
  .rn-timeline-note__line{
    font-size: 0.9rem;
  }
}

/* =========================================
   Release Notes — Progressive disclosure
   (Upcoming / Future / Progress)
   Minimal, consistent with rn-archive pattern
========================================= */

.rn-disclosure {
  margin-top: 10px;
}

.rn-disclosure-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(77, 85, 91, 0.14);
}

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

.rn-disclosure-summary-left{
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.rn-disclosure-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(77, 85, 91, 0.10);
  border: 1px solid rgba(77, 85, 91, 0.14);
  color: rgba(77, 85, 91, 0.70);

  transition: transform 160ms ease;
}

/* rotate when open */
.rn-disclosure[open] .rn-disclosure-icon{
  transform: rotate(90deg);
}

.rn-disclosure-body{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(77, 85, 91, 0.10);
}

/* Nested disclosure (Future Releases) */
.rn-disclosure--nested{
  margin-top: 12px;
}

.rn-disclosure-summary--nested{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.rn-disclosure-body--nested{
  background: rgba(255, 255, 255, 0.12);
}

/* Optional hint shown when collapsed */
.rn-disclosure-hint{
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(77, 85, 91, 0.62);
}

/* Hide hint when expanded */
.rn-disclosure[open] .rn-disclosure-hint{
  display: none;
}


/* =========================================
   
/* =========================================================
   RN Top — Grouped header (Instructions + Latest Release)
   Goal: reduce "too many rounded rectangles" by consolidating
   top-of-page content into TWO quiet cards.
   - Mobile-first, no JS
   - Keep IDs used by loadMeta()
========================================================= */

.rn-top{
  display: grid;
  grid-template-columns: 1fr; /* stacked by default (mobile + desktop for clarity) */
  gap: 14px;
  margin-bottom: 1.1rem;
}

/* Shared card container (2 total) */
.rn-top-group{
  border: 1px solid rgba(77, 85, 91, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
  padding: 12px 14px;
}

/* ---------------------------------------------------------
   Group 1: Instructions / orientation
--------------------------------------------------------- */
.rn-top-instructions{
  border-left: 4px solid #9EB5BE;    /* teal accent (distinct from release gold) */
  background: #d7d4ca;
}

.rn-top-instructions .release-footnote{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.88;
}

/* ---------------------------------------------------------
   Group 2: Latest release (meta + headline)
--------------------------------------------------------- */
.rn-top-releaseinfo{
  border-left: 4px solid #F2C078; /* gold accent */
}

/* Remove inner "boxed" look for the meta block inside the grouped card */
.rn-top-releaseinfo .release-version-block{
  background: transparent;
  padding: 0;
  margin: 0 0 10px 0;
  border-radius: 0;
}

.rn-top-releaseinfo .release-version-item{
  font-size: 0.92rem;
  opacity: 0.9;
}

/* Latest release card inside the group should not look like another card */
.rn-top-releaseinfo .release-card.current-release{
  background: transparent;
  padding: 0;
  border-radius: 0;
  border-left: 0; /* accent handled by rn-top-releaseinfo */
}

/* Headline + subtitle rhythm (keep readable but not "shouty") */
.rn-top-releaseinfo #rnRangeHeading{
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.rn-top-releaseinfo #rnSubtitle{
  margin: 0;
}

/* =========================================================
   RN Nav Map (orientation)
   - Replaces long "how to read" paragraph
   - Mobile: compact labels (no subtitles)
   - Desktop: labels + short subtitles, subtle track line
========================================================= */

.rn-readguide.rn-navmap{
  margin: 10px 0 0 0;
  padding-top: 4px;
  padding-bottom: 2px;
}

.rn-navmap-title{
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.60;
  margin: 8px 0 10px 0;
}

/* Steps container */
.rn-navmap-steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px 12px;
}

/* One step */
.rn-navmap-step{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  
  /* Ensure text stays above the decorative track line */
  position: relative;
  z-index: 2;
}

.rn-navmap-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(77, 85, 91, 0.22);
  margin-top: 4px;
  flex: 0 0 auto;
}

.rn-navmap-dot--gold{
  background: rgba(242, 192, 120, 0.95);
}

.rn-navmap-label{
  display: block;
  font-size: 0.90rem;
  font-weight: 600;
  line-height: 1.15;
  color: rgba(77, 85, 91, 0.92);
  
}

.rn-navmap-sub{
  display: block;
  margin-top: 6px;      /* breathing space (avoids overlap with track line) */
  font-size: 0.82rem;
  line-height: 1.25;
  opacity: 0.62;
  max-width: 15ch;      /* prevents tall/narrow columns on desktop */
}

/* Mobile/narrow: 3 columns, hide subtitles for clarity */
@media (max-width: 759px){
  .rn-navmap-steps{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 10px;
  }

  .rn-navmap-sub{
    display: none;
  }

  .rn-navmap-dot{
    width: 9px;
    height: 9px;
    margin-top: 3px;
  }

  .rn-navmap-label{
    font-size: 0.86rem;
  }
}

/* Tablet/desktop: 5 columns + subtle track line behind dots */
@media (min-width: 760px){
  .rn-navmap-steps{
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .rn-readguide.rn-navmap{
    position: relative;
  }

  .rn-readguide.rn-navmap::after{
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 60px; /* aligned behind dots; below title; above subtitles */
    height: 2px;
    background: rgba(77, 85, 91, 0.10); /* This controls the line color*/
    border-radius: 2px;
    pointer-events: none;
    z-index: 1; /* behind text (steps are z-index:2) */
  }
}

/* RN — How to navigate: mobile simplification */
.rn-navmap-mobile-hint{
  display: none; /* desktop default */
}

@media (max-width: 759px){

  /* Hide the graphic entirely */
  .rn-navmap-steps{
    display: none;
  }

  /* Show the one-line guidance */
  .rn-navmap-mobile-hint{
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(77, 85, 91, 0.75);
  }
}

/* =========================================================
   Progressive disclosure: small typography tune (titles)
   Keep them contextual, not headline-level
========================================================= */

/* Upcoming Release title inside disclosure body */
.rn-disclosure-body .release-card-title{
  font-size: 1.0rem;
  font-weight: 500;
  margin: 0 0 5px 0;
}

/* Keep labels calm (actual label bolding needs markup separation) */
.rn-upcoming-label{
  font-weight: 500;
}

/* Differentiate the labels for heading and data retrieved from database */
.rn-upcoming-label-latest-release{
  font-size: 0.98rem;
  font-weight: 520; 
}
.rn-upcoming-label-upcoming-release{
  font-weight: 600;
}