/* athleticstogether.com — what this site changes about the framework's look.
   Loaded after the framework's style.css and components.css (both served from the
   handler's built-in set). */
/* The style configuration's three numbers; its other settings are attributes on
   <html> in layout.html. */
:root { --dd-hue: 203; --dd-chroma: 0.45; --dd-contrast: 0.5; }
.wrap.bar { max-width: 1240px; }
.main-nav { gap: 0; }
.main-nav a { padding: .35rem .5rem; font-size: .92rem; }
.foot { flex-wrap: wrap; }
.foot-links { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Statuses of planned workouts, activities and entries, as tags: the library's
   status colours, thinned into the surface (the scheme is fixed to light). */
.tag-completed, .tag-imported, .tag-public { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: var(--ink); }
.tag-planned, .tag-partial { background: color-mix(in srgb, var(--warn) 20%, var(--surface)); color: var(--ink); }
.tag-skipped, .tag-error { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); color: var(--ink); }
.tag-private, .tag-duplicate { background: var(--surface-2); color: var(--muted); }
/* Calendar entries by status. */
.item.status-completed { opacity: .75; }
.item.status-completed::before { content: "✓ "; }
.item.status-skipped { text-decoration: line-through; opacity: .6; }
.move-to { color: var(--muted); }
.move-to input[type=number] { padding: .25rem .4rem; }

/* a set's intervals in notation (set-summary.js), on the lists of a workout's sets */
td.set-summary { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 12rem; max-width: 34rem; }

/* a list's per-row delete (pages' actions: [delete]): a small ×, the word kept for screen readers */
td.delete-cell { width: 1.5rem; padding-left: .25rem; padding-right: .25rem; }
td.delete-cell a.delete { font-size: 0; text-decoration: none; display: inline-block; padding: .1rem .35rem; border-radius: .3rem; color: var(--muted); }
td.delete-cell a.delete::before { content: "×"; font-size: 1.1rem; line-height: 1; }
td.delete-cell a.delete:hover, td.delete-cell a.delete:focus-visible { color: var(--danger, #b42318); background: color-mix(in srgb, var(--danger, #b42318) 12%, transparent); }

/* a scheduled workout's time of day on the calendars: a dot before its title (the
   calendars' intro names the colours) */
.item.time_of_day-morning, .item.time_of_day-afternoon, .item.time_of_day-evening { position: relative; padding-left: 1.05rem; }
.item.time_of_day-morning::before, .item.time_of_day-afternoon::before, .item.time_of_day-evening::before {
  content: ""; position: absolute; left: .4rem; top: 50%; width: .45rem; height: .45rem; margin-top: -.225rem; border-radius: 50%; }
.item.time_of_day-morning::before { background: #e0a21b; }
.item.time_of_day-afternoon::before { background: #2f8fd6; }
.item.time_of_day-evening::before { background: #6a4fc2; }

/* a day's page: each scheduled workout's session under its row (set-summary.js) */
tr.workout-notation td { padding-top: 0; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; border-top: 0; }
tr.workout-notation td div { padding: .05rem 0 .05rem .8rem; }
section.day-plan tbody tr[data-dd-id] td { border-bottom: 0; }
