/* =====================================================================
   course-v2.css — Individual Course Page
   Phase 1f | Built: 2026-05-28

   Mobile-first. Desktop breakpoint: 768px.
   All values from tokens.css. Zero hardcoded hex or font strings.

   Tile component (.sct-tile, .sct-strip, .sct-skeleton) defined in area-v2.css.
   This file loads AFTER area-v2.css (via pageCss2/pageCss slots in base-v2.njk).
   Do NOT redefine tile rules here — extend or override only if needed.
   ===================================================================== */

/* =====================================================================
   HIDDEN ATTRIBUTE FIX
   area-v2.css defines .sct-empty with display:flex which overrides
   the HTML hidden attribute's display:none. Restore correct behavior.
   ===================================================================== */

[hidden] {
  display: none !important;
}

/* =====================================================================
   BREADCRUMB
   ===================================================================== */

.sct-breadcrumb {
  margin: 0 0 var(--sct-space-4);
}

.sct-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sct-font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--sct-paper);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sct-breadcrumb__link:hover {
  color: var(--sct-gold-400);
}

.sct-breadcrumb__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =====================================================================
   PAGE HEADER
   Matches area page h1 exactly: display font, uppercase, green-900, 28/38px.
   ===================================================================== */

.sct-pagehead {
  padding: 16px 20px 0;
}

.sct-pagehead__h1 {
  font-family: var(--sct-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--sct-green-900);
  margin: 0 0 4px;
  text-wrap: balance;
}

.sct-pagehead__city {
  font-family: var(--sct-font-ui);
  font-size: var(--sct-text-sm);
  color: var(--sct-ink-500);
  margin: 0 0 4px;
}

.sct-pagehead__sub {
  font-family: var(--sct-font-ui);
  font-size: 13px;
  line-height: 1.3;
  color: var(--sct-ink-500);
  margin: 0 0 16px;
  min-height: 1.4em;
}

.sct-pagehead__sub .accent {
  color: var(--sct-ink-700);
  font-weight: 600;
}

/* =====================================================================
   DATE PICKER ROW
   ===================================================================== */

.sct-datepicker-row {
  display: flex;
  align-items: center;
  padding: 0 16px 12px;
  position: relative;
}

.sct-datepicker-row__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--sct-paper);
  border: 1px solid var(--sct-overlay-border-md);
  border-radius: var(--sct-radius-full);
  font-family: var(--sct-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--sct-ink-700);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease;
}

.sct-datepicker-row__label:hover {
  border-color: var(--sct-green-600);
}

.sct-datepicker-row__icon {
  width: 18px;
  height: 18px;
  color: var(--sct-green-600);
  flex-shrink: 0;
}

/* Visually hidden Pikaday anchor — positioned by JS via getBoundingClientRect() */
.sct-date-anchor {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: none;
  padding: 0;
}

/* =====================================================================
   RESULTS REGION
   ===================================================================== */

.sct-results {
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Date section header: "Thu · May 28" */
.sct-date-section {
  font-family: var(--sct-font-ui);
  font-size: var(--sct-text-sm);
  font-weight: 600;
  color: var(--sct-ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

/* =====================================================================
   PIKADAY THEME
   The date picker now uses the shared search-card markup, so its theme comes
   from homepage-v2.css (loaded via pageCss2) -- the same green-header treatment
   used on the homepage and area pages. The course-specific Pikaday overrides
   that previously lived here were removed in the course-filter rebuild so the
   calendar matches the market pages exactly. pikaday.css (base) loads globally
   from base-v2.njk.
   NOTE: the .sct-datepicker-row rules below/above are now dead (markup replaced
   by the shared search card); harmless, safe to delete in a future cleanup.
   ===================================================================== */

/* =====================================================================
   DESKTOP (768px+)
   ===================================================================== */

@media (min-width: 768px) {
  .sct-pagehead {
    padding: 24px 32px 0;
    max-width: var(--sct-content-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .sct-pagehead__h1 {
    font-size: 38px;
  }

  .sct-datepicker-row {
    padding: 0 32px 16px;
    max-width: var(--sct-content-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .sct-results {
    padding: 0 32px 48px;
    max-width: var(--sct-content-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}
