
/* ============================================================
   Recipe Card â€” Cleaned, merged, and well-commented stylesheet
   - Preserves your design and features
   - Merges duplicate rules and media queries
   - Dark mode: nutrition text = #ffffff (pure white)
   ============================================================ */

/* === THEME VARIABLES === */
:root {
  --bg: #ffffff;
  --text: #000000;
  --card: #ffffff;
  --accent: #DD5903;     /* default accent (kept from original) */
  --muted: #6b7280;
  --border: #DD5903;
  --heading: #0F1A1A;
}

/* === BASE === */
body {
  margin: 0;
  font-family: "Poppins", "Inter", sans-serif;
  background: transparent;
  color: var(--text);
}

/* ============================================================
   Card wrapper & dark-mode variables
   ============================================================ */
.recipe-card {
  max-width: 880px;
  margin: 20px auto 10px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 5px 5px rgba(2, 6, 23, 0.06);
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Dark mode custom properties (overrides) */
.recipe-card.dark {
  --card: #0f1724;
  --text: #f3f4f6;
  --muted: #d1d5db;
  --border: #334155;
  --heading: #38bdf8;     /* note: heading color stays as specified by you */
  --note-bg: #1e293b;
  --note-border: #fbbf24;
  --note-text: #f9fafb;
  background: var(--card);
  color: var(--text);
}

/* === TOP IMAGE === */
.top-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
}

/* === ACTION BUTTON ROW === */
.action-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
  margin: 0;
}

/* Button base */
.btn {
  min-width: 150px;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  box-sizing: border-box;
}

/* Specific button colors */
.btn-print { background: #4f46e5; }
.btn-pin   { background: #e60023; }
.btn-save  { /* optional target for save */ background: var(--accent); }

/* Button hover */
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* === CONTENT / TITLE === */
.content {
  padding: 28px 30px 34px;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 18px 0;
  text-align: center;
}

/* === SWITCH UI (accessible) ===
   Works with markup:
   <label class="switch"><input type="checkbox"><span class="sr-knob"></span></label>
   We use the label pseudo-element for the knob.
*/
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

/* Track */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Make the input fill the label but invisible (still keyboard / screen-reader accessible) */
.switch input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
  appearance: none;
  background: transparent;
  border: 0;
}

/* Knob drawn with ::after */
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 1;
}

/* Checked state â€” using :has where supported, but also provide .active fallback */
.switch:has(input[type="checkbox"]:checked) {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0,0,0,0.06);
}
.switch:has(input[type="checkbox"]:checked)::after {
  transform: translateX(24px);
}

/* JS might add .active â€” respect it */
.switch.active {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0,0,0,0.06);
}
.switch.active::after {
  transform: translateX(24px);
}

/* Hover/focus polish */
.switch:hover, .switch:focus-within {
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

/* === META INFO === */
.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.meta-item .icon  { font-size: 1.4rem; }
.meta-item .label { font-weight: 600; }
.meta-item .value { font-size: 0.95rem; }

/* === SECTION HEADINGS ===
   NOTE: heading color is controlled by --heading and should remain the same in dark mode.
*/
.section h2 {
  font-size: 1.8rem;
  color: var(--heading);
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--heading);
  margin-bottom: 18px;
}

/* === SERVING SIZE INLINE === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.serving-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.serving-inline .label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Serving options */
.serving-options {
  display: flex;
  gap: 6px;
}

.serving-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  color: var(--text);
  box-sizing: border-box;
}
.serving-btn.active {
  background: var(--accent);
  color: #1a0500;
  border-color: var(--accent);
}

/* === CHECKBOX LIST === */
.checkbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Default checkbox item */
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
}
.checkbox-item label {
  line-height: 1.55;
  flex: 1;
  cursor: pointer;
}

/* ============================================================
   Note / Tip card (light mode)
   - preserved gradient and large lightbulb icon in light mode
   - In dark mode we switch to a dark solid background and keep text readable
   ============================================================ */
.note,
.note-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fff9e6 0%, #fef3c7 100%);
  border-left: 5px solid #f6b93b;
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #5b4636;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Large emoji icon (light mode) */
.note::before,
.note-card::before {
  content: "\1F4A1";
  font-size: 1.8rem;
  margin-right: 12px;
  line-height: 1;
  flex-shrink: 0;
}

