/* Timestamps & cron: the few things tools.css doesn't cover. The live clock
   strip above the timestamp form, the cron output under its own form (the
   plain-English sentence, and the expression with any mistake marked), and
   the notes under run times that a clock change moves. */

.clock {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 0 16px; padding: 10px 12px 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: rgb(0 0 0 / .25);
  font-size: 13.5px; color: var(--ink-2);
}
.clock-label { font-size: 11.5px; font-weight: 550; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); }
.clock-time { color: var(--ink); font-variant-numeric: tabular-nums; }
.clock-unix { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.clock .btn { margin-left: auto; }

/* The summary holds long numbers and dates, which should wrap at spaces rather than mid-number,
   and long words such as "microseconds" must fit two cards to a row on a phone */
.summary.time-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.summary.time-summary .stat-value { overflow-wrap: normal; font-size: 20px; }
.summary.time-summary .stat-value.mono { font-size: 17px; letter-spacing: -.02em; }

.cron-out { display: grid; gap: 14px; min-width: 0; }
.cron-out:not(:empty) { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cron-sentence { margin: 0; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.45; font-weight: 550; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.cron-expr {
  margin: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgb(0 0 0 / .35);
  font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.cron-expr mark.hl { background: rgb(245 196 81 / .22); outline: 1px solid var(--warn); text-decoration: underline wavy var(--warn); text-underline-offset: 4px; }

/* Time zones and formats: rows of three that stack on a phone */
.zone-list, .format-list { list-style: none; margin: 0; padding: 0; display: grid; }
.zone-list > li, .format-list > li { display: grid; gap: 4px 16px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; font-size: 14px; }
.zone-list > li:first-child, .format-list > li:first-child { border-top: 0; padding-top: 2px; }
.zone-list > li { grid-template-columns: minmax(120px, 1fr) minmax(0, 1.5fr) minmax(0, 1.2fr); }
.zone-time { font-size: var(--mono-size); color: var(--ink); }
.format-list > li { grid-template-columns: minmax(150px, 1fr) minmax(0, 1.8fr) auto; align-items: center; }
.format-value.mono { font-size: var(--mono-size); color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .zone-list > li { grid-template-columns: minmax(0, 1fr); }
  .format-list > li { grid-template-columns: minmax(0, 1fr) auto; }
  .format-list .format-name { grid-column: 1 / -1; }
}

.run-note { margin-top: 6px; max-width: 46ch; line-height: 1.5; color: var(--ink-2); }
.run-note .chip { margin-right: 4px; vertical-align: 1px; }
.muted.small, .small { font-size: 13px; line-height: 1.5; }
