/* styles.css — STA6349 Applied Bayesian Analysis */
/* Palette: Heritage Blue, Cannon Green, Luna Blue, Spring Green accent */

/* ─── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300&display=swap');

/* ─── Page & body ───────────────────────────────────────────────────────── */
body {
  background-color: #f5f3ee;
  font-family: 'Source Serif 4', Georgia, serif;
  color: #2a2e35;
}

/* ─── Main content area ─────────────────────────────────────────────────── */
main {
  background-color: #f5f3ee;
  border-radius: 0;
  padding: 2rem 2.5rem;
  box-shadow: none;
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  background-color: #003A6B !important;
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  color: #d4e8f7 !important;
  letter-spacing: 0.01em;
}

.navbar .nav-link {
  color: #8DC8E8 !important;
  font-family: 'Source Serif 4', serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.1rem !important;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-item.active .nav-link {
  color: #ffffff !important;
  border-bottom-color: #97D200;
}

/* ─── Page titles ───────────────────────────────────────────────────────── */
h1, .title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: #003A6B;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: #005EA6;
}

/* Decorative rule under the page title */
h1.title::after {
  content: '';
  display: block;
  margin-top: 0.6rem;
  height: 2px;
  width: 50%;
  background: linear-gradient(to right, #005EA6, #007A33, transparent);
  border-radius: 2px;
}

/* ─── Body text ─────────────────────────────────────────────────────────── */
p, li, td, th {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  line-height: 1.8;
  color: #3a3d42;
}

/* ─── Links ─────────────────────────────────────────────────────────────── */
a {
  color: #005EA6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  color: #007A33;
  border-bottom-color: #007A33;
}

/* ─── Tables (schedule) ─────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

thead th {
  background-color: #003A6B;
  color: #d4e8f7;
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.6rem 0.9rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  border: none;
}

tbody tr:nth-child(odd) {
  background-color: #eef3f8;
}

tbody tr:nth-child(even) {
  background-color: #f5f3ee;
}

tbody tr:hover {
  background-color: #ddeefa;
}

tbody td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #d8e4ef;
  vertical-align: middle;
}

/* ─── Callout: Note — Heritage Blue ────────────────────────────────────── */
.callout.callout-note {
  background-color: #e3eef8;
  border-left: 4px solid #005EA6;
  border-radius: 0 6px 6px 0;
}

.callout.callout-note .callout-title {
  color: #003A6B;
}

/* ─── Callout: Tip — Cannon Green ──────────────────────────────────────── */
.callout.callout-tip {
  background-color: #e6f2ea;
  border-left: 4px solid #007A33;
  border-radius: 0 6px 6px 0;
}

.callout.callout-tip .callout-title {
  color: #004d1f;
}

/* ─── Callout: Important — Spring Green ────────────────────────────────── */
.callout.callout-important {
  background-color: #eef5e2;
  border-left: 4px solid #6e9b00;
  border-radius: 0 6px 6px 0;
}

.callout.callout-important .callout-title {
  color: #3d5800;
}

/* ─── Shared callout rules ──────────────────────────────────────────────── */
.callout .callout-icon {
  display: none;
}

.callout .callout-title {
  padding-left: 0.5em;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
