/* book-calendar.css — gaming-rig palette, monospace.
 * Class names preserved (.cal-cell, .cal-grid, etc.) so book-calendar.js
 * keeps rendering against unchanged selectors. */

.cal-header, .cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.cal-title, .cal-head .month {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}
.cal-nav {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border);
  border-radius: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cal-nav:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

.cal-day-names, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day-name, .cal-dow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cal-cell {
  aspect-ratio: 1 / 1;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text);
  position: relative;
  transition: all 0.12s;
}
.cal-cell.blank {
  border-color: transparent;
  background: transparent;
  color: transparent;
  cursor: default;
}
.cal-cell.past, .cal-cell.blackout {
  color: var(--muted);
  background: transparent;
  cursor: not-allowed;
  opacity: 0.4;
}
.cal-cell.loading { color: var(--muted); opacity: 0.6; }
.cal-cell.available {
  cursor: pointer;
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.2);
}
.cal-cell.available:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--pcb-green-bright);
  color: var(--brand);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.25);
}
.cal-cell.selected {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 700;
  box-shadow:
    0 0 0 1px var(--brand),
    0 0 14px rgba(0, 212, 255, 0.45),
    inset 0 0 4px rgba(0, 212, 255, 0.2);
}
.cal-cell.today {
  color: var(--silk);
  font-weight: 700;
}
.cal-cell.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px; height: 1px;
  background: var(--silk);
  box-shadow: 0 0 4px var(--silk);
}
.cal-cell-day { font-weight: inherit; }

.cal-status {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--muted);
  font-size: 10px;
  padding: 6px 0;
  letter-spacing: 0.04em;
}
.cal-status.cal-error { color: var(--danger); }

/* Wave 2 hardening #4: calendar freshness indicator.
 * Only renders for stale + degraded states. fresh + cached stay silent
 * (no DOM node at all). Keep it small + non-alarming: a colored dot
 * plus a single line of plain operator language. No animations. */
.calendar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  border-radius: 0;
}
.calendar-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}
.calendar-status__text { line-height: 1.3; }
.calendar-status--stale {
  border-color: rgba(255, 204, 0, 0.4);
  color: #ddb84a;
}
.calendar-status--stale .calendar-status__dot {
  background: #ffcc00;
}
.calendar-status--degraded {
  border-color: rgba(255, 140, 0, 0.5);
  color: #e8923a;
}
.calendar-status--degraded .calendar-status__dot {
  background: #ff8c00;
}

/* T104.5 :: day-mode (Win97) calendar overrides moved to
 * book-theme-day.css under body.day selectors. */
