/* /updates: what shipped, newest first, on the EDGE system (system.css). updates.js draws the feed and
   test/unit-updates.test.mjs pins its markup, so this file only dresses it. Scoped under .pg-updates. */
.pg-updates { grid-template-columns: minmax(0, 1040px); justify-content: center; }
.up-sheet { padding: 48px clamp(20px, 4.4vw, 56px) 40px; }

.ups-head { max-width: 760px; padding-bottom: 26px; }
.ups-head .lede { margin-top: 14px; max-width: 58ch; font-size: clamp(16px, calc(15px + 0.25vw), 18px); line-height: 1.5; color: var(--paper2); }
.ups-head .stats { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; color: var(--label); font-size: var(--fs-1); }
.ups-head .stats:has(#count:empty) { display: none; } /* updates.js fills it; with the script off it isn't there */

/* one day: its date on the left, held in view while its updates scroll past */
.feed { border-top: 1px solid var(--hair); }
.feed:empty { display: none; }
.day { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0 28px; }
.day + .day { border-top: 1px solid var(--hair); }
.day h3 { position: sticky; top: 72px; align-self: start; padding: 22px 0 16px; font: var(--w-display) var(--fs-4)/1.3 var(--display); letter-spacing: -0.02em; color: var(--paper); }

.upd { position: relative; padding: 21px 0 22px; scroll-margin-top: 90px; }
.upd + .upd { border-top: 1px solid var(--hair); }
.up-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.upd h2 { flex: 1 1 18em; min-width: 0; font: var(--w-display) 20px/1.25 var(--display); letter-spacing: -0.03em; color: var(--paper); text-wrap: balance; }
.up-head time { display: none; } /* the line under the text says when it shipped */
.upd p { margin-top: 8px; max-width: 64ch; font-size: 15px; line-height: 1.55; color: var(--paper2); }

/* the kind of update: a short bar and its word, brighter for a launch, never a chip */
.up-tag { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--label); font-size: var(--fs-1); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.up-tag::before { content: ""; flex: none; width: 3px; height: 0.95em; border-radius: 1px; background: currentColor; }
.up-tag.t-launch { color: var(--paper); }
.up-tag.t-feature { color: var(--paper2); }

.up-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 12px; color: var(--label); font-size: var(--fs-1); }
.up-foot .num { font-variant-numeric: tabular-nums; }
.up-link { display: inline-flex; align-items: center; gap: 6px; color: var(--label); opacity: 0; transition: opacity var(--t1) var(--ease), color var(--t1) var(--ease); }
.upd:hover .up-link, .upd.on .up-link, .up-link:focus-visible { opacity: 1; }
.up-link:hover { color: var(--paper); }
.up-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* the update a link points at (the newest when none does): marked like the docs' current section, a column with its cap */
.upd.on::before, .upd.on::after { content: ""; position: absolute; left: -16px; width: 3px; border-radius: 1px; background: var(--paper); }
.upd.on::before { top: 26px; height: 3px; }
.upd.on::after { top: 31px; bottom: 26px; }

@media (hover: none) {
  .up-link { opacity: 1; }
}
@media (max-width: 640px) {
  .up-sheet { padding: 30px 18px 28px; }
  .day { grid-template-columns: minmax(0, 1fr); }
  .day h3 { position: static; padding: 22px 0 2px; }
  .upd { padding: 16px 0 18px; }
  .upd.on::before, .upd.on::after { left: -11px; }
  .upd h2 { font-size: 18px; }
  .upd p { font-size: 14px; }
  .up-link { opacity: 1; }
  /* the footer before docs.js fills its figures (or with the script off): no rule above the links */
  .foot > .g:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .up-link { transition: none; }
}
