@charset "UTF-8";
/**
 * Recipe Page UX Refinements
 * Layered on top of style.css
 */

/* ==========================================================================
   Ingredients List
   ========================================================================== */

li.p-ingredient {
  padding: 12px 0 !important;
  border-bottom-color: #efe9e0 !important;
  font-size: 17px;
  line-height: 1.75;
  color: #3a3f4b;
  display: block !important;
  padding-left: 24px !important;
  position: relative;
}

li.p-ingredient img[src*="grip"] {
  position: absolute;
  left: 0;
  top: 16px;
}

li.p-ingredient img[src*="grip"] {
  opacity: 0.4;
}

article.h-recipe h2#ingredients {
  padding-bottom: 8px;
  border-bottom: 2px solid #2B354F;
  display: inline-block;
  margin-bottom: 24px !important;
}

/* --- Ingredient links --- */
li.p-ingredient a {
  color: #6b5e4b;
  text-decoration: underline;
  text-decoration-color: rgba(107, 94, 75, 0.3);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

li.p-ingredient a:hover {
  color: #c4714b;
  text-decoration-color: #c4714b;
}

@media (max-width: 575px) {
  li.p-ingredient {
    padding: 10px 15px !important;
    font-size: 15px;
  }
}

/* ==========================================================================
   Recipe Card
   ========================================================================== */

.recipe-card {
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  padding: 0 32px 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
}

/* Block Mediavine ads inside the recipe card */
.recipe-card .mv-ad-box,
.recipe-card .adthrive-ad,
.recipe-card div[data-adthrive-ad],
.recipe-card div[id^="div-gpt"] {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Header --- */
.recipe-card > .recipe-card-header {
  display: block !important;
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  color: #fff;
  margin: 0 -32px;
  padding: 20px 28px 18px;
  margin-bottom: 20px;
  border-radius: 16px 16px 0 0;
  border-bottom: 3px solid #c4714b;
}

.recipe-card-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.recipe-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

.recipe-card-header .recipe-card-title,
h2.recipe-card-title {
  color: #fff !important;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: none !important;
  line-height: 1.3;
  display: block !important;
}

/* --- Meta row (rating, times, servings) --- */
.recipe-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recipe-card-header .recipe-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12) !important;
  white-space: nowrap;
}

.recipe-card-header .recipe-card-meta-total {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22) !important;
}

.recipe-card-meta-dim {
  opacity: 0.7;
  font-weight: 400;
}

.recipe-card-rating svg {
  flex-shrink: 0;
}

/* --- Actions (Print / Pin) --- */
.recipe-card-actions {
  display: flex;
  gap: 8px;
}

.recipe-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}

.recipe-card-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
}

.recipe-card-btn-pin {
  background: #E60023;
}

.recipe-card-btn-pin:hover {
  background: #ad081b;
  color: #fff;
}

/* --- Divider --- */
.recipe-card-divider {
  border-top: 1px solid #e5ded4;
  margin: 4px 0 16px;
}

/* --- Spacing overrides inside the card --- */
.recipe-card .row.mb-3 {
  margin-bottom: 0.5rem !important;
}

.recipe-card h2#ingredients {
  margin-top: 0 !important;
}

/* ==========================================================================
   Directions / Steps Header & Toggle
   ========================================================================== */

.steps-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.steps-header h2 {
  flex: 1;
  min-width: 0;
}

.steps-toggle-all {
  flex-shrink: 0;
  background: none;
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #8a7e6e;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.steps-toggle-all:hover {
  background: #f8f5f0;
  color: #2B354F;
  border-color: #d5cec4;
}

/* ==========================================================================
   Directions / Steps Timeline
   ========================================================================== */

.steps-timeline {
  position: relative;
}

/* --- Step card: rail + content side by side --- */
.step-card {
  display: flex;
  gap: 20px;
  position: relative;
}

/* --- Rail: number circle + vertical line --- */
.step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
  padding-top: 2px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2B354F;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.step-line {
  width: 2px;
  flex: 1;
  background: #e8e2d9;
  margin: 4px 0;
  min-height: 20px;
}

/* --- Step content (details/summary accordion) --- */
.step-content {
  flex: 1;
  min-width: 0;
  margin-bottom: 8px;
}

.step-summary {
  font-size: 18px;
  font-weight: 700;
  color: #2B354F;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f8f5f0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
  user-select: none;
}

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

/* Chevron indicator */
.step-summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #8a7e6e;
  border-bottom: 2px solid #8a7e6e;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}

details[open] > .step-summary::after {
  transform: rotate(-135deg);
}

.step-summary:hover {
  background: #f0ebe3;
}

details[open] > .step-summary {
  border-radius: 10px 10px 0 0;
  background: #f0ebe3;
}

/* --- Step body (expanded content) --- */
.step-body {
  background: #fff;
  border: 1px solid #e5ded4;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 20px;
}

.step-text-media {
  display: flex;
  gap: 20px;
}

.step-text {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #3a3f4b;
}

.step-text p {
  margin-bottom: 0;
}

/* --- Step image + tip --- */
.step-media {
  flex-shrink: 0;
  width: 220px;
}

.step-media figure {
  margin: 0;
}

.step-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.step-tip {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fef9f0;
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5a5040;
}

.step-tip-label {
  display: inline-block;
  font-weight: 700;
  color: #b45309;
  margin-right: 4px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* --- Per-step ingredients --- */
.step-ingredients {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5ded4;
}

.step-ingredients-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a7e6e;
  margin-bottom: 6px;
}

.step-ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-ingredients li {
  font-size: 14px;
  color: #3a3f4b;
  padding: 4px 12px;
  background: #f8f5f0;
  border-radius: 16px;
  border: 1px solid #e5ded4;
}

/* --- Mobile steps --- */
@media (max-width: 575px) {
  .step-card {
    gap: 12px;
  }

  /* 2F: Tighter rail */
  .step-rail {
    width: 32px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .step-summary {
    font-size: 16px;
    padding: 8px 10px;
  }

  .step-body {
    padding: 14px;
  }

  .step-text-media {
    flex-direction: column;
  }

  .step-media {
    width: 100%;
  }

  .step-img {
    border-radius: 8px;
  }

  .step-ingredients ul {
    gap: 4px;
  }

  .step-ingredients li {
    font-size: 13px;
  }
}

/* --- Print steps --- */
@media print {
  .step-content[open],
  .step-content {
    /* Force all steps open for print */
  }

  .step-content {
    display: block !important;
  }

  details.step-content > .step-body {
    display: block !important;
  }

  .step-summary::after {
    display: none;
  }

  .step-body {
    border: none;
    padding: 8px 0;
  }

  .step-number {
    background: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .step-line {
    background: #ccc;
  }
}

/* --- Mobile --- */
@media (max-width: 575px) {
  /* 2A: Full-bleed recipe card */
  .recipe-card {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0 20px 24px;
  }

  .recipe-card > .recipe-card-header {
    margin: 0 -20px;
    padding: 16px 20px 14px;
    margin-bottom: 16px;
    border-radius: 0;
  }

  .recipe-card-title {
    font-size: 19px;
  }

  .recipe-card-label {
    font-size: 10px;
  }

  /* 2B: Meta pills - prevent wrapping */
  .recipe-card-meta {
    gap: 4px;
  }

  .recipe-card-meta-item {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* 2C: Print/Pin buttons - less crowding */
  .recipe-card-actions {
    gap: 4px;
  }

  .recipe-card-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* --- Print --- */
@media print {
  .recipe-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    overflow: visible;
  }

  .recipe-card-divider {
    border-top-color: #ccc;
  }
}

/* ==========================================================================
   Similar Recipes Section
   ========================================================================== */

.similar-recipes {
  margin-top: 48px;
  margin-bottom: 32px;
  padding: 0;
  background: none;
}

/* --- Header: navy bar that echoes recipe-card-header --- */
.similar-recipes-header {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  border-radius: 16px 16px 0 0;
  padding: 18px 24px 16px;
  margin-bottom: 0;
}

.similar-recipes-header .recipe-card-label {
  opacity: 0.7;
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 4px;
}

.similar-recipes-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}

/* Warm accent line between header and grid */
.similar-recipes-header {
  border-bottom: 3px solid #c4714b;
}

/* --- Grid: sits inside a card-like container --- */
.similar-recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #fdf9f5;
  border: 1px solid #e8e2d9;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(43, 53, 79, 0.08);
}

/* --- Individual recipe card --- */
.similar-recipe-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e2d9;
  border-bottom: 1px solid #e8e2d9 !important;
  border-radius: 12px;
  padding: 0;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.similar-recipe-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(120, 90, 50, 0.12),
    0 2px 6px rgba(120, 90, 50, 0.06);
  text-decoration: none;
}

