/**
 * WalkDog — UI estilo Skool
 */

body.skool-app-page #walkdogs-navbar,
body.skool-app-page footer.wd-footer,
body.skool-app-page .site-footer {
  display: none !important;
}

body.skool-app-page {
  background: #f4f5f7;
  margin: 0;
}

/* Anular contenedor del tema padre (GeneratePress) */
body.skool-app-page .site,
body.skool-app-page .site-content,
body.skool-app-page .content-area,
body.skool-app-page #main-content,
body.skool-app-page main#main-content,
body.skool-app-page .grid-container,
body.skool-app-page .inside-article {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.skool-app {
  --skool-max: 1100px;
  --skool-pad: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--wd-font-body, 'Inter', sans-serif);
  color: #1f2937;
}

/* Columna centrada (como Skool) */
.skool-app__inner {
  width: 100%;
  max-width: var(--skool-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--skool-pad);
  padding-right: var(--skool-pad);
  box-sizing: border-box;
}

/* ── Header ── */
.skool-app__header {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: 0;
  z-index: 200;
}

.skool-app__header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.skool-app__logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 1rem;
}

.skool-app__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wd-dark, #0d2b3e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.skool-app__search-wrap {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.skool-app__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f2f5;
  border-radius: 999px;
  padding: 8px 16px;
}

.skool-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 300;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
}

.skool-search-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skool-search-dropdown__item {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.skool-search-dropdown__item:hover {
  background: #f3f4f6;
}

.skool-search-dropdown__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
}

.skool-search-dropdown__excerpt {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.35;
}

.skool-search-dropdown__empty {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #6b7280;
}

.skool-search-dropdown__all {
  display: block;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  border-top: 1px solid #f0f2f5;
}

.skool-search-dropdown__all:hover {
  background: #f9fafb;
}

.skool-search-page__empty {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

.skool-app__search i {
  color: #9ca3af;
  font-size: 0.9rem;
}

.skool-app__search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  outline: none;
}

.skool-app__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.skool-app__icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  transition: background 0.15s;
}

.skool-app__icon-btn:hover {
  background: #f3f4f6;
  color: #111;
}

.skool-app__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wd-primary, #38bceb), var(--wd-accent, #f5a020));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.skool-app__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dropdown perfil (header Skool / mi-area) */
.wd-profile-dropdown--skool .wd-profile-dropdown__toggle {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none !important;
}

.wd-profile-dropdown--skool .wd-profile-dropdown__toggle::after {
  display: none !important;
}

.wd-profile-dropdown--skool .wd-profile-dropdown__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 1.15rem;
}

.wd-profile-dropdown--skool .wd-profile-dropdown__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-profile-dropdown--skool .wd-profile-dropdown__menu {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 6px;
  margin-top: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 180px;
}

.wd-profile-dropdown--skool .dropdown-item {
  color: #374151;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wd-profile-dropdown--skool .dropdown-item:hover {
  background: #f3f4f6;
  color: #111;
}

.wd-profile-dropdown--skool .dropdown-divider {
  border-color: #e8eaed;
  margin: 6px 0;
}

.wd-profile-dropdown--skool .wd-profile-dropdown__logout {
  color: #6b7280 !important;
}

.wd-profile-dropdown--skool .wd-profile-dropdown__logout:hover {
  color: #b91c1c !important;
  background: #fef2f2 !important;
}

/* ── Tabs ── */
.skool-app__tabs {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
}

.skool-app__tabs-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.skool-app__tab {
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}

.skool-app__tab:hover {
  color: #111;
}

.skool-app__tab.is-active {
  color: #111;
  font-weight: 600;
  border-bottom-color: #111;
}

.skool-app__body {
  flex: 1;
  padding: 28px 0 48px;
}

.skool-app__content {
  width: 100%;
}

/* ── Classroom grid ── */
.skool-classroom,
.skool-home,
.skool-profile,
.skool-calendar {
  width: 100%;
}

.skool-classroom__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #111;
}

.skool-classroom__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.skool-course-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.skool-course-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: inherit;
}

