/* ═══════════════════════════════════════════════════════════════
   Tail Trotters — Mobile-First CSS
   Fonts: Poppins (body/UI) + Playfair Display (headings)
   Both top-rated Google Fonts for mobile screens
   ═══════════════════════════════════════════════════════════════ */

/* Fonts loaded via <link> in HTML for best performance */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --primary:        #E07B2E;
  --primary-dark:   #C5621A;
  --primary-light:  #FBE9D7;
  --brown:          #3B2314;
  --bg:             #FFF9F4;
  --card-bg:        #FFFFFF;
  --text:           #2C1810;
  --text-muted:     #8C6B5A;
  --border:         #EDDDCC;
  --shadow:         0 2px 16px rgba(59,35,20,0.08);
  --shadow-hover:   0 8px 32px rgba(59,35,20,0.15);
  --radius:         16px;
  --radius-sm:      10px;
  --radius-xs:      8px;
  --font-body:      'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:   'Playfair Display', Georgia, 'Times New Roman', serif;
  /* Safe areas for iOS notch / Dynamic Island */
  --safe-top:       env(safe-area-inset-top, 0px);
  --safe-bottom:    env(safe-area-inset-bottom, 0px);
  --safe-left:      env(safe-area-inset-left, 0px);
  --safe-right:     env(safe-area-inset-right, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* prevent iOS font scaling on rotate */
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Prevent blue flash on tap (iOS/Android) */
* { -webkit-tap-highlight-color: transparent; }

/* Better tap targets for interactive elements */
a, button, [role="button"] {
  touch-action: manipulation;
  min-height: 44px;    /* Apple HIG: 44pt minimum touch target */
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

/* Reset some flex on non-interactive links */
.logo, .back-link, .btn, footer a, .card-read,
.footer-cats a, .sidebar-nav a, nav a { display: inline-flex; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* ── Reading Progress Bar (Post Pages) ───────────────────────── */
#readProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #F4C27F);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
}

/* ── Header ───────────────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 12px rgba(59,35,20,0.07);
  /* iOS notch support */
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brown);
  white-space: nowrap;
  min-height: unset;
}

.logo span { color: var(--primary); }

.logo-paw {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Desktop nav */
nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav a {
  padding: 8px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  min-height: unset;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-admin {
  background: var(--primary) !important;
  color: #fff !important;
  margin-left: 6px;
  border-radius: 100px !important;
}
.nav-admin:hover { background: var(--primary-dark) !important; }

/* Hamburger — hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
  color: var(--brown);
  transition: background 0.2s;
  min-height: unset;
  min-width: unset;
}

.menu-toggle:hover { background: var(--primary-light); }
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.28s ease;
  margin: 5px 0;
}

/* Animated hamburger → X */
.menu-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #3B2314 0%, #7B3F1E 45%, #E07B2E 100%);
  padding: 56px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before, .hero::after {
  content: '🐾';
  position: absolute;
  font-size: 100px;
  opacity: 0.07;
  pointer-events: none;
}
.hero::before { top: -10px; left: -10px; transform: rotate(-20deg); }
.hero::after { bottom: -20px; right: -5px; transform: rotate(15deg); }

.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #FFD59A;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.search-bar {
  display: flex;
  background: #fff;
  border-radius: 100px;
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 6px 28px rgba(0,0,0,0.22);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.search-bar button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0 100px 100px 0;
  white-space: nowrap;
  min-height: unset;
  min-width: unset;
}

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

/* ── Category Tabs ────────────────────────────────────────────── */
.category-section {
  padding: 36px 16px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  /* Horizontal scroll on mobile — no wrapping */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-btn {
  padding: 10px 20px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  min-width: unset;
}

.cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Posts Section ───────────────────────────────────────────── */
.posts-section {
  padding: 24px 16px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.posts-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mobile: 1 column → Tablet: 2 → Desktop: 3 */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* Horizontal layout on mobile for better density */
  flex-direction: row;
}

.post-card:active { transform: scale(0.985); }

.card-image {
  object-fit: cover;
  background: var(--primary-light);
  /* Mobile: fixed left thumbnail */
  width: 110px;
  min-width: 110px;
  height: auto;
  aspect-ratio: unset;
  border-radius: var(--radius) 0 0 var(--radius);
}

.card-image-placeholder {
  background: linear-gradient(135deg, var(--primary-light), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  /* Mobile: fixed left thumbnail */
  width: 110px;
  min-width: 110px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  align-self: flex-start;
}

.cat-habits  { background: #E8F5E9; color: #2E7D32; }
.cat-food    { background: #FFF3E0; color: #E65100; }
.cat-training{ background: #E3F2FD; color: #1565C0; }

.card-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-read {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

/* ── No Results ───────────────────────────────────────────────── */
.no-posts {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  grid-column: 1/-1;
}
.no-posts .icon { font-size: 3.5rem; margin-bottom: 12px; }
.no-posts h3 { font-size: 1.1rem; color: var(--brown); margin-bottom: 6px; }

/* ── FAQ Section ──────────────────────────────────────────────── */
.faq-section {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 16px;
}

.faq-inner { max-width: 1200px; margin: 0 auto; }

.faq-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--brown);
  margin-bottom: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--brown);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
  /* Minimum touch target */
  min-height: 52px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--primary-light); }

.faq-item p {
  padding: 14px 18px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 44px 20px;
  padding-bottom: calc(44px + var(--safe-bottom));
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  display: block;
  min-height: unset;
}

.footer-logo span { color: var(--primary); }
.footer-tagline { font-size: 0.9rem; margin-bottom: 24px; }

.footer-cats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-cats a {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  min-height: unset;
}

.footer-cats a:hover { color: var(--primary); }
.footer-copy { font-size: 0.78rem; opacity: 0.45; }

/* ── Single Post Page ─────────────────────────────────────────── */
.post-hero {
  position: relative;
  height: clamp(220px, 45vw, 420px);
  overflow: hidden;
}

.post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25,8,3,0.88) 0%, rgba(25,8,3,0.25) 55%, transparent 100%);
}

