/*
   StrickStuff — Blog archive timeline (/blog/)
   One-row month strip (Wayback style). Each bar is one month, its height the
   post count, stacked in topic colors. Empty years collapse to a narrow marker.
   Injected by blog-pagination.js. Field Journal card language.
*/

.blog-timeline {
  margin: 8px 0 28px;
  padding: clamp(16px, 3vw, 24px);
  border: 2px solid var(--ink);
  background: var(--paper-soft);
  box-shadow: 6px 6px 0 var(--paper-deep);
}

.blog-timeline .timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 14px;
}

.blog-timeline h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fj-red);
}

.blog-timeline .timeline-total {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--faded);
}

.blog-timeline .timeline-scroller {
  overflow-x: auto;
  padding-bottom: 4px;
}

.blog-timeline .timeline-strip {
  display: flex;
  align-items: stretch;
  min-width: 620px;
}

/* Year band */
.blog-timeline .timeline-year {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(91, 81, 63, 0.22);
}

.blog-timeline .timeline-year:nth-child(odd) .timeline-bars {
  background: rgba(216, 200, 170, 0.32);
}

.blog-timeline .timeline-year.is-active .timeline-bars {
  background: rgba(163, 63, 47, 0.08);
}

.blog-timeline .timeline-bars {
  height: 96px;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  padding: 0 1px;
}

.blog-timeline .timeline-bar {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.blog-timeline button.timeline-bar { cursor: pointer; }

.blog-timeline .timeline-stack {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
}

.blog-timeline .timeline-stack > span {
  flex: 1 1 0;
  min-height: 1px;
}

.blog-timeline button.timeline-bar:hover .timeline-stack,
.blog-timeline button.timeline-bar:focus-visible .timeline-stack {
  outline: 2px solid var(--ink);
  outline-offset: 0;
}

.blog-timeline button.timeline-bar:focus-visible {
  outline: none;
  box-shadow: none;
}

.blog-timeline .timeline-bar.is-selected .timeline-stack,
.blog-timeline .timeline-year.is-selected .timeline-stack {
  outline: 2px solid var(--fj-red);
  outline-offset: 1px;
}

.blog-timeline .timeline-bar.is-selected .timeline-stack > span {
  filter: saturate(1.2);
}

/* Year label */
.blog-timeline .timeline-ylab {
  display: block;
  width: 100%;
  padding: 5px 0 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
}

.blog-timeline button.timeline-ylab { cursor: pointer; }

.blog-timeline button.timeline-ylab:hover,
.blog-timeline button.timeline-ylab:focus-visible,
.blog-timeline .timeline-year.is-selected .timeline-ylab {
  color: var(--fj-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
  outline: none;
}

/* Collapsed empty years */
.blog-timeline .timeline-gap {
  flex: 0 0 auto;
  width: 3.4em;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(91, 81, 63, 0.22);
}

.blog-timeline .timeline-gap > span:first-child {
  height: 96px;
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(91, 81, 63, 0.14) 5px 6px);
}

.blog-timeline .timeline-gap .timeline-ylab {
  border-top-style: dashed;
  border-top-color: var(--faded);
  font-weight: 400;
  color: var(--faded);
  font-size: 0.62rem;
}

/* Footer: status, hover readout, legend */
.blog-timeline .timeline-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(91, 81, 63, 0.35);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.blog-timeline .timeline-note,
.blog-timeline .timeline-tip { margin: 0; }
.blog-timeline .timeline-tip { min-height: 1.4em; margin-top: 4px; color: var(--faded); }

.blog-timeline .timeline-clear {
  margin-left: 6px;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-soft);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--paper-deep);
}

.blog-timeline .timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--faded);
}

.blog-timeline .timeline-legend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-timeline .timeline-legend i {
  width: 11px;
  height: 11px;
  display: inline-block;
}

@media (max-width: 480px) {
  .blog-timeline { padding: 14px 12px; }
  .blog-timeline .timeline-bars,
  .blog-timeline .timeline-gap > span:first-child { height: 80px; }
}
