/* ---------------------------------------------------------------------------
   Today: what Candid did overnight
   ---------------------------------------------------------------------------
   The strip at the foot of "What I've got for you" (app/today-night.js),
   under the agenda: its own small heading ("Done overnight"), then figures
   with a short label under each and the businesses as overlapping logos, or
   on the week a bar per day. It sits on the dark panel with no box of its
   own and no line over it: the space and its heading split it from the tiles. */
.todaynight {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 32px;
  margin-top: 26px; padding: 0 0 10px;
}
/* Today's strip opens the top bar's Candid panel (app/candid-pulse.js). */
.todaynight--go { cursor: pointer; border-radius: 12px }
.todaynight--go:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px }
.todaynight--go:hover .todaynight__when { color: var(--coral) }
/* Pip on the panel's ink is drawn light (css/pip.css, .pip--light). */
.todaynight__pip { margin: -4px 0 -2px }
.todaynight__when {
  display: flex; align-items: center; gap: 8px; flex-basis: 100%;
  font-size: 14px; font-weight: 600; color: var(--on-ink);
}
.todaynight__when .ms { font-size: 18px; color: inherit }
.todaynight__fig { display: grid; gap: 4px }
/* A figure and its logos side by side, so each row of logos is plainly the
   businesses that figure counts. */
.todaynight__set { display: flex; align-items: center; gap: 16px; min-width: 0 }
.todaynight__set + .todaynight__set { padding-left: 32px; border-left: 1px solid color-mix(in srgb, var(--on-ink) 11%, transparent) }
.todaynight__n {
  font-size: 24px; font-weight: var(--weight-strong); line-height: 1; letter-spacing: -.02em;
  color: var(--on-ink); font-variant-numeric: tabular-nums;
}
.todaynight__label { font-size: 12.5px; font-weight: 500; color: color-mix(in srgb, var(--on-ink) 62%, transparent) }

/* The businesses: logos overlapping, each ringed in the panel's ink so the
   one behind reads as behind, then how many more. */
.todaynight__marks { display: flex; align-items: center; padding-left: 4px }
.todaynight__mark {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center; position: relative;
  background: #FFF; color: var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: -.02em;
  box-shadow: 0 0 0 2px var(--ink);
}
/* A light overlap, so a mark without a logo keeps its two letters whole. */
.todaynight__mark + .todaynight__mark { margin-left: -4px }
.todaynight__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #FFF }
.todaynight__more {
  margin-left: 10px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--on-ink) 78%, transparent);
}

/* The week: a bar per day, its count over it and the day under it. Today's
   (researched) solid, the days ahead (booked) lighter. */
.todaynight__week {
  list-style: none; margin: 0 0 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(5, 40px); gap: 10px; align-items: end;
}
.todaynight__day { display: grid; grid-template-rows: 16px 40px 16px; justify-items: center; gap: 4px }
.todaynight__count { font-size: 12.5px; font-weight: 600; color: var(--on-ink); font-variant-numeric: tabular-nums; align-self: end }
.todaynight__bar {
  align-self: end; width: 100%; height: var(--h); min-height: 2px; border-radius: 4px 4px 2px 2px;
  background: color-mix(in srgb, var(--teal) 58%, var(--ink));
}
.todaynight__day.is-done .todaynight__bar { background: color-mix(in srgb, var(--teal) 70%, #FFF) }
.todaynight__dname { font-size: 12px; font-weight: 500; color: color-mix(in srgb, var(--on-ink) 62%, transparent) }

@media (max-width: 760px) {
  .todaynight { gap: 12px 24px; margin-top: 22px; padding: 0 2px 12px }
  .todaynight__n { font-size: 22px }
  .todaynight__set { flex-basis: 100%; justify-content: space-between }
  .todaynight__set + .todaynight__set { padding-left: 0; border-left: 0 }
  .todaynight__week { grid-template-columns: repeat(5, minmax(0, 1fr)); flex-basis: 100%; margin-left: 0 }
}
