/*
Theme Name: CozyStitch Crochet Pro
Theme URI: http://everyrecipes.site/
Author: CozyStitch Editorial Design Studio
Author URI: http://everyrecipes.site/
Description: A modern, ultra-fast, high-converting WordPress Theme specifically engineered for Crochet Patterns, Amigurumi tutorials, and Yarn Crafts blogs. Built for US/Global Pinterest traffic, Google Search SEO, and optimized for Google AdSense monetization.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cozystitch-crochet-pro
Tags: blog, craft, crochet, amigurumi, news, full-width-template, grid-layout, two-columns, custom-menu, featured-images, sticky-post, translation-ready
*/

/* ==========================================================================
   1. CSS VARIABLES & DESIGN SYSTEM (CREAM, DUSTY ROSE & BOTANICAL SAGE)
   ========================================================================== */
:root {
  /* Warm Cream, Cocoa Ink, Dusty Rose & Forest Sage Palette */
  --cozy-bg: #FBF5EA;             /* Warm Parchment Cream */
  --cozy-surface: #FFFFFF;        /* Pure White Card Surface */
  --cozy-surface-alt: #FBF5EA;    /* Cream Alt Surface */
  --cozy-border: #EADFCB;         /* Warm Linen Border */
  --cozy-border-hover: #DFCFB4;   /* Hover Border */
  
  --cozy-text-primary: #4A3B34;   /* Warm Cocoa Espresso Ink */
  --cozy-text-secondary: #6B5A50; /* Warm Taupe Muted Text */
  --cozy-text-muted: #8C7A6E;     /* Soft Warm Meta Text */
  
  --cozy-terracotta: #A84F5A;     /* Dusty Berry Rose (Primary Accent) */
  --cozy-terracotta-hover: #8E3F4A; /* Deep Rose Hover */
  --cozy-terracotta-light: #F6DEDA; /* Soft Blush Pink Tint */
  
  --cozy-sage: #4F6B4B;           /* Botanical Forest Sage (Secondary Accent) */
  --cozy-sage-hover: #3E5639;     /* Deep Sage Hover */
  --cozy-sage-light: #E1EBDC;     /* Soft Mint-Sage Tint */
  
  --cozy-gold: #D49A6A;           /* Warm Honey Accent */
  --cozy-dark: #4A3B34;           /* Warm Cocoa Footer Surface */

  /* Typography */
  --font-serif: Georgia, 'Playfair Display', 'Times New Roman', Times, serif;
  --font-sans: system-ui, -apple-system, 'Plus Jakarta Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: Georgia, 'Playfair Display', 'Times New Roman', Times, serif;
  --font-body: system-ui, -apple-system, 'Plus Jakarta Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Elevation Shadows */
  --cozy-shadow-sm: 0 2px 8px rgba(74, 59, 52, 0.06);
  --cozy-shadow-card: 0 2px 10px rgba(74, 59, 52, 0.08);
  --cozy-shadow-hover: 0 10px 24px rgba(74, 59, 52, 0.13);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. BASE RESET & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cozy-bg);
  color: var(--cozy-text-primary);
  font-family: var(--font-sans);
  font-size: 1.125rem; /* 18px for effortless pattern reading */
  line-height: 1.85;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--cozy-terracotta);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover, a:focus {
  color: var(--cozy-terracotta-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--cozy-text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   3. WORDPRESS ADMIN BAR OFFSET FIX (CRITICAL)
   ========================================================================== */
body.admin-bar .site-header {
  top: 32px;
}
body.admin-bar .reading-progress-bar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
  body.admin-bar .reading-progress-bar {
    top: 46px;
  }
}

/* ==========================================================================
   4. TOP READING PROGRESS BAR
   ========================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cozy-terracotta) 0%, var(--cozy-sage) 100%);
  z-index: 99999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* ==========================================================================
   5. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--cozy-surface);
  border-bottom: 1px solid var(--cozy-border);
  box-shadow: 0 4px 15px -4px rgba(120, 80, 60, 0.03);
  transition: top 0.2s ease;
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-svg {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--cozy-text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--cozy-terracotta);
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cozy-sage);
}

/* Primary Navigation Desktop */
.primary-nav-desktop {
  display: flex;
  align-items: center;
}

.primary-menu-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.primary-menu-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cozy-text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.primary-menu-list a:hover {
  background-color: var(--cozy-terracotta-light);
  color: var(--cozy-terracotta);
}

.primary-menu-list .current-menu-item > a,
.primary-menu-list .current-cat > a {
  background-color: var(--cozy-terracotta);
  color: #ffffff;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-btn {
  background: var(--cozy-surface-alt);
  border: 1px solid var(--cozy-border);
  color: var(--cozy-text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-search-btn:hover {
  background: var(--cozy-surface);
  border-color: var(--cozy-terracotta);
  color: var(--cozy-terracotta);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--cozy-sage);
  color: #ffffff;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.btn-header-cta:hover {
  background-color: var(--cozy-sage-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: var(--cozy-surface-alt);
  border: 1px solid var(--cozy-border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--cozy-text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   6. MOBILE OFF-CANVAS DRAWER
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(41, 37, 36, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--cozy-surface);
  box-shadow: -8px 0 30px rgba(41, 37, 36, 0.15);
  z-index: 2010;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--cozy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-close {
  background: var(--cozy-surface-alt);
  border: 1px solid var(--cozy-border);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cozy-text-secondary);
}

.mobile-drawer-body {
  padding: 24px 20px;
  overflow-y: auto;
  flex: 1;
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cozy-text-primary);
  border-radius: var(--radius-sm);
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a {
  background: var(--cozy-terracotta-light);
  color: var(--cozy-terracotta);
}

/* ==========================================================================
   7. MAIN CONTAINER & LAYOUT
   ========================================================================== */
.site-main {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.layout-2-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ==========================================================================
   8. HERO FEATURED PATTERN CARD
   ========================================================================== */
.hero-featured-card {
  background: var(--cozy-surface);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--cozy-shadow-card);
  overflow: hidden;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transition: var(--transition-normal);
}

.hero-featured-card:hover {
  box-shadow: var(--cozy-shadow-hover);
  border-color: var(--cozy-border-hover);
}

.hero-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
}

.hero-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-featured-card:hover .hero-thumb-img {
  transform: scale(1.04);
}

.hero-content {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-terracotta {
  background: var(--cozy-terracotta-light);
  color: var(--cozy-terracotta);
}

.badge-sage {
  background: var(--cozy-sage-light);
  color: var(--cozy-sage);
}

.hero-title {
  font-size: 2.2rem;
  margin: 14px 0 16px;
  line-height: 1.25;
}

.hero-title a {
  color: var(--cozy-text-primary);
}

.hero-title a:hover {
  color: var(--cozy-terracotta);
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--cozy-text-secondary);
  font-size: 0.88rem;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-excerpt {
  color: var(--cozy-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-cozy-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cozy-terracotta);
  color: #ffffff;
  padding: 12px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(224, 122, 95, 0.3);
  transition: var(--transition-fast);
}

.btn-cozy-primary:hover {
  background: var(--cozy-terracotta-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(224, 122, 95, 0.4);
}

/* ==========================================================================
   9. 3-COLUMN PINTEREST-FRIENDLY PATTERN GRID
   ========================================================================== */
.section-heading-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cozy-border);
}

.section-title {
  font-size: 1.85rem;
  color: var(--cozy-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.pattern-card {
  background: var(--cozy-surface);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-md);
  box-shadow: var(--cozy-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.pattern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cozy-shadow-hover);
  border-color: var(--cozy-border-hover);
}

.card-media-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--cozy-surface-alt);
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pattern-card:hover .card-media-img {
  transform: scale(1.06);
}

.card-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-title a {
  color: var(--cozy-text-primary);
}

.card-title a:hover {
  color: var(--cozy-terracotta);
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--cozy-text-secondary);
  margin-bottom: 12px;
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--cozy-text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-link {
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cozy-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-footer-link:hover {
  gap: 10px;
  color: var(--cozy-terracotta-hover);
}

/* ==========================================================================
   10. SINGLE POST CROCHET EDITORIAL STYLING (`single.php`)
   ========================================================================== */
.single-post-card {
  background: var(--cozy-surface);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--cozy-shadow-card);
  padding: 44px;
  margin-bottom: 40px;
}

/* Breadcrumb */
.cozy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--cozy-text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cozy-breadcrumb a {
  color: var(--cozy-text-secondary);
}

.cozy-breadcrumb a:hover {
  color: var(--cozy-terracotta);
}

.breadcrumb-sep {
  opacity: 0.6;
  font-size: 0.75rem;
}

.breadcrumb-curr {
  color: var(--cozy-text-primary);
  font-weight: 600;
}

/* Post Header */
.single-post-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--cozy-text-primary);
}

.single-post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--cozy-text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cozy-border);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Pinterest "Pin It" & Print Action Bar */
.pattern-action-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-pinterest-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #bd081c; /* Official Pinterest Red */
  color: #ffffff;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(189, 8, 28, 0.25);
  transition: var(--transition-fast);
}

