/*
Theme Name: Przepiso.pl - SEO & Pinterest Recipe Theme
Theme URI: https://przepiso.pl
Author: Przepiso Team
Author URI: https://przepiso.pl
Description: القالب الاحترافي لمدونة الوصفات البولندية Przepiso.pl — مصمم خصيصاً لتصدر نتائج بحث جوجل (SEO)، التكامل التام مع Rank Math، مضاعفة زيارات Pinterest، وسرعة Core Web Vitals 100/100.
Version: 2.8.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: przepiso
Tags: food-and-drink, blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, seo-ready, schema-org
*/

:root {
  --p-primary: #C84B31;
  --p-primary-hover: #A83820;
  --p-primary-light: #FCEEE9;
  --p-secondary: #2C5735;
  --p-secondary-light: #EBF3ED;
  --p-pinterest: #E60023;
  --p-pinterest-hover: #AD081B;
  --p-bg: #FAF7F2;
  --p-surface: #FFFFFF;
  --p-surface-alt: #F3EFE6;
  --p-text: #1F2421;
  --p-text-muted: #48524D;
  --p-border: #E6E0D4;
  --p-gold: #F59E0B;
  --p-radius-sm: 8px;
  --p-radius-md: 14px;
  --p-radius-lg: 22px;
  --p-shadow-sm: 0 2px 10px rgba(31, 36, 33, 0.05);
  --p-shadow-md: 0 8px 26px rgba(31, 36, 33, 0.08);
  --p-shadow-lg: 0 16px 40px rgba(31, 36, 33, 0.12);
  --p-font-heading: 'Playfair Display', 'Lora', Georgia, serif;
  --p-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --p-font-article: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --p-container: 1260px;

  /* Aliases for inline component compatibility */
  --text-main: #1F2421;
  --text-muted: #3D4742;
  --border-color: #E6E0D4;
  --shadow-sm: 0 2px 10px rgba(31, 36, 33, 0.05);
  --shadow-md: 0 8px 26px rgba(31, 36, 33, 0.08);
  --shadow-lg: 0 16px 40px rgba(31, 36, 33, 0.12);
  --font-heading: var(--p-font-heading);
  --font-body: var(--p-font-body);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

ul, ol {
  list-style-position: inside;
}

.container {
  width: 100%;
  max-width: var(--p-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* Accessibility & Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--p-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--p-radius-sm);
  z-index: 99999;
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   TOP BAR & STICKY HEADER (WITH WP ADMIN BAR OFFSET FIX)
   ========================================================================== */
.top-bar {
  background: var(--p-text);
  color: #F3EFE6;
  font-size: 0.81rem;
  padding: 0.45rem 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.top-bar-tagline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  white-space: nowrap;
}
.pl-flag-badge {
  display: inline-flex;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  white-space: nowrap;
}
.top-bar-links a:hover {
  color: #FF8E72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
}

/* Offset sticky header when WordPress Admin Bar is visible */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
@media screen and (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
  flex-wrap: nowrap;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--p-primary), #E06D53);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--p-font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(200, 75, 49, 0.28);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.brand-name {
  font-family: var(--p-font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--p-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-name span {
  color: var(--p-primary);
}
.brand-sub {
  font-size: 0.7rem;
  color: var(--p-text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Main Navigation - Single Line, Zero Wrapping */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: nowrap;
}
.main-nav li {
  flex-shrink: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.89rem;
  color: var(--p-text);
  white-space: nowrap;
  line-height: 1.2;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav a.active {
  background: var(--p-primary-light);
  color: var(--p-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.btn-search-toggle {
  background: var(--p-surface-alt);
  border: 1px solid var(--p-border);
  color: var(--p-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-search-toggle:hover {
  background: var(--p-primary);
  color: #fff;
  border-color: var(--p-primary);
}

.btn-pinterest-header {
  background: var(--p-pinterest);
  color: #fff;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(230, 0, 35, 0.22);
}
.btn-pinterest-header:hover {
  background: var(--p-pinterest-hover);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--p-text);
  flex-shrink: 0;
}

/* Search Bar Drawer */
.header-search-drawer {
  display: none;
  background: var(--p-surface);
  border-top: 1px solid var(--p-border);
  padding: 1.15rem 0;
}
.header-search-drawer.is-open {
  display: block;
}
.search-form-modern {
  display: flex;
  gap: 0.6rem;
  max-width: 720px;
  margin: 0 auto;
}
.search-form-modern input[type="search"] {
  flex: 1;
  padding: 0.82rem 1.25rem;
  border: 2px solid var(--p-border);
  border-radius: 999px;
  font-family: var(--p-font-body);
  font-size: 0.98rem;
  background: var(--p-bg);
  color: var(--p-text);
  outline: none;
}
.search-form-modern input[type="search"]:focus {
  border-color: var(--p-primary);
  background: #fff;
}
.search-form-modern button {
  background: var(--p-primary);
  color: #fff;
  border: none;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.search-form-modern button:hover {
  background: var(--p-primary-hover);
}

/* ==========================================================================
   HERO SECTION (HOMEPAGE)
   ========================================================================== */
.hero-section {
  padding: 2.75rem 0 2.5rem;
  background: radial-gradient(circle at top right, #FCEEE9 0%, var(--p-bg) 62%);
  border-bottom: 1px solid var(--p-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--p-secondary-light);
  color: var(--p-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: var(--p-font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  color: var(--p-text);
  margin-bottom: 1rem;
}
.hero-title span {
  color: var(--p-primary);
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--p-text-muted);
  margin-bottom: 1.6rem;
  max-width: 580px;
}

.hero-search-box {
  background: #fff;
  padding: 0.42rem;
  border-radius: 999px;
  box-shadow: var(--p-shadow-md);
  border: 1px solid var(--p-border);
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin-bottom: 1.2rem;
}
.hero-search-box input {
  flex: 1;
  border: none;
  padding: 0.65rem 1.1rem;
  font-size: 0.96rem;
  font-family: var(--p-font-body);
  outline: none;
  background: transparent;
  min-width: 0;
}
.hero-search-box button {
  background: var(--p-primary);
  color: #fff;
  border: none;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-search-box button:hover {
  background: var(--p-primary-hover);
}

.hero-popular-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--p-text);
}
.hero-popular-tags span {
  font-weight: 700;
  color: #1F2421;
}
.hero-popular-tags a {
  background: #fff;
  border: 1px solid #D1C9BC;
  padding: 0.24rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  color: #1F2421;
}
.hero-popular-tags a:hover {
  border-color: #8C240E;
  color: #8C240E;
}

.hero-featured-card {
  background: #fff;
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  box-shadow: var(--p-shadow-lg);
  border: 1px solid var(--p-border);
  position: relative;
}
.hero-featured-img {
  height: 290px;
  background: linear-gradient(135deg, #D95D39 0%, #3E6B48 100%);
  position: relative;
  overflow: hidden;
}
.hero-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-featured-card:hover .hero-featured-img img {
  transform: scale(1.04);
}
.hero-featured-body {
  padding: 1.5rem;
}

/* ==========================================================================
   4 PILLAR CATEGORIES SECTION
   ========================================================================== */
.categories-section {
  padding: 3rem 0 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--p-font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--p-text);
  position: relative;
}
.section-subtitle {
  color: var(--p-text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
.section-link {
  color: #7A1E0B !important;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section-link:hover {
  color: #4A0E03 !important;
  text-decoration: underline;
}

.categories-section-header {
  align-items: flex-end;
  margin-bottom: 2.5rem !important;
}

.categories-kicker-badge {
  margin-bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--p-border);
  color: var(--p-text);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(24, 28, 25, 0.04);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.section-pill-cta:hover {
  border-color: var(--p-primary);
  color: var(--p-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 75, 49, 0.12);
}

.categories-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.65rem;
}

.category-pillar-card {
  background: #ffffff;
  border: 1px solid rgba(230, 221, 211, 0.95);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(31, 26, 23, 0.05), 0 2px 6px rgba(31, 26, 23, 0.03);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.category-pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C84B31 0%, #E09F3E 50%, #2D5A27 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.category-pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(31, 26, 23, 0.11), 0 6px 16px rgba(200, 75, 49, 0.08);
  border-color: rgba(200, 75, 49, 0.45);
}

.category-pillar-card:hover::before {
  opacity: 1;
}

.category-pillar-media-wrap {
  position: relative;
}

.category-pillar-thumb {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: var(--p-surface-alt);
}

.category-pillar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-pillar-card:hover .category-pillar-thumb img {
  transform: scale(1.09);
}

.category-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 23, 21, 0.32) 0%,
    rgba(20, 23, 21, 0.08) 45%,
    rgba(20, 23, 21, 0.62) 100%
  );
  pointer-events: none;
}

.category-top-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.45rem;
  z-index: 3;
}

.category-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(22, 25, 23, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem 0.25rem 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.category-kicker-pill .kicker-num {
  background: linear-gradient(135deg, #E09F3E 0%, #C84B31 100%);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  line-height: 1.25;
}

.category-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1F1A17;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.68rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.category-count-badge .count-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2D5A27;
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.18);
}

/* Floating Medallion Emblem Bridging Image & Card Body */
.category-pillar-icon {
  position: absolute;
  bottom: -24px;
  left: 1.4rem;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #D95338 0%, #B33B22 100%);
  color: #ffffff;
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(200, 75, 49, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 4;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.category-pillar-icon svg {
  width: 22px;
  height: 22px;
}

.category-pillar-card:hover .category-pillar-icon {
  transform: translateY(-4px) scale(1.06) rotate(-3deg);
  background: linear-gradient(135deg, #E25D41 0%, #9E2F18 100%);
  box-shadow: 0 14px 26px rgba(200, 75, 49, 0.42);
}

.category-pillar-body {
  padding: 2.15rem 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF8 100%);
}

.category-title-row {
  margin-bottom: 0.65rem;
}

.category-pillar-card h3 {
  font-family: var(--p-font-heading);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: #1F1A17;
  transition: color 0.22s ease;
}

.category-pillar-card:hover h3 {
  color: var(--p-primary);
}

.category-title-accent {
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--p-primary) 0%, #E09F3E 100%);
  transition: width 0.3s ease;
}

.category-pillar-card:hover .category-title-accent {
  width: 58px;
}

.category-pillar-card .category-desc {
  font-size: 0.88rem;
  color: #5C554E;
  margin-bottom: 1.05rem;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.15rem;
}

.category-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.cat-subtag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: #FAF6F0;
  border: 1px solid #EAE0D5;
  color: #4A433C;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.cat-subtag-chip .chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D98A3C;
  display: inline-block;
}

.category-pillar-card:hover .cat-subtag-chip {
  background: #FFF7F4;
  border-color: rgba(200, 75, 49, 0.24);
  color: #2B241E;
}

/* Sleek Single-Line Action Bar Footer */
.category-pillar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #FAF6F0;
  border: 1px solid #EDE3D7;
  border-radius: 14px;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #1F1A17;
  transition: all 0.28s ease;
  margin-top: auto;
}

.category-cta-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.category-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #E6DDD3;
  color: var(--p-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-pillar-card:hover .category-pillar-meta {
  background: #FFF3EE;
  border-color: rgba(200, 75, 49, 0.32);
}

.category-pillar-card:hover .category-cta-text {
  color: var(--p-primary);
}

.category-pillar-card:hover .category-arrow-circle {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 6px 14px rgba(200, 75, 49, 0.28);
}

/* ==========================================================================
   RECIPE CARDS & GRID
   ========================================================================== */
.recipes-section {
  padding: 2.5rem 0;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.recipe-card {
  background: var(--p-surface);
  border-radius: var(--p-radius-md);
  overflow: hidden;
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--p-shadow-md);
}

.recipe-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--p-surface-alt);
  overflow: hidden;
}
.recipe-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.recipe-card:hover .recipe-card-thumb img {
  transform: scale(1.06);
}

.recipe-card-cat {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(31, 36, 33, 0.86);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}
.recipe-card-cat:hover {
  background: var(--p-primary);
  color: #fff;
}

/* Pinterest Floating Pin Button on Cards & Post Images */
.pin-it-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--p-pinterest);
  color: #fff !important;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.35);
  opacity: 0.96;
  transition: transform 0.2s ease, background 0.2s ease;
}
.pin-it-btn:hover {
  background: var(--p-pinterest-hover);
  transform: scale(1.05);
}

.recipe-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-card-meta-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--p-text-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.meta-stars {
  color: var(--p-gold);
  font-weight: 700;
}

.recipe-card-title {
  font-family: var(--p-font-heading);
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  color: var(--p-text);
}
.recipe-card-title a:hover {
  color: var(--p-primary);
}

.recipe-card-excerpt {
  font-size: 0.9rem;
  color: var(--p-text-muted);
  margin-bottom: 1.15rem;
  flex: 1;
}

.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--p-border);
  font-size: 0.83rem;
  font-weight: 700;
}
.read-recipe-link {
  color: var(--p-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.difficulty-badge {
  background: var(--p-secondary-light);
  color: var(--p-secondary);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* ==========================================================================
   SINGLE RECIPE POST & LAYOUT WITH SIDEBAR
   ========================================================================== */
.breadcrumbs-bar {
  background: var(--p-surface-alt);
  border-bottom: 1px solid var(--p-border);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--p-text-muted);
}
.breadcrumbs-bar a {
  color: var(--p-text);
  font-weight: 600;
}
.breadcrumbs-bar a:hover {
  color: var(--p-primary);
}
.rank-math-breadcrumb p {
  margin: 0;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.single-post-article {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--p-shadow-sm);
}

.single-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.single-cat-badges a {
  background: var(--p-primary-light);
  color: var(--p-primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.single-title {
  font-family: var(--p-font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.22;
  color: var(--p-text);
  margin-bottom: 1rem;
}

.single-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--p-border);
  font-size: 0.88rem;
  color: var(--p-text-muted);
}

/* Quick Action Buttons: Jump to Recipe, Print, Pin It */
.recipe-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-jump-recipe {
  background: var(--p-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 75, 49, 0.3);
}
.btn-jump-recipe:hover {
  background: var(--p-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-print-recipe {
  background: var(--p-surface-alt);
  color: var(--p-text);
  border: 1px solid var(--p-border);
}
.btn-print-recipe:hover {
  background: var(--p-border);
}
.btn-pin-recipe {
  background: var(--p-pinterest);
  color: #fff;
}
.btn-pin-recipe:hover {
  background: var(--p-pinterest-hover);
  color: #fff;
}

.single-featured-figure {
  position: relative;
  border-radius: var(--p-radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--p-shadow-md);
}
.single-featured-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Auto Table of Contents (Spis treści) */
.toc-box {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-left: 4px solid var(--p-primary);
  border-radius: var(--p-radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.toc-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--p-text);
}
.toc-box ol {
  margin: 0;
  padding-left: 1.2rem;
  list-style-position: outside;
}
.toc-box li {
  margin-bottom: 0.35rem;
  font-size: 0.93rem;
}
.toc-box a {
  color: var(--p-text-muted);
  font-weight: 500;
}
.toc-box a:hover {
  color: var(--p-primary);
  text-decoration: underline;
}

/* Entry Content Typography */
.entry-content {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--p-text);
}
.entry-content h2 {
  font-family: var(--p-font-heading);
  font-size: 1.65rem;
  margin: 2.2rem 0 1rem;
  color: var(--p-text);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--p-primary-light);
}
.entry-content h3 {
  font-family: var(--p-font-heading);
  font-size: 1.3rem;
  margin: 1.75rem 0 0.75rem;
}
.entry-content p {
  margin-bottom: 1.25rem;
}
.entry-content ul, .entry-content ol {
  margin: 0 0 1.5rem 1.25rem;
  list-style-position: outside;
}
.entry-content li {
  margin-bottom: 0.5rem;
}
.entry-content blockquote {
  background: var(--p-secondary-light);
  border-left: 4px solid var(--p-secondary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--p-radius-sm);
  margin: 1.5rem 0;
  font-style: italic;
}

/* ==========================================================================
   INTERACTIVE RECIPE CARD (KARTA PRZEPISU - SEO & SCHEMA)
   ========================================================================== */
.przepiso-recipe-card {
  background: var(--p-bg);
  border: 2px solid var(--p-primary);
  border-radius: var(--p-radius-lg);
  margin-top: 3rem;
  overflow: hidden;
  box-shadow: var(--p-shadow-md);
}

.recipe-card-header-box {
  background: linear-gradient(135deg, var(--p-primary) 0%, #A83820 100%);
  color: #fff;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.recipe-card-header-box h2 {
  font-family: var(--p-font-heading);
  font-size: 1.65rem;
  color: #fff;
  margin: 0 0 0.35rem 0;
  border: none;
  padding: 0;
}
.recipe-card-header-box p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.recipe-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--p-border);
  text-align: center;
}
.stat-box {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--p-border);
}
.stat-box:last-child {
  border-right: none;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--p-text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.stat-value {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--p-text);
}

.recipe-card-inner {
  padding: 2rem;
}

.ingredients-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ingredients-header h3 {
  font-family: var(--p-font-heading);
  font-size: 1.4rem;
  margin: 0;
}

.portion-scaler {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.25rem;
}
.portion-scaler span {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 0.6rem;
  color: var(--p-text-muted);
}
.btn-scale {
  border: none;
  background: transparent;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--p-text);
}
.btn-scale.active {
  background: var(--p-primary);
  color: #fff;
}

.ingredients-list {
  list-style: none !important;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.ingredients-list li {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease;
  margin: 0 !important;
}
.ingredients-list li:hover {
  border-color: var(--p-primary);
}
.ingredients-list li.checked {
  text-decoration: line-through;
  opacity: 0.6;
  background: var(--p-surface-alt);
}
.ingredients-list input[type="checkbox"] {
  accent-color: var(--p-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.steps-list {
  list-style: none !important;
  margin: 1rem 0 2rem 0 !important;
  padding: 0 !important;
  counter-reset: step-counter;
}
.steps-list li {
  counter-increment: step-counter;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 1.25rem 1.35rem 1.25rem 4rem;
  position: relative;
  margin-bottom: 1rem !important;
}
.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1.15rem;
  top: 1.2rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--p-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-tips-box {
  background: var(--p-secondary-light);
  border: 1px solid #C5DEC9;
  border-radius: var(--p-radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.recipe-tips-box h4 {
  color: var(--p-secondary);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

/* Pinterest Banner inside Recipe Card */
.pinterest-cta-banner {
  background: #FFF0F3;
  border: 1px solid #FFCCD5;
  border-radius: var(--p-radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Rating Box */
.recipe-rating-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: var(--p-radius-sm);
  border: 1px solid var(--p-border);
}
.star-buttons {
  display: inline-flex;
  gap: 0.25rem;
}
.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #D1D5DB;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-btn:hover,
.star-btn.active {
  color: var(--p-gold);
  transform: scale(1.12);
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.site-sidebar {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
body.admin-bar .site-sidebar {
  top: 130px;
}
.sidebar-widget {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 1.5rem;
  box-shadow: var(--p-shadow-sm);
}
.widget-title {
  font-family: var(--p-font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--p-primary-light);
}
.sidebar-cat-list {
  list-style: none;
}
.sidebar-cat-list li {
  margin-bottom: 0.5rem;
}
.sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: var(--p-bg);
  border-radius: var(--p-radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}
.sidebar-cat-list a:hover {
  background: var(--p-primary);
  color: #fff;
}

/* ==========================================================================
   ARCHIVE / CATEGORY HEADER
   ========================================================================== */
.archive-hero {
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-border);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.archive-title {
  font-family: var(--p-font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.6rem;
}
.archive-description {
  color: var(--p-text-muted);
  max-width: 780px;
  font-size: 1.02rem;
}

/* Pagination */
.pagination-wrap {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  font-weight: 700;
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--p-primary);
  color: #fff;
  border-color: var(--p-primary);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background: #181C19;
  color: #D8E0DC;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h4 {
  font-family: var(--p-font-heading);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.55rem;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.footer-col a:hover {
  color: #FF8E72;
}
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8F9994;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1120px) {
  .brand-sub {
    display: none;
  }
  .main-nav a {
    padding: 0.45rem 0.65rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 1024px) {
  .categories-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }
  .site-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .top-bar-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--p-surface);
    border-bottom: 1px solid var(--p-border);
    padding: 1rem 1.25rem;
    box-shadow: var(--p-shadow-md);
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav a {
    border-radius: var(--p-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .btn-pinterest-header span {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .categories-grid-4,
  .recipes-grid,
  .ingredients-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .recipe-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-box {
    border-bottom: 1px solid var(--p-border);
  }
  .single-post-article {
    padding: 1.35rem;
  }
  .recipe-card-header-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   UPGRADED SINGLE ARTICLE, ARCHIVE HUB & LEGAL PAGES (v1.2.0)
   ========================================================================== */

/* 1. Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10001;
}
body.admin-bar .reading-progress-container {
  top: 32px;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--p-primary), var(--p-gold));
  transition: width 0.1s ease-out;
}

/* 2. Upgraded Single Post Header */
.verified-recipe-badge {
  background: var(--p-secondary-light);
  color: var(--p-secondary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}
.difficulty-pill-top {
  background: var(--p-surface-alt);
  color: var(--p-text);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--p-border);
}
.single-lead-excerpt {
  font-size: 1.1rem;
  color: var(--p-text-muted);
  line-height: 1.65;
  margin-bottom: 1.35rem;
  padding-left: 1rem;
  border-left: 3px solid var(--p-primary);
}
.single-author-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  margin-bottom: 1.5rem;
}
.author-mini-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--p-primary);
  color: #fff;
  font-family: var(--p-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-label {
  display: block;
  font-size: 0.88rem;
  color: var(--p-text);
}
.author-date {
  display: block;
  font-size: 0.78rem;
  color: var(--p-text-muted);
}
.meta-pills-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.meta-stat-pill {
  background: #fff;
  border: 1px solid var(--p-border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-copy-link {
  background: #fff;
  color: var(--p-text);
  border: 1px solid var(--p-border);
}
.btn-copy-link:hover {
  border-color: var(--p-primary);
  color: var(--p-primary);
}
.featured-img-caption {
  background: var(--p-surface-alt);
  color: var(--p-text-muted);
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  text-align: center;
  border-top: 1px solid var(--p-border);
}

/* 3. Cook Mode Switch & Inline Rating Bar */
.recipe-card-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.recipe-card-header-btns {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cook-mode-rating-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.15rem 2rem;
  background: #FFF9F5;
  border-bottom: 1px solid var(--p-border);
}
.cook-mode-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.cook-mode-title {
  display: block;
  font-size: 0.94rem;
  color: var(--p-text);
}
.cook-mode-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--p-text-muted);
}
.cook-mode-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.cook-mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cook-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #D1D5DB;
  transition: 0.25s;
  border-radius: 999px;
}
.cook-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.cook-mode-switch input:checked + .cook-slider {
  background-color: var(--p-secondary);
}
.cook-mode-switch input:checked + .cook-slider::before {
  transform: translateX(22px);
}
.recipe-rating-inline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.rating-feedback-text {
  font-size: 0.85rem;
  color: var(--p-text-muted);
  margin-left: 0.35rem;
}

/* 4. Copy Ingredients & Interactive Steps */
.ingredients-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.btn-copy-ingredients {
  background: #fff;
  border: 1px solid var(--p-border);
  color: var(--p-text);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy-ingredients:hover {
  border-color: var(--p-primary);
  color: var(--p-primary);
}
.steps-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.steps-section-header h3 {
  font-family: var(--p-font-heading);
  font-size: 1.4rem;
  margin: 0;
}
.steps-list li {
  cursor: pointer;
  transition: all 0.2s ease;
}
.steps-list li:hover {
  border-color: var(--p-primary);
}
.steps-list li.step-completed {
  background: var(--p-secondary-light);
  border-color: var(--p-secondary);
  opacity: 0.82;
}
.steps-list li.step-completed::before {
  background: var(--p-secondary);
  content: "✓";
}
.step-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.step-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--p-primary);
  letter-spacing: 0.04em;
}
.step-check-hint {
  font-size: 0.75rem;
  color: var(--p-text-muted);
  font-weight: 600;
}
.steps-list li.step-completed .step-check-hint {
  color: var(--p-secondary);
  font-weight: 700;
}
.step-text-body {
  margin: 0 !important;
  font-size: 1rem;
  line-height: 1.65;
}

/* 5. Nutrition Strip, Social Share & Author Bio Box (E-E-A-T) */
.nutrition-strip {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.nutrition-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.nutrition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.nutrition-pills span {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.post-share-strip {
  margin-top: 2.25rem;
  padding: 1.15rem 1.5rem;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.share-strip-label {
  font-weight: 700;
  font-size: 0.95rem;
}
.share-strip-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.share-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.share-pin { background: #E60023; }
.share-fb  { background: #1877F2; }
.share-wa  { background: #25D366; }

.author-bio-card {
  margin-top: 2rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, #FAF7F2 0%, #FFFFFF 100%);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
}
.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--p-primary), #E06D53);
  color: #fff;
  font-family: var(--p-font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-bio-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}
.author-bio-header h4 {
  font-family: var(--p-font-heading);
  font-size: 1.2rem;
  margin: 0;
}
.author-verified-tag {
  background: var(--p-secondary-light);
  color: var(--p-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.author-bio-content p {
  font-size: 0.92rem;
  color: var(--p-text-muted);
  margin-bottom: 0.85rem;
}
.author-bio-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 700;
}
.author-bio-links a {
  color: var(--p-primary);
}
.author-bio-links a:hover {
  text-decoration: underline;
}

.post-navigation-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.post-nav-card {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.post-nav-card:hover {
  border-color: var(--p-primary);
  background: #fff;
}
.post-nav-next {
  text-align: right;
}
.post-nav-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--p-primary);
  text-transform: uppercase;
}
.related-recipes-section {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--p-border);
}
.related-section-title {
  font-family: var(--p-font-heading);
  font-size: 1.55rem;
  margin-bottom: 1.35rem;
}

/* 6. Upgraded Category Archive Hub (archive.php) */
.archive-hero {
  background: radial-gradient(circle at top right, #FCEEE9 0%, var(--p-surface) 65%);
  border-bottom: 1px solid var(--p-border);
  padding: 2.75rem 0 2rem;
  margin-bottom: 2rem;
}
.archive-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.25rem;
  align-items: center;
  margin-bottom: 1.75rem;
}
.archive-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.archive-hero-photo {
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--p-shadow-md);
  border: 3px solid #fff;
}
.archive-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .archive-hero-grid {
    grid-template-columns: 1fr;
  }
}
.archive-hero-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--p-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(200, 75, 49, 0.25);
}
.archive-hero-icon svg {
  width: 32px;
  height: 32px;
}
.archive-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.archive-count-pill {
  background: #fff;
  border: 1px solid var(--p-border);
  color: var(--p-text);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
}
.archive-silo-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 1.35rem;
  border-top: 1px dashed var(--p-border);
}
.silo-pill {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.silo-pill:hover,
.silo-pill.active {
  background: var(--p-primary);
  color: #fff;
  border-color: var(--p-primary);
}
.silo-pill small {
  opacity: 0.8;
  font-size: 0.78rem;
}

.archive-filter-toolbar {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 1rem 1.35rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--p-shadow-sm);
}
.filter-difficulty-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.filter-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--p-text-muted);
  margin-right: 0.35rem;
}
.btn-filter-diff {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  color: var(--p-text);
  transition: all 0.2s ease;
}
.btn-filter-diff.active,
.btn-filter-diff:hover {
  background: var(--p-primary);
  color: #fff;
  border-color: var(--p-primary);
}
.archive-live-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  min-width: 280px;
  flex: 1;
  max-width: 380px;
}
.archive-live-search-wrap input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: var(--p-font-body);
  font-size: 0.88rem;
}

.category-seo-guide-card {
  margin-top: 3.5rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-left: 5px solid var(--p-secondary);
  border-radius: var(--p-radius-md);
  padding: 2.25rem;
  box-shadow: var(--p-shadow-sm);
}
.category-seo-guide-card h2 {
  font-family: var(--p-font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}
.category-seo-guide-card p {
  color: var(--p-text-muted);
  margin-bottom: 1.15rem;
}
.seo-guide-tips {
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}
.seo-guide-tips li {
  background: var(--p-secondary-light);
  color: var(--p-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--p-radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
}

/* 7. Legal & Essential Pages (page.php) */
.legal-page-hero {
  background: radial-gradient(circle at top right, #EBF3ED 0%, var(--p-surface) 65%);
  border-bottom: 1px solid var(--p-border);
  padding: 2.5rem 0 1.75rem;
}
.legal-hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.legal-updated-pill,
.legal-rodo-pill {
  background: #fff;
  border: 1px solid var(--p-border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--p-text-muted);
}
.legal-rodo-pill {
  color: var(--p-secondary);
  border-color: #C5DEC9;
}
.legal-page-title {
  font-family: var(--p-font-heading);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}
.legal-tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--p-border);
}
.legal-tab-link {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.legal-tab-link:hover,
.legal-tab-link.active {
  background: var(--p-primary);
  color: #fff;
  border-color: var(--p-primary);
}

.legal-callout-box {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-left: 4px solid var(--p-primary);
  border-radius: var(--p-radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}
.about-stat-card {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 1.25rem;
  text-align: center;
}
.about-stat-card strong {
  display: block;
  font-family: var(--p-font-heading);
  font-size: 1.75rem;
  color: var(--p-primary);
  margin-bottom: 0.25rem;
}
.about-stat-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--p-text-muted);
}

.contact-form-card {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--p-bg);
  border: 2px solid var(--p-primary-light);
  border-radius: var(--p-radius-md);
}
.contact-form-card h3 {
  font-family: var(--p-font-heading);
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.contact-field {
  margin-bottom: 1.15rem;
}
.contact-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  font-family: var(--p-font-body);
  font-size: 0.95rem;
  outline: none;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--p-primary);
}
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: var(--p-text-muted);
  margin-bottom: 1.35rem;
}
.contact-consent input {
  margin-top: 0.25rem;
  accent-color: var(--p-primary);
}
.contact-consent a {
  color: var(--p-primary);
  font-weight: 700;
}
.contact-feedback-msg {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--p-secondary-light);
  color: var(--p-secondary);
  border: 1px solid #C5DEC9;
  border-radius: var(--p-radius-sm);
  font-weight: 700;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.footer-bottom-links a:hover {
  color: #fff;
}

/* ==========================================================================
   HOMEPAGE 7-STAGE SEO ARCHITECTURE (v1.4.0)
   ========================================================================== */

/* 1. Prominent Header Inline Search Box */
.header-inline-search {
  display: flex;
  align-items: center;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 999px;
  padding: 0.25rem 0.35rem 0.25rem 0.85rem;
  width: 195px;
  transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}
.header-inline-search:focus-within {
  width: 235px;
  border-color: var(--p-primary);
  background: #fff;
}
.header-inline-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--p-font-body);
  font-size: 0.83rem;
  color: var(--p-text);
  width: 100%;
  min-width: 0;
}
.header-inline-search button {
  background: var(--p-primary);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.header-inline-search button:hover {
  background: var(--p-primary-hover);
}
@media (min-width: 1181px) {
  .btn-search-toggle {
    display: none;
  }
}
@media (max-width: 1180px) {
  .header-inline-search {
    display: none;
  }
}

/* 4B. Most Popular / Most Visited Recipes Section */
.popular-recipes-section {
  padding: 3rem 0;
  background: var(--p-surface-alt);
  border-top: 1px solid var(--p-border);
  border-bottom: 1px solid var(--p-border);
}
.popular-recipes-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}
.popular-rank-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.popular-rank-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--p-shadow-md);
  border-color: var(--p-primary);
}
.popular-rank-thumb {
  position: relative;
  height: 175px;
  overflow: hidden;
  display: block;
}
.popular-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.popular-rank-card:hover .popular-rank-thumb img {
  transform: scale(1.06);
}
.popular-rank-number {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--p-primary);
  color: #fff;
  font-family: var(--p-font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(200, 75, 49, 0.4);
  z-index: 2;
}
.popular-rank-body {
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.popular-rank-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--p-text-muted);
  margin-bottom: 0.5rem;
}
.popular-cat-tag {
  background: #8C240E !important;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  display: inline-block;
  line-height: 1.3;
}
.popular-rank-body h3 {
  font-family: var(--p-font-heading);
  font-size: 1.08rem;
  line-height: 1.38;
  margin-bottom: 0.85rem;
}
.popular-rank-body h3 a:hover {
  color: var(--p-primary);
}
.popular-rank-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--p-primary);
  padding-top: 0.7rem;
  border-top: 1px dashed var(--p-border);
}

