/* Math4Humans - Clean, Accessible Design */

:root {
  /* Core colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --color-heading: #1a202c;

  /* Header colors (dark theme - Luminous Precision) */
  /* Progressive dark-to-light: darkest at top, lighter toward content */
  --header-bg: #0f1114;           /* Tier 1: Brand - darkest, anchors page */
  --header-bg-nav: #15181c;       /* Tier 2: Primary nav - slightly lighter */
  --header-bg-subjects: #1a1d22;  /* Tier 3: Subjects - medium */
  --header-bg-chapters: #22262d;  /* Tier 4: Chapters - lightest, closest to content */
  --header-text: #e8eaed;
  --header-text-muted: #7d838c;
  --header-accent: #f0b954;
  --header-accent-glow: rgba(240, 185, 84, 0.3);
  --header-highlight: #c9d1db;
  --header-highlight-muted: rgba(201, 209, 219, 0.12);

  /* Accent colors */
  --color-primary: #d4873f;      /* Warm amber */
  --color-primary-dark: #b8702f;
  --color-secondary: #7c3aed;    /* Purple */
  --color-secondary-light: #a78bfa;

  /* Borders & shadows */
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Container */
  --container-max: 1100px;
  --content-max: 750px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  scroll-margin-top: 300px; /* Offset for sticky header when navigating to anchors */
  position: relative;
}