/* If author inserted a small .note-icon inside, hide it to avoid duplicates */
.note .note-icon,
.note-card .note-icon {
  display: none !important;
}

/* Optional simpler note-card variant (kept from edits) */
.note-card {
  background-color: #f9f9f9;
  border-left: 4px solid #ffb347;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 10px 0;
}
.note-content { color: #333; font-size: 16px; line-height: 1.6; }
.note-content strong { font-weight: bold; display: inline; margin-right: 4px; }

/* === NUTRITION BOX === */
.nutrition-box {
  border: 2px solid var(--heading);
  border-radius: 12px;
  padding: 26px;
  margin-top: 60px;
  background: #f9fafb;
}

.nutrition-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 12px;
}

.nutri-item {
  text-align: center;
  margin: 12px 0;
}
.nutri-item .value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent); /* in light mode values use accent */
}
.nutri-item .label {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* ============================================================
   Individual Instruction Cards (ol.checkbox-list variant)
   - Styled as separate cards; hover lift effect
   ============================================================ */
ol.checkbox-list {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
ol.checkbox-list .checkbox-item {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease, border 0.3s ease;
}
ol.checkbox-list .checkbox-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
ol.checkbox-list .checkbox-item input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #10b981; /* green accent in light mode */
  border-radius: 4px;
  cursor: pointer;
}
ol.checkbox-list .checkbox-item label {
  flex: 1;
  line-height: 1.6;
  font-size: 1rem;
  cursor: pointer;
  color: #111827;
}
ol.checkbox-list .checkbox-item:last-child { margin-bottom: 0; }

/* ============================================================
   DARK MODE ADJUSTMENTS
   - Keep headings color as-is (you requested)
   - Make nutrition text labels & values pure white (#ffffff) for max contrast
   - Ensure notes and checklist items have readable colors
   ============================================================ */
.recipe-card.dark,
.recipe-card.dark .content,
.recipe-card.dark h2,
.recipe-card.dark p,
.recipe-card.dark li,
.recipe-card.dark label,
.recipe-card.dark figcaption {
  color: var(--text);
}

/* === DARK MODE: NOTE CONTRAST FIX === */
.recipe-card.dark .note,
.recipe-card.dark .note-card {
  background: #1e293b !important; /* dark navy */
  border-left-color: #fbbf24 !important; /* gold accent */
  color: #ffffff !important; /* pure white text for better contrast */
}

.recipe-card.dark .note::before,
.recipe-card.dark .note-card::before {
  filter: brightness(1.2); /* slightly brighten ðŸ’¡ icon */
}



/* Nutrition in dark mode:
   - Heading stays same color (per your instruction)
   - Values and labels become pure white for max contrast
*/
.recipe-card.dark .nutrition-box {
  background: var(--note-bg); /* same dark background */
  border-color: #334155;
}
.recipe-card.dark .nutrition-box .nutri-item .value,
.recipe-card.dark .nutrition-box .nutri-item .label {
  color: #ffffff; /* Pure white for maximum contrast per your choice */
}

/* Checklist dark-mode styles */
.recipe-card.dark ol.checkbox-list .checkbox-item {
  background: #1a293b;
  border: 1px solid #22344b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.recipe-card.dark ol.checkbox-list .checkbox-item:hover {
  background: #21344a;
  border-color: #2d4a66;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.recipe-card.dark ol.checkbox-list .checkbox-item label {
  color: #ffffff;
}
/* Keep checkbox itself white-ish so tick remains visible in dark mode */
.recipe-card.dark ol.checkbox-list .checkbox-item input[type="checkbox"] {
  accent-color: #10b981;
  background-color: #ffffff;
  border: 1px solid #2b3e52;
  border-radius: 4px;
}

/* Meta label dark color fix */
.recipe-card.dark .meta-item .label {
  color: #ffffff !important;
}

/* Serving inline dark label */
.recipe-card.dark .serving-inline .label {
  color: #ffffff !important;
}

/* ============================================================
   RESPONSIVE: merged mobile rules (single media query)
   - All mobile fixes consolidated here for readability & maintainability
   ============================================================ */
@media (max-width: 640px) {

  /* Action row: compact, vertically stacked by default, but we support both stacked or spaced */
  .action-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    margin-top: 14px; /* breathing space below image */
  }

  .action-row .btn {
    width: 50%;
    max-width: 180px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: none;
    padding: 0 10px;
  }

  /* Title smaller */
  .title {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }

  /* Serving Size compact */
  .serving-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .serving-btn {
    padding: 4px 10px;
    font-size: 0.85rem;
  }

  /* Make meta info grid 2 columns */
  .meta-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    justify-items: center;
    text-align: center;
    margin-bottom: 22px;
  }

  /* Nutrition: 2 per row, smaller sizes */
  .nutrition-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    justify-items: center;
  }
  .nutri-item {
    margin: 4px 0;
  }
  .nutri-item .value { font-size: 1.4rem; }
  .nutri-item .label { font-size: 0.85rem; }

  /* Remove left indentation for lists */
  .checkbox-list,
  .checkbox-item,
  .cook-mode-row {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  .checkbox-item input { margin-left: 0; }

  /* Notes: icon on top */
  .note,
  .note-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 16px 14px;
  }
  .note::before,
  .note-card::before { margin-right: 0; margin-bottom: 10px; }

  /* Reduce overall padding inside card */
  .content { padding: 18px 20px; }

  /* Smaller meta & nutrition text */
  .meta-item .label,
  .nutri-item .label { font-size: 0.9rem; }
  .meta-item .value,
  .nutri-item .value { font-size: 1.3rem; }

  /* Final mobile headings + nutrition */
  .section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom-width: 2px;
    padding-bottom: 4px;
    margin-bottom: 14px;
  }

  .nutrition-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
  }

  /* TOC box (mobile-specific) */
  .toc-box {
    padding: 16px;
    border-radius: 10px;
  }
  .toc-box h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
    color: #111827;
  }
  .toc-box ol {
    padding-left: 20px;
    margin-bottom: 14px;
    font-size: 0.9rem;
  }
  .toc-box .jump-btn {
    display: inline-block;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
  }
  .toc-box .jump-btn:hover { transform: translateY(-1px); }

  /* Switch smaller on mobile */
  .switch {
    width: 40px;
    height: 20px;
  }
  .switch::after {
    width: 15px;
    height: 15px;
    top: 2px;
    left: 2px;
  }
  .switch:has(input[type="checkbox"]:checked)::after {
    transform: translateX(20px);
  }
  .switch.active::after { transform: translateX(20px); }

  /* Compact action row alternative layout (if you prefer side-by-side) */
  .action-row.side-by-side {
    flex-direction: row;
    justify-content: space-between;
  }
  .action-row.side-by-side .btn { width: 45%; max-width: 120px; height: 36px; font-size: 1.15rem; }
}