/* 5. E-E-A-T About the Author / Editorial Team Section */
.eeat-about-section {
  padding: 3.75rem 0 2.5rem;
}
.eeat-card-grid {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--p-shadow-md);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.75rem;
  align-items: center;
}
.eeat-photo-frame {
  position: relative;
  border-radius: var(--p-radius-md);
  overflow: hidden;
  box-shadow: var(--p-shadow-md);
}
.eeat-photo-frame img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}
.eeat-floating-badge {
  position: absolute;
  bottom: 1.15rem;
  left: 1.15rem;
  right: 1.15rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.9rem 1.15rem;
  border-radius: var(--p-radius-sm);
  border-left: 4px solid var(--p-secondary);
  box-shadow: var(--p-shadow-sm);
}
.eeat-floating-badge strong {
  display: block;
  color: var(--p-secondary);
  font-size: 0.95rem;
}
.eeat-floating-badge span {
  font-size: 0.8rem;
  color: var(--p-text-muted);
}
.eeat-desc {
  color: var(--p-text-muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.eeat-pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.35rem 0 1.65rem;
}
.eeat-mini-pillar {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 0.85rem;
}
.eeat-mini-pillar strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
  color: var(--p-text);
}
.eeat-mini-pillar span {
  font-size: 0.76rem;
  color: var(--p-text-muted);
  line-height: 1.4;
  display: block;
}
.eeat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* 6. Newsletter Subscription & Social Media Section */
.newsletter-social-section {
  padding: 1.5rem 0 2.5rem;
}
.newsletter-social-box {
  background: linear-gradient(135deg, #1F2421 0%, #2C3530 100%);
  color: #fff;
  border-radius: var(--p-radius-lg);
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.75rem;
  align-items: center;
  box-shadow: var(--p-shadow-lg);
}
.newsletter-kicker {
  display: inline-block;
  background: rgba(200, 75, 49, 0.25);
  color: #FF9F87;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.newsletter-col h2 {
  font-family: var(--p-font-heading);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  color: #fff;
  margin-bottom: 0.65rem;
}
.newsletter-col p {
  color: #C7D0CC;
  font-size: 0.96rem;
  margin-bottom: 1.35rem;
  max-width: 560px;
}
.newsletter-form-inline {
  display: flex;
  gap: 0.6rem;
  max-width: 540px;
  margin-bottom: 0.65rem;
}
.newsletter-form-inline input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: var(--p-text);
  font-family: var(--p-font-body);
  font-size: 0.95rem;
  outline: none;
}
.newsletter-form-inline button {
  background: var(--p-primary);
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.newsletter-form-inline button:hover {
  background: var(--p-primary-hover);
}
.newsletter-privacy-note {
  display: block;
  font-size: 0.76rem;
  color: #9CA3AF;
}
.newsletter-privacy-note a {
  color: #FF9F87;
  text-decoration: underline;
}
.newsletter-success-msg {
  margin-top: 0.85rem;
  background: rgba(62, 107, 72, 0.35);
  border: 1px solid #68A375;
  color: #EBF3ED;
  padding: 0.75rem 1rem;
  border-radius: var(--p-radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
}

.social-connect-col {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--p-radius-md);
  padding: 1.65rem;
}
.social-connect-col h3 {
  font-family: var(--p-font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.35rem;
}
.social-connect-col p {
  font-size: 0.85rem;
  color: #B0B8B4;
  margin-bottom: 1.15rem;
}
.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.social-follow-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--p-radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.social-follow-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}
.social-follow-card strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.2;
}
.social-follow-card span {
  font-size: 0.72rem;
  color: #C7D0CC;
}
.social-card-pin svg {
  color: #FF4D67;
  width: 22px;
  height: 22px;
}
.social-icon-txt {
  font-weight: 800;
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

@media (max-width: 1024px) {
  .popular-recipes-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .eeat-card-grid,
  .newsletter-social-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .popular-recipes-grid-4,
  .eeat-pillars-row,
  .social-cards-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form-inline {
    flex-direction: column;
  }
  .eeat-card-grid,
  .newsletter-social-box {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .author-bio-card,
  .archive-hero-top {
    flex-direction: column;
  }
  .post-navigation-cards,
  .about-stats-grid,
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .cook-mode-rating-bar {
    padding: 1rem 1.25rem;
  }
}

/* ==========================================================================
   V1.5.0 UPGRADES:
   1. FULL-WIDTH TOP RECIPE HERO BANNER
   2. STEP-BY-STEP PREPARATION PHOTOS (HOWTOSTEP IMAGE)
   3. EDITORIAL ARTICLE TYPOGRAPHY & FORMATTING
   4. LUXURY CULINARY FOOTER
   ========================================================================== */

/* 1. Full-Width Top Recipe Hero Banner (single.php) */
.single-hero-fullwidth {
  width: 100%;
  position: relative;
  margin-bottom: 0.5rem;
}
.single-hero-banner-media {
  width: 100%;
  height: clamp(320px, 46vw, 520px);
  position: relative;
  overflow: hidden;
  background: #181C19;
}
.single-hero-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.single-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 28, 25, 0.25) 0%, rgba(24, 28, 25, 0.1) 45%, rgba(24, 28, 25, 0.72) 100%);
  pointer-events: none;
}
.single-hero-pin-wrap {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 4;
  pointer-events: none;
}
.single-hero-pin-btn {
  position: static !important;
  pointer-events: auto;
  padding: 0.55rem 1.15rem !important;
  font-size: 0.85rem !important;
}

