/*
 * Design System - Commitments
 *
 * Commitment-specific styling. Shared index/card/state-section styles
 * (project-*) live in design/project.css. Everything here is
 * commitment-only: the urgency card variants, the shape-and-timing
 * detail inputs, and the deadline chip shown on the calendar.
 */

/* ============================================
   Card variants: urgency based on deadline
   ============================================ */

.project-card.is-imminent {
  border-color: var(--ui-green-accent);
  background: var(--ui-green);
}

.project-card.is-overdue {
  border-color: var(--parchment-dark);
  background: color-mix(in srgb, var(--color-warning) 15%, var(--bg-white-semi));
}

.project-card.is-overdue .project-card-meta {
  color: var(--ink-dark);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   Commitment show page: shape & timing details
   ============================================ */

.commitment-details {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.commitment-detail-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1 1 auto;
  min-width: 180px;
}

.commitment-detail-label {
  font-size: var(--font-size-sm);
  color: var(--ink-medium);
}

.commitment-detail-field input {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--parchment);
  border-radius: var(--border-radius);
  background: var(--bg-white-bright);
}

.commitment-detail-field input:focus {
  outline: none;
  border-color: var(--ui-green-accent);
  background: var(--bg-white-full);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-green-accent) 20%, transparent);
}

/* ============================================
   Deadline chip — rendered in the day all-day banner
   and the week grid all-day row.
   ============================================ */

.commitment-deadline-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  background: color-mix(in srgb, var(--parchment) 30%, var(--bg-white-semi));
  border: 1px dashed var(--parchment-dark);
  color: var(--ink-dark);
}

.commitment-deadline-chip:hover {
  background: color-mix(in srgb, var(--parchment) 45%, var(--bg-white-semi));
  border-style: solid;
}

.commitment-deadline-icon {
  font-size: var(--font-size-base);
  flex-shrink: 0;
}