/* === Small visual polish & final fixes === */
/* Rounded corners for Print, Pin, Save buttons */
.btn-print, .btn-pin, .btn-save { border-radius: 12px; overflow: hidden; }

/* Optional: subtle reduced spacing near headings on desktop */
.section-header,
.section h2 { margin-top: 10px; margin-bottom: 10px; }

/* Keep the .label utility consistent if used elsewhere */
.label {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  display: inline-block;
  vertical-align: middle;
}
.recipe-card.dark .label { color: var(--note-text); }


/* =========================================================
   DARK MODE FIX: Additional Notes + Note Cards Contrast
   Ensures full readability (pure white text) in dark mode.
   ========================================================= */

.recipe-card.dark .note-card,
.recipe-card.dark .note,
.recipe-card.dark .note-content,
.recipe-card.dark .note-card strong,
.recipe-card.dark .note-card span {
  background: #1e293b !important; /* dark navy background */
  color: #ffffff !important;       /* pure white text for max contrast */
  border-left-color: #fbbf24 !important; /* gold accent border */
}

/* Slightly brighten the ðŸ’¡ icon for dark backgrounds */
.recipe-card.dark .note-card::before,
.recipe-card.dark .note::before {
  filter: brightness(1.3);
}


/* âœ… Strike-through effect when checked */
.checkbox-item input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  color: #888; /* optional: makes it look slightly dimmed */
  transition: all 0.2s ease;
}

