/*
Theme Name: APAMAX Blog
Theme URI: https://apamaxsante.fr
Author: Oscar AI Solutions
Author URI: https://oscar-seo.ai/fr/
Description: Thème WordPress pour le blog APAMAX — Activité Physique Adaptée. Reprend fidèlement le style du site statique.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apamax
*/

/* ==========================================================================
   CSS Variables — identiques au site statique
   ========================================================================== */

:root {
  color-scheme: light;
  --background: #f8fcfc;
  --foreground: #0a1f1f;
  --card: #ffffff;
  --muted: #e8f4f4;
  --border: rgba(11, 28, 28, 0.12);

  --text-muted: rgba(8, 26, 26, 0.74);
  --text-subtle: rgba(8, 26, 26, 0.62);

  --primary: #0d7578;
  --primary-light: #e6f4f4;
  --primary-dark: #095456;
  --secondary: #8b4513;
  --secondary-light: #fef3e8;
  --accent: #d4a84b;
  --accent-light: #fdf6e3;

  --gradient-hero: linear-gradient(135deg, rgba(13, 117, 120, 0.08) 0%, rgba(212, 168, 75, 0.06) 100%);

  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--foreground);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Container — max-w-6xl = 1152px
   ========================================================================== */

.apamax-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1152px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .apamax-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .apamax-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background), white 55%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(12px)) {
  .site-header {
    background: var(--background);
  }
}

.site-header .apamax-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo-img-wrap {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
}

.site-logo-img-wrap img {
  height: 40px;
  width: auto;
}

.site-logo-text {
  display: none;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .site-logo-text {
    display: block;
  }
}

.site-logo-name {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-logo-tagline {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav a {
  white-space: nowrap;
  border-radius: 9999px;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
  color: var(--foreground);
}

.desktop-nav a:hover {
  background: var(--muted);
}

.desktop-nav a.is-active {
  background: var(--muted);
  color: var(--primary);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-social-btn {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem;
  color: var(--foreground);
  transition: background-color 0.15s;
}

.header-social-btn:hover {
  background: var(--muted);
}

@media (min-width: 1024px) {
  .header-social-btn {
    display: inline-flex;
  }
}

.header-social-btn svg {
  width: 16px;
  height: 16px;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  border-radius: 9999px;
  background: var(--primary);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.15s;
  animation: shine 4s ease-in-out infinite;
}

.header-cta:hover {
  background: var(--primary-dark);
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}

.header-cta svg {
  width: 14px;
  height: 14px;
}

@keyframes shine {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 117, 120, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(13, 117, 120, 0.6), 0 0 40px 8px rgba(13, 117, 120, 0.3); }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--foreground);
}

.mobile-menu-btn:hover {
  background: var(--muted);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  margin-top: 0.75rem;
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem;
}

.mobile-nav-inner a {
  display: block;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s;
  color: var(--foreground);
}

.mobile-nav-inner a:hover {
  background: var(--muted);
}

.mobile-nav-inner a.is-active {
  background: var(--muted);
  color: var(--primary);
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0.5rem 0;
  border-radius: 1rem;
  background: var(--primary);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  animation: shine 4s ease-in-out infinite;
}

.mobile-nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0.5rem 0;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s;
}

.mobile-nav-social:hover {
  background: var(--muted);
}

.mobile-nav-social svg,
.mobile-nav-cta svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.site-footer .apamax-container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}

.footer-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.footer-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-sans);
}

.footer-links {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a svg {
  display: inline;
  vertical-align: -2px;
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
}

.footer-bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   Blog Hero
   ========================================================================== */

.blog-hero {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .blog-hero {
    padding: 4rem 0;
  }
}

.blog-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  background: rgba(13, 117, 120, 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.blog-hero-label svg {
  width: 16px;
  height: 16px;
}

.blog-hero h1 {
  margin-top: 1.5rem;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .blog-hero h1 {
    font-size: 2.25rem;
  }
}

.blog-hero p {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 2;
  color: var(--text-muted);
}

/* ==========================================================================
   Blog Listing
   ========================================================================== */

.blog-content {
  padding: 3rem 0 4rem;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Article card */
.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.article-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--muted);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.03);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.article-card-category {
  display: inline-block;
  border-radius: 9999px;
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.article-card-title {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-card-title a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.15s;
}

.article-card-title a:hover {
  color: var(--primary);
}

.article-card-excerpt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
  flex-grow: 1;
}

.article-card-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}

.article-card-read-more:hover {
  gap: 0.625rem;
}

.article-card-read-more svg {
  width: 16px;
  height: 16px;
}

/* No thumbnail fallback */
.article-card-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--primary-light);
}

.article-card-no-thumb svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  opacity: 0.4;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.pagination a:hover {
  background: var(--muted);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .dots {
  border: none;
  background: none;
  color: var(--text-subtle);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-hero {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .single-hero {
    padding: 4rem 0;
  }
}

.single-hero-inner {
  max-width: 48rem;
}

.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.single-meta .sep {
  color: var(--border);
}

.single-hero h1 {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .single-hero h1 {
    font-size: 2.25rem;
  }
}

.single-hero-excerpt {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 42rem;
}

.single-featured-image {
  margin-top: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article content */
.single-content {
  padding: 3rem 0 4rem;
}

.single-content-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.entry-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: var(--primary-dark);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--foreground);
}

.entry-content img {
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

.entry-content strong {
  color: var(--foreground);
  font-weight: 600;
}

.entry-content code {
  background: var(--muted);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.entry-content pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--foreground);
  color: var(--background);
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
}

.entry-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.entry-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.entry-content th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

/* Post navigation */
.post-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.post-nav-link {
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  transition: background-color 0.15s, transform 0.2s;
}

.post-nav-link:hover {
  background: var(--muted);
  transform: translateY(-1px);
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-nav-title {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.post-nav-next {
  text-align: right;
}

/* Share / Tags */
.single-tags {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-tags .tag-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.single-tags a {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color 0.15s, color 0.15s;
}

.single-tags a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.comment-list .comment {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.comment-list .children {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-author-avatar img {
  border-radius: 9999px;
  border: 2px solid var(--border);
}

.comment-author-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.comment-body p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.comment-reply-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* Comment form */
.comment-respond {
  margin-top: 2rem;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.15s;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 117, 120, 0.15);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  border: none;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color 0.15s, transform 0.2s;
}

.comment-form .submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-form-inline {
  display: flex;
  gap: 0.5rem;
  max-width: 32rem;
}

.search-form-inline input[type="search"] {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--foreground);
}

.search-form-inline input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 117, 120, 0.15);
}

.search-form-inline button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  border: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color 0.15s;
}

.search-form-inline button:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   404
   ========================================================================== */

.page-404 {
  padding: 5rem 0;
  text-align: center;
}

.page-404 h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
}

.page-404 p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.page-404 .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  border-radius: 9999px;
  background: var(--primary);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.15s, transform 0.2s;
}

.page-404 .back-link:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   Archive header
   ========================================================================== */

.archive-header {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.archive-header h1 {
  font-size: 1.875rem;
  font-weight: 800;
}

.archive-header p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* ==========================================================================
   Empty state
   ========================================================================== */

.no-results {
  padding: 4rem 0;
  text-align: center;
}

.no-results h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.no-results p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WordPress specific overrides
   ========================================================================== */

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption img {
  border-radius: 0.75rem;
}

.wp-caption-text {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-align: center;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.min-h-main {
  min-height: 70vh;
}