.similar-recipe-thumb {
  width: 100% !important;
  min-width: 100%;
  height: 140px !important;
  max-height: 140px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.similar-recipe-info {
  padding: 14px 16px 16px;
  flex: 1;
  min-width: 0;
}

.similar-recipe-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #2B354F;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.similar-recipe-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.similar-recipe-stat {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #6b5e4b;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f5f0ea;
  border: none;
  white-space: nowrap;
}

/* --- Fallback plain link --- */
.similar-recipe-link {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: #2B354F;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e2e6ec;
  border-bottom: 1px solid #e2e6ec !important;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(43, 53, 79, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.similar-recipe-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 53, 79, 0.1);
  color: #2B354F;
  text-decoration: none;
}

/* --- Similar Recipes Tablet --- */
@media (max-width: 767px) {
  .similar-recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .similar-recipe-thumb {
    height: 120px !important;
    max-height: 120px;
  }
}

/* --- Similar Recipes Mobile --- */
@media (max-width: 575px) {
  .similar-recipes {
    margin-top: 36px;
  }

  /* 2E: Full-bleed similar recipes */
  .similar-recipes-header {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    padding: 16px 18px 14px;
  }

  .similar-recipes-grid {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 16px;
  }

  /* 2D: Single column horizontal cards */
  .similar-recipes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .similar-recipe-card {
    flex-direction: row;
    border-radius: 10px;
  }

  .similar-recipe-thumb {
    width: 110px !important;
    min-width: 110px;
    height: 110px !important;
    max-height: none;
    border-radius: 10px 0 0 10px;
  }

  .similar-recipe-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .similar-recipe-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .similar-recipe-stat {
    font-size: 11px;
    padding: 2px 8px;
  }
}

/* ==========================================================================
   Header & Navigation Warm-Up
   ========================================================================== */

/* --- Navbar gradient background --- */
.navbar.bg-dark {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%) !important;
}

/* --- Terracotta accent line --- */
.header .navbar {
  border-bottom: 3px solid #c4714b;
}

/* --- Nav link hover: warm glow --- */
.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(196, 113, 75, 0.3);
}

/* --- Active nav link: terracotta indicator --- */
.navbar-dark .navbar-nav .active > .nav-link {
  position: relative;
}
.navbar-dark .navbar-nav .active > .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: #c4714b;
  border-radius: 1px;
}

/* --- Desktop nav link typography --- */
.navbar-nav .nav-link {
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* --- Logo breathing room --- */
.navbar-brand-img {
  max-height: 2.6rem;
}

/* --- Hamburger button --- */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2) !important;
  padding: 6px 10px;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(196, 113, 75, 0.4);
}

/* --- Mobile menu polish --- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #2B354F;
    margin: 12px -20px 0;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  .navbar-nav .nav-link {
    padding: 14px 0 !important;
    font-size: 16px;
  }

  .navbar-collapse .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
  }
  .navbar-collapse .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
}

/* --- Dropdown menus warm-up --- */
.dropdown-menu {
  border: 1px solid #e8e2d9;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(43, 53, 79, 0.12), 0 2px 8px rgba(43, 53, 79, 0.06);
  overflow: hidden;
}

/* Image panel overlay: warm navy instead of grey-blue */
.dropdown-menu .overlay-primary {
  background-color: transparent !important;
}

.dropdown-menu .overlay-primary::before,
.dropdown-menu .overlay-primary > .overlay {
  display: none;
}

.dropdown-menu .overlay.overlay-primary.overlay-80::before {
  display: none !important;
}

.dropdown-menu [class*="overlay-primary"][class*="overlay-80"] {
  position: relative;
}

.dropdown-menu [class*="overlay-primary"][class*="overlay-80"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43, 53, 79, 0.85), rgba(61, 74, 107, 0.8));
  border-radius: inherit;
  pointer-events: none;
}

.dropdown-menu [class*="overlay-primary"][class*="overlay-80"] .position-relative {
  position: relative;
  z-index: 1;
}

/* Category headers: terracotta instead of green */
.dropdown-menu .text-success {
  color: #c4714b !important;
}

/* Links: warm navy, no blue underline */
.dropdown-menu .list-link {
  color: #2B354F !important;
  text-decoration: none !important;
  border-bottom: none !important;
  font-weight: 500;
  padding: 4px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.dropdown-menu .list-link:hover {
  color: #c4714b !important;
}

/* "View All" button: warm navy */
.dropdown-menu .btn-outline-white,
.dropdown-menu .btn-white {
  color: #2B354F !important;
  background: #fff !important;
  border: 1px solid #e8e2d9 !important;
  border-radius: 20px !important;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dropdown-menu .btn-outline-white:hover,
.dropdown-menu .btn-white:hover {
  background: #f8f5f0 !important;
  border-color: #c4714b !important;
  color: #c4714b !important;
}

/* Rounded left panel on desktop */
.dropdown-menu .rounded-left {
  border-radius: 14px 0 0 14px !important;
}

/* --- YouTube video embed --- */
lite-youtube {
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
}

/* YouTube subscribe CTA — warm border instead of blue/red gradient */
.yt-cta {
  border: 2px solid #e8e2d9 !important;
  border-image-source: none !important;
  background: #f8f5f0 !important;
  border-radius: 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.yt-cta:hover {
  border-color: #c4714b !important;
  box-shadow: 0 4px 16px rgba(196, 113, 75, 0.1);
}
a.yt {
  text-decoration: none !important;
  border-bottom: none !important;
}
.kf-yt-sub-count {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #2B354F;
  letter-spacing: 0.5px;
}

/* --- Breadcrumb bar --- */
.site-breadcrumb {
  background: #f8f5f0;
  padding: 10px 0;
  border-bottom: 1px solid #e8e2d9;
}

p#breadcrumbs {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #8a7e6e;
}

p#breadcrumbs a {
  color: #2B354F;
  text-decoration: none;
  transition: color 0.15s;
}

p#breadcrumbs a:hover {
  color: #c4714b;
}

p#breadcrumbs .breadcrumb_last {
  color: #8a7e6e;
}

.breadcrumb-sep {
  display: inline-block;
  margin: 0 8px;
  color: #c4b99a;
  font-size: 14px;
}

@media (max-width: 575px) {
  .site-breadcrumb {
    padding: 8px 0;
  }
  p#breadcrumbs {
    font-size: 11px;
  }
}

/* ==========================================================================
   Recipe Hero Section Warm-Up
   ========================================================================== */