.btn-pinterest-pin:hover {
  background-color: #a00718;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-pattern-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--cozy-sage);
  color: #ffffff;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(82, 121, 111, 0.25);
  transition: var(--transition-fast);
}

.btn-pattern-print:hover {
  background-color: var(--cozy-sage-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Single Featured Image Hero */
.single-featured-media {
  position: relative;
  margin-bottom: 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--cozy-shadow-card);
}

.single-featured-media img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

/* Table of Contents (.abp-toc-box) */
.abp-toc-box, .cozy-toc-box {
  background: var(--cozy-surface-alt);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
}

.toc-title {
  font-size: 1.25rem;
  color: var(--cozy-text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  color: var(--cozy-text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.toc-list a:hover {
  color: var(--cozy-terracotta);
}

/* ==========================================================================
   11. CROCHET PATTERN ELEMENTS INSIDE .entry-content
   ========================================================================== */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--cozy-text-primary);
}

/* Pattern Rows & Rounds (h2 & h3) */
.entry-content h2 {
  border-left: 4px solid var(--cozy-terracotta);
  background: var(--cozy-terracotta-light);
  padding: 12px 20px;
  border-radius: 0 12px 12px 0;
  margin: 36px 0 18px;
  font-size: 1.7rem;
}

.entry-content h3 {
  color: var(--cozy-sage);
  font-size: 1.35rem;
  margin: 28px 0 12px;
}

/* Materials & Yarn Table */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cozy-border);
  margin: 28px 0;
  background: var(--cozy-surface);
}

