/* Routine page styles. Loaded by routine.njk layout. */

.routine__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0 0 var(--space-3);
}

.routine__summary { color: var(--color-text-secondary); font-size: 18px; }
.routine__duration { color: var(--color-text-muted); font-size: 14px; }

.routine__body { margin: var(--space-5) 0 var(--space-6); }

.routine__steps h2 { margin-bottom: var(--space-4); }

.routine-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.routine-step {
  counter-increment: step;
  background: var(--color-card);
  border-radius: var(--radius-2);
  padding: var(--space-4) var(--space-5);
  position: relative;
}

.routine-step::before {
  content: counter(step);
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.routine-step__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.routine-step__link:hover .routine-step__title { text-decoration: underline; }
.routine-step__link:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 4px; border-radius: var(--radius-2); }

.routine-step__chip { display: block; margin-bottom: var(--space-3); }

.routine-step__title {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  padding-right: var(--space-6);
}

.routine-step__duration {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: 0 0 var(--space-2);
}

.routine-step__summary {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}