.single-hero-header-card {
  position: relative;
  z-index: 5;
  margin-top: -105px;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 2.35rem 2.75rem;
  box-shadow: 0 20px 50px rgba(24, 28, 25, 0.13);
}
.cat-pill-primary {
  background: var(--p-primary) !important;
  color: #fff !important;
}
.cat-pill-primary:hover {
  background: var(--p-primary-hover) !important;
}

/* 2. Step-by-Step Preparation Cards with Stage Photos */
.steps-list-visual li.step-card-with-photo {
  padding: 1.5rem 1.65rem 1.5rem 4.35rem;
  margin-bottom: 1.5rem !important;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  box-shadow: var(--p-shadow-sm);
}
.steps-list-visual li.step-card-with-photo::before {
  left: 1.25rem;
  top: 1.45rem;
  width: 38px;
  height: 38px;
  font-size: 1.02rem;
  box-shadow: 0 4px 10px rgba(200, 75, 49, 0.28);
}
.step-photo-figure {
  position: relative;
  margin-top: 1.15rem;
  border-radius: var(--p-radius-md);
  overflow: hidden;
  border: 1px solid var(--p-border);
  background: var(--p-surface-alt);
}
.step-photo-figure img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.step-card-with-photo:hover .step-photo-figure img {
  transform: scale(1.03);
}
.step-photo-caption {
  background: var(--p-bg);
  color: var(--p-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--p-border);
}
.step-pin-btn {
  top: 0.75rem !important;
  right: 0.75rem !important;
  padding: 0.3rem 0.7rem !important;
  font-size: 0.72rem !important;
}

