/* Shared custom date picker — used by /work-pods/ and /events/ public pages.
   Relies on the parchment palette CSS variables (--cream, --warm-brown,
   --espresso, --copper, --muted, --light-line) defined on :root by each
   host page. */

.dp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 8, 0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-tap-highlight-color: transparent;
}
.dp-card {
  background: var(--cream, #f5f0e8);
  border: 1px solid var(--light-line, #ddd4c0);
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 8px;
}
.dp-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--espresso, #2c1a0e);
  flex: 1;
  text-align: center;
}
.dp-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--light-line, #ddd4c0);
  font-size: 16px;
  cursor: pointer;
  color: var(--warm-brown, #5c3d2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: serif;
}
.dp-nav:hover:not(:disabled) {
  border-color: var(--copper, #b07040);
  color: var(--copper, #b07040);
}
.dp-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}
.dp-weekday {
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #8a7560);
  padding: 6px 0;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.dp-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  background: white;
  border: 1px solid var(--light-line, #ddd4c0);
  border-radius: 8px;
  cursor: pointer;
  color: var(--warm-brown, #5c3d2e);
  transition: all 0.15s;
  padding: 0;
}
.dp-day:hover:not(:disabled) {
  border-color: var(--copper, #b07040);
}
.dp-day:disabled {
  background: transparent;
  border-color: transparent;
  color: var(--muted, #8a7560);
  cursor: not-allowed;
  opacity: 0.35;
}
.dp-day.active {
  background: var(--copper, #b07040);
  color: white;
  border-color: var(--copper, #b07040);
}
.dp-day.empty {
  background: transparent;
  border: none;
  pointer-events: none;
}
.dp-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.dp-close {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #8a7560);
  background: none;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
}
.dp-close:hover {
  color: var(--warm-brown, #5c3d2e);
}
