/* hardpackrally.com/updates: every demo update, newest first, each under its date (18 Nov 2026; dated
   timeline 19 Nov 2026, the owner: "Lets make it so its easy to see which date there was an update").
   Borrows the rankings intro and the fair-play cards; the page itself is written by tools/updates-page.py. */

/* the dated list at the top: one row per update, the date first */
.up-index { margin: 0 0 26px; max-width: 760px; }
.up-index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.up-index li { border-bottom: 1px solid var(--line); }
.up-index a {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding: 12px 4px; color: var(--slate); text-decoration: none;
}
.up-index a:hover .up-index-title, .up-index a:focus-visible .up-index-title { color: var(--pine); }
.up-index time {
  flex: 0 0 auto; min-width: 8.5ch;
  font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 0.03em; color: var(--pine);
}
.up-index-title { font-size: 17px; line-height: 1.4; }

.up-latest {
  display: inline-block; padding: 3px 8px; background: var(--rust); color: var(--slate);
  font-family: var(--bar-face); font-style: italic; font-weight: 700; font-size: 11.5px; letter-spacing: 0.12em;
}
.up-index .up-latest { margin-left: auto; }

/* one update: its date in a column of its own, big, so the day reads before anything else */
.up-entry {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(32px, 4vw, 48px); margin-top: clamp(32px, 4vw, 48px);
  border-top: 3px solid var(--rust); scroll-margin-top: calc(var(--bar-h) + 16px);
}
.up-when { position: sticky; top: calc(var(--bar-h) + 20px); align-self: start; text-align: center; }
.up-when time {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px 14px; background: var(--ink); border: 1px solid var(--line); box-shadow: 6px 6px 0 var(--rust);
}
.up-month { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 0.12em; color: var(--pine); }
.up-day { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--slate); }
.up-year { font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; color: var(--dim); }
.up-when .up-latest { margin-top: 14px; }

.up-body h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: 0;
  color: var(--pine); font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06;
  margin: 10px 0 16px; text-shadow: 4px 4px 0 var(--rust);
}
.up-lede { margin: 0 0 20px; max-width: 60ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }

.up-reset {
  margin: 0 0 22px; padding: 14px 18px; max-width: 760px;
  background: var(--face); border: 1px solid var(--line); border-left: 4px solid var(--rust);
  line-height: 1.6; font-size: 16.5px;
}
.up-grid h3 {
  margin: 0 0 10px; color: var(--pine);
  font-family: var(--cond); font-weight: 700; font-size: clamp(19px, 1.9vw, 22px); letter-spacing: 0.02em;
}
.up-grid ul { margin: 0; padding-left: 1.1em; }
.up-grid li { line-height: 1.6; font-size: 16.5px; margin: 0 0 8px; }
.up-grid li:last-child { margin-bottom: 0; }
.up-entry + .fp-note { margin-top: clamp(40px, 5vw, 64px); }

/* a phone: the date sits across the top of its update instead of beside it */
@media (max-width: 700px) {
  .up-entry { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .up-when { position: static; display: flex; align-items: center; gap: 14px; text-align: left; }
  .up-when time { flex-direction: row; align-items: baseline; gap: 10px; padding: 8px 14px; box-shadow: 4px 4px 0 var(--rust); }
  .up-day { font-size: 40px; }
  .up-month { font-size: 20px; }
  .up-when .up-latest { margin-top: 0; }
  .up-index a { gap: 4px 14px; }
  .up-index .up-latest { margin-left: 0; }
}

/* the time of day, shown when two updates land on one date */
.up-clock { margin-top: 6px; font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; color: var(--dim); }
@media (max-width: 700px) { .up-clock { margin-top: 0; } }
