/* =========================
   BASE CALENDAR SEMANTICS
   ========================= */

.year-title {
  text-align: center;
  font-weight: var(--year-font-weight, 600);
  font-size: var(--year-font-size, 1rem);
  margin-bottom: 4mm;
  letter-spacing: 0.04em;
  opacity: 0.85;
  color: var(--year-color);
}

.month {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px;
}

.month-name {
  text-align: center;
  font-weight: 700;
  color: var(--month-color);
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.weekday.weekly-holiday,
.day.holiday {
  color: var(--holiday-color);
}

/* ================= Bottom Lists ================= */

.bottom-holidays-wrapper,
.bottom-personal-wrapper {
  border: 0.5px solid rgba(0,0,0,.25);
  border-radius: 2px;
  padding: 1mm;
  margin-top: 4mm;
}

.bottom-holidays-grid {
  display: grid;
  grid-template-columns: repeat(var(--bottom-cols), 1fr);
  gap: 2px 10px;
  font-size: var(--bottom-font-size);
}

.bottom-holidays-grid .holiday-line,
.personal-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-personal-grid {
  display: grid;
  column-gap: 8px;
  row-gap: 2px;
  font-size: 0.8rem;
  line-height: 1.25;
}

.bottom-personal-grid[data-cols="2"] { grid-template-columns: 50% 50%; }
.bottom-personal-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.bottom-personal-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

/* ================= Photo Semantics ================= */

.page-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.page-photo[data-fit="fill"] { object-fit: cover; }
.page-photo[data-fit="fit"]  { object-fit: contain; }

.photo-inner {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.photo-inner.align-left   { justify-content: flex-start; }
.photo-inner.align-center { justify-content: center; }
.photo-inner.align-right  { justify-content: flex-end; }

.photo-helper {
  font-size: 0.75rem;
  opacity: 0.5;
  color: #64748b;
  user-select: none;
  pointer-events: none;
  text-align: center;
}


.beautify-row {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 2mm 0 3mm;
  opacity: 0.65;
  user-select: none;
}

.calendar-logo {
  top: 2mm;
  right: 2mm;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.5;
  text-align: right;
}

/* ---------- Corner ---------- */
.decorative-zone[data-corner="rounded"] {
  border-radius: 14px;
}
.decorative-zone[data-corner="square"] {
  border-radius: 0;
}
.decorative-zone[data-corner="circle"] {
  border-radius: 999px;
}

/* ---------- Background tone ---------- */
.decorative-zone[data-bg="none"] {
  background: transparent;
}
.decorative-zone[data-bg="light"] {
  background: #f8fafc;
}
.decorative-zone[data-bg="paper"] {
  background: #ffffff;
}

