/* ── Typography ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

body {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans 3', sans-serif;
}

.navbar, .navbar-brand, .nav-link,
.sidebar, .sidebar-navigation, .sidebar-item {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  border-bottom: 1px solid #e0d6c8;
  background-color: #faf8f5 !important;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.navbar .nav-link, .navbar .navbar-brand {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.navbar-brand, .nav-link {
  color: #2c2416 !important;
}

/* ── Cards ──────────────────────────────────────────────── */
.resource-card {
  border: 1px solid #e0d6c8;
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #faf8f5;
  transition: box-shadow 0.2s;
}

.resource-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.resource-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem 0;
}

.resource-card .meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.6rem;
}

/* ── Dropdowns ──────────────────────────────────────────── */
.dropdown-menu, .dropdown-item,
.dropdown-toggle {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
}

/* ── Buttons and form controls ──────────────────────────── */
button, input, select, textarea,
.term-cat, .term-pronunciation, .imp-badge,
.quarto-category, .listing-category {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  font-size: 0.85rem;
  text-decoration: none;
  margin-right: 0.4rem;
  margin-top: 0.5rem;
}

.btn-primary {
  background: #2c2416;
  color: #faf8f5 !important;
}

.btn-primary:hover { background: #4a3d28; }

.btn-secondary {
  background: transparent;
  border: 1px solid #2c2416;
  color: #2c2416 !important;
}

.btn-secondary:hover { background: #f0ebe2; }

/* ── Audio player ───────────────────────────────────────── */
audio {
  width: 100%;
  margin-top: 0.5rem;
}

/* ── Callouts ───────────────────────────────────────────── */
.callout { border-radius: 4px; }

.callout, .callout-body, .callout-title, .callout-title-container {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
}

/* ── Rubric term highlight (shared with glossary.js glterm feature) ── */
@keyframes glterm-pulse {
  0%   { background-color: transparent; outline: none; }
  15%  { background-color: #fff3a0; outline: 2px solid #c8940a; outline-offset: 2px; }
  75%  { background-color: #fff3a0; outline: 2px solid #c8940a; outline-offset: 2px; }
  100% { background-color: transparent; outline: none; }
}
.glterm-highlight {
  animation: glterm-pulse 2.5s ease-out forwards;
  border-radius: 3px;
}