.entry-content table thead th {
  background-color: var(--cozy-sage);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border: none;
}

.entry-content table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--cozy-border);
  font-size: 0.98rem;
  color: var(--cozy-text-primary);
}

.entry-content table tbody tr:nth-child(even) {
  background-color: var(--cozy-bg);
}

.entry-content table tbody tr:last-child td {
  border-bottom: none;
}

/* Stitch Tips & Gauge Callout Box (.pro-tip-box) */
.pro-tip-box {
  background-color: var(--cozy-sage-light);
  border-left: 5px solid var(--cozy-sage);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 32px 0;
  color: var(--cozy-text-primary);
}

.pro-tip-box strong {
  color: var(--cozy-sage);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 6px;
}

.entry-content ul, .entry-content ol {
  margin: 18px 0 24px 28px;
  color: var(--cozy-text-primary);
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content blockquote {
  border-left: 4px solid var(--cozy-gold);
  background: var(--cozy-surface-alt);
  padding: 18px 24px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  margin: 28px 0;
  color: var(--cozy-text-secondary);
}

/* E-E-A-T Crochet Designer Author Box */
.cozy-author-box {
  background: var(--cozy-surface-alt);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 48px 0 36px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.author-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cozy-surface);
  box-shadow: 0 4px 12px rgba(120, 80, 60, 0.1);
  flex-shrink: 0;
}

.author-info-wrap {
  flex: 1;
}

.author-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cozy-sage);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.author-box-name {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.author-box-bio {
  font-size: 0.95rem;
  color: var(--cozy-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Post Pagination (Previous/Next) */
.post-pagination-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid var(--cozy-border);
}

.nav-post-item {
  display: flex;
  flex-direction: column;
}

.nav-post-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cozy-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.nav-post-title {
  font-size: 1.05rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--cozy-text-primary);
}

.nav-post-title:hover {
  color: var(--cozy-terracotta);
}

/* Related Patterns Grid */
.related-patterns-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--cozy-border);
}

.related-title {
  font-size: 1.7rem;
  margin-bottom: 24px;
}

