/* The About page's GitHub activity grid (js/activity.js). Shades are the site's ink mixed into
   its ground, so dark mode follows on its own. */
.fig.activity { --cell: 12px; --gap: 3px; position: relative; }
.act { overflow-x: auto; padding: 18px 14px 14px; }
.act-grid { display: grid; grid-template-columns: auto max-content; grid-template-rows: auto auto; column-gap: 8px; row-gap: 6px; width: max-content; }
.act-months { grid-column: 2; display: grid; grid-template-columns: repeat(var(--weeks), var(--cell)); column-gap: var(--gap); }
.act-days { position: sticky; left: -14px; z-index: 1; background: var(--bg); margin-left: -14px; padding-left: 14px; padding-right: 8px; margin-right: -8px; grid-column: 1; grid-row: 2; display: grid; grid-template-rows: repeat(7, var(--cell)); row-gap: var(--gap); }
.act-cells { grid-column: 2; grid-row: 2; display: grid; grid-template-rows: repeat(7, var(--cell)); grid-auto-flow: column; grid-auto-columns: var(--cell); gap: var(--gap); }
.act-months span, .act-days span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); line-height: var(--cell); white-space: nowrap; }
.act-cells i, .act-legend i { display: block; width: var(--cell); height: var(--cell); }
.act .l0, .act-legend .l0 { background: var(--bg-2); outline: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); outline-offset: -1px; }
.act .l1, .act-legend .l1 { background: color-mix(in srgb, var(--ink) 22%, var(--bg-2)); }
.act .l2, .act-legend .l2 { background: color-mix(in srgb, var(--ink) 45%, var(--bg-2)); }
.act .l3, .act-legend .l3 { background: color-mix(in srgb, var(--ink) 70%, var(--bg-2)); }
.act .l4, .act-legend .l4 { background: var(--ink); }
.act-legend { margin-left: auto; display: flex; align-items: center; gap: 3px; color: var(--ink-2); white-space: nowrap; }
.act-legend i { --cell: 10px; margin: 0 1px; }
@media (max-width: 700px) { .act-legend { display: none; } }
.act-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; padding: 5px 8px; white-space: nowrap; }
.act-tip b { font-weight: 500; }
.act-tip span { opacity: 0.75; }
.act-cells i:hover { outline: 1px solid var(--ink); outline-offset: 0; }