/* ==========================================================================
   INTERACTIVE TABLE OF CONTENTS (SPIS TREŚCI - LUXURY EDITORIAL SEO 2026)
   ========================================================================== */
.recipe-toc-card {
  background: var(--p-surface-alt);
  border: 1.5px solid var(--p-border);
  border-radius: var(--p-radius-md);
  margin-bottom: 2.25rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(31, 26, 23, 0.03);
  transition: all 0.25s ease;
}
.recipe-toc-card:hover {
  border-color: #D2C6B8;
  box-shadow: 0 6px 20px rgba(31, 26, 23, 0.06);
}
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-border);
  cursor: pointer;
  user-select: none;
}
.toc-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.toc-badge-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.toc-heading {
  font-family: var(--p-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--p-text);
  margin: 0;
}
.toc-badge-pill {
  background: var(--p-surface-alt);
  color: var(--p-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--p-border);
}
.toc-toggle-btn {
  background: transparent;
  border: none;
  color: var(--p-primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--p-radius-sm);
  transition: background 0.18s ease;
}
.toc-toggle-btn:hover {
  background: var(--p-primary-light);
}
.toc-toggle-icon {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
}
.recipe-toc-card.is-collapsed .toc-toggle-icon {
  transform: rotate(180deg);
}
.recipe-toc-card.is-collapsed .toc-collapse-body {
  display: none;
}
.toc-collapse-body {
  padding: 1.25rem 1.4rem;
}
.toc-ordered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem;
}
@media (max-width: 680px) {
  .toc-ordered-list {
    grid-template-columns: 1fr;
  }
}
.toc-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  color: var(--p-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(230, 224, 212, 0.7);
  transition: all 0.2s ease;
}
.toc-link:hover {
  background: #FFFFFF;
  color: var(--p-primary);
  border-color: var(--p-primary);
  transform: translateX(3px);
  box-shadow: 0 3px 8px rgba(200, 75, 49, 0.08);
}
.toc-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p-primary-light);
  color: var(--p-primary);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* 3. Editorial Blog Typography & Rich Article Formatting (.entry-content) */
