/* DO NOT EDIT — copied from packages/shared/src/storehub/ui/page-events.css
   by `npm run tokens`. Edit the source there, regenerate, commit both.
   A vitest in packages/shared fails if this file drifts from the source. */
/* Store Hub page: events. Copied verbatim to apps/server/public/shared/storehub/page-events.css by
 * npm run tokens. Class prefix .tdtt-sh-ev-. Tokens only (var(--...)); see storehub.css for the shared kit. */

.tdtt-sh-ev-card { margin-top: 12px; }
.tdtt-sh-ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tdtt-sh-ev-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--surface-2);
}
.tdtt-sh-ev-row:first-child { border-top: 0; }
/* A draft row has no date tile: the text column takes the free width, the actions shrink-wrap. */
.tdtt-sh-ev-row--draft { grid-template-columns: minmax(0, 1fr) auto; }
.tdtt-sh-ev-row--draft .tdtt-sh-ev-main { flex: 1 1 auto; min-width: 0; }
.tdtt-sh-ev-row--draft .tdtt-sh-ev-name { overflow-wrap: break-word; word-break: normal; }
.tdtt-sh-ev-row--draft .tdtt-sh-ev-chips .tdtt-sh-pill { overflow: visible; text-overflow: clip; }
.tdtt-sh-ev-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid color-mix(in srgb, var(--text-dim) 22%, var(--surface));
  border-radius: 10px;
  background: color-mix(in srgb, var(--cyan) 10%, var(--surface));
}
.tdtt-sh-ev-tile__dow { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--cyan); }
.tdtt-sh-ev-tile__day { font-family: var(--head); font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--text); }
.tdtt-sh-ev-tile--series { color: var(--cyan); }
.tdtt-sh-ev-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tdtt-sh-ev-name { margin: 0; font-family: var(--head); font-size: 15px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.tdtt-sh-ev-when { margin: 0; }
.tdtt-sh-ev-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tdtt-sh-ev-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.tdtt-sh-ev-scr { font-size: 12px; font-weight: 600; color: var(--cyan); }
.tdtt-sh-ev-cap { display: flex; align-items: center; gap: 10px; max-width: 320px; }
.tdtt-sh-ev-bar { flex: 1 1 auto; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tdtt-sh-ev-bar__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--cyan); }
.tdtt-sh-ev-cap.is-full .tdtt-sh-ev-bar__fill { background: var(--gold); }
.tdtt-sh-ev-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tdtt-sh-ev-next { white-space: nowrap; }
.tdtt-sh-ev-note { margin-top: 10px; }

.tdtt-sh-ev-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.tdtt-sh-ev-crumb .tdtt-sh-h1 { margin: 0; }
.tdtt-sh-ev-embed { min-height: 200px; }

.tdtt-sh--narrow .tdtt-sh-ev-row { grid-template-columns: 56px minmax(0, 1fr); }
.tdtt-sh--narrow .tdtt-sh-ev-act { grid-column: 1 / -1; justify-content: flex-start; }
.tdtt-sh--narrow .tdtt-sh-ev-next { grid-column: 1 / -1; white-space: normal; }
/* Draft rows have no date tile, so they stack: text full width, actions below. Three classes so this
 * beats the two-class tile rule above regardless of order. */
.tdtt-sh--narrow .tdtt-sh-ev-list .tdtt-sh-ev-row--draft { grid-template-columns: minmax(0, 1fr); }

.tdtt-sh-ev-more { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 4px; }

/* Delete lives in a quiet overflow menu on each event row (native <details>, keyboard reachable). */
.tdtt-sh-ev-menu { position: relative; }
.tdtt-sh-ev-menu__btn { cursor: pointer; list-style: none; color: var(--text-dim); }
.tdtt-sh-ev-menu__btn::-webkit-details-marker { display: none; }
.tdtt-sh-ev-menu[open] .tdtt-sh-ev-menu__btn { color: var(--text); }
.tdtt-sh-ev-menu__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--surface-2);
  background: var(--surface-1, var(--surface-2));
  box-shadow: 0 0 0 1px var(--surface-2);
}
.tdtt-sh-ev-del { color: var(--orange); }
.tdtt-sh--narrow .tdtt-sh-ev-menu__pop { right: auto; left: 0; }
