body.schedule-page {
  background: var(--ink, #070707);
}

.schedule-hero {
  padding: 118px 0 44px;
  background: var(--ink-soft, #101011);
  border-bottom: 1px solid rgba(214, 165, 48, 0.22);
}

.schedule-hero .section-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.schedule-hero h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: 2.6rem;
  line-height: 1.1;
}

.schedule-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted, #b8b0a6);
}

.schedule-main {
  padding: 44px 0 80px;
}

.schedule-section #horarios-title {
  color: var(--gold-bright, #f1c85d);
}

.schedule-section .section-heading-row {
  margin-bottom: 18px;
}

.schedule-section .section-heading-row p {
  max-width: 760px;
  margin: 8px 0 0;
}

.schedule-widget.schedule-public-widget {
  position: relative;
  overflow: hidden;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(214, 165, 48, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(7, 7, 8, 0.88);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  opacity: 1;
  visibility: visible;
  transform: none;
}

.schedule-widget.schedule-public-widget:hover,
.schedule-widget.schedule-public-widget:focus-within {
  border-color: rgba(214, 165, 48, 0.36);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  transform: none;
}

.schedule-page .schedule-public-widget {
  margin-top: 0;
}

.schedule-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.schedule-filter-bar button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.schedule-filter-bar button:hover,
.schedule-filter-bar button:focus-visible,
.schedule-filter-bar button.is-active {
  border-color: rgba(214, 165, 48, 0.58);
  background: rgba(214, 165, 48, 0.13);
  color: var(--paper, #f7f2ea);
  outline: none;
}

.schedule-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(126px, 1fr));
  gap: 10px;
}

