/* Overview: the posting plan set like a timetable. Time column, a green rail, then the post. */

.tt-day { display: grid; gap: 10px; }
.tt-day + .tt-day { margin-top: 14px; }
.tt-date { display: flex; align-items: baseline; gap: 12px; padding-left: 2px; }
.tt-big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.375rem; letter-spacing: -0.005em; color: var(--text); }
.tt-small { font-size: 0.8125rem; font-weight: 500; color: var(--text-3); }

.tt { list-style: none; margin: 0; padding: 0; display: grid; }
.tt-row { display: grid; grid-template-columns: 56px 22px minmax(0, 1fr); align-items: stretch; }
.tt-time {
  align-self: center; justify-self: end; padding-right: 2px; font-size: 0.9375rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em;
}
.tt-time.past { display: grid; justify-items: end; font-size: 0.75rem; font-weight: 500; color: var(--text-3); line-height: 1.35; letter-spacing: 0; }
.tt-time.past > span:last-child { color: var(--text-2); font-size: 0.8125rem; }
.tt-rail { position: relative; }
.tt-rail::before { /* the line */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%);
  background: color-mix(in srgb, var(--accent-text) 28%, transparent);
}
.tt-row:first-child .tt-rail::before { top: 50%; }
.tt-row:last-child .tt-rail::before { bottom: 50%; }
.tt-row:only-child .tt-rail::before { display: none; }
.tt-rail::after { /* the stop */
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--bg); border: 2px solid var(--accent-text);
}
.tt-row.failed .tt-rail::after { border-color: var(--danger); }
.tt-row.published .tt-rail::after { background: var(--ok); border-color: var(--ok); }
.tt.past .tt-rail::before { background: var(--line-strong); }

.tt-body {
  display: flex; align-items: center; gap: 12px; min-width: 0; margin: 4px 0; padding: 10px 12px 10px 12px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.tt-row:hover .tt-body { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tt-body .thumb { width: 40px; height: 40px; }
.tt-edit { opacity: 0.0; transition: opacity var(--t-fast) ease; }
.tt-row:hover .tt-edit, .tt-edit:focus-visible, .tt-row.failed .tt-edit { opacity: 1; }
@media (hover: none) { .tt-edit { opacity: 1; } }

/* stats */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fig { display: grid; gap: 2px; padding: 18px 20px; }
.fig + .fig { box-shadow: -1px 0 0 var(--line); }
.fig-n { font-family: var(--font-display); font-size: 1.875rem; line-height: 1.1; color: var(--text); }
.fig-l { font-size: 0.8125rem; color: var(--text-2); }

/* first day */
.welcome {
  display: grid; gap: 28px; padding: 40px 40px 36px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.welcome h1 { font-size: 2.5rem; }
.welcome-copy { display: grid; gap: 12px; }
.welcome-lead { font-size: 1.0625rem; line-height: 1.55; color: var(--text-2); max-width: 54ch; }
.welcome .steps strong { font-weight: 600; }

@media (max-width: 640px) {
  .tt-row { grid-template-columns: 46px 18px minmax(0, 1fr); }
  .tt-time { font-size: 0.875rem; }
  .tt-body { flex-wrap: wrap; row-gap: 8px; padding: 10px; }
  .tt-body > .grow { flex: 1 1 calc(100% - 110px); }
  .tt-body .pglyph { display: none; }
  .tt-edit { opacity: 1; width: 32px; padding: 0; }
  .tt-edit-l { display: none; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig:nth-child(3) { box-shadow: 0 -1px 0 var(--line); }
  .fig:nth-child(4) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
  .welcome { padding: 8px 0 0; gap: 24px; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .welcome h1 { font-size: 2rem; }
  .welcome-lead { font-size: 1rem; }
  .welcome .btn.lg { width: 100%; }
}
.tt-error { margin-top: 4px; line-height: 1.45; }
