/* ============================================================
   FedSmith — Archive / Category / Tag / Author / Date / Search
   Loaded only on archive routes (and the blog index posts page).
   Shared blog-card / blogroll styles live in theme.css.
   ============================================================ */

/* ============================================================
   Category / Tag / Archive header
   ============================================================ */
.cat-header {
  padding: 28px 0 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}
:root[data-theme="dark"] .breadcrumbs a:hover { color: var(--link); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .breadcrumbs a:hover { color: var(--link); }
}
.breadcrumbs__sep {
  color: var(--text-muted);
  opacity: 0.6;
}
.breadcrumbs [aria-current="page"] {
  color: var(--text-body);
}
.cat-header h1 {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text-heading);
  margin: 0 0 12px;
}
.cat-header__desc {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 760px;
  margin: 0;
}

/* Pull the layout's top padding off the category header so the breadcrumb
   sits just below the fixed nav rather than below an extra 28px gutter. */
.layout--category { padding-top: 0; }

/* Slightly looser blogroll spacing on archives than the homepage. */
.cat-blogroll { gap: 28px; }
.cat-blogroll .blog-card { padding-bottom: 28px; }

/* ============================================================
   WordPress-style pagination
   ============================================================ */
.pagination {
  margin: 36px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pagination__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pagination__item:hover {
  background: var(--bg-light-navy);
  color: var(--brand-navy);
  border-color: var(--brand-navy);
  text-decoration: none;
}
:root[data-theme="dark"] .pagination__item:hover {
  background: #2A2A35;
  color: var(--link);
  border-color: var(--link);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .pagination__item:hover {
    background: #2A2A35;
    color: var(--link);
    border-color: var(--link);
  }
}
.pagination__item--current {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
  cursor: default;
}
.pagination__item--current:hover {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}
.pagination__item--dots {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
  min-width: 28px;
  padding: 0 4px;
  letter-spacing: 0.1em;
}
.pagination__item--dots:hover {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.pagination__item--prev,
.pagination__item--next {
  gap: 6px;
}
.pagination__item svg { width: 14px; height: 14px; }
.pagination__summary {
  font-family: "DM Sans", sans-serif;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   404 / index empty-state (404.php and index.php no-posts fallback)
   ============================================================ */
.error-404 {
  padding: 32px 0 40px;
}
.error-404__message {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 10px;
}
.error-404__hint {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 28px;
}

/* ============================================================
   Search — empty state + standalone form (search.php no-results)
   ============================================================ */
.search-no-results {
  padding: 48px 0 40px;
  text-align: center;
}
.search-no-results__message {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 10px;
}
.search-no-results__hint {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.search-form__input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: var(--text-body);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  outline: none;
}
.search-form__input:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(6, 6, 171, 0.12);
}
:root[data-theme="dark"] .search-form__input:focus {
  box-shadow: 0 0 0 3px rgba(106, 106, 230, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .search-form__input:focus {
    box-shadow: 0 0 0 3px rgba(106, 106, 230, 0.25);
  }
}
.search-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--brand-navy);
  color: #fff;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.15s;
}
.search-form__submit:hover { background: var(--brand-deep-navy); }
.search-form__submit svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .cat-header h1 { font-size: 2.125rem; }
  .cat-header__desc { font-size: 1rem; }
  .pagination__item { min-width: 36px; height: 36px; padding: 0 9px; font-size: 0.875rem; }
  .pagination__item--prev span,
  .pagination__item--next span { display: none; }
}
