/* ==================================================================
   MooseFS — Blog index page (timeline / year archive)
   Plain CSS. Layered on top of styles.css + sections.css.
   ================================================================== */

/* ---------- page hero (compact band, white bg, sits below sticky header) ---------- */
.mfs-bi-pagehero {
  background: #fff;
  padding: 140px 0 32px;
  border-bottom: 1px solid var(--border);
}
.mfs-bi-pagehero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.mfs-bi-pagehero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.05; letter-spacing: -.01em;
  color: var(--navy-900); margin: 10px 0 14px;
}
.mfs-bi-pagehero p {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  color: var(--fg-muted); max-width: 640px; margin: 0;
}
.mfs-bi-pagehero-side {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  text-align: right;
  font-family: var(--font-sans); font-size: 13px; color: var(--fg-subtle);
}
.mfs-bi-pagehero-side b {
  font-family: var(--font-display); font-weight: 300;
  font-size: 44px; color: var(--navy-900); line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- filter chip rail ---------- */
.mfs-bi-chipbtn--featured .mfs-bi-chipbtn-label { display: none; }
.mfs-bi-filterbar {
  position: sticky; top: 56px;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: padding .18s var(--ease-out);
}
.mfs-bi-filterbar.is-stuck { padding: 8px 0; }
.mfs-bi-filterbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: nowrap;
}
.mfs-bi-chips {
  display: flex; gap: 8px; flex-wrap: nowrap;
}
@media (min-width: 961px) {
  .mfs-bi-filterbar-inner { container-type: inline-size; }
  @container (min-width: 951px) {
    .mfs-bi-chipbtn--featured .mfs-bi-chipbtn-label { display: inline; }
  }
  @container (max-width: 950px) {
    .mfs-bi-resultcount { font-size: 0; }
    .mfs-bi-resultcount-reset { font-size: 13px; margin-left: 0; }
    .mfs-bi-chipbtn .mfs-bi-chip-dot { display: none; }
    .mfs-bi-chipbtn--featured::before { display: none; }
    .mfs-bi-chipbtn--featured { margin-left: 0; }
  }
}
.mfs-bi-chipbtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  color: var(--navy-800);
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.mfs-bi-chipbtn:hover { border-color: var(--navy-400); }
.mfs-bi-chipbtn.is-on {
  background: var(--navy-900); color: #fff; border-color: var(--navy-900);
}
.mfs-bi-chipbtn .mfs-bi-chip-count { display: none; }
.mfs-bi-chipbtn .mfs-bi-chip-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.mfs-bi-chipbtn.is-on .mfs-bi-chip-dot { background: rgba(255,255,255,.65); }
.mfs-bi-chipbtn[disabled] { opacity: .45; cursor: not-allowed; }

.mfs-bi-resultcount {
  font-family: var(--font-sans); font-size: 13px; color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.mfs-bi-resultcount b { color: var(--navy-900); font-weight: 600; }
.mfs-bi-resultcount-reset {
  font-size: 13px; color: var(--brand-burgundy); margin-left: 12px; text-decoration: none;
}
.mfs-bi-resultcount-reset:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- timeline body ---------- */
.mfs-bi-timeline {
  padding: 32px 0 80px;
}
.mfs-bi-year-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 36px 0;
  border-top: 1px solid var(--navy-200);
  align-items: start;
}
.mfs-bi-year-row:first-child { border-top: 0; }
.mfs-bi-year-row.is-hidden { display: none; }