/* Optional: smooth hover effect */
.checkbox-item label {
  cursor: pointer;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}


/* === Reduce space above recipe title === */
.recipe-card .content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.recipe-card .content .title {
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 1.3;
}

/* If there's still space, this ensures parent wrappers are tight */
.recipe-card,
.recipe-card .content:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* === Mobile view adjustments === */
@media (max-width: 768px) {
  /* Reduce spacing between print & save buttons */
  .recipe-card .action-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px !important; /* reduce vertical gap between buttons */
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }

  .recipe-card .action-row .btn {
    margin: 0 !important;
    padding: 6px 12px;
    font-size: 14px;
  }

  /* Adjust recipe title spacing (above & below) */
  .recipe-card .content .title {
    margin-top: 12px !important;
    margin-bottom: 17px !important;
    font-size: 1.2em;
    line-height: 1.3;
  }
}


/* Adjust checkbox alignment inside recipe card */
.recipe-card .checkbox-list {
  padding-left: 10px; /* adds a little inner space for the list */
}

.recipe-card .checkbox-item input[type="checkbox"] {
  margin-left: 6px; /* shifts each checkbox slightly to the right */
}


/* Remove unwanted top white space above Jump to Recipe button */
.recipe-post {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.recipe-post > p:first-child {
  display: none !important; /* removes that empty <p></p> gap */
}

/* Tighten spacing around the Jump button area */
.recipe-post .jump-btn {
  margin-top: 10px !important;
  margin-bottom: 20px !important;
}

.recipe-post div[style*="text-align:center"] {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}


/* Remove extra spacing above figcaption */
.recipe-figure figcaption {
  margin-top: 5px; /* or 0px if you want no space at all */
}

/* Remove any empty <p> spacing inside figures */
.recipe-figure p {
  margin: 0;
  padding: 0;
  line-height: 0;
}


body.single-post .recipe-post {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


.nutrition-box {
  margin-top: 0;
  padding-top: 0;
}


/* ============================================
   FAQ STYLES - Add to your theme CSS file
   ============================================ */

.recipe-faq {
  margin: 40px 0;
  padding: 0;
}

.recipe-faq h2.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  color: #222;
  font-weight: 700;
}

/* FAQ Item - Collapsible with details/summary */
.faq-item {
  background: #f9f9f9;
  border-left: 4px solid #DD5903;
  padding: 18px 24px;
  margin-bottom: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Question/Summary styling */
.faq-item summary {
  font-weight: 600;
  font-size: 18px;
  color: #222;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

/* Remove default arrow markers */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::-moz-list-bullet {
  list-style-type: none;
}

/* Custom arrow indicator */
.faq-item summary::after {
  content: "▼";
  font-size: 14px;
  color: #DD5903;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Rotate arrow when open */
.faq-item[open] summary::after {
  transform: rotate(180deg);
}

/* Answer styling */
.faq-item div[itemprop="acceptedAnswer"] {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.faq-item p {
  margin: 0;
  line-height: 1.7;
  color: #555;
  font-size: 16px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .faq-item {
    padding: 14px 18px;
  }
  
  .faq-item summary {
    font-size: 16px;
  }
  
  .recipe-faq h2.section-title {
    font-size: 24px;
  }
}

/* Optional: Add subtle animation when opening */
.faq-item[open] div[itemprop="acceptedAnswer"] {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   AUTHOR BYLINE (TOP) - Force inline, hide <br> tags
   ============================================================ */
.author-byline-top {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.95rem;
  color: #6b7280;
  margin: 12px 0 24px 0;
  padding: 0;
}

/* Hide all <br> tags inside author byline */
.author-byline-top br {
  display: none !important;
}

.author-byline-top::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: url('https://recipebo.com/wp-content/uploads/2025/11/Elish-Grinta.webp');
  background-size: cover;
  background-position: center;
  border: 2px solid #DD5903;
  flex-shrink: 0;
  margin-right: 10px;
}

/* Force all children inline */
.author-byline-top * {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.author-byline-top a {
  color: #111827 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s ease;
  margin-left: 8px !important;
}

.author-byline-top a:hover {
  color: #DD5903 !important;
}

.author-byline-top .separator {
  color: #d1d5db !important;
  margin: 0 6px !important;
}

.author-byline-top time {
  color: #b34602 !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .author-byline-top {
    font-size: 0.9rem;
  }
  
  .author-byline-top::before {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
    margin-right: 8px;
  }
  
  .author-byline-top .separator {
    margin: 0 4px !important;
  }
}

/* ============================================================
   AUTHOR BOX (BOTTOM) - Full author card at end of article
   ============================================================ */
.author-box-bottom {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-box-bottom .author-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-box-bottom .author-image {
  flex-shrink: 0;
}

.author-box-bottom .author-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #DD5903;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-box-bottom .author-details {
  flex: 1;
}

.author-box-bottom h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.author-box-bottom .job-title {
  font-size: 0.95rem;
  color: #b34602;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-box-bottom p {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 18px 0;
}

.author-box-bottom .social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.author-box-bottom .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.author-box-bottom .social-links a:hover {
  background: #DD5903;
  color: #ffffff;
  border-color: #DD5903;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(221, 89, 3, 0.3);
}

/* ============================================================
   DARK MODE for Author Components
   ============================================================ */
.recipe-card.dark .author-byline-top {
  color: #d1d5db;
}

.recipe-card.dark .author-byline-top a {
  color: #60a5fa;
}

.recipe-card.dark .author-byline-top a:hover {
  color: #93c5fd;
}

.recipe-card.dark .author-byline-top time {
  color: #9ca3af;
}

.recipe-card.dark .author-box-bottom {
  background: #1e293b;
  border-color: #334155;
}

.recipe-card.dark .author-box-bottom h3 {
  color: #f3f4f6;
}

.recipe-card.dark .author-box-bottom .job-title {
  color: #fbbf24;
}

.recipe-card.dark .author-box-bottom p {
  color: #d1d5db;
}

.recipe-card.dark .author-box-bottom .social-links a {
  background: #0f172a;
  border-color: #334155;
  color: #d1d5db;
}

.recipe-card.dark .author-box-bottom .social-links a:hover {
  background: #DD5903;
  color: #ffffff;
  border-color: #DD5903;
}

/* ============================================================
   MOBILE RESPONSIVE - Author Components
   ============================================================ */
@media (max-width: 768px) {
  /* Top byline - keep inline on mobile */
  .author-byline-top {
    font-size: 0.85rem;
    margin: 10px 0 20px 0;
  }

  /* Bottom author box - stack vertically */
  .author-box-bottom {
    padding: 20px;
    margin: 30px 0;
  }

  .author-box-bottom .author-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .author-box-bottom .author-image img {
    width: 100px;
    height: 100px;
  }

  .author-box-bottom h3 {
    font-size: 1.3rem;
  }

  .author-box-bottom .job-title {
    font-size: 0.85rem;
  }

  .author-box-bottom p {
    font-size: 0.95rem;
  }

  .author-box-bottom .social-links {
    justify-content: center;
    gap: 10px;
  }

  .author-box-bottom .social-links a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}


/* ============================================================
   STEP DIVIDER - Add line after each cooking step
   ============================================================ */
.step {
  margin: 30px 0;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  position: relative;
}

/* Add divider line after each step (except last one) */
.step::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #DD5903, transparent);
  margin-top: 30px;
}

/* Remove divider from the last step */
.step:last-child::after {
  display: none;
}


/* Hide WordPress featured image caption */
.ct-media-container + figcaption {
  display: none !important;
}





/* Hide schema markup scripts */
script[type="application/ld+json"] {
    display: none !important;
}

/* Hide empty paragraphs that only contain schemas and line breaks */
p:empty,
p > br:only-child {
    display: none !important;
}

/* Remove margin/padding from paragraphs containing only schemas */
p:has(> script[type="application/ld+json"]):not(:has(> :not(script):not(br))) {
    display: none !important;
}


/* Recipe Button Styling - Add this to your CSS file */
.recipe-btn {
  display: inline-block;
  background: #DD5903;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 12px;
  font-family: "Poppins", "Inter", sans-serif;
}

.recipe-btn:hover {
  background: #c44d02;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(221, 89, 3, 0.3);
}

.recipe-btn:active {
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .recipe-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

