/* Light UI modernisation + mobile-first improvements.
   Keeps the GitHub Pages theme, only overrides a few bits. */

.calendar-main {
  margin: 14px 0 6px;
  display: flex;
  justify-content: center;
}

.calendar-main iframe {
  width: 100%;
  max-width: 1400px;
  height: 70vh;
  min-height: 560px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.calendar-main-link {
  margin: 8px 0 18px;
  text-align: center;
}

.markdown-body {
  text-align: center;
}

.markdown-body > p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.container-lg {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.calendar-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  margin: 10px 0 6px;
}

.calendar-card {
  border: 1px solid rgba(27, 31, 36, 0.15);
  border-radius: 12px;
  padding: 12px 12px 10px;
  background: #ffffff;
  text-align: center;
}

.calendar-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31, 35, 40, 0.35);
  background: #f6f8fa;
  color: #1f2328;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}

.btn:hover {
  border-color: rgba(31, 35, 40, 0.6);
  background: #eef1f4;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-copy {
  cursor: pointer;
}

.copy-status {
  margin-left: 6px;
  font-size: 13px;
  color: #4b5563;
}

.section-divider {
  border: 0;
  border-top: 1px solid rgba(31, 35, 40, 0.15);
  margin: 20px 0;
}

.calendar-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  margin: 12px 0 0;
}

.calendar-mini-card {
  border: 1px solid rgba(27, 31, 36, 0.15);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.calendar-mini-card h3 {
  margin: 0;
  font-size: 15px;
}

.calendar-mini-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.calendar-mini-links img {
  display: block;
}

.calendar-mini-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

/* On phones: make the main embed a bit shorter and stack mini cards comfortably. */
@media (max-width: 900px) {
  .calendar-main iframe {
    height: 66vh;
    min-height: 520px;
  }

  .calendar-cards {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .calendar-mini-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .calendar-main iframe {
    height: 62vh;
    min-height: 480px;
    border-radius: 8px;
  }

  .calendar-cards {
    grid-template-columns: 1fr;
  }

  .calendar-mini-grid {
    grid-template-columns: 1fr;
  }
}
