/* Community Calendar — mobile-first; desktop overrides in lc-community-desktop.css */

.lc-cal {
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lc-cal__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lc-cal__head-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.lc-cal__title {
  margin: 0;
  color: #666666;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.lc-cal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-cal__chip {
  border: 1px solid #a8c8ca;
  background: #fff;
  color: #0a4852;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lc-cal__chip.is-on {
  background: #0a4650;
  border-color: #0a4650;
  color: #fff;
}

.lc-cal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.lc-cal__dot--holiday,
.lc-cal__mark--holiday {
  background: #0a4650;
}

.lc-cal__dot--festival,
.lc-cal__mark--festival {
  background: #f5c400;
}

.lc-cal__dot--occasion,
.lc-cal__mark--occasion {
  background: #137578;
}

.lc-cal__chip.is-on .lc-cal__dot {
  background: #fff;
}

.lc-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lc-cal__month-label {
  margin: 0;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: #0a4650;
  text-align: center;
}

.lc-cal__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #a8c8ca;
  background: #fff;
  color: #0a4650;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lc-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: #fff;
  border: 1px solid #a8c8ca;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 2px 12px -6px rgba(0, 0, 0, 0.08);
}

.lc-cal__wd {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #4a6b70;
  padding: 4px 0;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
}

.lc-cal__day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0a4852;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 2px;
  min-width: 0;
}

.lc-cal__event-name {
  width: 100%;
  max-width: 100%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  color: #06343b;
}

.lc-cal__day.is-selected .lc-cal__event-name {
  color: #fff;
}

.lc-cal__day.is-muted {
  color: #9bb5b8;
  font-weight: 500;
  cursor: default;
}

.lc-cal__day.is-selected {
  background: #0a4650;
  color: #fff;
}

.lc-cal__marks {
  display: flex;
  gap: 2px;
  height: 6px;
}

.lc-cal__mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
}

.lc-cal__day.is-selected .lc-cal__mark {
  background: #fff !important;
}

.lc-cal__selected-label {
  margin: 4px 0 0;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 15px;
  font-weight: 800;
  color: #0a4650;
}

.lc-cal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lc-cal__empty {
  margin: 0;
  color: #666;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 16px;
}

.lc-cal__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px -6px rgba(0, 0, 0, 0.08);
}

.lc-cal__badge {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #137477 0%, #0a454f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1.05;
}

.lc-cal__badge-d {
  font-size: 18px;
  font-weight: 800;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
}

.lc-cal__badge-m {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
}

.lc-cal__body {
  flex: 1 1 auto;
  min-width: 0;
}

.lc-cal__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
}

.lc-cal__tag--holiday {
  background: #dceeee;
  color: #0a4650;
}

.lc-cal__tag--festival {
  background: #fde8e9;
  color: #c9a000;
}

.lc-cal__tag--occasion {
  background: #e4f3f3;
  color: #137578;
}

.lc-cal__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
}

.lc-cal__name a {
  color: #1a1a1a !important;
  text-decoration: none !important;
}

.lc-cal__desc,
.lc-cal__meta {
  margin: 0 0 4px;
  color: #666;
  font-size: 14px;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
}

.lc-cal__view {
  display: inline-flex;
  margin-top: 6px;
  height: 32px;
  padding: 0 12px;
  align-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #127275 0%, #0a4851 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
}

.lc-cal__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Singular entry */
.lc-cal-single {
  max-width: 640px;
  margin: 24px auto;
  padding: 0 16px 40px;
}

.lc-cal-single__image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.lc-cal-single__meta {
  color: #4a6b70;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  margin: 6px 0;
}

html[lang^="ta"] .lc-cal__title,
html[lang^="ta"] .lc-cal__name {
  font-size: 15px;
}