/* ==========================================================================
   12. SIDEBAR STYLING
   ========================================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: var(--cozy-surface);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-md);
  box-shadow: var(--cozy-shadow-card);
  padding: 28px;
}

.widget-title {
  font-size: 1.15rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cozy-terracotta-light);
  position: relative;
}

.sidebar-categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-categories-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--cozy-terracotta-light);
  color: var(--cozy-terracotta-hover);
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.sidebar-categories-list li:nth-child(even) a {
  background: var(--cozy-sage-light);
  color: var(--cozy-sage-hover);
}

.sidebar-categories-list a:hover {
  transform: translateX(3px);
  filter: brightness(0.96);
}

.cat-count {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.85;
}

/* Sticky AdSense Container (Hidden by default until ads are active) */
.ad-container {
  display: none !important;
  background: var(--cozy-surface-alt);
  border: 1px dashed var(--cozy-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin: 24px auto;
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cozy-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ==========================================================================
   13. LEGAL & STATIC PAGE LAYOUT (`page.php`)
   ========================================================================== */
.static-page-card {
  background: var(--cozy-surface);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--cozy-shadow-card);
  padding: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.6rem;
  margin-bottom: 12px;
  color: var(--cozy-text-primary);
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--cozy-text-secondary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cozy-border);
}

/* Contact Form Styling */
.cozy-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cozy-text-primary);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--cozy-bg);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--cozy-text-primary);
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--cozy-terracotta);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

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

.btn-submit-contact {
  background-color: var(--cozy-terracotta);
  color: #ffffff;
  border: none;
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(224, 122, 95, 0.3);
  transition: var(--transition-fast);
}

.btn-submit-contact:hover {
  background-color: var(--cozy-terracotta-hover);
  transform: translateY(-2px);
}

.alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
}

/* ==========================================================================
   14. SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--cozy-dark);
  color: #F3E9DB;
  margin-top: auto;
  border-top: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 20px 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-brand-title span {
  color: #F6DEDA;
}

.footer-desc {
  font-size: 0.94rem;
  color: #E4D6C3;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 18px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F3E9DB;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--cozy-terracotta);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #F3E9DB;
  font-size: 0.94rem;
}

.footer-links-list a:hover {
  color: #F6DEDA;
  text-decoration: underline;
}

.footer-bottom-bar {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #E4D6C3;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-back-to-top {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #F3E9DB;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-back-to-top:hover {
  background: var(--cozy-terracotta);
  color: #ffffff;
}

/* ==========================================================================
   15. GDPR / CCPA COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(41, 37, 36, 0.18);
  padding: 20px 28px;
  z-index: 9999;
  display: none;
}

.cookie-consent-banner.show {
  display: block;
  animation: slideUpCookie 0.4s ease forwards;
}

@keyframes slideUpCookie {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text-box {
  flex: 1;
  min-width: 280px;
}

.cookie-text-box p {
  font-size: 0.88rem;
  color: var(--cozy-text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.cookie-policy-link {
  color: var(--cozy-terracotta);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cookie-accept {
  background-color: var(--cozy-terracotta);
  color: #ffffff;
  border: none;
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cookie-accept:hover {
  background-color: var(--cozy-terracotta-hover);
}

.btn-cookie-decline {
  background: var(--cozy-surface-alt);
  border: 1px solid var(--cozy-border);
  color: var(--cozy-text-secondary);
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cookie-decline:hover {
  background: #ffffff;
  color: var(--cozy-text-primary);
}

/* ==========================================================================
   16. PRINT STYLES (@media print) FOR CLEAN CROCHET PATTERN PRINTING
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .site-footer,
  .reading-progress-bar,
  .pattern-action-bar,
  .site-sidebar,
  .related-patterns-section,
  .cookie-consent-banner,
  .cozy-modal-overlay,
  .lang-switcher-wrap,
  .comments-area,
  .ad-container,
  .post-pagination-row,
  .btn-header-cta,
  .mobile-menu-toggle {
    display: none !important;
  }

  .site-main {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .layout-2-col {
    display: block !important;
  }

  .single-post-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .entry-content table {
    border: 1px solid #000 !important;
    page-break-inside: avoid;
  }

  .entry-content table thead th {
    background: #e2e8f0 !important;
    color: #000 !important;
  }

  .entry-content h2, .entry-content h3 {
    page-break-after: avoid;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}

/* ==========================================================================
   17. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .layout-2-col {
    grid-template-columns: 1fr;
  }
  .pattern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-featured-card {
    grid-template-columns: 1fr;
  }
  .hero-thumb-link {
    min-height: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  .primary-nav-desktop,
  .btn-header-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .single-post-title {
    font-size: 2.1rem;
  }
  .hero-content {
    padding: 28px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .single-post-card, .static-page-card {
    padding: 24px;
  }
  .cozy-author-box {
    flex-direction: column;
    text-align: center;
  }
  .cozy-contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pattern-grid {
    grid-template-columns: 1fr;
  }
  .post-pagination-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   18. HEADER LANGUAGE SWITCHER & SEAMLESS GOOGLE TRANSLATE
   ========================================================================== */