/* Anchor link on headings */
.heading-anchor {
  position: absolute;
  left: -1.25em;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.heading-anchor svg {
  width: 0.55em;
  height: 0.55em;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.heading-anchor:hover {
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-50%) scale(1.1);
}

h1:hover .heading-anchor,
h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor,
h5:hover .heading-anchor,
h6:hover .heading-anchor {
  opacity: 1;
}

/* Copied state */
.heading-anchor.copied {
  color: var(--color-primary);
}

.heading-anchor.copied svg {
  display: none;
}

.heading-anchor.copied::before {
  content: '✓';
  font-size: 0.7em;
  font-weight: 600;
}

/* Anchor offset for any element with an ID */
[id] {
  scroll-margin-top: 300px;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.content-wrapper {
  max-width: var(--content-max);
}

/* ========================================
   Header - Luminous Precision Design
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  user-select: none;
  -webkit-user-select: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Tier 1: Branding + Search */
.header-brand {
  background: var(--header-bg);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
}

.site-branding {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-icon {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.logo-link:hover .logo-icon {
  opacity: 0.9;
}

.logo-icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.site-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--header-text);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--header-text-muted);
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Search */
.header-search {
  flex-shrink: 0;
}

.search-form {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.search-form:focus-within {
  border-color: var(--header-highlight);
  box-shadow: 0 0 0 3px var(--header-highlight-muted);
}

.search-form input {
  background: transparent;
  border: none;
  padding: 0.625rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  width: 200px;
  color: var(--header-text);
  outline: none;
}

.search-form input::placeholder {
  color: var(--header-text-muted);
  font-weight: 400;
}

.search-form button {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.625rem 1rem;
  cursor: pointer;
  color: var(--header-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.search-form button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--header-text);
}

/* Tier 2: Primary navigation */
.header-nav {
  background: var(--header-bg-nav);
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  color: var(--header-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 1.75rem;
  transition: all 0.2s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--header-accent);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--header-accent-glow);
}

.main-nav a:hover {
  color: var(--header-text);
  text-decoration: none;
}

.main-nav a:hover::after {
  width: 24px;
}

.main-nav a.active {
  color: var(--header-text);
  text-decoration: none;
}

.main-nav a.active::after {
  width: 24px;
}

/* Tier 3: Subject navigation (scrollable) */
.header-subjects {
  background: var(--header-bg-subjects);
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.subject-scroll-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, var(--header-bg-subjects) 50%, transparent);
  border: none;
  color: var(--header-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.subject-scroll-left {
  left: 0;
}

.subject-scroll-right {
  right: 0;
  background: linear-gradient(-90deg, var(--header-bg-subjects) 50%, transparent);
}

.subject-scroll-btn svg {
  transition: transform 0.2s ease;
}

.subject-scroll-btn:hover {
  color: var(--header-text);
}

.subject-scroll-btn:hover svg {
  transform: scale(1.1);
}

.subject-scroll-btn:active svg {
  transform: scale(0.95);
}


.subject-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.subject-nav {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.subject-nav::-webkit-scrollbar {
  display: none;
}

.subject-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  width: max-content;
}

.subject-categories li {
  flex-shrink: 0;
}

.subject-categories a {
  display: block;
  color: var(--header-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  border-radius: 6px;
  position: relative;
}

.subject-categories a:hover {
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.subject-categories a.active {
  color: var(--header-bg);
  background: var(--header-accent);
  text-decoration: none;
  box-shadow: 0 2px 8px var(--header-accent-glow);
}

/* Tier 4: Chapter navigation (scrollable) */
.header-chapters {
  background: var(--header-bg-chapters);
  display: flex;
  align-items: center;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chapter-scroll-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, var(--header-bg-chapters) 50%, transparent);
  border: none;
  color: var(--header-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.chapter-scroll-left {
  left: 0;
}

.chapter-scroll-right {
  right: 0;
  background: linear-gradient(-90deg, var(--header-bg-chapters) 50%, transparent);
}

.chapter-scroll-btn svg {
  transition: transform 0.2s ease;
}

.chapter-scroll-btn:hover {
  color: var(--header-text);
}

.chapter-scroll-btn:hover svg {
  transform: scale(1.1);
}

.chapter-scroll-btn:active svg {
  transform: scale(0.95);
}

.chapter-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.chapter-nav {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.chapter-nav::-webkit-scrollbar {
  display: none;
}

.chapter-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  width: max-content;
}

.chapter-list li {
  flex-shrink: 0;
}

.chapter-list a {
  display: block;
  color: var(--header-text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.4rem 0.875rem;
  transition: all 0.2s ease;
  border-radius: 4px;
  border: 1px solid transparent;
}

.chapter-list a:hover {
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.chapter-list a.active {
  color: var(--header-accent);
  background: rgba(240, 185, 84, 0.12);
  border-color: var(--header-accent);
  font-weight: 500;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #eef2ff 100%);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

/* Main Content */
main {
  padding: var(--spacing-2xl) 0;
  min-height: 60vh;
}

/* Cards for Subjects */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-lg);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Subject List */
.subject-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-xl) 0;
}

.subject-list li {
  border-bottom: 1px solid var(--color-border);
}

.subject-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
  color: var(--color-text);
}

.subject-list a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.subject-list .arrow {
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.subject-list a:hover .arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  text-decoration: none;
}

/* Article/Content Styling */
article {
  max-width: var(--content-max);
}

article h1 {
  margin-top: 0;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: var(--spacing-lg) 0;
}

/* Math content styling */
.math-example {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  border-radius: 0 8px 8px 0;
}

.math-example.difficulty-easy {
  border-left-color: #10b981;
}

.math-example.difficulty-medium {
  border-left-color: #f59e0b;
}

.math-example.difficulty-hard {
  border-left-color: #ef4444;
}

/* Self-test problems */
.self-test {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid var(--color-secondary-light);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.self-test h4 {
  color: var(--color-secondary);
  margin-top: 0;
}

/* Code blocks */
pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: var(--spacing-lg);
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

pre code {
  background: none;
  padding: 0;
}

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.footer-section h4 {
  margin-top: 0;
  color: var(--color-heading);
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--color-text-muted);
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  margin: 0 var(--spacing-sm);
}

/* Table of Contents */
.toc {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.toc h4 {
  margin-top: 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.toc ul {
  list-style: none;
  padding-left: var(--spacing-md);
  margin: 0;
}

.toc li {
  margin-bottom: var(--spacing-xs);
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  /* Header responsive - Luminous Precision */
  /* On mobile, only the brand/logo is sticky, not search or nav */
  .site-header {
    position: relative;
  }

  /* Split header-brand: logo stays sticky, search scrolls away */
  .header-brand {
    padding: 0;
  }

  .header-brand .brand-inner {
    flex-direction: column;
    gap: 0;
  }

  /* Pin branding (logo + title) to top of viewport on mobile */
  .site-branding {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    padding: 0.75rem var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  /* Add padding to header-brand to account for fixed branding height */
  .header-brand {
    padding-top: 60px;
  }

  /* Search is not sticky - scrolls with page */
  .header-brand .header-search {
    padding: 0.75rem var(--spacing-lg);
    margin: 0 calc(-1 * var(--spacing-lg));
    width: calc(100% + 2 * var(--spacing-lg));
    background: var(--header-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .logo-link {
    flex-direction: row;
    text-align: left;
    gap: 0.75rem;
  }

  .logo-icon img {
    width: 36px;
    height: 36px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-tagline {
    font-size: 0.6875rem;
  }

  .header-search {
    width: 100%;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    flex: 1;
    width: auto;
  }

  .main-nav a {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
  }

  .subject-scroll-btn {
    width: 36px;
    min-height: 40px;
  }

  .subject-categories a {
    font-size: 0.75rem;
    padding: 0.4375rem 0.75rem;
  }

  .subtopic-nav a {
    font-size: 0.6875rem;
    padding: 0.3125rem 0.625rem;
  }

  .main-nav ul {
    gap: var(--spacing-md);
  }

  /* Scrollable subject nav on mobile */
  .subject-scroll-btn {
    width: 32px;
  }

  .subject-categories a {
    font-size: 0.8rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .subtopic-nav ul {
    gap: var(--spacing-sm);
  }

  .hero h1 {
    font-size: 2rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Search Page */
.search-page {
  padding: var(--spacing-2xl) 0;
  min-height: 60vh;
}

.search-page h1 {
  margin-top: 0;
  margin-bottom: var(--spacing-xl);
}

#search {
  max-width: 800px;
}

/* Pagefind UI Customization */
.pagefind-ui {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--color-primary);
  --pagefind-ui-text: var(--color-text);
  --pagefind-ui-background: var(--color-bg);
  --pagefind-ui-border: var(--color-border);
  --pagefind-ui-tag: var(--color-bg-alt);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-font: var(--font-sans);
}

/* Pagefind UI is used as-is with CSS variable customization above */

.pagefind-ui__results-area {
  margin-top: 0;
}

.pagefind-ui__result {
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
  background: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pagefind-ui__result:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.pagefind-ui__result-link {
  color: var(--color-heading);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}

.pagefind-ui__result-link:hover {
  color: var(--color-primary);
}

.pagefind-ui__result-excerpt {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: var(--spacing-sm);
}

.pagefind-ui__result-excerpt mark {
  background: rgba(240, 185, 84, 0.3);
  color: var(--color-text);
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

.pagefind-ui__message {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.pagefind-ui__button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pagefind-ui__button:hover {
  background: var(--color-primary-dark);
}