.skool-course-card__thumb {
  min-height: 120px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.skool-course-card__thumb-title {
  font-family: var(--wd-font-display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.skool-course-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.skool-course-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
  line-height: 1.3;
}

.skool-course-card__desc {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}

.skool-course-card__progress {
  height: 22px;
  background: #f0f2f5;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.skool-course-card__progress-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.skool-course-card__progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
}

.skool-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #d1d5db;
  max-width: 100%;
}

/* ── Lesson layout (sidebar + content) ── */
.skool-learn {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  align-items: start;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  overflow: hidden;
  min-height: calc(100vh - 180px);
  width: 100%;
}

.skool-learn__sidebar {
  border-right: 1px solid #e8eaed;
  padding: 20px 0;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  background: #fafbfc;
}

.skool-learn__course-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 0 18px 12px;
  margin: 0;
  color: #111;
  line-height: 1.35;
}

.skool-learn__course-progress {
  margin: 0 18px 16px;
  height: 8px;
  background: #e8eaed;
  border-radius: 999px;
  overflow: hidden;
}

.skool-learn__course-progress-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 999px;
}

.skool-learn__lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skool-learn__lesson {
  margin: 0;
}

.skool-learn__lesson a {
  display: block;
  padding: 12px 18px;
  font-size: 0.84rem;
  color: #374151;
  text-decoration: none;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: background 0.12s;
}

.skool-learn__lesson a:hover {
  background: #f3f4f6;
}

.skool-learn__lesson.is-active a {
  background: #fef9c3;
  border-left-color: #eab308;
  font-weight: 600;
  color: #111;
}

.skool-learn__lesson.is-done a::before {
  content: '✓ ';
  color: #22c55e;
  font-weight: 700;
}

.skool-learn__main {
  padding: 24px 28px 32px;
  overflow-y: auto;
}

.skool-learn__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.skool-learn__lesson-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #111;
  line-height: 1.35;
  flex: 1;
}

.skool-learn__complete-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: transparent;
}

.skool-learn__complete-btn:hover {
  border-color: #22c55e;
}

.skool-learn__complete-btn.is-done {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.skool-video-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
}

.skool-video-wrap iframe,
.skool-video-wrap video,
.skool-video-wrap .tutor-video-player-wrapper,
.skool-video-wrap > div {
  width: 100% !important;
  height: 100% !important;
  min-height: 320px;
  border: none;
}

.skool-learn__content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4b5563;
}

.skool-learn__content p {
  margin-bottom: 1em;
}

.skool-learn__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e8eaed;
  gap: 12px;
}

.skool-learn__nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wd-primary-dark, #1a9fd4);
  text-decoration: none;
}

.skool-learn__nav a.is-disabled {
  color: #d1d5db;
  pointer-events: none;
}

/* ── Dashboard inicio (dentro del shell) ── */
.skool-home-welcome {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  padding: 28px;
  margin-bottom: 24px;
}

.skool-home-welcome h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.skool-home-welcome p {
  color: #6b7280;
  margin: 0 0 18px;
  font-size: 0.92rem;
}

.skool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wd-accent, #f5a020);
  color: var(--wd-dark, #0d2b3e);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.skool-btn:hover {
  filter: brightness(0.95);
  color: var(--wd-dark, #0d2b3e);
}

.skool-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.skool-stat-box {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 18px;
}

.skool-stat-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
}

.skool-stat-box span {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ── Perfil (settings) ── */
.skool-profile {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.skool-profile__heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #111;
}

.skool-profile__hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  padding: 24px;
  margin-bottom: 16px;
}

.skool-profile__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.skool-profile__avatar-wrap img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8eaed;
}

.skool-profile__avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  border: 2px solid #fff;
  transition: background 0.15s;
}

.skool-profile__avatar-btn:hover {
  background: #374151;
}

.skool-profile__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
}

.skool-profile__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f2f5;
  color: #374151;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.skool-profile__meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 8px 0 0;
}

.skool-profile__card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.skool-profile__card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skool-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.skool-profile__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skool-profile__field--full {
  grid-column: 1 / -1;
}

