/* today.css — Home dashboard, rebuilt Jul 2026 to Kerry's reference mock.
   Dark hero band with a live narrative line, timer + week-chart two-up,
   tickable focus queue, slim second row. The page carries ONE colour:
   --today-accent (rust) for running / late / today signals only. */

.today-v2 {
  min-height: 100%;
  background: var(--paper);
  --today-accent: var(--red);
}

/* ---------- Dark hero band ---------- */
.today-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 56px 40px;
}
.today-hero-date { color: rgba(248, 246, 241, 0.6); margin-bottom: 14px; }
/* Doubled-up selector: the global .display heading rule sets ink and wins
   a same-specificity tie (type-themes.css loads after this file), so the
   hero greeting needs the extra weight to stay paper-on-ink. */
.today-hero .today-hero-greeting,
.today-hero h1.display,
.today-hero h1.display em { margin: 0; color: var(--paper); }
.today-hero-rule {
  height: 1px;
  background: rgba(248, 246, 241, 0.25);
  margin: 26px 0 22px;
}
.today-narrative {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  max-width: 760px;
  color: rgba(248, 246, 241, 0.92);
}
.today-narrative .today-late {
  color: #D96A48;   /* accent, lifted for contrast on ink */
  font-style: inherit;
}

/* ---------- Body ---------- */
.today-body { padding: 40px 56px 56px; }

.today-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* ---------- Timer card ---------- */
.today-timer { padding: 28px; }
.today-timer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.today-running {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--today-accent);
  font-weight: 600;
}
.today-running-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--today-accent);
}
.today-ticker {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.today-ticker-unit {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--mid);
  margin-left: 8px;
}
.today-timer-what { margin-top: 14px; font-size: 15px; }
.today-timer-what .muted { margin-top: 2px; font-size: 13px; }
.today-still {
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
  max-width: 340px;
}
.today-timer-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.today-stop { color: var(--today-accent); border-color: var(--today-accent); }
.today-stop:hover { background: var(--today-accent); color: #fff; }

/* ---------- Week chart ---------- */
.today-week { padding: 28px; }
.today-week-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  gap: 12px;
}
.today-week-total {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.today-week-total strong { font-weight: 600; }
.today-week-total .muted { font-size: 13px; }
.today-week-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 120px;
}
.today-week-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}
.today-week-bar { background: var(--ink); }
.today-week-bar.is-empty { background: var(--paper-2); }
.today-week-bar.is-today { background: var(--today-accent); }
.today-week-day {
  font-size: 10px;
  color: var(--mid);
  text-align: center;
  letter-spacing: 0.08em;
}
.today-week-day.is-today { color: var(--today-accent); font-weight: 600; }

/* ---------- Focus queue ---------- */
.today-queue { padding: 24px 28px; margin-bottom: 24px; }
.today-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.today-queue-list { list-style: none; padding: 0; margin: 0; }
.today-queue-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.today-queue-row:last-child { border-bottom: 0; }
.today-check {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--rule-strong);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.today-check:hover { border-color: var(--ink); background: var(--paper-2); }
.today-queue-title {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  font-family: var(--serif);
}
.today-queue-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.today-queue-client { white-space: nowrap; }
.today-queue-hours {
  font-size: 12px;
  color: var(--mid);
  white-space: nowrap;
}
.today-pill {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  white-space: nowrap;
}
.today-pill--today { background: var(--ink); color: var(--paper); }
.today-pill--late { background: var(--today-accent); color: #fff; }

/* ---------- Slim second row ---------- */
.today-second-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.today-slim { min-width: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .today-hero { padding: 22px 20px 26px; }
  .today-hero-greeting { font-size: clamp(34px, 10vw, 48px) !important; }
  .today-hero-rule { margin: 18px 0 16px; }
  .today-narrative { font-size: 17px; }

  .today-body { padding: 20px 16px 56px; }
  .today-top-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }
  .today-timer, .today-week { padding: 20px; }
  .today-week-bars { min-height: 90px; }

  .today-queue { padding: 18px 20px; margin-bottom: 20px; }
  /* Queue rows re-flow: checkbox + title on the first line, the meta
     (client / hours / pill) tucks underneath the title. */
  .today-queue-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "check title pill"
      ".     meta  meta";
    row-gap: 6px;
  }
  .today-check { grid-area: check; width: 24px; height: 24px; }
  .today-queue-title { grid-area: title; }
  .today-queue-row .today-pill { grid-area: pill; align-self: start; }
  .today-queue-client, .today-queue-hours { grid-area: meta; }
  .today-queue-client { justify-self: start; }
  .today-queue-hours { justify-self: end; }

  .today-second-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
