:root {
  --cal-shell: #fbf9f4;
  --cal-feature-bg: #eee4d9;
  --cal-brown: #6d4d28;
  --cal-card-border: rgba(109, 77, 40, 0.2);
}

/* ----- Hero -----/* ----- Section + 米黃容器 ----- */
.cal-section {
  padding: clamp(56px, 7vw, 96px) 0 clamp(60px, 8vw, 110px);
  background: #fff;
}

.cal-shell {
  width: min(calc(100% - 40px), 1188px);
  margin: 0 auto;
  background: var(--cal-shell);
  border-radius: 15px;
  padding: clamp(48px, 6vw, 84px) clamp(28px, 5vw, 80px);
}

.cal-title {
  margin: 0 0 clamp(36px, 4vw, 58px);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #000;
}

/* ----- Featured card (大卡) ----- */
.cal-feature {
  background: var(--cal-feature-bg);
  border-radius: 15px;
  padding: 50px 100px;
  margin-bottom: 40px;
  max-width: 473px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
}

/* ----- Date row ----- */
.cal-date {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: "Lustria", "Noto Serif TC", serif;
  letter-spacing: 0;
  line-height: 1;
}

.cal-date__ym {
  font-weight: 400;
}

.cal-date__d {
  font-weight: 400;
  line-height: 1;
}

/* Featured 卡日期:小字 20px、大字 48px,黑色 */
.cal-feature .cal-date {
  color: #000;
}

.cal-feature .cal-date__ym {
  font-size: 20px;
}

.cal-feature .cal-date__d {
  font-size: 48px;
}

/* 小卡日期:小字 16px、大字 36px,褐色 */
.cal-card .cal-date {
  color: var(--cal-brown);
}

.cal-card .cal-date__ym {
  font-size: 16px;
}

.cal-card .cal-date__d {
  font-size: 36px;
}

/* ----- 農曆 + 法會名 ----- */
.cal-lunar {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
}

.cal-feature .cal-lunar {
  font-size: 20px;
  color: #000;
}

.cal-card .cal-lunar {
  font-size: 15px;
  color: var(--cal-brown);
}

.cal-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
}

.cal-feature .cal-name {
  font-size: 36px;
  color: #000;
}

.cal-card .cal-name {
  font-size: 22px;
  color: var(--cal-brown);
}

/* ----- Grid 3x3 ----- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

/* ----- 小卡:透明底 + 邊框 ----- */
.cal-card {
  background: transparent;
  border: 1px solid var(--cal-card-border);
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: stretch;
}

/* ----- 按鈕(完全圓角 pill) ----- */
.cal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 10px 25px;
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: filter .2s ease;
}

.cal-cta:hover {
  filter: brightness(1.1);
}

.cal-cta svg {
  width: 7px;
  height: 12px;
}

/* Featured 按鈕:黑底 */
.cal-feature .cal-cta {
  background: #000;
}

/* 小卡按鈕:褐底 */
.cal-card .cal-cta {
  background: var(--cal-brown);
  padding: 8px 25px;
}

/* ----- 響應式 ----- */
@media (max-width: 1023px) {
  .cal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 767px) {  .cal-shell {
    padding: 32px 22px;
  }

  .cal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cal-card {
    padding: 24px;
  }

  .cal-feature {
    padding: 28px 24px;
  }

  .cal-feature .cal-date__d {
    font-size: 36px;
  }
}

/* ----- Hero (per-page) ----- */
.cal-hero {
  width: 100%;
  aspect-ratio: 1440 / 450;
  background: url('../../assets/cal-hero.png') center/cover no-repeat;
}

@media (max-width: 767px) {
  .cal-hero {
    aspect-ratio: 4 / 3;
  }
}
