/* ═══════════════════════════════════════════════════════════
   "How Is It Going?" — release progress, timeline, changelog, inventory
   ═══════════════════════════════════════════════════════════ */

/* This page runs on solid dark rather than the site's fixed texture. The shared
   --surface tokens are ~93% opaque by design so the texture bleeds through; on a
   dense data page that reads as noise behind the content. Opaque equivalents of
   the same colours, and the texture layer is suppressed. */

:root {
  --prog-bg:      #0a0a12;  /* opaque --surface */
  --prog-bg-alt:  #0f0f17;  /* opaque --surface-alt */
  --prog-bg-card: #131320;  /* opaque --surface-card */
}

body { background: var(--prog-bg); }
body::before { display: none; }

/* ── Hero ─────────────────────────────────────────────────── */

.prog-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  background: linear-gradient(180deg, var(--prog-bg-alt) 0%, var(--prog-bg) 100%);
  border-bottom: 1px solid var(--border);
}

.prog-hero__eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.prog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.prog-hero__desc {
  max-width: 52rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── Release progress bar ─────────────────────────────────── */
/* Points, not dates. A bar that moves cannot become a broken promise. */

/* .container caps at 1280px. This wrapper deliberately escapes that so the bar
   uses the whole viewport, keeping only the standard side gutter. */
.prog-fullbleed {
  width: 100%;
  padding: 0 var(--container-pad);
}

.release-bar {
  background: var(--prog-bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  width: 100%;
}

.release-bar__sub {
  margin-top: .3rem;
  font-size: .9rem;
  color: var(--text-muted);
}

/* ── Segmented milestone track ────────────────────────────── */
/* Each segment's width is its share of total scope, so four years of completed
   work occupies four years' worth of bar instead of being invisible. */

.rel-track {
  display: flex;
  gap: .35rem;
  align-items: flex-start;
}

/* Proportional width, but never so narrow the label is unreadable — 0.5.0 is a
   small share of total scope by design, and still has to be legible. */
.rel-seg { min-width: 7.5rem; }

.rel-seg__track {
  position: relative;
  height: 18px;
  border-radius: 3px;
  background: var(--surface-hover);
  overflow: hidden;
}

.rel-seg__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width var(--transition-slow) var(--ease-out);
}

.rel-seg__fill--active { background: color-mix(in srgb, var(--gold) 30%, transparent); }

.rel-seg--complete .rel-seg__track { box-shadow: 0 0 12px -4px var(--gold); }

.rel-seg--current .rel-seg__track {
  outline: 1px solid var(--gold-dark);
  outline-offset: 1px;
}

.rel-seg__label {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: .55rem;
  padding-right: .35rem;
}

.rel-seg__ver {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.rel-seg--current .rel-seg__ver { color: var(--text); }

.rel-seg__name {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.rel-seg__pts {
  font-size: .78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.release-bar__caption {
  margin-top: 1.6rem;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 60rem;
}

.release-bar__caption a { color: var(--gold-dark); text-decoration: underline; }

.release-bar__loading { color: var(--text-dim); font-size: .9rem; }

.release-bar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.release-bar__version {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--gold);
}

.release-bar__count {
  font-size: 1rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.release-bar__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-hover);
  overflow: hidden;
}

.release-bar__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width var(--transition-slow) var(--ease-out);
}

.release-bar__fill--active {
  background: color-mix(in srgb, var(--gold) 28%, transparent);
}

.release-bar__legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: .85rem;
  font-size: .8rem;
  color: var(--text-dim);
}

.release-bar__items { margin-left: auto; }

.dot {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  margin-right: .4rem;
  vertical-align: middle;
}

.dot--done   { background: var(--gold); }
.dot--active { background: color-mix(in srgb, var(--gold) 35%, transparent); }

/* ── Section scaffolding ──────────────────────────────────── */

