/* Proof strip: what HeyFable reads, laid out on the fiscal calendar. Tokens only. */
.proof {
  padding-block: var(--space-8);
  background: var(--surface-000);
  border-block: var(--hairline) solid var(--line-100);
}
.proof__head {
  display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter); row-gap: var(--space-3); align-items: baseline; margin-bottom: var(--space-6);
}
.proof__head .eyebrow { grid-column: 1 / span 4; color: var(--brand-500); text-transform: uppercase; }
.proof__line { grid-column: 5 / span 5; color: var(--ink-600); max-width: var(--container-text); }
.proof__legend { grid-column: 10 / span 3; display: flex; justify-content: flex-end; gap: var(--space-4); color: var(--ink-500); }
.proof__legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
@media (max-width: 1023px) {
  .proof__head .eyebrow, .proof__line, .proof__legend { grid-column: 1 / -1; }
  .proof__legend { justify-content: flex-start; }
}

/* The calendar is a real table; it scrolls sideways on its own at narrow widths */
.proof__scroll { position: relative; overflow-x: auto; margin-inline: calc(-1 * var(--space-1)); padding-inline: var(--space-1); }
.cal__wrap { position: relative; min-width: var(--cal-min); } /* the scan line measures the full table, even when it scrolls sideways */
.cal { width: 100%; min-width: var(--cal-min); border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal caption { text-align: left; }
.cal th, .cal td { padding: 0; height: var(--cal-row); text-align: center; border-bottom: var(--hairline) solid var(--line-100); }
.cal thead th { height: auto; padding-bottom: var(--space-3); font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); border-bottom-color: var(--line-200); }
.cal thead .cal__year { padding: 0 0 var(--space-2) var(--space-3); text-align: left; color: var(--ink-900); border-bottom: 0; border-left: var(--hairline) solid var(--line-100); }
.cal thead .cal__year--now { color: var(--brand-500); }
.cal tbody tr:last-child th, .cal tbody tr:last-child td { border-bottom: 0; }

.cal .cal__src { position: sticky; left: 0; z-index: 1; background: var(--surface-000); text-align: left; padding-right: var(--space-4); white-space: nowrap; width: var(--cal-label); }
.cal__src .hf-chip { pointer-events: none; }
.cal thead .cal__src { z-index: 2; }

/* Year boundary and the current-quarter marker */
.cal .cal__q1 { border-left: var(--hairline) solid var(--line-100); }
.cal .cal__now { position: relative; background: var(--brand-100); }
.cal thead .cal__now { background: transparent; color: var(--brand-500); }
.cal__today { display: block; margin-top: var(--space-1); font: 500 10px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--brand-500); }

/* Marks */
.mark { display: inline-block; width: var(--mark-size); height: var(--mark-size); border-radius: 50%; vertical-align: middle; }
.mark--in { background: var(--brand-500); }
.mark--due { background: transparent; box-shadow: inset 0 0 0 var(--rail-width) var(--line-200); }
.mark--pair { box-shadow: calc(var(--mark-size) + var(--space-1)) 0 0 var(--brand-500); margin-right: calc(var(--mark-size) + var(--space-1)); }

@media (max-width: 767px) {
  .proof { padding-block: var(--space-7); }
  .proof__head { margin-bottom: var(--space-5); }
}

@media (max-width: 767px) {
  :root { --cal-label: 84px; --cal-min: 560px; }
  .cal__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cal .cal__src .hf-chip { padding-right: var(--space-1); }
}

/* Fill-in: once the strip is in view, a Cobalt scan line sweeps the quarters once, oldest first.
   Each read dot lands as the line passes it, with a small ring that fades out; the quarter labels
   flash Cobalt as they're crossed. Then today's column tints and the still-to-come rings appear.
   Plays once; needs JS (without it the table is static); reduced motion lands on the finished table. */
.cal__beam { display: none; }
.js .proof[data-reveal] .cal__beam {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--cal-label); z-index: 1;
  width: var(--rail-width); background: var(--brand-500); box-shadow: var(--cal-beam-glow);
  opacity: 0; pointer-events: none;
}
.js .proof[data-reveal].is-in .cal__beam { animation: cal-sweep calc(8 * var(--cal-step)) linear both; }
@keyframes cal-sweep {
  0% { left: var(--cal-label); opacity: 0; }
  6%, 92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.js .proof[data-reveal] .cal .mark { opacity: 0; transform: scale(0); }
.js .proof[data-reveal].is-in .cal .mark--in { animation: mark-land var(--duration-reveal) var(--ease-out) both; animation-delay: calc((var(--col, 0) + 0.5) * var(--cal-step)); }
.js .proof[data-reveal].is-in .cal .mark--due { animation: mark-due var(--duration-panel) var(--ease-out) both; animation-delay: calc(8 * var(--cal-step) + var(--duration-panel)); }
@keyframes mark-land {
  0% { opacity: 0; transform: scale(0); box-shadow: 0 0 0 0 var(--cal-ring); }
  55% { opacity: 1; transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 var(--space-3) transparent; }
}
@keyframes mark-due { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }

.js .proof[data-reveal].is-in thead th[style] { animation: q-flash calc(3 * var(--cal-step)) var(--ease-out) both; animation-delay: calc(var(--col, 0) * var(--cal-step)); }
@keyframes q-flash { 40% { color: var(--brand-500); text-shadow: var(--glow-halo-sm); } }

.js .proof[data-reveal] .cal__now { transition: background var(--duration-reveal) var(--ease-out); transition-delay: calc(8 * var(--cal-step)); }
.js .proof[data-reveal] tbody .cal__now { background: transparent; }
.js .proof[data-reveal].is-in tbody .cal__now { background: var(--brand-100); }
