.koho-holiday-calendar {
  --koho-border-color: #5e4636;
  --koho-text-color: #333333;
  --koho-muted-color: #666666;
  --koho-sunday-color: #b42318;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  color: var(--koho-text-color);
  font-family: inherit;
}

.koho-holiday-calendar *,
.koho-holiday-calendar *::before,
.koho-holiday-calendar *::after {
  box-sizing: inherit;
}

.koho-holiday-calendar__header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 56px;
}

.koho-holiday-calendar__title {
  margin: 0;
  padding: 0.5rem;
  color: var(--koho-text-color);
  font: inherit;
  font-size: clamp(1.1rem, 3.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.koho-holiday-calendar__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--koho-text-color);
  cursor: pointer;
}

.koho-holiday-calendar__nav-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
}

.koho-holiday-calendar__nav-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.koho-holiday-calendar__nav:hover {
  background: rgba(94, 70, 54, 0.08);
}

.koho-holiday-calendar__nav:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 1px;
}

.koho-holiday-calendar__table {
  width: 100%;
  margin: 0;
  border: 2px solid var(--koho-border-color);
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--koho-text-color);
  background: transparent;
  font-size: 1rem;
}

.koho-holiday-calendar__table th,
.koho-holiday-calendar__table td {
  width: 14.2857%;
  height: clamp(42px, 10vw, 48px);
  padding: 0.35rem 0.2rem;
  border: 1px solid var(--koho-border-color);
  background: rgba(255, 255, 255, 0.18);
  color: var(--koho-text-color);
  font: inherit;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

.koho-holiday-calendar__table th:first-child {
  color: var(--koho-sunday-color);
}

.koho-holiday-calendar__table td.is-other-month {
  color: var(--koho-muted-color);
}

.koho-holiday-calendar__table td.is-holiday {
  background: var(--koho-holiday-color, #e57d7d);
}

.koho-holiday-calendar__table td.is-today {
  font-weight: 700;
}

.koho-holiday-calendar__table time {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.koho-holiday-calendar__legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.koho-holiday-calendar__swatch {
  flex: 0 0 auto;
  width: 40px;
  height: 18px;
  background: var(--koho-holiday-color, #e57d7d);
}

@media (max-width: 420px) {
  .koho-holiday-calendar__header {
    grid-template-columns: 44px 1fr 44px;
    min-height: 50px;
  }

  .koho-holiday-calendar__table {
    font-size: clamp(0.78rem, 3.6vw, 0.95rem);
  }

  .koho-holiday-calendar__table th,
  .koho-holiday-calendar__table td {
    height: clamp(38px, 12vw, 46px);
    padding: 0.25rem 0.05rem;
  }
}