.lang-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--cozy-bg);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  transition: var(--transition-fast);
}

.lang-switcher-wrap:hover {
  border-color: var(--cozy-terracotta);
}

.lang-globe-icon {
  font-size: 0.85rem;
  color: var(--cozy-sage);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cozy-text-primary);
  cursor: pointer;
  padding-right: 4px;
  outline: none;
}

/* Hide ALL Google Translate banners, bars, popups, tooltips & spinners 100% */
body > .skiptranslate,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe[id$=".container"],
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-yAWNEb-L7lbkb,
.VIpgJd-yAWNEb-hvhgNd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
#goog-gt-tt,
#goog-gt-vt,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
.goog-tooltip,
.goog-tooltip:hover,
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
}

html,
body {
  top: 0 !important;
  margin-top: 0 !important;
}

font,
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ==========================================================================
   19. FREE CROCHET RELEASE NEWSLETTER POPUP MODAL
   ========================================================================== */
.cozy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(41, 37, 36, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cozy-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cozy-modal-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--cozy-border);
  box-shadow: 0 24px 60px -12px rgba(41, 37, 36, 0.28);
  overflow: hidden;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cozy-modal-overlay.active .cozy-modal-card {
  transform: translateY(0) scale(1);
}

.cozy-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cozy-border);
  background: #ffffff;
  color: var(--cozy-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition-fast);
}

[dir="rtl"] .cozy-modal-close {
  right: auto;
  left: 14px;
}

.cozy-modal-close:hover {
  background: var(--cozy-terracotta-light);
  color: var(--cozy-terracotta);
  border-color: var(--cozy-terracotta);
  transform: rotate(90deg);
}

.cozy-modal-header {
  background: linear-gradient(180deg, #fdf7f2 0%, #ffffff 100%);
  padding: 34px 30px 16px;
  text-align: center;
}

.cozy-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cozy-terracotta-light);
  color: var(--cozy-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 6px 16px rgba(224, 122, 95, 0.18);
}

.cozy-modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--cozy-text-primary);
  margin: 0 0 10px;
}

.cozy-modal-subtitle {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--cozy-text-secondary);
  margin: 0;
}

.cozy-modal-body {
  padding: 18px 30px 28px;
  text-align: center;
}

.cozy-modal-input-wrap {
  position: relative;
  margin-bottom: 12px;
}

.cozy-modal-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cozy-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

[dir="rtl"] .cozy-modal-input-wrap i {
  left: auto;
  right: 16px;
}

.cozy-modal-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--cozy-border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--cozy-text-primary);
  background: var(--cozy-bg);
  outline: none;
  transition: var(--transition-fast);
}

[dir="rtl"] .cozy-modal-input-wrap input {
  padding: 14px 44px 14px 16px;
}

.cozy-modal-input-wrap input:focus {
  border-color: var(--cozy-terracotta);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.12);
}

.btn-cozy-modal-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: var(--cozy-terracotta);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(224, 122, 95, 0.45);
  transition: var(--transition-fast);
}

.btn-cozy-modal-submit:hover {
  background: var(--cozy-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(224, 122, 95, 0.55);
}

.btn-cozy-modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.cozy-sub-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.cozy-sub-msg.is-success {
  background: #eef7f3;
  color: #2c5e4f;
  border: 1px solid #cce3d9;
}

.cozy-sub-msg.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.cozy-modal-privacy {
  margin: 14px 0 8px;
  font-size: 0.78rem;
  color: var(--cozy-text-muted);
}

.cozy-modal-dismiss {
  background: transparent;
  border: none;
  color: var(--cozy-text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}

.cozy-modal-dismiss:hover {
  color: var(--cozy-text-primary);
}

@media (max-width: 560px) {
  .cozy-modal-header {
    padding: 28px 20px 14px;
  }
  .cozy-modal-body {
    padding: 14px 20px 22px;
  }
  .cozy-modal-title {
    font-size: 1.4rem;
  }
  .lang-switcher-wrap {
    padding: 4px 8px;
  }
}

/* ==========================================================================
   20. BLUSH & SAGE EDITORIAL HERO, CATEGORY HIGHLIGHTS & ABOUT STRIP
   ========================================================================== */
.fcs-hero {
  background: linear-gradient(180deg, var(--cozy-terracotta-light) 0%, var(--cozy-bg) 100%);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -36px;
  padding: 52px 20px 40px;
  text-align: center;
  margin-bottom: 12px;
}

.fcs-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.fcs-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.9rem);
  color: var(--cozy-text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
}

.fcs-hero-lead {
  max-width: 620px;
  margin: 0 auto 24px;
  font-size: 1.08rem;
  color: var(--cozy-text-secondary);
  line-height: 1.65;
}

.fcs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.fcs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--cozy-terracotta);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(168, 79, 90, 0.22);
}

