/* Project status page (layouts/_default/status.html, static/foras-labs/status.js). Colours from
   _graphic_identity/colors.md with their fixed meanings: violet = done (holds), pink = behind (breaks), amber = attention
   and today, grey = not started. The activity grid is one hue light to dark (violet), the identity's sequential ramp. */
.st-page {
  --done: #8d40a7; --behind: #f4539c; --behind-text: #e40f6f; --attn: #f3be18; --attn-text: #937108;
  --h0: var(--wash); --h1: #e9d9ef; --h2: #cfa8dd; --h3: #ad73c4; --h4: #8d40a7;
}
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .st-page {
  --done: #8969cf; --behind-text: #f4539c; --attn-text: #f3be18; --h1: #2b2238; --h2: #463263; --h3: #6a4d9c; --h4: #8969cf; } }
html[data-theme="dark"] .st-page { --done: #8969cf; --behind-text: #f4539c; --attn-text: #f3be18; --h1: #2b2238; --h2: #463263; --h3: #6a4d9c; --h4: #8969cf; }

.st { max-width: 1040px; margin: 0 auto; padding: 24px 24px 80px; }
.st-eyebrow { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.st-eyebrow span { margin: 0 8px; opacity: .6; }
.st h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 0 0 14px; font-weight: 800; }
.st-lede { max-width: 720px; color: var(--muted); font-size: 18px; margin: 0 0 8px; }
.st-asof { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }

/* overview: the overall status beside the numbers */
.st-over { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 18px; margin: 30px 0 8px; align-items: stretch; }
.st-overall { border: 1px solid var(--line); border-top: 6px solid var(--muted); border-radius: 8px; padding: 14px 16px; }
.st-overall.behind { border-top-color: var(--behind); } .st-overall.attention { border-top-color: var(--attn); } .st-overall.done { border-top-color: var(--done); }
.st-k { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.st-note { font-size: 14px; line-height: 1.45; margin: 10px 0 0; }
.st-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.st-num { padding: 12px 12px 12px 0; border-bottom: 1px dotted var(--muted); }
.st-num b { display: block; font: 700 clamp(30px, 4.6vw, 48px)/1 var(--mono); letter-spacing: -.04em; }
.st-num b small { font-size: .42em; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.st-num span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* status badges: symbol + label, never colour alone */
.st-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.st-badge.done { color: var(--done); } .st-badge.behind { color: var(--behind-text); } .st-badge.attention { color: var(--attn-text); }
.st-badge.active { color: var(--ink); } .st-badge.idle { color: var(--muted); }

.st-sec { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; }
.st-sec h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -.01em; }
.st-cap { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.st-tablewrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th, .st-table td { text-align: left; vertical-align: middle; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.st-table thead th { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 400; }
.st-table tbody th { font-weight: 600; }
.st-bar { display: inline-block; width: 120px; height: 6px; background: var(--wash); border: 1px solid var(--line); border-radius: 3px; vertical-align: middle; overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--ink); }
tr.done .st-bar i { background: var(--done); } tr.behind .st-bar i { background: var(--behind); }
.st-frac { font: 12px var(--mono); color: var(--muted); margin-left: 8px; }
.st-due { font: 12px var(--mono); white-space: nowrap; }
tr.behind .st-due { color: var(--behind-text); font-weight: 700; }
.st-next { color: var(--muted); font-size: 13.5px; }
.st-defs td:first-child { width: 150px; }

/* milestones: one row per dated task on a shared time axis, after a milestone chart */
.st-ms { font-size: 13.5px; }
.st-ms-axis, .st-ms-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: center; }
.st-ms-axis > div { position: relative; height: 22px; border-bottom: 1px solid var(--ink); }
.st-ms-axis i { position: absolute; bottom: 4px; transform: translateX(-50%); font: 10px var(--mono); font-style: normal; color: var(--muted); white-space: nowrap; }
.st-ms-row { padding: 7px 0; border-bottom: 1px solid var(--line); }
.st-ms-label small { display: block; font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 2px; }
.st-ms-track { position: relative; height: 22px; }
.st-ms-track .today { position: absolute; top: -8px; bottom: -8px; border-left: 2px dashed var(--attn); }
.st-ms-today { border-bottom: 0; }
.st-ms-today em { position: absolute; transform: translateX(-50%); font: 600 10px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .1em; color: var(--attn-text); }
.st-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font: 700 10px var(--mono); color: #fff; border: 2px solid var(--ink); background: var(--paper); }
.st-dot.done { background: var(--done); border-color: var(--done); } .st-dot.behind { background: var(--behind); border-color: var(--behind); }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font: 11px var(--mono); color: var(--muted); margin: 12px 0 0; }
.st-legend .st-dot { position: static; transform: none; display: inline-grid; width: 14px; height: 14px; font-size: 8px; vertical-align: -3px; margin-right: -10px; }
.st-today { display: inline-block; width: 0; height: 14px; border-left: 2px dashed var(--attn); margin-right: -10px; vertical-align: -3px; }

/* activity: weeks × weekdays */
.st-heat { display: grid; grid-template-columns: 34px max-content; grid-template-rows: auto auto; gap: 4px 6px; overflow-x: auto; }
.st-heat-m { grid-column: 2; display: grid; grid-template-columns: repeat(var(--weeks), 15px); gap: 3px; font: 10px var(--mono); color: var(--muted); white-space: nowrap; }
.st-heat-d { display: grid; grid-template-rows: repeat(7, 15px); gap: 3px; font: 10px var(--mono); color: var(--muted); align-items: center; }
.st-heat-g { display: grid; grid-template-rows: repeat(7, 15px); grid-auto-flow: column; grid-auto-columns: 15px; gap: 3px; }
.st-heat-g i, .st-ramp i { display: block; aspect-ratio: 1; border-radius: 3px; }
.st-heat-g i:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.st-heat-g i.now { outline: 2px solid var(--attn); outline-offset: 1px; }
.l0 { background: var(--h0); box-shadow: inset 0 0 0 1px var(--line); } .l1 { background: var(--h1); } .l2 { background: var(--h2); } .l3 { background: var(--h3); } .l4 { background: var(--h4); }
.st-legend .st-readout { color: var(--ink); min-width: 260px; }
.st-ramp { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.st-ramp i { width: 11px; }

/* recent updates */
.st-log { list-style: none; padding: 0; margin: 0; }
.st-log li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.st-log time { font: 12px var(--mono); color: var(--muted); padding-top: 3px; }
.st-log p { margin: 0; font-size: 14.5px; line-height: 1.5; }

@media (max-width: 760px) {
  .st-over { grid-template-columns: 1fr; }
  .st-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-ms-axis, .st-ms-row { grid-template-columns: 1fr; gap: 4px; }
  .st-ms-axis > span, .st-ms-today > span { display: none; }
  .st-next, .st-table thead th:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