.entry-content {
  font-family: var(--p-font-article);
  font-size: 1.125rem;
  line-height: 1.9;
  color: #1D2320;
  letter-spacing: -0.004em;
}
.entry-content > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.82;
  color: var(--p-text);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.entry-content p {
  margin-bottom: 1.4rem;
}
.entry-content p strong {
  color: #111513;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 62%, rgba(252, 238, 233, 0.95) 62%);
  padding: 0 2px;
}
.entry-content h2 {
  font-family: var(--p-font-heading);
  font-size: clamp(1.55rem, 2.3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--p-text);
  margin: 2.5rem 0 1.15rem;
  padding: 0.65rem 1.15rem;
  border-left: 5px solid var(--p-primary);
  border-bottom: none;
  background: linear-gradient(90deg, var(--p-primary-light) 0%, rgba(252, 238, 233, 0) 92%);
  border-radius: 0 var(--p-radius-sm) var(--p-radius-sm) 0;
}
.entry-content h3 {
  font-family: var(--p-font-heading);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--p-text);
  margin: 2rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entry-content h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-primary);
  flex-shrink: 0;
}
.entry-content ul:not(.ingredients-list) {
  list-style: none;
  margin: 0 0 1.65rem 0;
  padding: 0;
}
.entry-content ul:not(.ingredients-list) li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.75;
}
.entry-content ul:not(.ingredients-list) li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--p-primary-light);
  color: var(--p-primary);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4. Upgraded Luxury Culinary Footer */
.site-footer {
  background: linear-gradient(180deg, #161A17 0%, #0F1210 100%);
  color: #D8E0DC;
  padding: 0 0 2.25rem;
  margin-top: 4rem;
  border-top: 4px solid var(--p-primary);
}
.footer-trust-strip {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0;
  margin-bottom: 3.25rem;
}
.footer-trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-trust-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-trust-item {
  font-size: 0.84rem;
  font-weight: 700;
  color: #EBF3ED;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btn-back-to-top {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-back-to-top:hover {
  background: var(--p-primary);
  border-color: var(--p-primary);
  transform: translateY(-2px);
}

.footer-about-text {
  font-size: 0.91rem;
  line-height: 1.68;
  color: #A8B3AE;
  margin-bottom: 1.15rem;
}
.footer-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.83rem;
  color: #D8E0DC;
  margin-bottom: 1.2rem;
}
.footer-contact-pill a {
  color: #FF9F87;
  font-weight: 700;
}
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.footer-social-btn:hover {
  background: var(--p-primary);
  border-color: var(--p-primary);
  transform: translateY(-2px);
}
.social-btn-pin:hover {
  background: var(--p-pinterest);
  border-color: var(--p-pinterest);
}

