/* =========================================================================
   GFTEAM APEX — Schedule page
   Loaded AFTER styles.css. Only blocks unique to this page live here;
   everything else (nav, buttons, footer, modal) is shared.
   ========================================================================= */

.u-nowrap { white-space: nowrap; }

/* current page marker in the shared nav */
.nav__link[aria-current="page"]::after { width: 100%; }
.mobile-menu__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }

/* ------------------------------------------------------------------- HERO */
/* Short hero — the schedule itself is the payload, so the header gets out of
   the way faster than the index/instructors heroes do. */
.sched-hero {
  min-height: 0;
  background: radial-gradient(120% 120% at 20% 0%, #151515 0%, #000 62%);
  padding-top: 148px;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.sched-hero__inner { position: relative; z-index: 2; color: #fff; max-width: 940px; }
.sched-hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(50px, 8.4vw, 116px); line-height: 0.85; letter-spacing: 0.01em;
  margin: var(--s-3) 0;
}
.sched-hero__title span { display: block; }
.sched-hero__title-outline { color: transparent; -webkit-text-stroke: 1px #fff; }
.sched-hero__text {
  color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.85;
  max-width: 62ch; margin-bottom: var(--s-4);
}
.sched-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* --------------------------------------------------- TEMPORARY-SCHEDULE NOTICE */
/* Solid white on the black hero — deliberately the loudest element on the
   page. The one thing every visitor must register before reading a single
   time is that these times are provisional. */
/* inline-flex so the banner hugs its text instead of running the full column */
.notice {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; color: #000; padding: 14px 22px;
}
.notice--hero { margin-bottom: var(--s-4); }
.notice__dot { width: 9px; height: 9px; background: #000; flex: none; animation: pulse-dot 2.4s var(--ease) infinite; }
.notice__label {
  font-family: var(--font-heading); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.2em;
}
.notice__sep { width: 1px; height: 15px; background: rgba(0,0,0,.28); flex: none; }
.notice__text {
  font-family: var(--font-heading); font-weight: 400; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em; color: #444;
}

/* Restated directly above the grid, outlined so it reads as a caption rather
   than competing with the hero banner. */
.notice--outline {
  background: transparent; color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border); margin-bottom: var(--s-4);
}
.notice--outline .notice__dot { background: #000; }
.notice--outline .notice__sep { background: var(--border); }
.notice--outline .notice__text { color: var(--text-secondary); }

/* --------------------------------------------------------------- THE WEEK */
.week {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px);
}
.day-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column;
}
/* Sunday spans the full row — 7 cards into 3 columns would otherwise leave it
   orphaned in a row of its own. */
.day-card--rest { background: var(--bg-secondary); grid-column: 1 / -1; }

.day-card__head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: var(--s-2); border-bottom: 1px solid var(--border);
}
.day-card__name {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: 0.03em;
}
.day-card__count {
  margin-left: auto;
  font-family: var(--font-heading); font-weight: 400; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted);
}

.day-card__list { margin-top: var(--s-1); }
.slot {
  display: grid; grid-template-columns: 104px 1fr; gap: 18px;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--border);
}
.slot:last-child { border-bottom: 0; padding-bottom: 0; }

.slot__start {
  display: block;
  font-family: var(--font-display); font-weight: 400; font-size: 25px;
  line-height: 1; letter-spacing: 0.04em;
}
.slot__end {
  display: block; margin-top: 6px;
  font-family: var(--font-heading); font-weight: 300; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-muted);
}

.slot__body { display: grid; gap: 10px; align-content: start; }
.slot__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slot__name {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.35;
}
.slot__tag {
  font-family: var(--font-heading); font-weight: 400; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em; padding: 4px 10px;
  border-radius: 100px; box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-muted); white-space: nowrap;
}
.slot__tag--dark { background: #000; color: #fff; box-shadow: none; }
.slot__note { font-size: 12px; line-height: 1.6; color: var(--text-muted); }

/* Sunday — no classes. Kept in the grid so the week reads complete. */
.day-card__rest { padding-top: var(--s-3); }
.day-card__rest-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.day-card__rest-text { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-top: 8px; max-width: 68ch; }

/* ------------------------------------------------------------ CLASS TYPES */
/* Explicit column counts, not auto-fit: the separator rules below are
   nth-child based, so the CSS has to know exactly where each row breaks. */
.types {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.type { padding: var(--s-4) clamp(14px, 2vw, 30px); }
.type:not(:nth-child(3n + 1)) { border-left: 1px solid var(--border); }
.type:nth-child(n + 4) { border-top: 1px solid var(--border); }
.type__num { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--text-muted); }
.type__title {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.07em; margin-top: 10px;
}
.type__text { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-top: 10px; }

/* ------------------------------------------------------------ COMING SOON */
.soon__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.2);
}
.soon__item { padding: var(--s-4) clamp(14px, 2vw, 30px) 0; }
.soon__item + .soon__item { border-left: 1px solid rgba(255,255,255,.2); }
.soon__label {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.07em; color: #fff;
}
.soon__text { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; margin-top: 10px; }

/* ------------------------------------------------------------- RESPONSIVE */
/* Each breakpoint changes the column count, so the row-break rules have to be
   restated for the new count — reset first, then reapply. */
@media (max-width: 1024px) {
  .week { grid-template-columns: repeat(2, 1fr); }

  .types { grid-template-columns: repeat(2, 1fr); }
  .type:not(:nth-child(3n + 1)) { border-left: 0; }
  .type:nth-child(n + 4) { border-top: 0; }
  .type:nth-child(even) { border-left: 1px solid var(--border); }
  .type:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .soon__grid { grid-template-columns: repeat(2, 1fr); }
  .soon__item + .soon__item { border-left: 0; }
  .soon__item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.2); }
  .soon__item:nth-child(n + 3) { border-top: 1px solid rgba(255,255,255,.2); }
}

@media (max-width: 860px) {
  .sched-hero { padding-top: 124px; }
  .week { grid-template-columns: 1fr; }

  .types { grid-template-columns: 1fr; border-top: 0; }
  .type:nth-child(even) { border-left: 0; }
  .type:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .type { border-top: 1px solid var(--border); }

  .soon__grid { grid-template-columns: 1fr; border-top: 0; }
  .soon__item:nth-child(even) { border-left: 0; }
  .soon__item { border-top: 1px solid rgba(255,255,255,.2); }
}

@media (max-width: 480px) {
  .sched-hero__actions .btn { width: 100%; }
  /* stack time above class name so neither column gets squeezed, and run the
     range on one line since it now has the full width */
  .slot { grid-template-columns: 1fr; gap: 10px; }
  .slot__start { display: inline; }
  .slot__end { display: inline; margin-top: 0; margin-left: 6px; }
  .notice { padding: 12px 16px; gap: 10px; }
  .notice__sep { display: none; }
}

/* ------------------------------------------------------------------ PRINT */
/* Gyms print schedules and pin them to the wall — strip everything but it. */
@media print {
  .nav, .mobile-menu, .noise, .scroll-progress, .skip-link,
  .sched-hero__actions, .final-cta, .footer, .modal, .ghost-num { display: none !important; }
  .sched-hero { background: none; color: #000; padding-top: 0; }
  .sched-hero__title-outline { color: #000; -webkit-text-stroke: 0; }
  .sched-hero__text { color: #000; }
  .notice { border: 1px solid #000; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .day-card { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
