/* ccm-history.css — timeline of cycling in Marlborough (Session 2026-07-11, WIP). Shared styles live in ccm.css. */

.hi-head {
  padding: 48px 48px 40px;
  border-bottom: 1px solid var(--border);
}
.hi-head-inner { max-width: 860px; margin: 0 auto; }
.hi-stand {
  font-size: var(--text-base); font-weight: 300; line-height: 1.8;
  color: var(--text-secondary); max-width: 640px; margin-top: 18px;
}
.hi-wip {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 640px; margin-top: 24px; padding: 12px 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.hi-wip-label {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text); white-space: nowrap; padding-top: 2px;
}
.hi-wip-text { font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); }

.hi-body { max-width: 860px; margin: 0 auto; padding: 24px 48px 96px; }

/* Era header */
.hi-era { margin: 64px 0 8px; }
.hi-era:first-child { margin-top: 32px; }
.hi-era-years {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.hi-era-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl);
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--text);
}
.hi-era-intro {
  font-size: var(--text-md); font-weight: 300; line-height: 1.7;
  color: var(--text-secondary); max-width: 620px; margin-top: 8px;
}

/* Timeline entries */
.hi-timeline { position: relative; margin-top: 28px; padding-left: 26px; }
.hi-timeline::before {
  content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.hi-entry { position: relative; padding: 0 0 36px 22px; }
.hi-entry::before {
  content: ''; position: absolute; left: -26px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--red);
}
.hi-date {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}
.hi-headline {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg);
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--text);
  line-height: 1.15; margin-bottom: 8px;
}
.hi-detail {
  font-size: var(--text-md); font-weight: 300; line-height: 1.7;
  color: var(--text-secondary); max-width: 620px;
}
.hi-quote {
  margin: 12px 0 4px; padding: 2px 0 2px 16px;
  border-left: 3px solid var(--red); max-width: 580px;
  font-size: var(--text-md); font-weight: 300; font-style: italic;
  line-height: 1.65; color: var(--text);
}
.hi-quote-who {
  display: block; margin-top: 6px;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; font-style: normal; color: var(--muted);
}
.hi-sources { margin-top: 10px; }
.hi-source {
  display: inline-block; margin-right: 16px;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
a.hi-source:hover { color: var(--red); border-color: var(--red); }

/* The founding entry */
.hi-entry.hi-founding { background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--red); padding: 24px 24px 24px 22px; margin-left: -2px; }
.hi-entry.hi-founding::before { left: -28px; top: 29px; background: var(--red); }
.hi-entry.hi-founding .hi-headline { font-size: var(--text-xl); }

/* Afterword + credits */
.hi-afterword {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
  max-width: 640px;
}
.hi-afterword p {
  font-size: var(--text-md); font-weight: 300; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 12px;
}
.hi-afterword strong { color: var(--text); font-weight: 600; }
.hi-credit {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 32px; line-height: 2;
}
.hi-credit a { color: var(--muted); }
.hi-credit a:hover { color: var(--red); }

@media (max-width: 860px) {
  .hi-head { padding: 32px 20px 32px; }
  .hi-body { padding: 16px 20px 64px; }
  .hi-timeline { padding-left: 20px; }
  .hi-entry { padding-left: 16px; }
  .hi-entry::before { left: -20px; }
  .hi-entry.hi-founding::before { left: -22px; }
  .hi-era-title { font-size: var(--text-xl); }
}
