/*
 * Welle Kalender: mirrors the "Event row" molecule in design/welle-website.figcraft.
 * Colours come from the theme's custom properties (src/css/main.css); the fallbacks
 * are the same brand values, so the plugin looks right on any theme.
 */
.welle-calendar {
  /* One step darker than the brand teal (#07b1af, 2.65:1 on white): white dates and
     teal titles need 4.5:1, and #007c7a reaches 5.0:1. It is the tile titles' teal. */
  --welle-cal-brand: #007c7a;
  --welle-cal-text: var(--color-text, #1a1a1a);
  --welle-cal-surface: var(--color-surface, #ffffff);
  --welle-cal-accent: var(--color-amber, #f19e32);
  color: var(--welle-cal-text);
}

.welle-calendar__month {
  margin: 2rem 0 0.75rem;
  color: var(--welle-cal-brand);
  font-size: 1.5rem;
  line-height: 2rem;
  text-transform: capitalize;
}

.welle-calendar__month:first-child {
  margin-top: 0;
}

.welle-calendar .welle-calendar__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welle-calendar__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  background: var(--welle-cal-surface);
  border-radius: 1.25rem;
  box-shadow: 0 2px 10px rgb(15 23 42 / 8%);
}

.welle-calendar__date {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4rem;
  padding: 0.5rem 0.75rem;
  color: #ffffff;
  background: var(--welle-cal-brand);
  border-radius: 1rem;
  line-height: 1.1;
}

.welle-calendar__month-short {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welle-calendar__day {
  font-size: 1.5rem;
  font-weight: 700;
}

.welle-calendar__body {
  display: grid;
  flex: 1;
  gap: 0.125rem;
}

.welle-calendar__title {
  color: var(--welle-cal-brand);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.welle-calendar__meta,
.welle-calendar__excerpt {
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.welle-calendar__badge {
  flex: none;
  padding: 0.25rem 0.75rem;
  color: #1a1a1a;
  background: var(--welle-cal-accent);
  border-radius: 2.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/*
 * A colour per kind of day, in the tints of the Welle tiles. The text inks are one step
 * deeper than the tile titles: the labels are 12 px, so they need 4.5:1 (5.0 to 5.7:1 here).
 * Activities are not days off, so they get a neutral grey and the days off stand out.
 */
.welle-calendar__badge--vakantie { color: #8a4a08; background: #fde8c4; }
.welle-calendar__badge--pedagogische-studiedag { color: #9a3f12; background: #fbd7c6; }
.welle-calendar__badge[class*="vrije-dag"] { color: #006664; background: #cce9e9; }
.welle-calendar__badge--activiteit { color: #374151; background: #eef2f2; }

.welle-calendar--compact .welle-calendar__item {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.welle-calendar--compact .welle-calendar__date {
  width: 3.25rem;
  padding: 0.25rem;
  color: var(--welle-cal-text);
  background: var(--welle-cal-surface);
  border-radius: 0.875rem;
}

.welle-calendar--compact .welle-calendar__month-short {
  color: var(--welle-cal-accent);
  font-size: 0.625rem;
}

.welle-calendar--compact .welle-calendar__day {
  font-size: 1.25rem;
  font-weight: 800;
}

.welle-calendar--compact .welle-calendar__title {
  color: var(--color-gray-800, #1f2937);
  font-size: 0.9375rem;
  line-height: 1.375rem;
}

.welle-calendar__empty {
  color: var(--welle-cal-text);
}

@media (max-width: 480px) {
  .welle-calendar__item {
    flex-wrap: wrap;
  }

  .welle-calendar__badge {
    margin-left: 5rem;
  }
}

/* The home page card has no room for badges: the Figcraft "Kalender" card shows date, title and details only. */
.welle-calendar--compact .welle-calendar__badge {
  display: none;
}
