/* ==========================================================================
   WoCook - Editorial Food Magazine Stylesheet
   Inspired by NYT Cooking, Pinch of Yum, and Bon Appétit
   ========================================================================== */

:root {
  --bg-primary: #FAF9F6;
  --bg-card: #FFFFFF;
  --text-main: #1A1A1A;
  --text-muted: #66615B;
  --text-light: #8E8882;
  --border-subtle: #EAE5DE;
  --border-focus: #D0C8BD;
  --terracotta: #C85A32;
  --terracotta-hover: #AF4924;
  --terracotta-light: #FBF0EB;
  --olive: #3D5A40;
  --olive-hover: #2F4632;
  --olive-light: #EFF4F0;
  --gold-star: #E6A23C;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.09);
  --container-max: 1200px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-main);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--terracotta);
  border-radius: 50%;
  display: inline-block;
  margin-left: 2px;
}

.logo-tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 8px;
  display: none;
}

@media (min-width: 900px) {
  .logo-tagline { display: inline-block; }
}

/* Live Search in Header */
.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
}

.header-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  font-size: 14px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  outline: none;
  transition: all 0.2s ease;
}

.header-search input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 90, 50, 0.12);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}

.search-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #F5F3EF;
}

.search-result-item:hover {
  background-color: var(--bg-primary);
}

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.search-result-info span {
  font-size: 12px;
  color: var(--terracotta);
  font-weight: 500;
}

/* Nav Menu */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--terracotta);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terracotta);
}

/* --- Category Pills Bar --- */
.category-pills-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.pills-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pill-link:hover, .pill-link.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFFFFF;
}

/* --- Hero Recipe Section --- */
.hero-section {
  padding: 36px 0 48px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 860px) {
  .hero-card {
    grid-template-columns: 1.15fr 1fr;
  }
}

.hero-card:hover {
  box-shadow: var(--shadow-hover);
}

.hero-image-wrap {
  position: relative;
  min-height: 320px;
  background-color: #E8E3DC;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-image {
  transform: scale(1.02);
}

.hero-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--terracotta);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

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

.recipe-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--olive);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

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

.hero-summary {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.meta-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-main);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-editorial:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--terracotta);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Recipe Cards Grid --- */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #E8E3DC;
  overflow: hidden;
}

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

.recipe-card:hover .card-image {
  transform: scale(1.04);
}

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

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

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.star-icon {
  color: var(--gold-star);
  font-size: 13px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

/* --- Newsletter Box --- */
.newsletter-banner {
  background: #252824;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  text-align: center;
  margin: 40px 0 64px;
  position: relative;
  overflow: hidden;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.newsletter-subtitle {
  font-size: 15px;
  color: #D2CDC6;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
}

.newsletter-input::placeholder {
  color: #B5B0A8;
}

.newsletter-btn {
  background: var(--terracotta);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: var(--terracotta-hover);
}

/* ==========================================================================
   RECIPE ARTICLE PAGE STYLES
   ========================================================================== */

.recipe-article-container {
  max-width: 860px;
  margin: 32px auto 64px;
  padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

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

.breadcrumb-sep {
  opacity: 0.5;
}

/* Article Header */
.article-header {
  margin-bottom: 24px;
}

.article-category-badge {
  display: inline-block;
  background: var(--olive-light);
  color: var(--olive);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .article-title { font-size: 32px; }
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.meta-author {
  font-weight: 600;
  color: var(--text-main);
}

/* Top Action Bar (Jump to Recipe & Print) */
.top-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 24px 0 32px;
  box-shadow: var(--shadow-sm);
}

.action-buttons-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-jump:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
}

.btn-print-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-print-top:hover {
  background: #FFFFFF;
  border-color: var(--text-main);
}

.meta-quick-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Article Hero Image */
.article-hero-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  background: #E8E3DC;
}

.article-hero-img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

/* AEO: At a Glance Summary Block */
.at-a-glance-box {
  background: #FDF9F3;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.at-a-glance-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.at-a-glance-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  font-weight: 500;
}

.at-a-glance-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.at-a-glance-pill {
  font-size: 12px;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid #ECE4D7;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* Narrative Editorial Content */
.editorial-body {
  font-size: 18px;
  line-height: 1.8;
  color: #2D2A26;
  margin-bottom: 48px;
}

.editorial-body p {
  margin-bottom: 24px;
}

.editorial-body h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.3;
  margin: 40px 0 16px;
  color: var(--text-main);
}

.editorial-body h3 {
  font-size: 21px;
  margin: 28px 0 12px;
  color: var(--text-main);
}

.editorial-body ul, .editorial-body ol {
  margin: 0 0 24px 24px;
}

.editorial-body li {
  margin-bottom: 10px;
}

.article-inbody-image {
  margin: 36px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #EAE6DF;
  box-shadow: var(--shadow-card);
}

.article-body-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.image-caption {
  font-size: 13px;
  font-style: italic;
  color: var(--text-light);
  padding: 10px 16px;
  background: #FDF9F5;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.editorial-body strong {
  font-weight: 700;
  color: var(--text-main);
}

.editorial-body em {
  font-style: italic;
}

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

.editorial-body a:hover {
  color: var(--terracotta-hover);
}

.editorial-body blockquote {
  border-left: 4px solid var(--olive);
  background: var(--olive-light);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #2D3A2F;
}

/* ==========================================================================
   TASTY-STYLE RECIPE CARD (#recipe-card)
   ========================================================================== */

.tasty-recipe-card {
  background: #FFFFFF;
  border: 2px solid #E6E1D8;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  margin: 48px 0;
  scroll-margin-top: 100px;
}

.recipe-card-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 2px dashed #EAE5DE;
}