/* --- 1. Title --- */
article.h-recipe > .row:first-child h1 {
  color: #2B354F;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* --- 2. Byline --- */
article.h-recipe .d-flex.align-items-center.mb-4 .text-muted {
  color: #8a7e6e !important;
}

article.h-recipe .d-flex.align-items-center.mb-4 a.text-muted {
  color: #6b5e4b !important;
  font-weight: 500;
  transition: color 0.15s;
}

article.h-recipe .d-flex.align-items-center.mb-4 a.text-muted:hover {
  color: #c4714b !important;
}

/* Avatar warm border */
article.h-recipe .d-flex.align-items-center.mb-4 img.rounded-circle {
  border: 2px solid #e8e2d9;
  box-shadow: 0 2px 6px rgba(120, 90, 50, 0.08);
}

/* --- 3. Info Bar container --- */
article.h-recipe .row.mb-3 .d-flex.align-items-center.flex-wrap.p-3.rounded {
  background-color: #f8f5f0 !important;
  border: 1px solid #e8e2d9;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.05);
}

/* --- 4. Jump to Recipe button --- */
article.h-recipe .print-btn .bg-dark {
  background: linear-gradient(135deg, #2B354F, #3d4a6b) !important;
  border-radius: 20px !important;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(43, 53, 79, 0.15);
}

article.h-recipe .print-btn .bg-dark:hover {
  background: linear-gradient(135deg, #3d4a6b, #4d5c80) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 53, 79, 0.25);
}

/* --- 5. Tags (taxonomy badges) --- */
.badge-primary-soft,
.badge-dinner {
  background-color: #f5f0ea !important;
  color: #6b5e4b !important;
  border-radius: 20px !important;
  border: 1px solid #e8e2d9;
  padding: 5px 14px !important;
  font-weight: 600;
  transition: all 0.2s;
}

.badge-primary-soft:hover,
.badge-dinner:hover {
  background-color: #efe9e0 !important;
  color: #2B354F !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(120, 90, 50, 0.1);
}

/* Tag link: remove default anchor color */
article.h-recipe a .badge-primary-soft,
article.h-recipe a .badge-dinner {
  text-decoration: none;
}

/* --- 6. Rating section --- */
article.h-recipe .border-right {
  border-right-color: #e5ded4 !important;
}

article.h-recipe .row.mb-3 .border-right .small.text-uppercase.text-muted {
  color: #8a7e6e !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- 7. Affiliate disclosure --- */
article.h-recipe .row.mb-3 > .col-12 > p.small.text-muted.font-italic {
  color: #8a7e6e !important;
}

article.h-recipe .row.mb-3 > .col-12 > p.small.text-muted.font-italic a {
  color: #8a7e6e;
  text-decoration: underline;
  text-decoration-color: rgba(138, 126, 110, 0.3);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

article.h-recipe .row.mb-3 > .col-12 > p.small.text-muted.font-italic a:hover {
  color: #c4714b;
  text-decoration-color: #c4714b;
}

/* --- 8. Mobile hero (< 576px) --- */
@media (max-width: 575px) {
  article.h-recipe > .row:first-child h1 {
    font-size: 26px;
    margin-bottom: 12px !important;
  }

  /* Tighter byline spacing */
  article.h-recipe .d-flex.align-items-center.mb-4 {
    margin-bottom: 16px !important;
  }

  article.h-recipe .d-flex.align-items-center.mb-4 img.rounded-circle {
    width: 40px !important;
    height: 40px !important;
  }

  article.h-recipe .d-flex.align-items-center.mb-4 p {
    font-size: 0.85rem !important;
    line-height: 1.4;
  }

  /* Full-bleed info bar — stack vertically */
  article.h-recipe .row.mb-3 .d-flex.align-items-center.flex-wrap.p-3.rounded {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px 20px !important;
  }

  /* Jump to Recipe — full-width tap target */
  article.h-recipe .row.mb-3 .d-flex.align-items-center.flex-wrap.p-3.rounded > div:first-child {
    flex-shrink: 0;
  }

  article.h-recipe .print-btn {
    display: block;
    width: 100%;
  }

  article.h-recipe .print-btn .bg-dark {
    font-size: 1rem !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    display: block !important;
    width: 100%;
  }

  /* Rating — center, remove border-right, add top divider */
  article.h-recipe .row.mb-3 .border-right {
    border-right: none !important;
    padding: 0 !important;
    text-align: center;
    border-top: 1px solid #e5ded4;
    padding-top: 14px !important;
  }

  /* Tags — left-aligned row */
  article.h-recipe .row.mb-3 .d-flex.flex-wrap.align-items-center.d-print-none {
    border-top: 1px solid #e5ded4;
    padding-top: 12px;
    gap: 6px;
    justify-content: flex-start;
  }

  .badge-primary-soft,
  .badge-dinner {
    font-size: 0.8rem !important;
    padding: 5px 12px !important;
  }

  /* Affiliate text tighter */
  article.h-recipe .row.mb-3 > .col-12 > p.small.text-muted.font-italic {
    font-size: 0.82rem !important;
    margin-top: 8px !important;
    padding: 0 4px;
  }
}

/* --- 8b. Small-medium (576–767px) — also stack vertically --- */
@media (min-width: 576px) and (max-width: 767px) {
  article.h-recipe > .row:first-child h1 {
    font-size: 30px;
  }

  /* Stack info bar vertically at sm too */
  article.h-recipe .row.mb-3 .d-flex.align-items-center.flex-wrap.p-3.rounded {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px 20px !important;
  }

  /* Full-width button */
  article.h-recipe .print-btn {
    display: block;
    width: 100%;
  }

  article.h-recipe .print-btn .bg-dark {
    font-size: 1rem !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    display: block !important;
    width: 100%;
  }

  /* Rating — no border-right, centered with top divider */
  article.h-recipe .row.mb-3 .border-right {
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center;
    border-top: 1px solid #e5ded4;
    padding-top: 14px !important;
  }

  /* Tags — horizontal wrap with top divider */
  article.h-recipe .row.mb-3 .d-flex.flex-wrap.align-items-center.d-print-none {
    border-top: 1px solid #e5ded4;
    padding-top: 12px;
  }
}

/* --- 9. Print hero --- */
@media print {
  article.h-recipe .row.mb-3 .d-flex.align-items-center.flex-wrap.p-3.rounded {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

/* ==========================================================================
   Content Body Polish
   ========================================================================== */

/* --- Dashed h2 divider → warm solid --- */
.content h2,
.content h2 {
  border-top: 1px solid #e5ded4 !important;
  padding-top: 28px;
  margin-top: 32px;
}

/* --- HR → warm solid divider --- */
article.h-recipe hr,
.content hr {
  border: none;
  border-top: 1px solid #e5ded4;
  margin: 32px 0;
}

/* --- Content links: warm instead of blue --- */
.content a {
  color: #6b5e4b;
  border-bottom: 1px solid rgba(107, 94, 75, 0.3);
  text-decoration: none;
}

.content a:hover {
  color: #c4714b;
  border-bottom-color: #c4714b;
}

/* --- Content images: override old tiny radius + margin --- */
.content img {
  border-radius: 12px !important;
  margin: 20px 0;
}

/* --- Content images: full-width with warm radius --- */
.content.img-fluid {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(120, 90, 50, 0.08);
  max-width: 100%;
}

/* ==========================================================================
   "Other Recipes" Cards (getcard)
   ========================================================================== */

/* Wrapper spacing */
article.h-recipe ~ .row.p-0.py-5 {
  padding-top: 0 !important;
  padding-bottom: 2rem !important;
}

/* Heading */
.other-recipes ~ .col-12 h2,
article.h-recipe ~ .row .col-12 h2 {
  color: #2B354F;
  font-weight: 700;
}

/* Card warm-up — all getcard() instances */
.other-recipes .card {
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other-recipes .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(120, 90, 50, 0.12);
}

.other-recipes .card-img-top {
  border-radius: 16px 16px 0 0 !important;
}

/* Warm time badge (replace green) */
.other-recipes .badge-success {
  background: linear-gradient(135deg, #2B354F, #3d4a6b) !important;
  color: #fff !important;
  border-color: transparent !important;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Hide the SVG wave shape divider */
.other-recipes .shape {
  display: none !important;
}

/* Card title */
.other-recipes .card-title {
  color: #2B354F;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

/* Card description text */
.other-recipes .card-body p {
  color: #3a3f4b;
  font-size: 15px;
  line-height: 1.6;
}

/* Rating row */
.other-recipes .rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.other-recipes .rating .text-muted {
  color: #8a7e6e !important;
  font-size: 12px;
}

/* "See the Recipe" link */
.other-recipes .card-body a.font-weight-bold,
.other-recipes .card-body .text-success {
  color: #2B354F !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  transition: all 0.2s;
}

.other-recipes .card-body a.font-weight-bold:hover,
.other-recipes .card-body .text-success:hover {
  background: #efe9e0;
  color: #2B354F !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
  text-decoration: none;
}

/* ==========================================================================
   Recipe Body Prose
   ========================================================================== */

/* --- Body text typography --- */
article.h-recipe p,
article.h-recipe li,
article.h-recipe > .row > .col,
.content p,
.content li,
.content .col {
  font-size: 17px;
  line-height: 1.75;
  color: #3a3f4b;
}

.content ul,
.content ol {
  padding-left: 24px;
}

.content li {
  margin-bottom: 6px;
}

/* --- Headings (h2/h3 in body prose) --- */
article.h-recipe h2,
.content h2,
.comments-area h2,
article.h-recipe ~ .row .col-12 h2 {
  color: #2B354F;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-top: 36px;
  margin-bottom: 12px;
}

article.h-recipe h3,
.content h3 {
  color: #2B354F;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-top: 24px;
  margin-bottom: 10px;
}

/* --- Bold text: warm navy instead of pure black --- */
article.h-recipe p strong,
.content strong {
  color: #2B354F;
  font-weight: 700;
}

/* --- Links in body prose --- */
.content a,
article.h-recipe > .row p a {
  color: #6b5e4b;
  text-decoration: underline;
  text-decoration-color: rgba(107, 94, 75, 0.3);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.content a:hover,
article.h-recipe > .row p a:hover {
  color: #c4714b;
  text-decoration-color: #c4714b;
}

/* --- Italics --- */
article.h-recipe p em {
  color: #5a5040;
  font-style: italic;
}

/* --- Images in body content --- */
.content img {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(120, 90, 50, 0.08);
}

/* --- Mobile prose --- */
@media (max-width: 575px) {
  article.h-recipe p,
  .content p,
  .content li {
    font-size: 16px;
    line-height: 1.7;
  }

  article.h-recipe h2,
  .content h2,
  .comments-area h2 {
    font-size: 22px;
    margin-top: 28px;
  }

  article.h-recipe h3,
  .content h3 {
    font-size: 18px;
    margin-top: 20px;
  }
}

/* ==========================================================================
   Sidebar Author Card
   ========================================================================== */

.sidebar-author-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8e2d9;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
}

.sidebar-author-header {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  padding: 14px 20px 12px;
  border-bottom: 3px solid #c4714b;
}

.sidebar-author-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
}

.sidebar-author-body {
  background: #fdf9f5;
  padding: 24px 20px 20px;
  text-align: center;
}

.sidebar-author-avatar {
  border-radius: 50%;
  border: 3px solid #e8e2d9;
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
  object-fit: cover;
}

.sidebar-author-text {
  font-size: 14px;
  line-height: 1.6;
  color: #3a3f4b;
  margin-bottom: 14px;
  text-align: left;
}

.sidebar-author-text:last-of-type {
  margin-bottom: 20px;
}

.sidebar-author-book-link {
  color: #2B354F;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(43, 53, 79, 0.3);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.sidebar-author-book-link:hover {
  color: #c4714b;
  text-decoration-color: #c4714b;
}

/* Social section */
.sidebar-author-social {
  border-top: 1px solid #e8e2d9;
  padding-top: 16px;
  text-align: center;
}

.sidebar-author-social-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2B354F;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.sidebar-author-social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sidebar-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-social-icon:hover {
  background: #efe9e0;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.12);
}

.sidebar-social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ==========================================================================
   Sidebar Latest Recipes Card
   ========================================================================== */

.sidebar-latest-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8e2d9;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
}

.sidebar-latest-header {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  padding: 14px 20px 12px;
  border-bottom: 3px solid #c4714b;
}

.sidebar-latest-body {
  background: #fdf9f5;
  padding: 16px 20px;
}

.sidebar-latest-list {
  padding: 0;
  margin: 0;
}

.sidebar-latest-card a {
  border-bottom: none;
}

.sidebar-latest-body .sidebar-latest-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8e2d9;
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar-latest-item:first-child {
  padding-top: 0;
}

.sidebar-latest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-latest-item:hover {
  text-decoration: none;
}

.sidebar-latest-item:hover .sidebar-latest-title {
  color: #c4714b;
}

.sidebar-latest-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.sidebar-latest-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
}

.sidebar-latest-title {
  color: #2B354F;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.15s;
}

.sidebar-latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sidebar-latest-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: #6b5e4b;
  padding: 2px 9px;
  border-radius: 20px;
  background: #f5f0ea;
  white-space: nowrap;
}

/* ==========================================================================
   Author Bio Card (in-content)
   ========================================================================== */

.author-bio-card {
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
}

.author-bio-header {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  padding: 14px 24px 12px;
  border-bottom: 3px solid #c4714b;
}

.author-bio-header .recipe-card-label {
  color: #fff;
  opacity: 0.7;
}

.author-bio-body {
  display: flex;
  gap: 24px;
  padding: 28px 28px 24px;
  background: #fff;
}

.author-bio-photo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-bio-avatar {
  border-radius: 50%;
  border: 3px solid #e8e2d9;
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
  object-fit: cover;
}

.author-bio-content {
  flex: 1;
  min-width: 0;
}

.author-bio-name {
  font-size: 20px;
  font-weight: 700;
  color: #2B354F;
  margin: 0 0 10px;
  line-height: 1.3;
}

.author-bio-text {
  font-size: 15px;
  line-height: 1.65;
  color: #3a3f4b;
  margin: 0 0 16px;
}

.author-bio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.author-bio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2B354F;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  transition: all 0.2s;
}

.author-bio-link:hover {
  background: #efe9e0;
  color: #2B354F;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
}

.author-bio-cookbook {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(43, 53, 79, 0.15);
}

.author-bio-cookbook:hover {
  background: linear-gradient(135deg, #3d4a6b 0%, #4d5c80 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 53, 79, 0.25);
}

/* --- Author Bio Mobile --- */
@media (max-width: 575px) {
  .author-bio-card {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .author-bio-header {
    border-radius: 0;
    padding: 12px 20px 10px;
  }

  .author-bio-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
    gap: 16px;
  }

  .author-bio-name {
    font-size: 18px;
  }

  .author-bio-text {
    font-size: 14px;
  }

  .author-bio-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .author-bio-link,
  .author-bio-cookbook {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 18px;
  }
}

/* --- Author Bio Print --- */
@media print {
  .author-bio-card {
    border: 1px solid #ccc;
    box-shadow: none;
    border-radius: 0;
  }

  .author-bio-header {
    background: #333;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   Reviews Section — Magazine-style review cards
   ========================================================================== */

/* --- Section container --- */
.comments-area {
  margin-top: 48px;
  background: transparent;
  padding: 0;
}

/* --- Reviews header bar (navy gradient) --- */
.kf-reviews-header {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px 12px 0 0;
  border-bottom: 3px solid #c4714b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.kf-reviews-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kf-reviews-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.kf-reviews-count {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.kf-reviews-header-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kf-reviews-header-stars .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

.kf-reviews-header-stars svg path[fill="#6c757d"] {
  fill: rgba(255, 255, 255, 0.4);
}

/* --- Comment list reset --- */
.comments-area .comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.comments-area .comment-list li.comment {
  padding: 0;
  margin: 0;
  border: none;
}

/* --- Review card --- */
.kf-review-card {
  background: #fdf9f5;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.06);
}

/* --- Review meta (avatar + author + date + stars) --- */
.kf-review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.kf-avatar-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.kf-avatar-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #c4714b;
}

.kf-review-meta-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.kf-review-author {
  color: #2B354F;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.kf-review-date {
  color: #8a7e6e;
  font-size: 13px;
  line-height: 1.3;
}

.kf-review-stars {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.kf-review-stars img {
  width: 14px;
  height: 14px;
}

/* --- Review body --- */
.kf-review-body {
  color: #3a3f4b;
  font-size: 16px;
  line-height: 1.7;
}

.kf-review-body p {
  margin-bottom: 0.5em;
}

.kf-review-body p:last-child {
  margin-bottom: 0;
}

/* Hide plugin-appended stars (handled by card meta now) */
.kf-review-body p.stars {
  display: none;
}

/* --- Review footer (reply link) --- */
.kf-review-footer {
  margin-top: 10px;
}

.kf-review-footer a,
.kf-review-footer .comment-reply-link {
  color: #6b5e4b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.kf-review-footer a:hover,
.kf-review-footer .comment-reply-link:hover {
  color: #c4714b;
}

/* --- Nested reply threading --- */
.comments-area .comment-list .children {
  list-style: none;
  padding-left: 20px;
  margin-left: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.children .kf-review-card {
  background: #f8f5f0;
  border-left: 3px solid #c4714b;
}

/* --- "says:" hide (WP default markup) --- */
.comment-list .says {
  display: none;
}

/* --- Comment form: cream card wrapper --- */
.comments-area .comment-respond {
  background: #fdf9f5;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.06);
}

.comments-area .comment-respond .comment-reply-title,
.comments-area #reply-title {
  color: #2B354F;
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* --- Form labels --- */
.comments-area .comment-form label {
  color: #6b5e4b;
  font-weight: 500;
  font-size: 14px;
}

/* --- 2-column name/email layout --- */
.kf-review-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.kf-review-form > * {
  width: 100%;
}

.kf-review-form .comment-form-author,
.kf-review-form .comment-form-email {
  width: calc(50% - 8px);
  margin: 0 0 8px 0;
}

.kf-review-form .comment-form-author input,
.kf-review-form .comment-form-email input {
  width: 100% !important;
}

/* --- Input/textarea styling --- */
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
  border: 1px solid #e8e2d9;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comments-area .comment-form input[type="text"]:focus,
.comments-area .comment-form input[type="email"]:focus,
.comments-area .comment-form input[type="url"]:focus,
.comments-area .comment-form textarea:focus {
  border-color: #c4714b;
  box-shadow: 0 0 0 3px rgba(196, 113, 75, 0.15);
  outline: none;
}

/* --- Submit button: navy gradient pill --- */
.comments-area .comment-form .form-submit input[type="submit"],
.comments-area .comment-form .submit {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(43, 53, 79, 0.15);
}

.comments-area .comment-form .form-submit input[type="submit"]:hover,
.comments-area .comment-form .submit:hover {
  background: linear-gradient(135deg, #3d4a6b 0%, #4d5c80 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 53, 79, 0.25);
}

/* --- Rating label warm styling --- */
.comments-area .comment-form .comment-form-rating label {
  color: #6b5e4b;
}

/* --- Star picker: larger touch targets --- */
.comments-area .comment-form .comment-form-rating .stars a {
  font-size: 24px;
}

/* --- Mobile reviews --- */
@media (max-width: 575px) {
  .kf-reviews-header {
    border-radius: 0;
    margin-left: -15px;
    margin-right: -15px;
    padding: 14px 20px;
  }

  .kf-reviews-label {
    font-size: 16px;
  }

  .comments-area .comment-list {
    gap: 8px;
    padding-top: 12px;
  }

  .kf-review-card {
    border-radius: 0;
    margin-left: -15px;
    margin-right: -15px;
    border-left: none;
    border-right: none;
    padding: 16px 20px;
  }

  .kf-avatar-initial,
  .kf-avatar-photo {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .kf-review-meta {
    gap: 10px;
  }

  .kf-review-stars img {
    width: 12px;
    height: 12px;
  }

  /* Stack name/email on mobile */
  .kf-review-form .comment-form-author,
  .kf-review-form .comment-form-email {
    width: 100%;
  }

  .comments-area .comment-respond {
    border-radius: 0;
    margin-left: -15px;
    margin-right: -15px;
    border-left: none;
    border-right: none;
    padding: 20px;
  }

  .comments-area .comment-form .form-submit input[type="submit"],
  .comments-area .comment-form .submit {
    width: 100%;
    border-radius: 12px;
  }

  .comments-area .comment-list .children {
    padding-left: 12px;
  }

  .children .kf-review-card {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
}

/* --- Print: hide comments --- */
@media print {
  .comments-area {
    display: none;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.recipe-faq-card {
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
}

.recipe-faq-header {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  padding: 20px 28px 18px;
  border-bottom: 3px solid #c4714b;
}

.recipe-faq-header .recipe-card-label {
  color: #fff;
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
}

h2.recipe-faq-title {
  color: #fff !important;
  font-size: 22px;
  font-weight: 700;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.3;
}

.recipe-faq-body {
  background: #fff;
  padding: 8px 0;
}

/* Individual FAQ item */
details.recipe-faq {
  border-bottom: 1px solid #e8e2d9;
}

details.recipe-faq:last-child {
  border-bottom: none;
}

/* Question (summary) */
.recipe-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  font-size: 17px;
  font-weight: 700;
  color: #2B354F;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
  user-select: none;
}

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

.recipe-faq-question::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #8a7e6e;
  border-bottom: 2px solid #8a7e6e;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details.recipe-faq[open] > .recipe-faq-question::after {
  transform: rotate(-135deg);
}

.recipe-faq-question:hover {
  background: #f8f5f0;
}

details.recipe-faq[open] > .recipe-faq-question {
  background: #f8f5f0;
}

/* Answer */
.recipe-faq-answer {
  padding: 0 28px 20px;
  background: #fdf9f5;
}

.recipe-faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #3a3f4b;
  margin: 0;
  padding-top: 16px;
}

/* --- FAQ Mobile --- */
@media (max-width: 575px) {
  .recipe-faq-card {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .recipe-faq-header {
    padding: 16px 20px 14px;
    border-radius: 0;
  }

  h2.recipe-faq-title {
    font-size: 19px;
  }

  .recipe-faq-question {
    padding: 16px 20px;
    font-size: 16px;
  }

  .recipe-faq-answer {
    padding: 0 20px 16px;
  }
}

/* --- FAQ Print --- */
@media print {
  .recipe-faq-card {
    border: 1px solid #ccc;
    box-shadow: none;
    border-radius: 0;
  }

  .recipe-faq-header {
    background: #333;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  details.recipe-faq {
    display: block !important;
  }

  details.recipe-faq > .recipe-faq-answer {
    display: block !important;
  }

  .recipe-faq-question::after {
    display: none;
  }
}

/* ==========================================================================
   Nutrition Section (inside recipe card)
   ========================================================================== */

.recipe-card-nutrition {
  padding: 24px 0 8px;
}

.recipe-card-nutrition-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.recipe-card-nutrition-header .recipe-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2B354F;
  opacity: 1;
}

.recipe-card-serving-note {
  font-size: 13px;
  color: #8a7e6e;
  font-weight: 500;
}

.recipe-card-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.recipe-card-nutrition-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
}

.recipe-card-nutrition-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2B354F;
  line-height: 1.2;
}

.recipe-card-nutrition-stat .stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a7e6e;
  margin-top: 4px;
}

/* Disclaimer toggle */
.recipe-card-disclaimer {
  margin-top: 4px;
}

.recipe-card-disclaimer summary {
  font-size: 13px;
  font-weight: 600;
  color: #8a7e6e;
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
}

.recipe-card-disclaimer summary::-webkit-details-marker {
  display: none;
}

.recipe-card-disclaimer summary::before {
  content: '▸ ';
  font-size: 11px;
}

.recipe-card-disclaimer[open] summary::before {
  content: '▾ ';
}

.recipe-card-disclaimer p {
  font-size: 12px;
  color: #8a7e6e;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* --- Tablet (< 768px): 3 columns --- */
@media (max-width: 767px) {
  .recipe-card-nutrition-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Mobile (< 576px): 2 columns --- */
@media (max-width: 575px) {
  .recipe-card-nutrition {
    padding: 20px 0 8px;
  }

  .recipe-card-nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .recipe-card-nutrition-stat {
    padding: 12px 6px;
  }

  .recipe-card-nutrition-stat .stat-value {
    font-size: 20px;
  }

  .recipe-card-nutrition-stat .stat-label {
    font-size: 11px;
  }

  .recipe-card-nutrition-header {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
  }
}

/* --- Print: nutrition --- */
@media print {
  .recipe-card-nutrition-stat {
    background: #f5f5f5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .recipe-card-nutrition-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
}

/* ==========================================================================
   Photo Carousel Warm-Up
   ========================================================================== */

/* Give the carousel row more breathing room */
article.h-recipe .carousel {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: 16px;
}

article.h-recipe .carousel .carousel-control-prev,
article.h-recipe .carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(43, 53, 79, 0.7);
  opacity: 1;
  margin: 0 8px;
  bottom: auto;
}

article.h-recipe .carousel .carousel-control-prev:hover,
article.h-recipe .carousel .carousel-control-next:hover {
  background: rgba(43, 53, 79, 0.9);
}

article.h-recipe .carousel .carousel-control-prev-icon,
article.h-recipe .carousel .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}

/* Hide the green time badge overlay */
article.h-recipe .badge-success.badge-pill {
  display: none !important;
}

/* ==========================================================================
   Homepage Warm Design Upgrade
   All rules scoped under .kf-home to avoid bleeding into recipe/archive pages
   ========================================================================== */

/* --- Section Badge (reusable across all sections) --- */
.kf-section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2B354F;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  padding: 6px 18px;
}

.kf-section-badge .h6 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

/* --- 1. Hero Section --- */
.kf-home .kf-hero-accent {
  color: #c4714b;
}

/* Hero bg: subtle warm tint */
.kf-home .hero {
  background: #fdfcfa !important;
  border-bottom-color: #e8e2d9 !important;
}

/* Search input: warm border + focus */
.kf-home .hero .form-control {
  border: 2px solid #e8e2d9;
  border-radius: 12px 0 0 12px;
  padding: 12px 18px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kf-home .hero .form-control:focus {
  border-color: #c4714b;
  box-shadow: 0 0 0 3px rgba(196, 113, 75, 0.15);
  outline: none;
}

/* Search button: navy gradient */
.kf-home .hero .search {
  background: linear-gradient(135deg, #2B354F, #3d4a6b) !important;
  border-color: #2B354F !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 12px 20px;
  transition: all 0.2s;
}

.kf-home .hero .search:hover {
  background: linear-gradient(135deg, #3d4a6b, #4d5c80) !important;
}

/* Recipe count pill */
.kf-home .kf-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2B354F;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  padding: 6px 16px;
}

/* Social section: compact, left-aligned */
.kf-home .kf-hero-social {
  border-top-color: #e8e2d9 !important;
  text-align: left !important;
}

.kf-home .kf-hero-social-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a7e6e;
  margin-bottom: 10px;
}

/* Social icons: warm circles */
.kf-home .kf-hero-social .list-social {
  text-align: left !important;
  margin-bottom: 0 !important;
}

.kf-home .kf-hero-social .list-social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  transition: all 0.2s;
}

.kf-home .kf-hero-social .list-social-item a:hover {
  background: #efe9e0;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(120, 90, 50, 0.12);
}

.kf-home .kf-hero-social .list-social-item img {
  width: 22px !important;
  height: 22px !important;
}

/* Featured recipe badge: rounded, better typography */
.kf-home .kf-hero-badge {
  background: linear-gradient(135deg, #2B354F, #3d4a6b) !important;
  border-radius: 16px;
  border-bottom: 3px solid #c4714b;
  padding: 16px 24px !important;
}

.kf-home .kf-hero-badge .h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.kf-home .kf-hero-badge span:last-child {
  font-size: 13px;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* --- 2. Course Categories --- */
.kf-home .kf-course-card {
  background: #fdf9f5 !important;
  border-color: #e8e2d9 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px !important;
  padding: 24px 16px !important;
  box-shadow: 0 2px 12px rgba(120, 90, 50, 0.06);
}

.kf-home .kf-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(120, 90, 50, 0.14);
  background: #fff !important;
}

/* Circle image: warm ring + shadow */
.kf-home .kf-course-card .rounded-circle {
  border: 3px solid #e8e2d9;
  box-shadow: 0 3px 12px rgba(120, 90, 50, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kf-home .kf-course-card:hover .rounded-circle {
  border-color: #c4714b;
  box-shadow: 0 4px 16px rgba(196, 113, 75, 0.18);
}

/* Category name: navy, no underline */
.kf-home a.child {
  color: #2B354F;
  text-decoration: none !important;
  font-weight: 700;
}

.kf-home a.child:hover {
  color: #2B354F;
  text-decoration: none !important;
}

/* Recipe count */
.kf-home .kf-course-count {
  color: #c4714b;
  font-size: 13px;
  font-weight: 600;
}

/* --- 3/4/7. Cards (getcard) — scoped overrides --- */
.kf-home .other-recipes .card,
.kf-home section .card {
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kf-home .other-recipes .card:hover,
.kf-home section .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(120, 90, 50, 0.12);
}

/* Card image: flush with card edges, only top corners rounded */
.kf-home .card .card-img-top {
  border-radius: 16px 16px 0 0 !important;
  margin: 0;
}

/* Tighten card body after hidden wave */
.kf-home .card .card-body {
  margin-top: 0;
}

/* Card rating row */
.kf-home .card .rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kf-home .card .rating .text-muted {
  color: #8a7e6e !important;
  font-size: 12px;
}

/* Warm time badge on homepage cards (override recipe-page hide rule) */
.kf-home .badge-success {
  display: inline-block !important;
  background: linear-gradient(135deg, #2B354F, #3d4a6b) !important;
  color: #fff !important;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Hide SVG wave shape divider on homepage cards */
.kf-home .card .shape {
  display: none !important;
}

/* Card title */
.kf-home .card-title {
  color: #2B354F;
}

/* "See the Recipe" link → warm pill */
.kf-home .card-body a.font-weight-bold,
.kf-home .card-body .text-success {
  color: #2B354F !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  transition: all 0.2s;
}

.kf-home .card-body a.font-weight-bold:hover,
.kf-home .card-body .text-success:hover {
  background: #efe9e0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
  text-decoration: none;
}

/* Featured section warm bg */
.kf-home .bg-gradient-light {
  background: #fdf9f5 !important;
}

/* --- 5. Facts/Stats Section --- */
.kf-home .kf-stat-number {
  color: #2B354F;
  font-weight: 700;
}

.kf-home .bg-gray {
  background: #f8f5f0 !important;
}

/* --- 6. Popular Tags --- */
.kf-home .tag-list .item a {
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  color: #2B354F;
  border-radius: 20px;
  padding: 6px 16px;
  display: inline-block;
  transition: all 0.2s;
  text-decoration: none;
}

.kf-home .tag-list .item a:hover {
  background: #efe9e0;
  color: #2B354F;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
  text-decoration: none;
}

/* --- 8. Footer --- */
.kf-home ~ footer a:hover,
.kf-home + footer a:hover {
  color: #c4714b !important;
}

/* --- Mobile: ensure no overflow from warm borders --- */
@media (max-width: 575px) {
  .kf-home .kf-course-card {
    border-radius: 10px !important;
  }

  .kf-home .tag-list .item a {
    font-size: 14px;
    padding: 5px 12px;
  }
}


/* ==========================================================================
   Archive Hero — Featured + Side Cards
   ========================================================================== */

/* --- Featured hero card (left column) — overlay style --- */
.kf-archive-hero-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  height: 100%;
}

.kf-archive-hero-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 420px;
}

.kf-archive-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(120, 90, 50, 0.12);
}

.kf-archive-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.kf-archive-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 28px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kf-archive-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2B354F, #3d4a6b);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.kf-archive-time-pill img {
  filter: brightness(0) invert(1);
}

.kf-archive-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.kf-archive-hero-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.kf-archive-hero-rating .rating-result > span {
  color: #e8a732 !important;
}

.kf-archive-hero-rating .rating-result > span:after {
  color: rgba(255,255,255,0.4) !important;
}

.kf-archive-hero-rating span[itemprop="ratingCount"],
.kf-archive-hero-rating .rating-result + span {
  color: rgba(255,255,255,0.8) !important;
}

.kf-archive-hero-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 8px 20px;
  transition: background 0.2s ease;
}

.kf-archive-hero-card:hover .kf-archive-hero-cta {
  background: rgba(255,255,255,0.25);
}

/* --- Course description intro card --- */
.kf-archive-intro-card {
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.kf-archive-intro-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2B354F;
  margin: 0 0 10px;
}

.kf-archive-intro-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #5a6275;
  margin: 0;
}

/* --- Sidebar cards (right column) --- */
.kf-archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.kf-archive-side-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #fdf9f5;
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
  outline: none;
}

.kf-archive-side-card:focus,
.kf-archive-side-card:active {
  outline: none;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
  border-color: #e8e2d9;
}

a.kf-archive-side-card {
  border-bottom: none !important;
  color: inherit;
}

a.kf-archive-hero-link {
  border-bottom: none !important;
  color: inherit;
}

.kf-archive-side-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(120, 90, 50, 0.1);
  border-color: #c4714b;
  color: inherit;
}

.kf-archive-side-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
}

.kf-archive-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kf-archive-side-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kf-archive-side-title {
  font-size: 15px;
  font-weight: 700;
  color: #2B354F;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kf-archive-side-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #5a6275;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kf-archive-side-cta {
  font-size: 13px;
  font-weight: 700;
  color: #c4714b;
  margin-top: 2px;
  background: #f5f0ea;
  border-radius: 20px;
  padding: 2px 10px;
  align-self: flex-start;
}

.kf-archive-side-card:hover .kf-archive-side-cta {
  text-decoration: underline;
}

/* --- Archive hero tablet --- */
@media (max-width: 991px) {
  .kf-archive-sidebar {
    margin-top: 8px;
  }

  .kf-archive-hero-card {
    min-height: 340px;
  }
}

/* --- Archive hero mobile — match Similar Recipes card style --- */
@media (max-width: 575px) {
  .kf-archive-hero-card {
    min-height: 280px;
  }

  .kf-archive-hero-overlay {
    padding: 60px 20px 20px;
  }

  .kf-archive-hero-title {
    font-size: 20px;
  }

  .kf-archive-sidebar {
    gap: 10px;
  }

  .kf-archive-side-card {
    gap: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .kf-archive-side-thumb {
    width: 110px;
    min-width: 110px;
    height: 110px;
    border-radius: 0;
  }

  .kf-archive-side-thumb img {
    border-radius: 0;
  }

  .kf-archive-side-info {
    padding: 10px 14px;
    justify-content: center;
  }

  .kf-archive-side-title {
    font-size: 14px;
    letter-spacing: -0.01em;
  }

  .kf-archive-side-meta {
    font-size: 11px;
    background: #f5f0ea;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    width: fit-content;
  }

  .kf-archive-side-cta {
    display: none;
  }

  .kf-archive-intro-card {
    padding: 20px 22px;
  }

  .kf-archive-intro-card h2 {
    font-size: 19px;
  }
}

/* ==========================================================================
   Recently Viewed Recipes (Sidebar)
   ========================================================================== */

.kf-rv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #e8e2d9;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s;
}

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

.kf-rv-item:hover {
  background-color: #faf8f5;
  text-decoration: none;
  color: inherit;
}

.kf-rv-item:hover .kf-rv-title {
  color: #c4714b;
}

.kf-rv-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.kf-rv-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kf-rv-title {
  font-size: 13px;
  font-weight: 600;
  color: #2B354F;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

/* =============================================
   HOMEPAGE — Recently Viewed Section
   ============================================= */

.kf-home .kf-home-rv-row {
  display: flex;
  gap: 16px;
  overflow: hidden;
}

.kf-home .kf-home-rv-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: calc((100% - 7 * 16px) / 8);
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kf-home .kf-home-rv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(120, 90, 50, 0.12), 0 2px 6px rgba(120, 90, 50, 0.06);
  text-decoration: none;
  color: inherit;
}

.kf-home .kf-home-rv-card {
  border-bottom: 1px solid #e8e2d9;
}

.kf-home .kf-home-rv-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.kf-home .kf-home-rv-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kf-home .kf-home-rv-title {
  font-size: 13px;
  font-weight: 700;
  color: #2B354F;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.kf-home .kf-home-rv-card:hover .kf-home-rv-title {
  color: #c4714b;
}

/* Responsive: 4 cards on tablet-ish */
@media (max-width: 991px) {
  .kf-home .kf-home-rv-card {
    width: calc((100% - 3 * 16px) / 4);
  }
}

/* 3 cards on smaller tablets */
@media (max-width: 767px) {
  .kf-home .kf-home-rv-card {
    width: calc((100% - 2 * 16px) / 3);
  }
}

/* 2 cards on mobile */
@media (max-width: 575px) {
  .kf-home .kf-home-rv-card {
    width: calc((100% - 16px) / 2);
  }
}

/* Recently Viewed — skeleton placeholders (empty state) */
@keyframes kf-skel-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.15; }
}

.kf-home .kf-home-rv-placeholder {
  pointer-events: none;
  cursor: default;
}

.kf-home .kf-home-rv-placeholder:hover {
  transform: none;
  box-shadow: none;
}

.kf-home .kf-home-rv-skel-thumb {
  width: 100%;
  height: 100px;
  background: #e8e2d9;
  animation: kf-skel-pulse 2s ease-in-out infinite;
}

.kf-home .kf-home-rv-skel-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kf-home .kf-home-rv-skel-line {
  height: 10px;
  border-radius: 4px;
  background: #e8e2d9;
  animation: kf-skel-pulse 2s ease-in-out infinite;
}

.kf-home .kf-home-rv-skel-line--short {
  height: 8px;
}

.kf-home .kf-home-rv-empty-hint {
  font-size: 0.85rem;
  color: #9a9080;
}

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

.kf-footer {
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  border-top: 3px solid #c4714b;
  padding: 56px 0 0;
}

.kf-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.kf-footer a:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .kf-footer { padding: 40px 0 0; }
}

/* Main area: brand (50%) + right (50%) */
.kf-footer__main {
  display: flex;
  gap: 48px;
  padding-bottom: 40px;
}

.kf-footer__brand {
  flex: 0 0 280px;
}

.kf-footer__right {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 32px;
}

@media (max-width: 767.98px) {
  .kf-footer__main {
    flex-direction: column;
    gap: 32px;
    padding-bottom: 32px;
  }

  .kf-footer__brand {
    flex: none;
    text-align: center;
  }

  .kf-footer__right {
    flex: none;
    flex-wrap: wrap;
    gap: 24px 32px;
    justify-content: center;
    text-align: center;
  }
}

.kf-footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 12px 0 20px;
  line-height: 1.5;
}

/* Social icons — always visible */
.kf-footer__social .list-unstyled {
  margin-bottom: 0;
}

.kf-footer__social .list-social-item img {
  opacity: 0.7;
  transition: opacity 0.2s;
  width: 28px;
  height: 28px;
}

.kf-footer__social .list-social-item:hover img {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .kf-footer__social .list-unstyled {
    justify-content: center;
  }
}

/* Nav columns (inside .kf-footer__right) */
.kf-footer__nav {
  display: flex;
  flex: 3;
  gap: 24px;
}

.kf-footer__right > .kf-footer__recent {
  flex: 2;
  min-width: 0;
  overflow: hidden;
}

/* Tablet: stack recently viewed below nav links */
@media (max-width: 991.98px) {
  .kf-footer__right {
    flex-wrap: wrap;
  }
  .kf-footer__nav {
    flex: 1 1 100%;
  }
  .kf-footer__right > .kf-footer__recent {
    flex: 1 1 100%;
  }
}

@media (max-width: 767.98px) {
  .kf-footer__nav {
    justify-content: center;
    gap: 24px 32px;
  }
}

.kf-footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.kf-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kf-footer__links li {
  margin-bottom: 6px;
}

.kf-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, text-shadow 0.2s;
}

.kf-footer__links a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(196, 113, 75, 0.3);
}