.prog-subnav {
  position: sticky;
  top: var(--nav-height);
  z-index: 20;
  background: var(--prog-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.prog-subnav__inner { display: flex; gap: 2rem; }

.prog-subnav__link {
  padding: .9rem 0;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.prog-subnav__link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.prog-section { padding: 4rem 0; background: var(--prog-bg); }
.prog-section--alt { background: var(--prog-bg-alt); }

.prog-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}

.prog-section__note {
  max-width: 44rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.prog-loading, .prog-empty, .prog-error {
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: .9rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.prog-error { color: var(--accent-crimson); border-color: var(--accent-crimson); }

/* ── Timeline / gantt ─────────────────────────────────────── */

.gantt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.gantt__col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  padding-bottom: .6rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.gantt__col-note {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
}

.gantt-month { margin-bottom: 1.5rem; }

.gantt-month__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .5rem;
}

.gantt-lane { margin-bottom: 1.75rem; }

.gantt-lane__title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6rem;
}

.gantt-lane__empty { color: var(--text-dim); font-size: .85rem; font-style: italic; }

.gantt-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .6rem .85rem;
  margin-bottom: .45rem;
  border-radius: 6px;
  background: var(--prog-bg-card);
  border-left: 3px solid var(--border-light);
  transition: transform var(--transition-fast) var(--ease-out);
}

.gantt-bar:hover { transform: translateX(3px); }

.gantt-bar--done     { border-left-color: var(--gold); }
.gantt-bar--active   { border-left-color: var(--accent-blue); }
.gantt-bar--upcoming { border-left-color: var(--border-light); opacity: .85; }

.gantt-bar__title { font-size: .9rem; color: var(--text); font-weight: 500; }

.gantt-bar__pts {
  margin-left: auto;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  background: var(--surface-hover);
  border-radius: 999px;
  padding: .1rem .5rem;
}

/* ── Voting ───────────────────────────────────────────────── */

.vote {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .12rem .55rem;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.vote:hover:not(:disabled) { color: var(--gold); border-color: var(--gold-dark); }
.vote--cast { color: var(--gold); border-color: var(--gold-dark); cursor: default; }
.vote--readonly { cursor: default; opacity: .7; }

/* Both carry margin-left:auto on their own; without this they'd split the free
   space and drift apart instead of sitting together at the right edge. */
.vote + .gantt-bar__pts { margin-left: .35rem; }

/* The second axis: how much authored content runs through the system. */
.content-badge {
  flex-basis: 100%;
  font-size: .75rem;
  color: var(--gold-light);
  letter-spacing: .02em;
}

/* ── Changelog ────────────────────────────────────────────── */

.cl-post {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.cl-post:last-child { border-bottom: none; }

.cl-post__head {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.cl-post__date {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cl-post__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.cl-post__version {
  font-size: .75rem;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  border-radius: 999px;
  padding: .1rem .55rem;
}

.cl-post__summary {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: .9rem;
  max-width: 48rem;
}

.cl-post__entries { list-style: none; padding: 0; margin: 0; }

.cl-entry {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .3rem 0;
}

.cl-entry__tag {
  flex-shrink: 0;
  min-width: 6.5rem;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .18rem .5rem;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
}

.cl-entry__tag--feature        { color: var(--gold);           border-color: var(--gold-dark); }
.cl-entry__tag--improvement    { color: var(--accent-blue);    border-color: var(--accent-blue); }
.cl-entry__tag--fix            { color: var(--accent-emerald); border-color: var(--accent-emerald); }
.cl-entry__tag--content        { color: var(--accent-purple);  border-color: var(--accent-purple); }
.cl-entry__tag--infrastructure { color: var(--text-muted); }

.cl-entry__body { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ── Systems inventory ────────────────────────────────────── */

.inv-group { margin-bottom: 2.5rem; }

.inv-group__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  padding-bottom: .55rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
}

.inv-card {
  background: var(--prog-bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
  transition: border-color var(--transition-fast);
}

.inv-card:hover { border-color: var(--border-light); }

.inv-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
}

.inv-card__name {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
}

.inv-card__summary {
  color: var(--text-muted);
  font-size: .87rem;
  line-height: 1.6;
  margin-bottom: .5rem;
}

.inv-pill {
  flex-shrink: 0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .18rem .5rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.inv-pill--live           { color: var(--accent-emerald); }
.inv-pill--built_untested { color: var(--gold); }
.inv-pill--in_progress    { color: var(--accent-blue); }
.inv-pill--designed       { color: var(--text-dim); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 860px) {
  .gantt { grid-template-columns: 1fr; gap: 2rem; }
  /* Segment labels can't fit side by side on a phone — stack into rows. */
  .rel-track { flex-direction: column; gap: .9rem; }
  .rel-seg { flex: 1 1 auto !important; width: 100%; }
  .rel-seg__label { flex-direction: row; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
  .rel-seg__pts { margin-left: auto; }
  .prog-subnav__inner { gap: 1.25rem; overflow-x: auto; }
  .cl-entry { flex-direction: column; gap: .25rem; }
  .cl-entry__tag { min-width: 0; align-self: flex-start; }
}

/* ── Up / down voting ─────────────────────────────────────── */

.votes {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .05rem .3rem;
}

.vote-arrow {
  font: inherit;
  font-size: .6rem;
  line-height: 1;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: .18rem .2rem;
  border-radius: 4px;
  cursor: pointer;
}

.vote-arrow:hover:not(:disabled) { color: var(--gold); }
.vote-arrow.is-cast { color: var(--gold); }
.vote-arrow--down.is-cast { color: var(--accent-crimson); }

.vote-score {
  min-width: 1.3rem;
  text-align: center;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.vote-score.vote--pos { color: var(--gold); }
.vote-score.vote--neg { color: var(--accent-crimson); }
.vote--readonly.vote--pos { color: var(--gold); }
.vote--readonly.vote--neg { color: var(--accent-crimson); }

.votes + .gantt-bar__pts { margin-left: .35rem; }
