/* Shared styles for the courses hub and all individual course pages.
   Design tokens follow the site system: navy #0a1628, gold #C5A059,
   Playfair Display for headings, Inter for body. */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

.hero-pattern {
  background-image: radial-gradient(circle at 2px 2px, rgba(197,160,89,.12) 1px, transparent 0);
  background-size: 28px 28px;
}

.nav-ul a { position: relative; padding-bottom: 2px; }
.nav-ul a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: #C5A059; transition: width .25s;
}
.nav-ul a:hover::after, .nav-ul a.active::after { width: 100%; }

#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

.download-btn {
  background: #C5A059; color: #0a1628; font-weight: 700; transition: background .2s;
}
.download-btn:hover { background: #A8813A; }

/* Status pills */
.pill { font-size: .68rem; font-weight: 700; padding: .25rem .625rem; border-radius: 9999px;
        text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.pill-active   { background: #dcfce7; color: #15803d; }
.pill-upcoming { background: rgba(197,160,89,.16); color: #A8813A; }
.pill-previous { background: #f1f5f9; color: #64748b; }
.pill-code     { background: rgba(197,160,89,.16); color: #A8813A; letter-spacing: .06em; }

/* Schedule table */
.sched { width: 100%; border-collapse: collapse; }
.sched th {
  text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: #94a3b8; font-weight: 700; padding: .75rem 1rem; border-bottom: 1px solid #e2e8f0;
}
.sched td { padding: 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; font-size: .875rem; }
.sched tbody tr:hover { background: #fdf9f3; }
.sched .wk { color: #94a3b8; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.sched .mod-title { font-weight: 700; color: #0a1628; }

/* Small inline resource chips inside the schedule */
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 600; padding: .2rem .55rem;
  border: 1px solid #e2e8f0; border-radius: .375rem; color: #475569;
  background: #fff; transition: border-color .15s, color .15s;
}
a.chip:hover { border-color: #C5A059; color: #A8813A; }
.chip-muted { color: #cbd5e1; border-style: dashed; }

/* Anchored section headings */
.sec-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.sec-head h2 { font-size: 1.125rem; font-weight: 700; color: #0a1628; }

/* Sticky in-page nav on course pages */
.subnav { backdrop-filter: blur(8px); background: rgba(255,255,255,.9); }
.subnav a { font-size: .8rem; font-weight: 600; color: #64748b; padding: .5rem .25rem; }
.subnav a:hover { color: #A8813A; }

@media print {
  nav, .subnav, footer, .no-print { display: none !important; }
  body { background: #fff; }
}
