/* PFM Pagination shared styles — v3
   Standalone: no Bootstrap dependency.
   Neutral theme; override via CSS variables or later Liquid.
*/
:root {
  --pfm-bg: #ffffff;
  --pfm-text: #111111;
  --pfm-muted: #6c757d;
  --pfm-accent: #0d6efd; /* Bootstrap primary default; swap to PeopleFirst palette later */
  --pfm-border: #dee2e6;
}

html, body {
  background: var(--pfm-bg);
  color: var(--pfm-text);
}

.pfm-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.pfm-header,
.pfm-footer {
  border-bottom: 1px solid var(--pfm-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.pfm-footer {
  border-bottom: 0;
  border-top: 1px solid var(--pfm-border);
  padding-top: 0.75rem;
  margin-top: 1.5rem;
}

.pfm-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pfm-nav .pfm-progress-text {
  color: var(--pfm-muted);
  font-size: 0.95rem;
}

.pfm-progress {
  flex: 1 1 260px;
  max-width: 540px;
}

/* Standalone progress bar — no Bootstrap required */
.pfm-progress .progress {
  display: flex;
  height: 0.75rem;
  overflow: hidden;
  background-color: #e9ecef;
  border-radius: 0.375rem;
  width: 100%;
}

.pfm-progress .progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--pfm-accent);
  transition: width 0.3s ease;
  border-radius: 0.375rem;
}

.pfm-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Standalone button styles — no Bootstrap required */
.pfm-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.pfm-actions .btn:disabled,
.pfm-actions .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.pfm-actions .btn-primary {
  background-color: var(--pfm-accent);
  border-color: var(--pfm-accent);
  color: #ffffff;
}

.pfm-actions .btn-primary:hover:not(:disabled) {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.pfm-actions .btn-outline-secondary {
  background-color: transparent;
  border-color: #6c757d;
  color: #6c757d;
}

.pfm-actions .btn-outline-secondary:hover:not(:disabled) {
  background-color: #6c757d;
  color: #ffffff;
}

.pfm-main {
  min-height: 40vh;
}

.pfm-section {
  display: none;
}

.pfm-section.is-active {
  display: block;
}

.is-hidden {
  display: none !important;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .pfm-nav {
    gap: 0.5rem 0.75rem;
  }
  .pfm-progress {
    flex-basis: 100%;
    max-width: none;
    order: 3;
  }
  .pfm-actions {
    width: 100%;
    justify-content: space-between;
    order: 2;
  }
}

/* Focus styling for accessibility */
.pfm-section [tabindex="-1"]:focus {
  outline: 2px solid var(--pfm-accent);
  outline-offset: 2px;
}

/* Utility spacing for content converted from markdown */
.pfm-section p {
  margin-bottom: 1rem;
}
.pfm-section h1, .pfm-section h2, .pfm-section h3, .pfm-section h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}