@media (min-width: 680px) {
  .recipe-card-header {
    grid-template-columns: 180px 1fr;
  }
}

.recipe-card-thumb-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: #E8E3DC;
}

.recipe-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 8px;
}

.recipe-card-author-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.recipe-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.card-badge-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Controls Bar: Cook Mode & Print */
.recipe-card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cook-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--olive);
  background: var(--olive-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  user-select: none;
  border: none;
  transition: all 0.2s ease;
}

.cook-mode-toggle.active {
  background: var(--olive);
  color: #FFFFFF;
}

.btn-card-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.btn-card-print:hover {
  background: #FFFFFF;
  border-color: var(--text-main);
}

/* Recipe Timing & Info Grid */
.recipe-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
  .recipe-details-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.detail-item {
  text-align: center;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

/* Ingredients Section with Scaler */
.recipe-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.recipe-section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

/* Servings Scaler 1x / 2x / 3x */
.scaler-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.scaler-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  padding: 0 10px;
}

.scaler-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.scaler-btn.active {
  background: var(--terracotta);
  color: #FFFFFF;
}

/* Ingredients Checklist */
.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.ingredient-item:hover {
  background: var(--bg-primary);
}

.ingredient-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #C4BEB5;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  transition: all 0.15s ease;
}

.ingredient-checkbox:checked {
  background-color: var(--olive);
  border-color: var(--olive);
}

.ingredient-checkbox:checked::before {
  content: "✔";
  font-size: 11px;
  color: #FFFFFF;
}

.ingredient-text {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.5;
  transition: all 0.15s ease;
}

.ingredient-item.checked .ingredient-text {
  text-decoration: line-through;
  color: var(--text-light);
}

.ingredient-qty {
  font-weight: 700;
  color: var(--terracotta);
}

/* Step-by-Step Instructions */
.instructions-list {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.instruction-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--olive-light);
  color: var(--olive);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-action {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-text {
  font-size: 16px;
  line-height: 1.6;
  color: #383430;
}

/* Nutrition Summary */
.nutrition-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 28px;
}

.nutrition-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.nutrition-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nutrition-stat {
  font-size: 14px;
  color: var(--text-muted);
}

.nutrition-stat strong {
  color: var(--text-main);
  font-size: 16px;
  margin-right: 4px;
}

/* FAQ Section */
.recipe-faq-section {
  margin: 48px 0;
}

.faq-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  background: #1C1E1B;
  color: #D2CDC6;
  padding: 64px 0 32px;
  margin-top: auto;
  border-top: 1px solid #2B2F2A;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: #9C968E;
  line-height: 1.6;
  max-width: 360px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 14px;
  color: #B5B0A8;
}

.footer-links a:hover {
  color: var(--terracotta);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7E7870;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   DEDICATED PRINT STYLESHEET (@media print)
   Prints ONLY the clean recipe card without headers, intros, nav, or ads
   ========================================================================== */

@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .site-header,
  .category-pills-bar,
  .breadcrumbs,
  .article-header,
  .top-action-bar,
  .article-hero-wrap,
  .at-a-glance-box,
  .editorial-body,
  .recipe-faq-section,
  .newsletter-banner,
  .site-footer,
  .recipe-card-controls,
  .scaler-group {
    display: none !important;
  }

  .recipe-article-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tasty-recipe-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .recipe-card-header {
    border-bottom: 2px solid #000 !important;
  }

  .recipe-card-thumb-wrap {
    width: 120px !important;
    height: 120px !important;
  }

  .recipe-card-title {
    font-size: 24pt !important;
    color: #000 !important;
  }

  .ingredient-checkbox {
    border: 1px solid #000 !important;
  }

  .step-num {
    background: #EEE !important;
    color: #000 !important;
  }

  @page {
    margin: 1.5cm;
  }
}