.fcs-btn:hover {
  background: var(--cozy-terracotta-hover);
  transform: translateY(-2px);
}

.fcs-btn-sage {
  background: var(--cozy-sage);
  box-shadow: 0 4px 12px rgba(79, 107, 75, 0.22);
}

.fcs-btn-sage:hover {
  background: var(--cozy-sage-hover);
}

.fcs-search-form {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  gap: 8px;
}

.fcs-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--cozy-border);
  border-radius: 999px;
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--cozy-text-primary);
  outline: none;
  box-shadow: var(--cozy-shadow-sm);
}

.fcs-search-form input[type="search"]:focus {
  border-color: var(--cozy-sage);
  box-shadow: 0 0 0 3px rgba(79, 107, 75, 0.14);
}

.fcs-search-form button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--cozy-sage);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.fcs-search-form button:hover {
  background: var(--cozy-sage-hover);
}

/* 2-Column Featured Category Highlight Cards */
.fcs-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 26px 0 38px;
}

.fcs-cat-card {
  display: block;
  padding: 28px 30px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--cozy-text-primary);
  box-shadow: var(--cozy-shadow-card);
  transition: var(--transition-normal);
}

.fcs-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cozy-shadow-hover);
}

.fcs-cat-card h2 {
  font-size: 1.55rem;
  margin: 0 0 8px;
  color: var(--cozy-text-primary);
}

.fcs-cat-card p {
  margin: 0 0 14px;
  color: var(--cozy-text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

.fcs-cat-card .fcs-more {
  font-weight: 700;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fcs-cat-card.is-rose {
  background: var(--cozy-terracotta-light);
}

.fcs-cat-card.is-rose .fcs-more {
  color: var(--cozy-terracotta-hover);
}

.fcs-cat-card.is-sage {
  background: var(--cozy-sage-light);
}

.fcs-cat-card.is-sage .fcs-more {
  color: var(--cozy-sage-hover);
}

/* Card Body Category Pill Badge (Rose / Sage) */
.fcs-card-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--cozy-terracotta-light);
  color: var(--cozy-terracotta-hover);
  margin-bottom: 10px;
}

.fcs-card-badge.is-sage {
  background: var(--cozy-sage-light);
  color: var(--cozy-sage-hover);
}

/* About Strip Card Above Footer */
.fcs-about-strip {
  background: var(--cozy-surface);
  border: 1px solid var(--cozy-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 36px 0 16px;
  box-shadow: var(--cozy-shadow-card);
}

.fcs-about-strip h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.fcs-about-strip p {
  margin: 0;
  color: var(--cozy-text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.fcs-about-strip a {
  font-weight: 700;
  text-decoration: underline;
}

/* Full-Bleed Blush / Sage Page Header for Archives & Search */
.fcs-page-head {
  background: var(--cozy-terracotta-light);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -36px;
  margin-bottom: 36px;
  padding: 40px 20px 32px;
  text-align: center;
}

.fcs-page-head.is-sage {
  background: var(--cozy-sage-light);
}

.fcs-page-head-inner {
  max-width: 720px;
  margin: 0 auto;
}

.fcs-page-head h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  margin-bottom: 10px;
  color: var(--cozy-text-primary);
}

.fcs-page-head p {
  margin: 0 auto;
  color: var(--cozy-text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .fcs-cat-grid {
    grid-template-columns: 1fr;
  }
  .fcs-hero {
    padding: 36px 16px 28px;
  }
  .fcs-search-form {
    flex-direction: column;
  }
  .fcs-search-form button {
    width: 100%;
  }
}
