/* v2 activity heatmap cards (job portal-activity-heatmap). Option B, Reading room: Literata headings, Atkinson
 * Hyperlegible Next for the interface, white panels on #F4F3EF, a 28px green rule under the title. Green #00BF63 is
 * for fills only; green text is #00703A. Scoped to .v2-act so nothing else on the page changes. */
.v2-act { position: relative; font-family: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif; background: #fff; border: 1px solid #D9D7CF; }
.v2-act .card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.v2-act-title { font-family: 'Literata', Georgia, serif; font-size: 21px; font-weight: 500; margin: 0; color: var(--ink, #1E1E1C); }
.v2-act-sub { font-size: 13px; color: var(--muted, #6B6A64); }
.v2-act-rule { display: block; width: 28px; height: 3px; border-radius: 2px; background: #00BF63; margin: 0 0 14px; }
.v2-act-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; }
.v2-act-stat b { display: block; font-family: 'Literata', Georgia, serif; font-size: 20px; font-weight: 500; color: #00703A; line-height: 1.2; }
.v2-act-stat span { font-size: 13px; color: var(--muted, #6B6A64); }

/* grid: one column per week, Monday at the top. The scroller opens at the newest weeks (scrolled right in JS). */
.v2-act { --cell: 11px; --gap: 3px; }
.v2-act-scroll { overflow-x: auto; overflow-y: hidden; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.v2-act-inner { display: inline-block; min-width: max-content; }
.v2-act-months { display: grid; grid-template-columns: repeat(52, var(--cell)); column-gap: var(--gap); margin-left: 30px; height: 16px; font-size: 11px; color: var(--muted, #6B6A64); }
.v2-act-month { white-space: nowrap; }
.v2-act-body { display: flex; gap: 6px; }
.v2-act-days { display: grid; grid-template-rows: repeat(7, var(--cell)); row-gap: var(--gap); width: 24px; font-size: 10px; line-height: var(--cell); color: var(--muted, #6B6A64); }
.v2-act-grid { display: flex; gap: var(--gap); }
.v2-act-col { display: grid; grid-template-rows: repeat(7, var(--cell)); row-gap: var(--gap); }
.v2-act-cell { display: block; width: var(--cell); height: var(--cell); border-radius: 2px; background: #EBEAE4; box-sizing: border-box; }
.v2-act-cell[data-l="1"] { background: rgba(0, 191, 99, .25); }
.v2-act-cell[data-l="2"] { background: rgba(0, 191, 99, .45); }
.v2-act-cell[data-l="3"] { background: rgba(0, 191, 99, .7); }
.v2-act-cell[data-l="4"] { background: #00BF63; }
.v2-act-future { background: transparent; }
.v2-act-cell[data-day] { cursor: default; }
.v2-act-cell[data-day]:focus { outline: none; }
.v2-act-cell[data-day]:focus-visible { outline: 2px solid #00703A; outline-offset: 1px; }
.v2-act-cell[data-day]:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }

.v2-act-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 0 4px; font-size: 12px; color: var(--muted, #6B6A64); }
.v2-act-legend { display: flex; align-items: center; gap: 3px; }
.v2-act-legend > span:first-child { margin-right: 4px; }
.v2-act-legend > span:last-child { margin-left: 4px; }

.v2-act-tip { position: absolute; z-index: 5; pointer-events: none; background: #1E1E1C; color: #fff; font-size: 12.5px; line-height: 1.3; padding: 6px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; }
.v2-act-tip.v2-act-tip-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .v2-act-tip { transition: opacity .12s ease-out; }
}

.v2-act-h4 { font-family: 'Literata', Georgia, serif; font-size: 16px; font-weight: 500; margin: 16px 0 6px; color: var(--ink, #1E1E1C); }
.v2-act-hist { list-style: none; margin: 0; padding: 0; }
.v2-act-hist li { display: flex; gap: 14px; padding: 7px 0; border-top: 1px solid #ECEAE3; font-size: 14px; }
.v2-act-hist li:first-child { border-top: 0; }
.v2-act-hdate { flex: 0 0 92px; color: var(--muted, #6B6A64); }
.v2-act-hitems { flex: 1; min-width: 0; }
.v2-act-hitems a { color: #00703A; text-decoration: underline; text-underline-offset: 2px; }
.v2-act-sep { color: var(--muted, #6B6A64); }
.v2-act-none { font-size: 14px; color: var(--muted, #6B6A64); padding: 6px 0; }

@media (max-width: 640px) {
  .v2-act-hdate { flex-basis: 78px; }
  .v2-act-stats { gap: 6px 20px; }
}

/* dark theme */
:root[data-theme="dark"] .v2-act { background: var(--card, #1F1F1D); border-color: var(--line, #34332F); }
:root[data-theme="dark"] .v2-act-cell { background: #2E2D2A; }
:root[data-theme="dark"] .v2-act-cell[data-l="1"] { background: rgba(0, 191, 99, .3); }
:root[data-theme="dark"] .v2-act-cell[data-l="2"] { background: rgba(0, 191, 99, .5); }
:root[data-theme="dark"] .v2-act-cell[data-l="3"] { background: rgba(0, 191, 99, .75); }
:root[data-theme="dark"] .v2-act-cell[data-l="4"] { background: #00BF63; }
:root[data-theme="dark"] .v2-act-future { background: transparent; }
:root[data-theme="dark"] .v2-act-stat b, :root[data-theme="dark"] .v2-act-hitems a { color: #4FD995; }
:root[data-theme="dark"] .v2-act-hist li { border-color: var(--line, #34332F); }
:root[data-theme="dark"] .v2-act-tip { background: #F4F3EF; color: #1E1E1C; }
