/* /builds (scripts/build-builds-page.js): an activity record in the site's
   own language. Calendar, stats, kind bar, timeline. Theme tokens only. */
.bx .m-title { font-size: clamp(48px, 7vw, 96px); }
.bx .m-lede { margin-bottom: 32px; }

/* Profile-style stats */
.gs { margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.gs div { padding: 10px 0; border-top: 1px solid var(--page-text); }
.gs dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--page-muted); }
.gs dd { margin: 4px 0 0; font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.gs dd small { font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--page-muted); }

/* Contribution calendar */
.gc { --gap: 4px; margin-bottom: 28px; container-type: inline-size; }
/* Squares grow to fill the column (capped), and never shrink below 12px:
   narrower than that, the calendar scrolls sideways instead. */
.gc-scroll { --cell: max(12px, min(26px, calc((100cqw - 40px) / var(--weeks, 30) - var(--gap)))); }
.gc-legend { --cell: 12px; }
.gc-scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gc-scroll::-webkit-scrollbar { display: none; }
.gc-months { display: grid; grid-auto-flow: column; grid-auto-columns: calc(var(--cell) + var(--gap)); margin-left: 34px; height: 16px; font-size: 10px; color: var(--page-muted); white-space: nowrap; }
.gc-body { display: flex; gap: 6px; }
.gc-days { display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--gap); width: 28px; font-size: 10px; color: var(--page-muted); line-height: var(--cell); }
.gc-grid { display: flex; gap: var(--gap); }
.gc-week { display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--gap); }
.gc-cell { display: block; width: var(--cell); height: var(--cell); border-radius: 3px; border: 0; padding: 0; background: var(--page-text); }
.gc-out { background: transparent; }
.gc-l0 { opacity: .07; }
.gc-l1 { opacity: .25; }
.gc-l2 { opacity: .45; }
.gc-l3 { opacity: .7; }
.gc-l4 { opacity: 1; }
button.gc-cell { cursor: pointer; transition: transform .12s ease; }
button.gc-cell:hover { transform: scale(1.25); }
button.gc-cell.on { outline: 2px solid var(--page-text); outline-offset: 2px; opacity: 1; }
.gc-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--page-muted); }
.gc-legend span { margin: 0 4px; }
.gc-legend .gc-cell { width: 11px; height: 11px; }

/* Kind bar: a repo's language bar that filters */
.gk { margin-bottom: 8px; }
.gk-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.gk-bar span { background: rgb(var(--c)); min-width: 3px; }
.gk-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gk-item { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--page-text); cursor: pointer; }
.gk-item i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c)); }
.gk-item .mono { font-size: 12px; font-weight: 400; color: var(--page-muted); }
.gk-item:hover, .gk-item.on { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Result bar */
.bx-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 40px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--page-text); scroll-margin-top: 100px; }
.bx-bar b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.bx-right { display: flex; gap: 14px; align-items: baseline; font-size: 12px; color: var(--page-muted); }
.bx-clear { border: 0; background: none; padding: 0; font-size: 12px; color: var(--page-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bx-clear[hidden] { display: none; }

/* The list: one group per day, a dated heading, then the day's builds as
   cards three to a row (two on tablets, one on phones). */
.tl { padding-top: 8px; }
.tl-day { margin-top: 28px; }
.tl-day[hidden], .bl-row[hidden] { display: none; }
.tl-date { margin: 0 0 14px; padding-bottom: 8px; display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--page-text); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.tl-dot { display: none; }
.tl-date small { font-size: 11px; font-weight: 400; color: var(--page-muted); }
.tl-date small b { color: var(--page-text); }
/* As many 260px+ cards as fit, which is three in the page's 960px column
   and two in a half-screen window; one only on a phone. */
.tl-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: stretch; }

/* Cards: monochrome, no kind colours. A pixel mark and an issue number up
   top, the write-up, then the maker and the link on one hairline. */
.bl-row { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--page-bg); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.bl-row:hover { transform: translate(-2px, -3px); border-color: var(--page-text); box-shadow: 6px 6px 0 var(--page-text); }
.bl-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.bl-sprite { width: 34px; height: 34px; shape-rendering: crispEdges; }
.bl-sprite rect { fill: var(--page-text); }
.bl-row:hover .bl-sprite rect { animation: bl-flicker .5s steps(2, jump-none) var(--d) 2; }
@keyframes bl-flicker { 50% { opacity: .15; } }
.bl-no { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--page-muted); display: flex; align-items: baseline; gap: 2px; }
.bl-no b { font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: 30px; line-height: .9; letter-spacing: -.04em; color: var(--page-text); text-transform: none; }
.bl-meta { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--page-muted); }
.bl-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.bl-title a { color: var(--page-text); text-decoration: none; }
.bl-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The whole write-up, always: no clamp, no fold. */
.bl-line { margin: 0; font-size: 14px; line-height: 1.6; color: var(--page-text); opacity: .8; overflow-wrap: anywhere; }
.bl-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; font-size: 11px; color: var(--page-muted); }
.bl-row > .bl-line:last-of-type { margin-bottom: 10px; }
.bl-by { overflow-wrap: anywhere; }
.bl-by a { color: var(--page-text); }
.bl-actions { display: flex; gap: 14px; }
.bl-actions a { color: var(--page-text); text-underline-offset: 3px; white-space: nowrap; }
.bl-row.rise { opacity: 0; transform: translateY(18px); }
.bl-row.rise.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease; transition-delay: calc(var(--n) * 70ms), calc(var(--n) * 70ms), 0s, 0s; }
.bl-row.rise.in:hover { transform: translate(-2px, -3px); transition-delay: 0s; }
.bl-empty { margin: 24px 0; font-size: 13px; color: var(--page-muted); }
.bx-more { margin-top: 32px; }

@media (max-width: 720px) {
  .gs { grid-template-columns: 1fr 1fr; }
  .gs dd { font-size: 28px; }
  .gc { --gap: 3px; }
  .tl-entries { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { button.gc-cell, .bl-row { transition: none; } .bl-row:hover { transform: none; } .bl-sprite rect { animation: none !important; } }