.footer-col h4 {
  font-family: var(--p-font-heading);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--p-primary);
}
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-list li {
  margin-bottom: 0.65rem;
}
.footer-nav-list a {
  color: #B8C2BD;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-nav-list a:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-nav-list a svg {
  color: #FF8E72;
}
.footer-cat-link {
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--p-radius-sm);
}
.footer-cat-link:hover {
  background: rgba(200, 75, 49, 0.18);
  border-color: rgba(200, 75, 49, 0.45);
}
.footer-link-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-cat-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
}

.footer-mini-recipes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.footer-mini-recipe-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem;
  border-radius: var(--p-radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-mini-recipe-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.footer-mini-recipe-card img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.footer-mini-recipe-card strong {
  display: block;
  font-size: 0.84rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.footer-mini-recipe-card span {
  display: block;
  font-size: 0.74rem;
  color: #FFB443;
  font-weight: 600;
}
.footer-pin-cta-btn,
.footer-pin-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  background: var(--p-pinterest);
  color: #ffffff !important;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(230, 0, 35, 0.28);
  transition: all 0.2s ease;
}
.footer-pin-cta-btn:hover,
.footer-pin-cta:hover {
  background: var(--p-pinterest-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
}
.footer-pin-cta-btn span,
.footer-pin-cta span {
  display: inline-block !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .single-hero-header-card {
    margin-top: -45px;
    padding: 1.5rem 1.25rem;
  }
  .steps-list-visual li.step-card-with-photo {
    padding: 1.25rem 1.15rem 1.25rem 3.5rem;
  }
  .step-photo-figure img {
    height: 210px;
  }
}

/* ==========================================================================
   V1.6.0: RELATED RECIPES 3-COLUMN GRID & POLISH COMMENTS STYLING
   ========================================================================== */
.related-recipes-section {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 2px solid var(--p-border);
}

.related-section-title {
  font-size: 1.45rem;
  margin-bottom: 1.35rem;
  color: var(--p-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.related-recipes-grid .recipe-card-thumb {
  aspect-ratio: 16 / 10;
  max-height: 165px;
}

.related-recipes-grid .recipe-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.related-recipes-grid .recipe-card-title {
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.related-recipes-grid .recipe-card-excerpt {
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Comments Area & Polish Comment Form */
.comments-area {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 2px solid var(--p-border);
}

.comments-header-box {
  margin-bottom: 1.5rem;
}

.comments-title {
  font-size: 1.35rem;
  color: var(--p-text);
  margin: 0;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.comment-list .children {
  list-style: none;
  padding-left: 1.75rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.przepiso-comment-item {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}

.przepiso-comment-item .comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.przepiso-comment-item .comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--p-primary-light);
  color: var(--p-primary);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 75, 49, 0.25);
}

.przepiso-comment-item .comment-author .fn {
  font-style: normal;
  font-weight: 700;
  color: var(--p-text);
  font-size: 0.96rem;
}

.przepiso-comment-item .comment-metadata {
  font-size: 0.78rem;
  color: var(--p-text-muted);
}

.przepiso-comment-item .comment-content p {
  margin: 0 0 0.65rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2B302C;
}

.przepiso-comment-item .comment-content p:last-child {
  margin-bottom: 0;
}

.przepiso-comment-item .reply a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--p-primary);
  background: #fff;
  border: 1px solid var(--p-border);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-top: 0.5rem;
}

.przepiso-comment-item .reply a:hover {
  background: var(--p-primary);
  color: #fff;
  border-color: var(--p-primary);
}

/* Comment Respond Box */
.comment-respond {
  background: linear-gradient(145deg, #FAF7F2 0%, #F4EFE6 100%);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 1.85rem 2rem;
}

.comment-reply-title {
  font-size: 1.35rem;
  color: var(--p-text);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-reply-title small a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--p-primary);
  font-weight: 700;
}

.comment-notes,
.logged-in-as {
  font-size: 0.88rem;
  color: var(--p-text-muted);
  margin: 0 0 1.25rem 0;
  background: #fff;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--p-border);
}

.logged-in-as a {
  color: var(--p-primary);
  font-weight: 600;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comment-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--p-text);
  margin-bottom: 0.45rem;
}

.comment-form .required {
  color: var(--p-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid #D8D0C5;
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--p-text);
  transition: var(--transition);
}

.comment-form textarea {
  min-height: 135px;
  resize: vertical;
  line-height: 1.6;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--p-primary);
  box-shadow: 0 0 0 4px rgba(200, 75, 49, 0.12);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--p-primary);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.comment-form-cookies-consent label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--p-text-muted);
  cursor: pointer;
}

.comment-form .form-submit {
  margin: 0.25rem 0 0 0;
}

.comment-submit-btn {
  cursor: pointer;
  border: none;
  font-size: 0.96rem;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(200, 75, 49, 0.24);
}

@media (max-width: 900px) {
  .related-recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-recipes-grid,
  .comment-form-row {
    grid-template-columns: 1fr;
  }
  .comment-respond {
    padding: 1.35rem 1.15rem;
  }
}

/* ==========================================================================
   V1.7.0: FAVORITES COOKBOOK, COMMENT STAR RATINGS, RODO BANNER,
           WHATSAPP SHOPPING LIST & MOBILE STICKY BAR
   ========================================================================== */

/* 1. WhatsApp Shopping List Button */
.btn-whatsapp-ingredients {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-ingredients:hover {
  background: #1DA851;
  transform: translateY(-1px);
}

/* 2. Comment 5-Star Rating Picker & Reader Star Badge */
.comment-rating-selector {
  background: #fff;
  border: 1.5px solid #E2DAD0;
  border-radius: 12px;
  padding: 0.95rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.comment-rating-label {
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  color: var(--p-text);
}

.comment-stars-pick {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.c-star-btn {
  background: none;
  border: none;
  font-size: 1.55rem;
  line-height: 1;
  color: #D6CFC5;
  cursor: pointer;
  padding: 0 0.1rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.c-star-btn.active,
.c-star-btn:hover {
  color: var(--p-gold);
  transform: scale(1.12);
}

.c-star-text {
  margin-left: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--p-secondary);
  background: var(--p-secondary-light);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.comment-author-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.comment-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #FFF9EB;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #D97706;
  font-size: 0.82rem;
  padding: 0.1rem 0.55rem;
  border-radius: 50px;
}

.comment-star-badge strong {
  color: var(--p-text);
  font-size: 0.78rem;
}

/* 3. Favorites System (Ulubione Przepisy) */
.btn-favorites-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFFFF !important;
  color: #1F2421 !important;
  border: 1.5px solid #D5C9BC !important;
  border-radius: 50px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-header-label {
  color: #1F2421 !important;
  font-weight: 700;
}

.fav-header-heart {
  color: #9E2F18 !important;
  font-size: 1rem;
}

.btn-favorites-header:hover {
  background: #9E2F18 !important;
  color: #FFFFFF !important;
  border-color: #9E2F18 !important;
}

.btn-favorites-header:hover .fav-header-label,
.btn-favorites-header:hover .fav-header-heart {
  color: #FFFFFF !important;
}

.fav-header-heart {
  font-size: 1rem;
  line-height: 1;
}

.fav-header-badge {
  background: var(--p-primary);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.btn-favorites-header:hover .fav-header-badge {
  background: #fff;
  color: var(--p-primary);
}

/* Card Heart Button */
.recipe-card-thumb .btn-fav-recipe {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--p-primary);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: var(--transition);
}

.recipe-card-thumb .btn-fav-recipe:hover,
.recipe-card-thumb .btn-fav-recipe.is-fav {
  background: var(--p-primary);
  color: #fff;
  transform: scale(1.08);
}

.btn-fav-single {
  background: #FFF5F3;
  color: var(--p-primary);
  border: 1.5px solid rgba(200, 75, 49, 0.3);
}

.btn-fav-single.is-fav,
.btn-fav-single:hover {
  background: var(--p-primary);
  color: #fff;
  border-color: var(--p-primary);
}

/* Favorites Modal */
.favorites-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 24, 21, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.favorites-modal-backdrop.is-open {
  display: flex;
}

.favorites-modal-panel {
  background: #fff;
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--p-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.favorites-modal-header {
  padding: 1.35rem 1.6rem;
  background: var(--p-bg);
  border-bottom: 1px solid var(--p-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.favorites-modal-header h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.3rem;
}

.favorites-modal-header p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--p-text-muted);
}

.favorites-modal-close {
  background: #fff;
  border: 1px solid var(--p-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--p-text);
  flex-shrink: 0;
}

.favorites-modal-close:hover {
  background: var(--p-primary);
  color: #fff;
  border-color: var(--p-primary);
}

.favorites-modal-body {
  padding: 1.35rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}

.fav-empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.fav-empty-icon {
  font-size: 2.6rem;
  margin-bottom: 0.65rem;
}

.fav-empty-state h4 {
  margin: 0 0 0.4rem 0;
  font-size: 1.15rem;
}

.fav-empty-state p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--p-text-muted);
}

.fav-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fav-recipe-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  transition: var(--transition);
}

