/* CJMC Design System — supplemental styles (Tailwind handles the bulk) */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* ── Tab scroll offset (clears sticky nav ~72px) ─ */
[x-data*="activeTab"] {
  scroll-margin-top: 80px;
}

/* ── Main Nav link size ───────────────────────── */
nav[aria-label="Main navigation"] a,
nav[aria-label="Main navigation"] button {
  font-size: 14px;
}

/* ── Skip Nav ─────────────────────────────────── */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: .5rem 1rem;
  background: #ffb59b;
  color: #5b1b00;
  font-weight: 600;
  font-size: .875rem;
}

.skip-nav:focus {
  left: 0;
}

/* ── Hero ─────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #080c06 0%, #131410 40%, #1a1d10 70%, #0c0f09 100%);
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(19, 20, 16, 0.35) 0%, rgba(19, 20, 16, 0.65) 60%, rgba(19, 20, 16, 0.92) 100%);
}

.cultural-dot-pattern {
  background-image: radial-gradient(circle, rgba(255, 181, 155, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cultural-circle {
  border: 1px solid rgba(255, 181, 155, 0.12);
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
}

/* ── Glass Cards ──────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s;
}

.glass-card.jform.rounded-xl {
  background: transparent;
  border: none;
}

.glass-card:hover {
  border-color: rgba(255, 181, 155, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Schedule / Data Tables ───────────────────── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.schedule-table thead th {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #dbc1b8;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
}

.schedule-table tbody td,
.schedule-table tbody th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e5e2dc;
  vertical-align: middle;
  text-align: left;
}

.schedule-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.schedule-table tbody tr:last-child td,
.schedule-table tbody tr:last-child th {
  border-bottom: none;
}

/* ── Status Badges ────────────────────────────── */
.badge-status {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-open {
  background: rgba(46, 107, 62, 0.25);
  color: #7bcf96;
  border: 1px solid rgba(46, 107, 62, 0.4);
}

.badge-full {
  background: rgba(139, 94, 26, 0.25);
  color: #f5b842;
  border: 1px solid rgba(139, 94, 26, 0.4);
}

.badge-cancelled {
  background: rgba(155, 28, 28, 0.25);
  color: #ff8080;
  border: 1px solid rgba(155, 28, 28, 0.4);
}

.badge-closed {
  background: rgba(60, 60, 60, 0.3);
  color: #9e9488;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── News Tag Colors ──────────────────────────── */
.news-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Section Eyebrow / Label ──────────────────── */
.section-eyebrow {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffb59b;
  margin-bottom: 0.75rem;
}

/* ── Page Hero (inner pages) ──────────────────── */
.page-hero-section {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, rgba(19, 20, 16, 0) 0%, rgba(19, 20, 16, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.page-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(140, 59, 26, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Breadcrumb ───────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a38c84;
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.breadcrumb li+li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumb a {
  color: #dbc1b8;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ffb59b;
}

/* ── Hours Table (footer / location section) ──── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  color: #dbc1b8;
}

.hours-table td {
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hours-table td:last-child {
  text-align: right;
  color: #e5e2dc;
}

/* ── Tab Navigation ───────────────────────────── */
.cjmc-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.cjmc-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .cjmc-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.cjmc-tab {
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a38c84;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.cjmc-tab:hover {
  color: #e5e2dc;
}

.cjmc-tab.active {
  color: #ffb59b;
  border-bottom-color: #ffb59b;
}

.cjmc-tab-pane {
  display: none;
}

.cjmc-tab-pane.active {
  display: block;
}

/* ── Info / Alert boxes ───────────────────────── */
.info-box {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 181, 155, 0.15);
  background: rgba(140, 59, 26, 0.12);
  color: #dbc1b8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.info-box-teal {
  border-color: rgba(61, 110, 158, 0.3);
  background: rgba(61, 110, 158, 0.1);
}

.info-box-success {
  border-color: rgba(46, 107, 62, 0.3);
  background: rgba(46, 107, 62, 0.1);
  color: #7bcf96;
}

/* ── Policy Cards ─────────────────────────────── */
.policy-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  overflow: hidden;
}

.policy-card-header {
  padding: 0.625rem 1rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(140, 59, 26, 0.2);
  color: #ffb79e;
  display: flex;
  align-items: cenSter;
  gap: 0.5rem;
}

.policy-card-body {
  padding: 1rem;
  font-size: 0.9rem;
  color: #dbc1b8;
  line-height: 1.7;
}

.policy-card-body ul {
  padding-left: 1.25rem;
  margin: 0;
}

.policy-card-body li {
  margin-bottom: 0.35rem;
}

/* ── Staff Cards ──────────────────────────────── */
.staff-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: border-color 0.2s, background 0.2s;
}

.staff-card:hover {
  border-color: rgba(255, 181, 155, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

/* ── Program category header colors ──────────── */
.prog-header-forest {
  background: linear-gradient(135deg, rgba(56, 76, 54, 0.5), rgba(56, 76, 54, 0.2));
  color: #a5bb9f;
}

.prog-header-teal {
  background: linear-gradient(135deg, rgba(61, 110, 158, 0.4), rgba(61, 110, 158, 0.15));
  color: #5a8ab8;
}

.prog-header-earth {
  background: linear-gradient(135deg, rgba(140, 59, 26, 0.5), rgba(140, 59, 26, 0.2));
  color: #ffb79e;
}

.prog-header-warm {
  background: linear-gradient(135deg, rgba(201, 132, 42, 0.4), rgba(201, 132, 42, 0.15));
  color: #f5b842;
}

/* ── Decorative divider ───────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 0;
  opacity: 0.4;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Registration alert ───────────────────────── */
.reg-alert-bar {
  background: rgba(140, 59, 26, 0.2);
  border-bottom: 1px solid rgba(255, 181, 155, 0.2);
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  color: #dbc1b8;
  text-align: center;
}

/* ── Map embed ────────────────────────────────── */
.map-embed {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  width: 100%;
}

/* ── Scroll indicator animation ──────────────── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  animation: fadeInDown 2s ease-in-out infinite alternate;
}

/* ── Focus visible ────────────────────────────── */
:focus-visible {
  outline: 2px solid #ffb59b;
  outline-offset: 3px;
}

/* ── Responsive tweaks ────────────────────────── */
@media (max-width: 640px) {

  .schedule-table thead th,
  .schedule-table tbody td,
  .schedule-table tbody th {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}