.skool-profile__field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.skool-profile__field input,
.skool-profile__field select,
.skool-profile__field textarea {
  padding: 10px 14px;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #111;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.skool-profile__field input:focus,
.skool-profile__field select:focus,
.skool-profile__field textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.skool-profile__field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

.skool-profile__submit {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.skool-profile__submit:hover {
  background: #374151;
}

.skool-profile__alert {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skool-profile__alert--success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.skool-profile__alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Membresías (planes) ── */
.skool-plans__current {
  font-size: 0.9rem;
  color: #6b7280;
  margin: -8px 0 20px;
}

.skool-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.skool-plan-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.skool-plan-card.is-popular {
  border-color: #111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.skool-plan-card.is-current {
  border-color: #22c55e;
}

.skool-plan-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #111;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.skool-plan-card__badge--current {
  background: #22c55e;
  right: auto;
  left: 12px;
}

.skool-plan-card__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.skool-plan-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111;
}

.skool-plan-card__price {
  margin: 0 0 10px;
  line-height: 1;
}

.skool-plan-card__currency {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: top;
}

.skool-plan-card__amount {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
}

.skool-plan-card__period {
  font-size: 0.85rem;
  color: #6b7280;
  margin-left: 2px;
}

.skool-plan-card__tagline-main {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin: -4px 0 10px;
  line-height: 1.35;
}

.skool-plan-card__tagline {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0 0 14px;
  line-height: 1.45;
}

.skool-plan-card__features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}

.skool-plan-card__features li {
  font-size: 0.84rem;
  color: #374151;
  padding: 5px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.skool-plan-card__features i {
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 2px;
}

.skool-plan-card__btn {
  display: block;
  text-align: center;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.15s;
}

.skool-plan-card__btn:hover {
  background: #374151;
  color: #fff;
}

.skool-plan-card__btn--muted {
  background: #f3f4f6;
  color: #6b7280;
  cursor: default;
}

/* ── Calendario (estilo Skool) ── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skool-calendar__card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: 100%;
}

.skool-calendar__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
  flex-wrap: wrap;
}

.skool-calendar__today {
  padding: 8px 16px;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s;
}

.skool-calendar__today:hover {
  background: #f9fafb;
  color: #111;
}

.skool-calendar__nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
  min-width: 200px;
}

.skool-calendar__arrow {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  transition: background 0.15s;
}

.skool-calendar__arrow:hover {
  background: #f3f4f6;
  color: #111;
}

.skool-calendar__month {
  text-align: center;
  min-width: 140px;
}

.skool-calendar__month strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.skool-calendar__tz {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 2px;
  text-transform: lowercase;
}

.skool-calendar__views {
  display: flex;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
}

.skool-calendar__view-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.skool-calendar__view-btn.is-active {
  background: #f3f4f6;
  color: #111;
}

.skool-calendar__view-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.skool-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.skool-calendar__dow {
  padding: 12px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
  text-align: center;
  border-bottom: 1px solid #f0f2f5;
  background: #fafbfc;
}

.skool-calendar__cell {
  min-height: 100px;
  padding: 8px;
  border-right: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: top;
}

.skool-calendar__cell:nth-child(7n) {
  border-right: none;
}

.skool-calendar__cell.is-outside .skool-calendar__daynum {
  color: #d1d5db;
}

.skool-calendar__daynum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.skool-calendar__cell.is-today .skool-calendar__daynum {
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}

.skool-calendar__events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skool-calendar__events li {
  margin: 0 0 4px;
}

.skool-calendar__events a {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skool-calendar__events a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .skool-classroom__grid,
  .skool-plans__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .skool-app {
    --skool-pad: 14px;
  }

  .skool-classroom__grid,
  .skool-plans__grid {
    grid-template-columns: 1fr;
  }

  .skool-learn {
    grid-template-columns: 1fr;
  }

  .skool-profile__grid {
    grid-template-columns: 1fr;
  }

  .skool-profile__hero {
    flex-direction: column;
    text-align: center;
  }

  .skool-calendar__cell {
    min-height: 72px;
    padding: 4px;
  }

  .skool-calendar__events a {
    font-size: 0.65rem;
  }

  .skool-calendar__nav-center {
    order: 3;
    width: 100%;
  }

  .skool-learn__sidebar {
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #e8eaed;
  }

  .skool-app__search {
    display: none;
  }

  .skool-app__body {
    padding: 16px 0 32px;
  }
}