.fav-recipe-row:hover {
  border-color: var(--p-primary);
  background: #fff;
}

.fav-recipe-thumb img {
  width: 68px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.fav-recipe-info {
  flex: 1;
  min-width: 0;
}

.fav-recipe-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--p-text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.fav-recipe-title:hover {
  color: var(--p-primary);
}

.fav-recipe-meta {
  font-size: 0.78rem;
  color: var(--p-text-muted);
}

.fav-remove-item {
  background: #fff;
  border: 1px solid var(--p-border);
  color: var(--p-text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.fav-remove-item:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FECACA;
}

.favorites-modal-footer {
  padding: 1rem 1.6rem;
  background: var(--p-bg);
  border-top: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-clear-favorites {
  background: none;
  border: none;
  color: var(--p-text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-clear-favorites:hover {
  color: #DC2626;
}

/* 4. RODO / GDPR Polish Cookie Consent Banner */
.rodo-cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 9990;
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(24, 28, 25, 0.97);
  color: #EAE6DF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.15rem 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.rodo-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rodo-cookie-text {
  flex: 1;
  min-width: 260px;
}

.rodo-cookie-text strong {
  display: block;
  color: #fff;
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.rodo-cookie-text p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #C4CCC7;
}

.rodo-cookie-text a {
  color: #FF8A70;
  text-decoration: underline;
  font-weight: 600;
}

.rodo-cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-cookie-essential {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-cookie-essential:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-cookie-accept {
  background: var(--p-primary);
  color: #fff;
  border: none;
  padding: 0.62rem 1.35rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 75, 49, 0.35);
}

.btn-cookie-accept:hover {
  background: var(--p-primary-hover);
}

/* 5. Floating Toast Notification */
.przepiso-toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 10000;
  background: #1A1F1C;
  color: #fff;
  padding: 0.8rem 1.35rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.przepiso-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 6. Mobile Sticky Bottom Quick-Navigation Bar (Single Recipe) */
.mobile-recipe-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .fav-header-label {
    display: none;
  }

  .mobile-recipe-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9980;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--p-border);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.4rem 0.5rem;
  }

  .mobile-sticky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    background: none;
    border: none;
    color: var(--p-text);
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.3rem 0.25rem;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
  }

  .mobile-sticky-item .ms-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .mobile-sticky-item.is-fav {
    color: var(--p-primary);
  }

  .mobile-sticky-pin {
    color: var(--p-pinterest);
  }

  body.single-post {
    padding-bottom: 64px;
  }

  .rodo-cookie-banner {
    bottom: 72px;
    left: 10px;
    right: 10px;
    padding: 1rem;
  }

  .przepiso-toast {
    bottom: 76px;
    left: 16px;
    right: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   V1.8.0: KITCHEN TIMER (MINUTNIK), LIVE AJAX SEARCH, "UGOTOWAŁEM TO!",
           NUTRITION MACROS TABLE, FAQ ACCORDION & 2:3 PINTEREST SHOWCASE
   ========================================================================== */

/* 1. Smart Kitchen Timer Buttons & Floating Countdown Widget */
.steps-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-launch-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--p-secondary-light);
  color: var(--p-secondary);
  border: 1.5px solid rgba(62, 107, 72, 0.3);
  border-radius: 50px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-launch-timer:hover {
  background: var(--p-secondary);
  color: #fff;
}

.btn-step-timer {
  padding: 0.25rem 0.7rem;
  font-size: 0.76rem;
}

.kitchen-timer-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9995;
  width: 245px;
  background: #1A1F1C;
  color: #fff;
  border-radius: 18px;
  padding: 1rem 1.15rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.kitchen-timer-widget.kt-finished {
  background: var(--p-primary);
  animation: pulseTimer 0.9s infinite alternate;
}

@keyframes pulseTimer {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.kt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.kt-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #C4CCC7;
}

.kt-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
}

.kt-display {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  color: #fff;
}

.kt-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.kt-progress-bar {
  height: 100%;
  background: #4ADE80;
  transition: width 0.4s linear;
}

.kt-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.kt-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.38rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.kt-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.kt-btn-primary {
  flex: 1;
  background: var(--p-primary);
  border-color: var(--p-primary);
}

/* 2. "Ugotowałem to!" Social Proof Banner */
.cooked-it-banner {
  margin-top: 1.85rem;
  background: linear-gradient(135deg, #FFF7F4 0%, #FCEEE9 100%);
  border: 1.5px solid rgba(200, 75, 49, 0.28);
  border-radius: 16px;
  padding: 1.4rem 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cooked-it-info {
  flex: 1;
  min-width: 240px;
}

.cooked-it-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--p-primary);
  background: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
  border: 1px solid rgba(200, 75, 49, 0.2);
}

.cooked-it-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.18rem;
  color: var(--p-text);
}

.cooked-it-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--p-text-muted);
}

.cooked-it-info strong {
  color: var(--p-primary);
  font-size: 1rem;
}

.btn-cooked-it {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--p-primary);
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(200, 75, 49, 0.28);
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-cooked-it:hover {
  background: var(--p-primary-hover);
  transform: translateY(-2px);
}

.btn-cooked-it.is-cooked {
  background: var(--p-secondary);
  box-shadow: 0 8px 20px rgba(62, 107, 72, 0.28);
}

/* 3. Detailed 5-Column Nutrition & Macros Table */
.nutrition-table-box {
  margin-top: 1.85rem;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
}

.nutrition-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.nutrition-header-row h4 {
  margin: 0;
  font-size: 1.15rem;
}

.nutrition-sub-note {
  font-size: 0.82rem;
  color: var(--p-text-muted);
}

.nutrition-macros-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.macro-card {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 0.85rem 0.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.macro-kcal {
  background: var(--p-primary-light);
  border-color: rgba(200, 75, 49, 0.25);
}

.macro-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--p-text-muted);
}

.macro-val {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--p-text);
}

.macro-kcal .macro-val {
  color: var(--p-primary);
}

.macro-pct {
  font-size: 0.7rem;
  color: var(--p-text-muted);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  padding: 0.1rem 0.45rem;
  display: inline-block;
  margin: 0.1rem auto 0;
}

.nutrition-disclaimer {
  margin: 0.85rem 0 0 0;
  font-size: 0.75rem;
  color: var(--p-text-muted);
}

/* 4. Recipe FAQ Accordion (With FAQPage Schema) */
.recipe-faq-section {
  margin-top: 1.85rem;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
}

.recipe-faq-heading {
  margin: 0 0 1rem 0;
  font-size: 1.18rem;
}

.recipe-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-accordion-item {
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: var(--p-bg);
  overflow: hidden;
}

.faq-accordion-item[open] {
  background: #fff;
  border-color: rgba(200, 75, 49, 0.35);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--p-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.faq-chevron {
  font-size: 1rem;
  color: var(--p-primary);
  transition: transform 0.2s ease;
}

.faq-accordion-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.15rem 1.05rem;
  border-top: 1px dashed var(--p-border);
}

.faq-answer p {
  margin: 0.75rem 0 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--p-text-muted);
}

/* 5. 2:3 Vertical Pinterest Pin Graphic Card Showcase */
.pinterest-vertical-showcase {
  margin-top: 1.85rem;
  background: linear-gradient(135deg, #FFF5F6 0%, #FCE8EB 100%);
  border: 1.5px solid rgba(230, 0, 35, 0.22);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 185px 1fr;
  align-items: center;
  gap: 1.6rem;
}

.pin-vertical-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(230, 0, 35, 0.2);
  border: 3px solid #fff;
}

.pin-vertical-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  margin: 0 !important;
}

.pin-vertical-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(15, 18, 16, 0.95) 0%, rgba(15, 18, 16, 0.7) 70%, transparent 100%);
  padding: 1.5rem 0.75rem 0.75rem;
  text-align: center;
  color: #fff;
}

.pin-overlay-domain {
  display: inline-block;
  background: var(--p-pinterest);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.12rem 0.5rem;
  border-radius: 50px;
  margin-bottom: 0.35rem;
}

.pin-overlay-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.3rem;
}

.pin-overlay-meta {
  display: block;
  font-size: 0.68rem;
  color: #FFD166;
  font-weight: 700;
}

.pin-showcase-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--p-pinterest);
  background: #fff;
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(230, 0, 35, 0.2);
}

.pin-vertical-copy h4 {
  margin: 0 0 0.45rem 0;
  font-size: 1.3rem;
  color: var(--p-text);
}

.pin-vertical-copy p {
  margin: 0 0 1.1rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--p-text-muted);
}

.pin-showcase-cta {
  display: inline-flex;
}

/* 6. Live AJAX Instant Search Dropdown */
.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 310px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  text-align: left;
}

.ls-header {
  padding: 0.55rem 0.95rem;
  background: var(--p-bg);
  border-bottom: 1px solid var(--p-border);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--p-text-muted);
}

.ls-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid #F2EDE4;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ls-item:last-child {
  border-bottom: none;
}