.schedule-week-day {
  --day-accent: var(--gold, #d6a530);
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--day-accent);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.schedule-week-day-terca {
  --day-accent: #d65151;
}

.schedule-week-day-quarta {
  --day-accent: #df8a3a;
}

.schedule-week-day-quinta {
  --day-accent: #4d9f70;
}

.schedule-week-day-sexta {
  --day-accent: #4f8edb;
}

.schedule-week-day-sabado {
  --day-accent: #8a67d6;
}

.schedule-week-day-domingo {
  --day-accent: #a8a8a8;
}

.schedule-week-day-head {
  display: grid;
  gap: 7px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-week-day-head h3 {
  margin: 0;
  color: var(--paper, #f7f2ea);
  font-size: 0.91rem;
  line-height: 1.12;
}

.schedule-week-day-head span {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(214, 165, 48, 0.32);
  border-color: color-mix(in srgb, var(--day-accent) 58%, transparent);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(214, 165, 48, 0.1);
  background: color-mix(in srgb, var(--day-accent) 16%, rgba(0, 0, 0, 0.1));
  color: var(--paper, #f7f2ea);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.schedule-lesson-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.schedule-day-empty {
  margin: 0;
  padding: 12px 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
}

.schedule-lesson-card {
  --lesson-accent: #9ca3af;
  display: grid;
  position: relative;
  gap: 5px;
  width: 100%;
  min-height: 104px;
  padding: 11px 10px 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--lesson-accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper, #f7f2ea);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.schedule-lesson-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%);
  opacity: 0.42;
}

.schedule-lesson-card:hover,
.schedule-lesson-card:focus-visible {
  border-color: color-mix(in srgb, var(--lesson-accent) 64%, rgba(255, 255, 255, 0.28));
  background: rgba(255, 255, 255, 0.085);
  outline: none;
  transform: translateY(-2px);
}

.schedule-lesson-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(214, 165, 48, 0.24);
}

.schedule-lesson-card.is-highlighted {
  box-shadow: inset 0 0 0 1px rgba(214, 165, 48, 0.22);
}

.schedule-category-alfabetizacao {
  --lesson-accent: #d6a530;
}

.schedule-category-formacao {
  --lesson-accent: #4f8edb;
}

.schedule-category-competicao {
  --lesson-accent: #d65151;
}

.schedule-category-adultos {
  --lesson-accent: #4d9f70;
}

.schedule-category-defesa {
  --lesson-accent: #8a67d6;
}

.schedule-category-especifica {
  --lesson-accent: #df8a3a;
}

.schedule-category-outro {
  --lesson-accent: #a8a8a8;
}

.schedule-lesson-time,
.schedule-lesson-title,
.schedule-lesson-age,
.schedule-badge,
.schedule-lesson-vacancies {
  position: relative;
  z-index: 1;
}

.schedule-lesson-time {
  color: var(--gold-bright, #f1c85d);
  font-size: 0.93rem;
  font-weight: 950;
  line-height: 1.1;
}

.schedule-lesson-title {
  color: var(--paper, #f7f2ea);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
}

.schedule-lesson-age {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  line-height: 1.25;
}

.schedule-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(148, 163, 184, 0.13);
  color: #e5e7eb;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.schedule-badge-inscricoes-abertas {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.schedule-badge-ultimas-vagas,
.schedule-badge-em-breve {
  border-color: rgba(250, 204, 21, 0.38);
  background: rgba(234, 179, 8, 0.14);
  color: #fde68a;
}

.schedule-badge-em-validacao {
  border-color: rgba(203, 213, 225, 0.34);
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
}

.schedule-badge-turma-completa,
.schedule-badge-lista-espera {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.schedule-badge-a-confirmar,
.schedule-badge-sob-consulta {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.13);
  color: #e5e7eb;
}

.schedule-lesson-vacancies {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.7rem;
  font-weight: 850;
}

.schedule-filter-empty,
.schedule-note {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted, #b8b0a6);
  font-size: 0.92rem;
}

.schedule-empty {
  padding: 22px 18px 28px;
}

.schedule-empty h3 {
  margin: 0 0 8px;
  color: var(--gold-bright, #f1c85d);
}

.schedule-empty p {
  max-width: 720px;
  margin: 0;
  color: var(--muted, #b8b0a6);
}

.schedule-detail-modal[hidden],
.schedule-week-day[hidden],
.schedule-lesson-card[hidden],
.schedule-filter-empty[hidden] {
  display: none !important;
}

html.schedule-modal-open body {
  overflow: hidden;
}

.schedule-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.schedule-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.schedule-detail-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(720px, calc(100dvh - 36px));
  overflow-y: auto;
  border: 1px solid rgba(214, 165, 48, 0.3);
  border-radius: 8px;
  padding: 24px;
  background: #101011;
  color: var(--paper, #f7f2ea);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.schedule-detail-image {
  overflow: hidden;
  margin: 0 44px 18px 0;
  border: 1px solid rgba(214, 165, 48, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.schedule-detail-image img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.schedule-detail-panel:focus {
  outline: 3px solid rgba(214, 165, 48, 0.24);
  outline-offset: 3px;
}

.schedule-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper, #f7f2ea);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.schedule-detail-close:hover,
.schedule-detail-close:focus-visible {
  border-color: rgba(214, 165, 48, 0.56);
  background: rgba(214, 165, 48, 0.12);
  outline: none;
}

.schedule-detail-kicker {
  padding-right: 44px;
  color: var(--gold-bright, #f1c85d);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-detail-panel h3 {
  margin: 8px 44px 18px 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.08;
}

.schedule-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.schedule-detail-list div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.schedule-detail-list dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-detail-list dd {
  margin: 0;
  color: var(--paper, #f7f2ea);
  font-weight: 800;
}

.schedule-detail-notes {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.schedule-detail-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border: 1px solid rgba(214, 165, 48, 0.56);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--gold, #d6a530);
  color: #090909;
  font-weight: 950;
  text-decoration: none;
}

.schedule-detail-action:hover,
.schedule-detail-action:focus-visible {
  background: var(--gold-bright, #f1c85d);
  outline: 3px solid rgba(214, 165, 48, 0.22);
  outline-offset: 2px;
}

body.schedule-embed {
  margin: 0;
  background: transparent;
  color: var(--paper, #f7f2ea);
}

.embed-shell {
  padding: 0;
}

.schedule-embed .schedule-widget.schedule-public-widget {
  border-radius: 0;
}

@media (max-width: 1160px) {
  .schedule-week-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 860px) {
  .schedule-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-hero .section-inner {
    grid-template-columns: 1fr;
  }

  .schedule-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 620px) {
  .schedule-widget.schedule-public-widget {
    padding: 14px;
  }

  .schedule-filter-bar {
    gap: 7px;
    padding-right: 38px;
  }

  .schedule-filter-bar button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .schedule-week-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .schedule-week-day-head {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px;
  }

  .schedule-lesson-list {
    padding: 10px 12px 12px;
  }

  .schedule-lesson-card {
    min-height: 96px;
    padding: 12px;
  }

  .schedule-detail-panel {
    padding: 20px;
  }

  .schedule-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