.post-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 20px;
  max-width: 860px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.2s;
  padding: 6px 0;
  min-height: unset;
}

.back-link:hover { color: #fff; }

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  color: #fff;
  line-height: 1.2;
  font-weight: 800;
}

.post-meta-bar {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.post-meta-cat { font-size: 0.78rem; font-weight: 700; }
.post-meta-date { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.post-meta-dot  { color: var(--border); flex-shrink: 0; }

/* Post article body — optimized for mobile reading */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.post-body p {
  margin-bottom: 1.35em;
  font-size: clamp(0.97rem, 2.5vw, 1.05rem);
  line-height: 1.85;
  color: #2C1810;
}

.post-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  color: var(--brown);
  margin: 2em 0 0.7em;
  line-height: 1.25;
}

.post-body h3 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.1rem);
  font-weight: 700;
  color: var(--brown);
  margin: 1.6em 0 0.5em;
}

.post-body ul, .post-body ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}

.post-body li {
  margin-bottom: 0.55em;
  line-height: 1.7;
  font-size: clamp(0.95rem, 2.5vw, 1.02rem);
}

.post-body strong { color: var(--brown); font-weight: 700; }

.post-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pull quote / highlight */
.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  margin: 1.5em 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-style: italic;
  color: var(--brown);
}

.post-not-found {
  text-align: center;
  padding: 100px 24px;
}
.post-not-found h1, .post-not-found h2 { font-size: clamp(1.5rem, 5vw, 2rem); color: var(--brown); margin-bottom: 12px; }
.post-not-found p { color: var(--text-muted); margin-bottom: 28px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  min-height: 48px;
  min-width: unset;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

/* ── Loader ───────────────────────────────────────────────────── */
.loader { display: flex; justify-content: center; padding: 60px 24px; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet: 640px + ─────────────────────────────────────────── */
@media (min-width: 640px) {
  .header-inner { padding: 0 24px; height: 68px; }

  .hero { padding: 72px 28px 76px; }

  .category-section { padding: 44px 24px 0; }
  .category-tabs { flex-wrap: wrap; overflow-x: visible; }

  .posts-section { padding: 28px 24px 72px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  /* On tablet, switch back to vertical card layout */
  .post-card { flex-direction: column; }
  .card-image { width: 100%; min-width: unset; height: auto; aspect-ratio: 16/9; border-radius: var(--radius) var(--radius) 0 0; }
  .card-image-placeholder { width: 100%; min-width: unset; aspect-ratio: 16/9; border-radius: var(--radius) var(--radius) 0 0; font-size: 3rem; }
  .card-body { padding: 18px 20px; }
  .card-title { font-size: 1.1rem; }
  .card-excerpt { -webkit-line-clamp: 3; }

  .faq-grid { grid-template-columns: repeat(2, 1fr); }

  .post-hero-content { padding: 28px 32px; }
  .post-meta-bar { padding: 16px 32px; gap: 14px; }
  .post-body { padding: 32px 32px 80px; }
}

/* ── Desktop: 1024px + ───────────────────────────────────────── */
@media (min-width: 1024px) {
  .header-inner { height: 70px; padding: 0 32px; }
  .logo { font-size: 1.45rem; }

  /* Show desktop nav, hide hamburger */
  nav { display: flex !important; }
  .menu-toggle { display: none !important; }

  .hero { padding: 88px 32px 92px; }

  .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
  .post-card:hover .card-read { gap: 8px; }

  .post-hero-content { padding: 40px; }
  .post-meta-bar { padding: 20px 40px; gap: 18px; }
  .post-body { padding: 40px 40px 88px; }
}

/* ── Mobile Nav Drawer ───────────────────────────────────────── */
@media (max-width: 1023px) {
  .menu-toggle { display: flex; }

  nav {
    /* Hidden by default on mobile */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59,35,20,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 190;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  nav.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  nav a {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    padding: 14px 32px;
    border-radius: 100px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    min-height: 52px;
  }

  nav a:hover, nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
  }

  .nav-admin {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    margin-left: 0;
  }
}

/* ── Extra small phones (≤ 380px) ───────────────────────────── */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.6rem; }
  .search-bar button { padding: 14px 14px; font-size: 0.82rem; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Dark mode respect (system) ──────────────────────────────── */
@media (prefers-color-scheme: dark) {
  /* Keep brand colours but soften backgrounds — optional enhancement */
  /* Uncomment to enable dark mode:
  :root {
    --bg: #1A0E08;
    --card-bg: #231208;
    --text: #F5E8DF;
    --text-muted: #C4A090;
    --border: #3D2010;
    --shadow: 0 2px 16px rgba(0,0,0,0.4);
  }
  header { background: #231208; }
  */
}

/* ── Print ────────────────────────────────────────────────────── */
@media print {
  header, footer, .hero, .search-bar, .category-section,
  .faq-section, .post-footer-nav, #readProgress { display: none; }
  .post-body { padding: 0; max-width: 100%; }
  body { font-size: 12pt; }
}