.mfs-bi-year-col { position: sticky; top: 130px; }
.mfs-bi-year {
  font-family: var(--font-display); font-weight: 300;
  font-size: 72px; line-height: 1;
  color: var(--navy-900); margin: 0;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.mfs-bi-year-count {
  font-family: var(--font-sans); font-size: 13px;
  color: var(--fg-subtle); margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.mfs-bi-year-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.mfs-bi-item.is-hidden { display: none; }
.mfs-bi-item + .mfs-bi-item .mfs-bi-item-link {
  border-top: 1px dashed var(--border);
}
.mfs-bi-item-link {
  display: grid;
  grid-template-columns: 78px 124px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  color: inherit; text-decoration: none;
  transition: padding-left .18s var(--ease-out);
}
.mfs-bi-item-link:hover {
  padding-left: 6px;
  text-decoration: none;
  color: inherit;
}
.mfs-bi-item-link:hover .mfs-bi-item-title {
  color: var(--brand-burgundy);
}

.mfs-bi-item-date {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mfs-bi-item-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; line-height: 1.35;
  color: var(--navy-900);
  margin: 0;
  text-wrap: pretty;
  transition: color .15s ease;
}

/* category chip — inline on each row */
.mfs-bi-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 4px; line-height: 1;
  white-space: nowrap; width: fit-content;
}
.mfs-bi-chip .mfs-bi-chip-dot { width: 6px; height: 6px; border-radius: 50%; }

/* per-category color tokens */
.mfs-bi-chip[data-chip-cat="release"]     { color: #c51329; background: #f4ebec; }
.mfs-bi-chip[data-chip-cat="engineering"] { color: #1e3050; background: #e6ebf2; }
.mfs-bi-chip[data-chip-cat="guide"]       { color: #1f8a4c; background: #e5f2ec; }
.mfs-bi-chip[data-chip-cat="event"]       { color: #c97a09; background: #f7eedd; }
.mfs-bi-chip[data-chip-cat="news"]        { color: #1e63a8; background: #e1ecf6; }
.mfs-bi-chip[data-chip-cat="release"]     .mfs-bi-chip-dot { background: #c51329; }
.mfs-bi-chip[data-chip-cat="engineering"] .mfs-bi-chip-dot { background: #1e3050; }
.mfs-bi-chip[data-chip-cat="guide"]       .mfs-bi-chip-dot { background: #1f8a4c; }
.mfs-bi-chip[data-chip-cat="event"]       .mfs-bi-chip-dot { background: #c97a09; }
.mfs-bi-chip[data-chip-cat="news"]        .mfs-bi-chip-dot { background: #1e63a8; }

/* filter-chip dot colors mirror the same scheme */
.mfs-bi-chipbtn[data-filter="release"]     .mfs-bi-chip-dot { background: #c51329; }
.mfs-bi-chipbtn[data-filter="engineering"] .mfs-bi-chip-dot { background: #1e3050; }
.mfs-bi-chipbtn[data-filter="guide"]       .mfs-bi-chip-dot { background: #1f8a4c; }
.mfs-bi-chipbtn[data-filter="event"]       .mfs-bi-chip-dot { background: #c97a09; }
.mfs-bi-chipbtn[data-filter="news"]        .mfs-bi-chip-dot { background: #1e63a8; }

/* ---------- featured posts (gold star indicator) ---------- */
.mfs-bi-item-star {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute;
  left: -22px;
  top: 18px;
  width: 14px; height: 14px;
  color: #c97a09;
  pointer-events: none;
}
.mfs-bi-item-star svg { width: 14px; height: 14px; display: block; }
.mfs-bi-item-link { position: relative; }

/* ---------- featured chip (in the category filter row) ---------- */
.mfs-bi-chipbtn--featured {
  margin-left: 20px;
  position: relative;
}
.mfs-bi-chipbtn--featured::before {
  content: "";
  position: absolute;
  left: -14px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 18px;
  background: var(--border-strong);
}
.mfs-bi-chipbtn--featured .mfs-bi-chip-star {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px;
  color: #c97a09;
}
.mfs-bi-chipbtn--featured .mfs-bi-chip-star svg { width: 13px; height: 13px; display: block; }
.mfs-bi-chipbtn--featured.is-on .mfs-bi-chip-star { color: #ffd266; }

/* empty state when filter matches nothing */
.mfs-bi-empty {
  padding: 80px 0;
  text-align: center;
  font-family: var(--font-sans); font-size: 16px; color: var(--fg-muted);
  display: none;
}
.mfs-bi-empty.is-shown { display: block; }
.mfs-bi-empty b { color: var(--navy-900); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .mfs-bi-pagehero { padding: 110px 0 28px; }
  .mfs-bi-pagehero-grid { grid-template-columns: 1fr; align-items: start; }
  .mfs-bi-pagehero-side { align-items: flex-start; text-align: left; }
  .mfs-bi-year-row { grid-template-columns: 130px 1fr; gap: 32px; padding: 28px 0; }
  .mfs-bi-year-col { position: static; }
  .mfs-bi-year { font-size: 52px; }
  .mfs-bi-item-link { grid-template-columns: 64px 110px 1fr; gap: 14px; }
}

@media (max-width: 600px) {
  .mfs-bi-pagehero { padding: 96px 0 24px; }
  .mfs-bi-filterbar { padding: 12px 0; }
  .mfs-bi-filterbar-inner { gap: 10px; }
  .mfs-bi-chipbtn { height: 32px; padding: 0 11px; font-size: 13px; }
  .mfs-bi-year-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .mfs-bi-year { font-size: 38px; }
  .mfs-bi-year-count { margin-top: 2px; }
  .mfs-bi-item-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
  .mfs-bi-item-date { font-size: 12px; }
  .mfs-bi-item-title { font-size: 16px; }
  .mfs-bi-resultcount { font-size: 12.5px; }
  /* No left gutter on mobile — render the star inline above the date. */
  .mfs-bi-item-star { position: static; margin-bottom: 2px; }
}
