.lich-page {
  max-width: 44rem;
  margin: 0 auto;
}

.lich-page__eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tblr-secondary-color);
  margin-bottom: 0.25rem;
}

.lich-page__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.lich-page__sub {
  color: var(--tblr-secondary-color);
  margin-bottom: 1.5rem;
}

.lich-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lich-nav__month {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.lich-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lich-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--tblr-border-color);
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.lich-grid__head {
  background: var(--tblr-bg-surface-secondary);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  color: var(--tblr-secondary-color);
}

.lich-grid__head--sun {
  color: var(--tblr-danger);
}

.lich-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 4.25rem;
  padding: 0.45rem 0.4rem;
  background: var(--tblr-bg-surface);
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: background-color 0.15s ease;
}

.lich-day:hover {
  background: var(--tblr-bg-surface-secondary);
}

.lich-day--muted {
  opacity: 0.4;
}

.lich-day--today {
  box-shadow: inset 0 0 0 2px var(--tblr-primary);
}

.lich-day--selected {
  background: var(--tblr-primary-lt);
}

.lich-day__solar {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
}

.lich-day__lunar {
  font-size: 0.7rem;
  color: var(--tblr-secondary-color);
  line-height: 1.2;
}

.lich-day__lunar--first {
  color: var(--tblr-danger);
  font-weight: 600;
}

.lich-detail {
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
  background: var(--tblr-bg-surface);
}

.lich-detail__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lich-detail__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.lich-detail__label {
  color: var(--tblr-secondary-color);
  min-width: 6.5rem;
}

@media (max-width: 576px) {
  .lich-day {
    min-height: 3.5rem;
    padding: 0.35rem 0.25rem;
  }

  .lich-day__solar {
    font-size: 0.9rem;
  }

  .lich-day__lunar {
    font-size: 0.65rem;
  }
}