.ls-item:hover {
  background: var(--p-primary-light);
}

.ls-thumb {
  width: 52px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.ls-info {
  flex: 1;
  min-width: 0;
}

.ls-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--p-text);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.ls-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--p-text-muted);
}

.ls-cat {
  color: var(--p-primary);
  font-weight: 700;
}

.ls-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--p-text-muted);
}

@media (max-width: 768px) {
  .nutrition-macros-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pinterest-vertical-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pin-vertical-preview {
    max-width: 190px;
    margin: 0 auto;
  }
  .kitchen-timer-widget {
    bottom: 72px;
    left: 12px;
  }
}

/* ==========================================================================
   V1.9.0: BESPOKE CULINARY BRAND LOGO EMBLEM & WORDMARK (PRZEPISO.PL)
   ========================================================================== */
.site-branding-wrap {
  flex-shrink: 0;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  group: logo;
}

.brand-emblem-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 5px 12px rgba(200, 75, 49, 0.26));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.site-branding:hover .brand-emblem-wrap {
  transform: translateY(-2px) rotate(-3deg) scale(1.04);
  filter: drop-shadow(0 8px 16px rgba(200, 75, 49, 0.36));
}

.przepiso-emblem-svg {
  display: block;
}

.site-branding .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}

.site-branding .brand-name {
  font-family: var(--font-serif);
  font-size: 1.58rem;
  font-weight: 800;
  color: #1A1E1B;
  line-height: 1.05;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
}

.site-branding .brand-tld {
  font-family: var(--p-font-body);
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF !important;
  background: #9E2F18 !important;
  border: 1px solid #7A1E0B !important;
  padding: 0.06rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.25rem;
  letter-spacing: 0.02em;
  transform: translateY(-2px);
  display: inline-block;
}

.site-branding .brand-sub {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--p-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.site-branding .brand-sub-star {
  color: var(--p-gold);
  font-size: 0.72rem;
}

/* Footer Brand Logo Variant */
.site-branding-footer .brand-name {
  color: #FFFFFF;
}

.site-branding-footer .brand-tld {
  background: rgba(200, 75, 49, 0.25);
  color: #FF8A70;
  border-color: rgba(255, 138, 112, 0.35);
}

.site-branding-footer .brand-sub {
  color: #A5AFA9;
}

/* Author Emblem Badges on Single Recipe Pages */
.author-avatar-emblem,
.author-bio-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(200, 75, 49, 0.22));
}

/* ==========================================================================
   31. HTML SITEMAP PAGE (/mapa-strony/) STYLES (v2.0.0)
   ========================================================================== */
.html-sitemap-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sitemap-block {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 1.65rem 1.85rem;
}

.sitemap-block h3 {
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--p-border);
}

.sitemap-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sitemap-pillar-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 1rem 1.15rem;
  transition: var(--p-transition);
}

.sitemap-pillar-card:hover {
  border-color: var(--p-primary);
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-sm);
}

.sitemap-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--p-primary-light);
  color: var(--p-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sitemap-pillar-card strong {
  display: block;
  font-size: 1.02rem;
  color: var(--p-text);
}

.sitemap-pillar-card span {
  font-size: 0.82rem;
  color: var(--p-primary);
  font-weight: 700;
}

.sitemap-cat-group {
  margin-bottom: 1.5rem;
}

.sitemap-cat-group:last-child {
  margin-bottom: 0;
}

.sitemap-cat-group h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.08rem;
  color: var(--p-secondary);
  margin-bottom: 0.75rem;
}

.sitemap-recipe-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sitemap-recipe-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 0.65rem 1rem;
}

.sitemap-recipe-list li a {
  font-weight: 700;
  color: var(--p-text);
  font-size: 0.96rem;
}

.sitemap-recipe-list li a:hover {
  color: var(--p-primary);
}

.sitemap-recipe-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--p-text-muted);
  background: var(--p-bg-alt);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .sitemap-pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   STEP STAGE TITLE STYLING (v2.3.0)
   ========================================================================== */
.step-card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  color: var(--p-text) !important;
  margin: 0.2rem 0 0.45rem 0 !important;
  line-height: 1.35 !important;
}

.step-card-with-photo.checked .step-card-title {
  text-decoration: line-through;
  opacity: 0.65;
}

/* ==========================================================================
   INGREDIENTS SHOWCASE (AFTER INTRO) & FINAL DISH SHOWCASE (v2.4.0)
   ========================================================================== */
.recipe-ingredients-showcase-figure {
  position: relative;
  margin: 1.75rem 0 2.25rem 0 !important;
  background: #FFFDF9;
  border: 1.5px solid var(--p-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 36, 33, 0.06);
}

.ingredients-showcase-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(31, 36, 33, 0.84);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.recipe-ingredients-showcase-figure img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.ingredients-showcase-caption {
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--p-text-muted);
  background: #FAF6F0;
  border-top: 1px solid var(--p-border);
  line-height: 1.55;
}

.final-dish-showcase-card {
  margin: 2rem 0 1.85rem 0;
  background: linear-gradient(180deg, #FFFDF9 0%, #FFF7F2 100%);
  border: 2px solid #EBC9BC;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(200, 75, 49, 0.09);
}

.final-dish-showcase-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #F0DFD6;
}

.final-dish-badge {
  display: inline-block;
  background: var(--p-primary-light);
  color: var(--p-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.final-dish-showcase-header h4 {
  margin: 0 !important;
  font-family: var(--font-heading);
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--p-text);
}

.final-dish-figure {
  position: relative;
  margin: 0 !important;
  overflow: hidden;
  max-height: 480px;
}

.final-dish-figure img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.final-dish-showcase-card:hover .final-dish-figure img {
  transform: scale(1.02);
}

.final-dish-desc-box {
  padding: 1.2rem 1.5rem;
  background: #FFFFFF;
  border-top: 1px solid #F0DFD6;
}

.final-dish-desc-box p {
  margin: 0 !important;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--p-text);
  font-weight: 500;
}

/* ==========================================================================
   AI OVERVIEWS KEY TAKEAWAYS BOX, INLINE RELATED LINK & EQUIPMENT (v2.5.0)
   ========================================================================== */
.recipe-key-takeaways-box {
  background: linear-gradient(135deg, #FFFDF9 0%, #FAF4EB 100%);
  border: 1.5px solid #E5D7C6;
  border-left: 5px solid var(--p-primary);
  border-radius: 16px;
  padding: 1.25rem 1.45rem;
  margin: 0 0 1.35rem 0;
  box-shadow: 0 6px 18px rgba(31, 36, 33, 0.04);
}

.key-takeaways-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--p-text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed #DFD4C6;
}

.takeaways-badge {
  background: var(--p-secondary-light);
  color: var(--p-secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.key-takeaways-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.key-takeaways-list li {
  margin: 0 !important;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--p-text);
}

.inline-related-recipe-box {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: #FFFDF9;
  border: 1.5px solid #E8DFD2;
  border-left: 4px solid var(--p-secondary);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  margin: 1.75rem 0 !important;
  box-shadow: 0 6px 16px rgba(31, 36, 33, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.inline-related-recipe-box:hover {
  transform: translateY(-2px);
  border-color: var(--p-primary);
}

.inline-related-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.inline-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inline-related-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.inline-related-kicker {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--p-secondary);
}

.inline-related-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--p-text) !important;
  text-decoration: none !important;
  line-height: 1.3;
}

.inline-related-title:hover {
  color: var(--p-primary) !important;
}

.inline-related-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--p-text-muted);
}

.recipe-equipment-strip {
  background: #FAF6F0;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 0.5rem 0 1.85rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.equipment-strip-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--p-text);
}

.equipment-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.equipment-pill {
  background: #FFFFFF;
  border: 1px solid #DFD6CA;
  color: var(--p-text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ==========================================================================
   PRINT STYLESHEET (FOR 1-PAGE CLEAN RECIPE PRINTING)
   ========================================================================== */
@media print {
  .top-bar, .site-header, .breadcrumbs-bar, .site-sidebar, .site-footer,
  .recipe-quick-actions, .toc-box, .pinterest-cta-banner, .pin-it-btn,
  .comments-area, .related-recipes-section, .reading-progress-container,
  .cook-mode-rating-bar, .post-share-strip, .author-bio-card, .post-navigation-cards,
  .single-hero-banner-media, .step-photo-figure, .mobile-recipe-sticky-bar,
  .favorites-modal-backdrop, .rodo-cookie-banner, .przepiso-toast, .btn-fav-recipe,
  .ingredients-controls, .kitchen-timer-widget, .cooked-it-banner,
  .pinterest-vertical-showcase, .btn-launch-timer, .live-search-dropdown,
  .recipe-ingredients-showcase-figure, .final-dish-showcase-card,
  .inline-related-recipe-box {
    display: none !important;
  }
  .single-hero-header-card {
    margin-top: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 1rem 0 !important;
  }
  body, .single-post-article, .przepiso-recipe-card {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .content-sidebar-wrap {
    display: block !important;
  }
}