/* Bottom bar */
.kf-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.kf-footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.kf-footer__bottom a:hover {
  color: #fff;
}

.kf-footer__sep {
  margin: 0 8px;
}

@media (max-width: 767.98px) {
  .kf-footer__bottom {
    text-align: center;
    padding-right: 56px;
  }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.kf-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(43, 53, 79, 0.85);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.kf-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kf-back-to-top:hover {
  background: #c4714b;
}

@media (max-width: 575px) {
  .kf-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

/* ==========================================================================
   Footer Recipe Count Badge
   ========================================================================== */

.kf-footer__badge {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 20px;
}

/* ==========================================================================
   Footer Recently Viewed (nav column)
   ========================================================================== */

.kf-footer__recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kf-footer-rv-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.kf-footer-rv-card:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.kf-footer-rv-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.kf-footer-rv-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kf-footer-rv-card:hover .kf-footer-rv-title {
  color: #fff;
}

@media (max-width: 767.98px) {
  .kf-footer__recent {
    flex: 1 1 100%;
  }

  .kf-footer__recent-list {
    align-items: center;
  }

  .kf-footer-rv-card {
    width: 260px;
  }
}


/* ==========================================================================
   Collection Pages (taxonomy-tags.php → /collections/)
   ========================================================================== */

/* --- Hero header --- */
.kf-collection-hero {
  position: relative;
  overflow: hidden;
  background: #f8f5f0;
  padding: 56px 0 48px;
  border-bottom: 1px solid #e8e2d9;
}

/* Hero inner: text left, featured card right */
.kf-collection-hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.kf-collection-hero-text {
  flex: 1;
  min-width: 0;
}

/* Featured recipe card in hero */
.kf-collection-featured {
  flex-shrink: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(120, 90, 50, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kf-collection-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(120, 90, 50, 0.15);
  text-decoration: none;
  color: inherit;
}

.kf-collection-featured-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.kf-collection-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kf-collection-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #c4714b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.kf-collection-featured-info {
  padding: 14px 16px 16px;
}

.kf-collection-featured-title {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #2B354F;
  margin: 0 0 6px;
  line-height: 1.3;
}

.kf-collection-hero-title {
  color: #2B354F;
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.kf-collection-hero-desc {
  color: #6b5e4b;
  font-size: 17px;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 16px;
}

.kf-collection-hero-desc p {
  margin: 0 0 8px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.kf-collection-hero-desc p:last-child {
  margin-bottom: 0;
}

/* Links inside hero description */
.kf-collection-hero-desc a {
  color: #6b5e4b;
  text-decoration: underline;
  text-decoration-color: rgba(107, 94, 75, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.kf-collection-hero-desc a:hover {
  color: #c4714b;
  text-decoration-color: #c4714b;
}


.kf-collection-hero-count {
  display: inline-block;
  background: #f5f0ea;
  color: #6b5e4b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 16px;
  border-radius: 20px;
}

/* --- Collection body wrapper --- */
.kf-collection-body {
  padding-top: 8px;
  padding-bottom: 48px;
}

/* --- Sort Bar (Collection Pages) --- */
.kf-collection-sort-bar {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0;
  border-bottom: 1px solid #e8e2d9;
  margin-bottom: 8px;
}

.kf-collection-sort-wrap {
  position: relative;
}

.kf-collection-sort-btn {
  background: #f5f0ea;
  color: #6b5e4b;
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kf-collection-sort-btn:hover {
  background: #efe9e0;
}

.kf-collection-sort-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  min-width: 160px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kf-collection-sort-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 13px;
  color: #3a3f4b;
  background: none;
  border: none;
  border-bottom: 1px solid #f0ebe5;
  cursor: pointer;
}

.kf-collection-sort-option:last-child {
  border-bottom: none;
}

.kf-collection-sort-option:hover {
  background: #f5f0ea;
}

.kf-collection-sort-option.active {
  background: #2B354F;
  color: #fff;
}

/* --- Sorted Results Container --- */
.kf-collection-sorted {
  padding-top: 24px;
}

.kf-collection-load-more-wrap {
  text-align: center;
  padding: 32px 0;
}

/* --- Course section --- */
.kf-collection-section {
  padding-top: 40px;
}

.kf-collection-section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #2B354F;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #c4714b;
  display: inline-block;
}

/* --- CSS Grid — 4 columns desktop --- */
.kf-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Minimal card --- */
.kf-card-minimal {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 12px rgba(120, 90, 50, 0.06);
}

.kf-card-minimal:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(120, 90, 50, 0.12);
  text-decoration: none;
  color: inherit;
}


.kf-card-minimal-img {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
}

.kf-card-minimal-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kf-card-minimal-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.kf-card-minimal-title {
  font-size: 15px;
  font-weight: 600;
  color: #2B354F;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kf-card-minimal:hover .kf-card-minimal-title {
  color: #c4714b;
}

.kf-card-minimal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #8a7e6e;
}

.kf-card-minimal-meta span {
  display: inline-flex;
  align-items: center;
  background: #f5f0ea;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* --- Reveal animation for AJAX-loaded cards --- */
@keyframes kfCardReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kf-card-minimal.kf-card-reveal {
  animation: kfCardReveal 0.35s ease both;
}

/* --- Show More button --- */
.kf-collection-show-more-wrap {
  text-align: center;
  margin-top: 20px;
}

.kf-collection-show-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border: 2px solid #e8e2d9;
  border-radius: 50px;
  background: #fff;
  color: #2B354F;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.kf-collection-show-more:hover {
  background: #f8f5f0;
  border-color: #c4714b;
  color: #c4714b;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
}

.kf-collection-show-more svg {
  transition: transform 0.2s;
}

.kf-collection-show-more:hover svg {
  transform: translateY(2px);
}

/* --- Tablet (< 992px): 3 columns, stack hero --- */
@media (max-width: 991px) {
  .kf-collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kf-collection-hero-inner {
    flex-direction: column;
    gap: 24px;
  }

  .kf-collection-featured {
    width: 100%;
    flex-direction: row;
    display: flex;
  }

  .kf-collection-featured-img {
    width: 200px;
    flex-shrink: 0;
    aspect-ratio: auto;
  }

  .kf-collection-featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* --- Mobile (< 576px): 2 columns, compact --- */
@media (max-width: 575px) {
  .kf-collection-hero {
    padding: 36px 0 32px;
  }

  .kf-collection-hero-inner {
    flex-direction: column;
    gap: 24px;
  }

  .kf-collection-featured {
    width: 100%;
  }

  .kf-collection-hero-title {
    font-size: 24px;
  }

  .kf-collection-hero-desc {
    font-size: 15px;
  }

  .kf-collection-body {
    padding-bottom: 32px;
  }

  .kf-collection-section {
    padding-top: 28px;
  }

  .kf-collection-section-title {
    font-size: 18px;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .kf-collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .kf-card-minimal-info {
    padding: 10px 12px 12px;
    gap: 6px;
  }

  .kf-card-minimal-title {
    font-size: 14px;
  }

  .kf-card-minimal-meta {
    font-size: 11px;
    gap: 4px;
  }

  .kf-card-minimal-meta span {
    padding: 2px 8px;
  }
}

/* --- Print --- */
@media print {
  .kf-collection-hero {
    background: #f8f5f0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .kf-collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .kf-card-minimal {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ─────────────────────────────────────────────
   Global link color reset — kill all blue anchors
   ───────────────────────────────────────────── */

a {
  color: #6b5e4b;
}

a:hover {
  color: #c4714b;
}

/* Similar recipe cards */
a.similar-recipe-card {
  color: inherit;
  border-bottom: none;
}

/* ─────────────────────────────────────────────
   Meet Annie — Homepage E-E-A-T Author Feature
   ───────────────────────────────────────────── */

.kf-meet-annie {
  padding: 4rem 0;
  background: #fdf9f5;
  border-top: 1px solid #e8e2d9;
  border-bottom: 1px solid #e8e2d9;
}

.kf-ma-photo-wrap {
  text-align: center;
}

.kf-ma-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.1);
}

.kf-ma-text-col {
  padding-top: 1.5rem;
}

.kf-ma-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2B354F;
  margin: 0.75rem 0 1rem;
  line-height: 1.3;
}

.kf-ma-credential {
  font-weight: 400;
  color: #8a7e6e;
}

.kf-ma-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.kf-ma-pill {
  display: inline-block;
  background: #f5f0ea;
  color: #6b5e4b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  border: 1px solid #e8e2d9;
  letter-spacing: 0.01em;
}

.kf-ma-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3a3f4b;
  margin-bottom: 1.25rem;
}

.kf-ma-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2B354F;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.kf-ma-cta:hover {
  background: #efe9e0;
  color: #2B354F;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
}

.kf-ma-seen-in {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8e2d9;
}

.kf-ma-seen-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7e6e;
  margin-bottom: 0.4rem;
}

.kf-ma-pubs {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b5e4b;
}

.kf-ma-dot {
  margin: 0 0.3rem;
  color: #c4714b;
}

/* Mobile */
@media (max-width: 767.98px) {
  .kf-meet-annie {
    padding: 2.5rem 0;
    text-align: center;
  }

  .kf-ma-photo {
    width: 180px;
    height: 180px;
  }

  .kf-ma-text-col {
    padding-top: 1.5rem;
  }

  .kf-ma-heading {
    font-size: 1.4rem;
  }

  .kf-ma-pills {
    justify-content: center;
  }

  .kf-ma-bio {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   AJAX Comments — Load More + Submission Feedback
   ========================================================================== */

.kf-btn-load-more {
  display: inline-block;
  padding: 12px 36px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  color: #fff;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(43, 53, 79, 0.18);
}

.kf-btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(43, 53, 79, 0.28);
}

.kf-btn-load-more:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(43, 53, 79, 0.12);
}

/* Fade-in + warm highlight for newly inserted comments */
@keyframes kfCommentFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kf-comment-new {
  animation: kfCommentFadeIn 0.4s ease;
  background: #fdf8f0 !important;
  border-left: 3px solid #c4714b;
  transition: background 2s ease;
}

/* Error message above comment form */
.kf-comment-error {
  background: #fdf0f0;
  border: 1px solid #e2a5a5;
  border-left: 3px solid #c0392b;
  color: #8b2020;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Success / moderation message */
.kf-comment-success {
  background: #f0fdf4;
  border: 1px solid #a5d6b5;
  border-left: 3px solid #27ae60;
  color: #1a6b38;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* ==========================================================================
   Crawl-only recipe links — visually hidden, accessible to crawlers & SR
   ========================================================================== */

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

/* ==========================================================================
   Browse-all CTA (course pages)
   ========================================================================== */

.kf-browse-all-cta {
  text-align: center;
  padding: 40px 0 48px;
}

.kf-browse-all-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #2B354F;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.kf-browse-all-btn:hover {
  background: #3d4a6b;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ==========================================================================
   Course Browse Header (pages 2+)
   ========================================================================== */

.kf-course-browse-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid #e8e2d9;
  margin-bottom: 8px;
}

.kf-course-browse-header .container {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.kf-course-browse-title {
  font-family: 'Roboto', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #2B354F;
  letter-spacing: -0.5px;
  margin: 0;
}

.kf-course-browse-page {
  font-size: 15px;
  color: #8b8172;
  font-weight: 400;
}

@media (max-width: 575px) {
  .kf-course-browse-title {
    font-size: 22px;
  }
}

/* ==========================================================================
   Pagination (course pages 2+)
   ========================================================================== */

.kf-pagination {
  padding: 40px 0 48px;
  text-align: center;
}

.kf-pagination-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.kf-pagination-item a,
.kf-pagination-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.kf-pagination-item a {
  color: #2B354F;
  background: #f5f0e8;
}

.kf-pagination-item a:hover {
  background: #2B354F;
  color: #fff;
  text-decoration: none;
}

.kf-pagination-current span {
  background: #2B354F;
  color: #fff;
}

.kf-pagination-item .dots {
  background: none;
  color: #8b8172;
}
