/* ═══════════════════════════════════════════════════
   OptimalRecipes Unified Design System 2026
   Merged from Elite Design (#458) + Rich Article (#584)
   Generated: 2026-03-28
   ═══════════════════════════════════════════════════ */

:root {
  --fm-accent: #05B9B4;
  --fm-accent-light: #E6FAF9;
  --fm-terra: #048A86;
  --fm-sage: #166534;
  --fm-sage-light: #F0FDF4;
  --fm-teal: #05B9B4;
  --fm-cream: #F0FDFC;
  --fm-warm-gray: #78716C;
  --fm-text: #1C1917;
  --fm-text-secondary: #44403C;
  --fm-text-muted: #78716C;
  --fm-surface: #FAFAF9;
  --fm-surface-warm: #CCFBF1;
  --fm-border: #E7E5E4;
  --fm-border-accent: #05B9B4;
  --fm-radius: 12px;
  --fm-radius-sm: 8px;
  --fm-radius-lg: 16px;
  --fm-shadow: 0 1px 3px rgba(28,25,23,0.06), 0 1px 2px rgba(28,25,23,0.04);
  --fm-shadow-md: 0 4px 6px rgba(28,25,23,0.07), 0 2px 4px rgba(28,25,23,0.04);
  --fm-space-xs: 8px;
  --fm-space-sm: 16px;
  --fm-space-md: 24px;
  --fm-space-lg: 40px;
  --fm-space-xl: 56px;
}
.dynamic-entry-content, .single .dynamic-entry-content {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--fm-text);
  -webkit-font-smoothing: antialiased;
}
.dynamic-entry-content p, .dynamic-entry-content ul, .dynamic-entry-content ol, .dynamic-entry-content details {
  max-width: 680px;
}
.dynamic-entry-content table, .dynamic-entry-content .comparison-table, .dynamic-entry-content .nutrition-highlights {
  max-width: 780px;
}
.dynamic-entry-content h2, .dynamic-entry-content h3 { text-wrap: balance; }
.dynamic-entry-content p { text-wrap: pretty; color: var(--fm-text-secondary); margin-bottom: 1.25em; }
.dynamic-entry-content h2 {
  font-size: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  font-weight: 700; color: var(--fm-text);
  margin-top: var(--fm-space-xl); margin-bottom: var(--fm-space-md);
  padding-bottom: 12px; border-bottom: 2px solid var(--fm-accent);
  scroll-margin-top: 100px; line-height: 1.25; letter-spacing: -0.01em;
}
.dynamic-entry-content h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600; color: var(--fm-text);
  margin-top: var(--fm-space-lg); margin-bottom: var(--fm-space-sm);
  scroll-margin-top: 100px; line-height: 1.3;
}
.dynamic-entry-content a:not(.wp-block-button__link) {
  color: var(--fm-accent); text-decoration: underline;
  text-decoration-color: rgba(5,185,180,0.3); text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.dynamic-entry-content a:not(.wp-block-button__link):hover { color: var(--fm-terra); text-decoration-color: var(--fm-terra); }
.dynamic-entry-content a:not(.wp-block-button__link):focus-visible { outline: 2px solid var(--fm-accent); outline-offset: 2px; border-radius: 2px; }
.dynamic-entry-content .wp-block-image img, .dynamic-entry-content figure img { border-radius: var(--fm-radius); }
.dynamic-entry-content figcaption {
  font-size: 0.9375rem; color: var(--fm-text-muted);
  text-align: center; font-style: italic; margin-top: var(--fm-space-xs); line-height: 1.5;
}
.yoast-breadcrumb { font-size: 0.8125rem; color: var(--fm-text-muted); margin-bottom: var(--fm-space-md); padding-bottom: var(--fm-space-sm); border-bottom: 1px solid var(--fm-border); }
.yoast-breadcrumb a { color: var(--fm-warm-gray); text-decoration: none; }
.yoast-breadcrumb a:hover { color: var(--fm-accent); }
#yoast-toc { background: var(--fm-surface); border: 1px solid var(--fm-border); border-radius: var(--fm-radius); padding: var(--fm-space-md) var(--fm-space-md) var(--fm-space-sm); margin: var(--fm-space-md) 0 var(--fm-space-lg); }
#yoast-toc h2 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 var(--fm-space-sm); padding: 0; border: none; color: var(--fm-text); }
#yoast-toc ul { list-style: none; padding: 0; margin: 0; }
#yoast-toc li { padding: 6px 0; border-bottom: 1px solid var(--fm-border); }
#yoast-toc li:last-child { border-bottom: none; }
#yoast-toc a { color: var(--fm-text-secondary); text-decoration: none; font-size: 0.9375rem; transition: color 0.15s; }
#yoast-toc a:hover { color: var(--fm-accent); }
.ai-summary, .quick-answer, .key-takeaways,
/* INGREDIENT-DISABLED: .fm-ingredients-box, .fm-equipment-list, */
.meal-prep-guide, .nutrition-highlights,
.comparison-table, .faq-section,
.author-box, .fm-author-box, .expert-citation {
  background: var(--fm-surface); border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius); padding: var(--fm-space-md); margin: var(--fm-space-lg) 0;
  position: relative;
}
.ai-summary { background: linear-gradient(135deg, #F0FDFC 0%, #CCFBF1 100%); border-color: var(--fm-accent); border-left: 4px solid var(--fm-accent); }
.ai-summary .box-title { font-weight: 700; font-size: 1.125rem; color: var(--fm-accent); margin-bottom: var(--fm-space-sm); }
.tested-data-callout { background: var(--fm-cream) !important; border-left: 4px solid var(--fm-accent) !important; border-radius: var(--fm-radius-sm) !important; padding: var(--fm-space-sm) var(--fm-space-md) !important; margin: var(--fm-space-sm) 0 0 !important; }
.tested-data-callout .tested-data-label { font-weight: 700; color: var(--fm-terra); margin-bottom: var(--fm-space-xs); }
.tested-data-callout li { padding: 4px 0; font-size: 0.9375rem; }
.personal-note { background: var(--fm-cream) !important; border-left: 4px solid var(--fm-accent) !important; border-radius: var(--fm-radius) !important; padding: var(--fm-space-md) !important; margin: var(--fm-space-lg) 0 !important; font-size: 1rem !important; line-height: 1.75 !important; }
.quick-answer, .fm-quick-answer { background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%); border-color: var(--fm-sage); border-left: 4px solid var(--fm-sage); }
.quick-answer .box-title, .fm-quick-answer .box-title { font-weight: 700; font-size: 1.0625rem; color: var(--fm-sage); margin-bottom: var(--fm-space-sm); }
.key-takeaways { background: var(--fm-surface); border-left: 4px solid var(--fm-teal); }
.key-takeaways > p:first-child { font-weight: 700; font-size: 1.0625rem; color: var(--fm-teal); margin-bottom: var(--fm-space-sm); }
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { padding: 6px 0; border-bottom: 1px solid var(--fm-border); }
.key-takeaways li:last-child { border-bottom: none; }
.fm-step-card { display: flex; gap: var(--fm-space-sm); align-items: flex-start; background: var(--fm-surface); border: 1px solid var(--fm-border); border-radius: var(--fm-radius); padding: var(--fm-space-md); margin: var(--fm-space-sm) 0; transition: box-shadow 0.2s ease; }
.fm-step-card:hover { box-shadow: var(--fm-shadow-md); }
.fm-step-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; color: #fff; line-height: 1; }
.fm-step-body { flex: 1; min-width: 0; }
.fm-step-body p { margin: 0; }
.fm-step-green { border-left: 4px solid var(--fm-sage); }
.fm-step-green .fm-step-num { background: var(--fm-sage); }
.fm-step-gold { border-left: 4px solid var(--fm-accent); }
.fm-step-gold .fm-step-num { background: var(--fm-accent); }
.fm-step-terra { border-left: 4px solid var(--fm-terra); }
.fm-step-terra .fm-step-num { background: var(--fm-terra); }
/* INGREDIENT-DISABLED: /* deferred to #584 */ */
/* INGREDIENT-DISABLED: /* deferred to #584 */ */
/* INGREDIENT-DISABLED: /* deferred to #584 */ */
/* INGREDIENT-DISABLED: /* deferred to #584 */ */
/* INGREDIENT-DISABLED: /* deferred to #584 */ */
.fm-equipment-list{display:block!important;background:transparent!important;border:none!important;border-radius:0!important;padding:0!important;margin:20px 0!important;list-style:none!important;grid-template-columns:none!important;gap:0!important;box-shadow:none!important;overflow:visible!important}
.fm-equipment-item{display:block!important;position:relative!important;background:transparent!important;border:none!important;border-radius:0!important;padding:0 0 0 22px!important;margin:0 0 10px!important;line-height:1.7!important}
.fm-equipment-item::before{content:"•"!important;position:absolute!important;left:0!important;top:0!important;color:#05B9B4!important;font-size:1.2em!important;font-weight:700!important;line-height:1.2!important}
.fm-equipment-item:hover{background:transparent!important;box-shadow:none!important;border-left:none!important}
.fm-equipment-item:last-child{margin-bottom:0!important}
.author-box, .fm-author-box { background: linear-gradient(135deg, var(--fm-surface) 0%, #F5F5F4 100%); border: 1px solid var(--fm-border); display: flex; flex-wrap: wrap; gap: var(--fm-space-md); align-items: flex-start; padding: var(--fm-space-md); }
.author-box figure, .fm-author-box figure, .fm-author-box img { flex-shrink: 0; margin: 0; width: 80px; height: 80px; }
.author-box figure img, .fm-author-box > img { width: 80px; height: 80px; border-radius: 50% !important; object-fit: cover; border: 3px solid var(--fm-accent); }
.author-box figure figcaption, .fm-author-box figure figcaption { display: none; }
.author-box > p, .fm-author-box > div > p, .fm-author-box > div { flex: 1; min-width: 200px; font-size: 0.9375rem; line-height: 1.7; color: var(--fm-text-secondary); margin: 0; }
.author-credentials { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--fm-space-sm); }
.author-credentials span { background: var(--fm-cream) !important; color: var(--fm-terra) !important; padding: 6px 14px !important; border-radius: 20px !important; font-size: 0.875rem !important; font-weight: 600 !important; border: 1px solid rgba(5,185,180,0.3); }
.faq-section { background: var(--fm-surface); padding: var(--fm-space-md); }
.faq-section h2 { border-bottom: 2px solid var(--fm-accent); padding-bottom: 12px; margin-top: 0; }
.faq-section h3 { font-size: 1.0625rem; font-weight: 600; color: var(--fm-text); padding: var(--fm-space-sm) 0 var(--fm-space-xs); margin: 0; border-bottom: 1px solid var(--fm-border); cursor: default; }
.faq-section h3 + p { padding: var(--fm-space-xs) 0 var(--fm-space-sm); margin: 0; }
.meal-prep-guide { background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%); border-color: var(--fm-sage); border-left: 4px solid var(--fm-sage); }
.meal-prep-guide h3 { font-size: 1.125rem; color: var(--fm-sage); margin-top: 0; margin-bottom: var(--fm-space-sm); }
.nutrition-highlights { background: var(--fm-surface); }
.nutrition-highlights > p:first-child { font-weight: 700; font-size: 1.0625rem; color: var(--fm-text); margin-bottom: var(--fm-space-sm); }
.nutrition-highlights .health-tags { margin-top: var(--fm-space-sm); color: var(--fm-text-muted); font-size: 0.875rem; }
.comparison-table { overflow-x: auto; }
.comparison-table h3 { font-size: 1.0625rem; color: var(--fm-text); margin-top: 0; margin-bottom: var(--fm-space-sm); }
.expert-citation { background: var(--fm-cream); border-left: 4px solid var(--fm-accent); font-style: italic; font-size: 0.9375rem; color: var(--fm-text-secondary); padding: var(--fm-space-sm) var(--fm-space-md); }
.dynamic-entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--fm-radius-sm); overflow: hidden; border: 1px solid var(--fm-border); margin: var(--fm-space-md) 0; font-size: 0.9375rem; }
.dynamic-entry-content thead th { background: var(--fm-text); color: #fff; font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 12px 16px; text-align: left; border: none; }
.dynamic-entry-content tbody td { padding: 10px 16px; border-bottom: 1px solid var(--fm-border); border-left: none; border-right: none; vertical-align: top; }
.dynamic-entry-content tbody tr:nth-child(even) { background: var(--fm-surface); }
.dynamic-entry-content tbody tr:last-child td { border-bottom: none; }
.dynamic-entry-content tbody tr:hover { background: rgba(5,185,180,0.06); }
.visual-break { text-align: center; color: var(--fm-border); font-size: 1.25rem; margin: var(--fm-space-lg) 0; }
hr.visual-break { border: none; border-top: 2px dashed var(--fm-border); max-width: 120px; margin: var(--fm-space-lg) auto; }
.dynamic-entry-content details { background: var(--fm-surface); border: 1px solid var(--fm-border); border-radius: var(--fm-radius-sm); padding: 0; margin: var(--fm-space-md) 0; }
.dynamic-entry-content summary { padding: var(--fm-space-sm); font-weight: 600; cursor: pointer; color: var(--fm-accent); }
.dynamic-entry-content details[open] { padding-bottom: var(--fm-space-sm); }
.dynamic-entry-content details ul { padding: 0 var(--fm-space-sm) 0 var(--fm-space-md); }
.dynamic-entry-content details li { padding: 4px 0; }
.faq-section, .meal-prep-guide, .nutrition-highlights, .comparison-table, .author-box, .fm-author-box { content-visibility: auto; contain-intrinsic-size: auto 400px; }
@media print {
  :root { --fm-accent: #333; --fm-terra: #333; --fm-sage: #333; }
  .dynamic-entry-content { font-size: 11pt; line-height: 1.5; color: #000; }
  .yoast-breadcrumb, #yoast-toc, .author-box, .fm-author-box, .faq-section, .visual-break, .tested-data-callout, details, .author-credentials, nav { display: none !important; }
  .fm-step-card, .fm-ingredients-box, .fm-equipment-list, .quick-answer, .key-takeaways, .ai-summary { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
  img { max-width: 100% !important; border-radius: 0 !important; }
  .dynamic-entry-content table { font-size: 9pt; }
  .dynamic-entry-content thead th { background: #eee !important; color: #000 !important; }
}
@media (max-width: 768px) {
/* INGREDIENT-RULE-DISABLED:   .fm-ingredients-grid { grid-template-columns: 1fr; } */
  .fm-equipment-list { display: block; }
  .author-box, .fm-author-box { flex-direction: column; align-items: center; text-align: center; }
  .dynamic-entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fm-step-card { flex-direction: column; }
  .fm-step-num { width: 36px; height: 36px; font-size: 1rem; }
  .dynamic-entry-content h2 { font-size: 1.4rem; }
  .author-credentials { justify-content: center; }
}

/* ═══ MOBILE FIXES — Feb 28 ═══ */

/* Fix: Tasty Recipes Jump to Recipe button — warm accent */
.tasty-recipes-quick-links {
    padding: 10px 0 !important;
    margin-bottom: 8px !important;
}
a.tasty-recipes-jump-link,
a.tasty-recipes-jump-link:visited {
    background: var(--fm-accent) !important;
    color: #fff !important;
    border-radius: var(--fm-radius-sm) !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
    border: none !important;
    box-shadow: 0 2px 8px rgba(192,86,33,0.18);
}
a.tasty-recipes-jump-link:hover,
a.tasty-recipes-jump-link:focus {
    background: var(--fm-terra) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Fix: GenerateBlocks empty gray container between image and content */
/* REMOVED: ad container visibility restored */
.gb-container-a1d486bf { display: block; }

/* Fix: Social share DPSP — compact inline style */
.dpsp-content-wrapper {
    margin: 4px 0 8px !important;
    padding: 0 !important;
}
.dpsp-content-wrapper .dpsp-networks-btns-wrapper {
    gap: 6px !important;
}
.dpsp-network-btn {
    border-radius: var(--fm-radius-sm) !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.dpsp-network-btn:hover {
    opacity: 1;
}
.dpsp-network-btn .dpsp-network-label {
    font-size: 12px !important;
}

/* Fix: GenerateBlocks purple buttons — convert to warm accent */
.gb-button.post-t,
a.gb-button[class*="post-t"] {
    background: var(--fm-accent) !important;
    color: #fff !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    padding: 4px 14px !important;
}
.gb-button.post-t:hover {
    background: var(--fm-terra) !important;
}

/* Mobile: Tighter spacing above fold for faster content */
@media (max-width: 768px) {
    .tasty-recipes-quick-links {
        padding: 8px 0 !important;
        justify-content: flex-start !important;
    }
    a.tasty-recipes-jump-link {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    .dpsp-content-wrapper {
        margin: 2px 0 6px !important;
    }
    .dpsp-network-btn .dpsp-network-label {
        display: none !important;
    }
    .dpsp-network-btn .dpsp-network-icon {
        margin: 0 !important;
    }
}



/* ═══ 100/100 FIXES — Feb 28 ═══ */

/* E15: Mobile table overflow — horizontal scroll wrapper */
@media (max-width: 768px) {
    .dynamic-entry-content table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100% !important;
    }
    .dynamic-entry-content thead,
    .dynamic-entry-content tbody,
    .dynamic-entry-content tr {
        max-width: 100%;
    }
}

/* E94: Dark mode readiness */


/* E98: Font display swap for Breeze-cached Montserrat */
@font-face {
    font-family: 'Montserrat';
    font-display: swap;
}






/* Mobile table scrollability - all tables */
@media (max-width: 768px) {
  .dynamic-entry-content .comparison-table,
  .dynamic-entry-content .wp-block-table,
  .dynamic-entry-content div:has(> table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
  }
  .dynamic-entry-content table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto;
  }
  /* UL/OL padding on mobile */
  .dynamic-entry-content ul:not(.dpsp-networks-btns-wrapper):not([class*="yoast"]),
  .dynamic-entry-content ol {
    padding-left: 1.5em !important;
  }
}


/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Hide Tasty Recipes Nutrifox error */
.tasty-recipes-entry-content div:has(> div:only-child:empty),
.tasty-recipes-error, .tasty-recipe-error { display: none !important; }


/* ═══ MOBILE FRIENDLY FIXES (100-Expert Audit) ═══ */

/* Fix 1: Tasty Recipes prep/cook time text too small (was 11.9px) */
@media (max-width: 768px) {
  .tasty-recipes-entry-content .tasty-recipes-label,
  .tasty-recipes-entry-content .tasty-recipes-prep-time,
  .tasty-recipes-entry-content .tasty-recipes-cook-time,
  .tasty-recipes-entry-content .tasty-recipes-total-time,
  .tasty-recipes-entry-content .prep-time,
  .tasty-recipes-entry-content .cook-time,
  .tasty-recipes-entry-content .total-time,
  .tasty-recipes-entry-content li {
    font-size: 13px !important;
  }
}

/* Fix 2: GB category buttons touch-friendly (min 44px height) */
@media (max-width: 768px) {
  a.gb-button[href*="/category/"],
  a.gb-button[href*="/tag/"],
  .dynamic-entry-content a.gb-button {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
}

/* Fix 3: Input/checkbox font >= 16px (prevents iOS zoom) */
@media (max-width: 768px) {
  .tasty-recipes-entry-content input[type="checkbox"],
  .tasty-recipes-entry-content input,
  .tasty-recipes-entry-content select {
    font-size: 16px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }
}

/* Fix 4: H1 ensure bold weight */
h1.entry-title, .entry-header h1, h1 {
  font-weight: 700 !important;
}

/* Fix 5: Social share buttons min-height for touch */
@media (max-width: 768px) {
  .dpsp-network-btn {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* Fix 6: All inputs/selects 16px font on mobile (prevents iOS zoom) */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
  input[type="checkbox"] {
    min-width: 22px !important;
    min-height: 22px !important;
  }
}

/* Fix 7: Author link touch-friendly */
@media (max-width: 768px) {
  .entry-meta a, .author-name a, .posted-on a {
    padding: 4px 0 !important;
    display: inline-block !important;
  }
}

/* Fix 8: GB buttons (nav icons + category) all 44px touch-friendly */
@media (max-width: 768px) {
  a.gb-button {
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Fix 9: Tasty Recipes scale buttons + copy button */
@media (max-width: 768px) {
  .tasty-recipes-scale-button {
    min-height: 40px !important;
    min-width: 40px !important;
    padding: 6px 10px !important;
    font-size: 15px !important;
  }
  .tasty-recipes-copy-button {
    min-height: 40px !important;
    min-width: 40px !important;
    padding: 8px 12px !important;
  }
}

/* Fix 10: Ingredient checkboxes bigger tap area */
@media (max-width: 768px) {
  .tasty-recipes-entry-content input[type="checkbox"] {
    min-width: 24px !important;
    min-height: 24px !important;
    margin-right: 8px !important;
  }
  .tasty-recipes-entry-content li label {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

/* Fix 11: Author/meta links entry bigger touch area */
@media (max-width: 768px) {
  .entry-meta a, .author-meta a, .posted-on a,
  .entry-meta span a {
    padding: 6px 2px !important;
    display: inline-block !important;
    min-height: 30px !important;
    line-height: 1.4 !important;
  }
}

/* ═══ FOOTER FIXES ═══ */
/* Hide GeneratePress slideout/off-canvas menu (duplicate nav at bottom) */
#generate-slideout-menu,
.slideout-navigation,
.slideout-overlay {
  display: none !important;
}


/* ═══ MISSING COMPONENT STYLES (Design Fix 2026-03-05) ═══ */

/* TLDR / TL;DR section */
.tldr { background: var(--fm-surface); border: 1px solid var(--fm-border); border-left: 4px solid var(--fm-accent); border-radius: var(--fm-radius); padding: var(--fm-space-md); margin: var(--fm-space-lg) 0; }
.tldr > p:first-child, .tldr > strong:first-child { font-weight: 700; font-size: 1.0625rem; color: var(--fm-accent); margin-bottom: var(--fm-space-sm); }

/* Sources section */
.sources-section { margin: var(--fm-space-lg) 0; padding-top: var(--fm-space-md); border-top: 2px solid var(--fm-border); }
.sources-section h2 { font-size: 1.25rem; margin-top: 0; }
.sources-section ol { padding-left: 1.5em; }
.sources-section li { padding: 4px 0; font-size: 0.9375rem; color: var(--fm-text-secondary); }
.sources-section a { font-size: 0.9375rem; }

/* .fm-author-box direct layout (no <figure> wrapper in Gold articles) */
.fm-author-box { border-radius: var(--fm-radius); }
.fm-author-box > img { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50% !important; object-fit: cover; border: 3px solid var(--fm-accent); }
.fm-author-box > div { flex: 1; min-width: 200px; }
.fm-author-box > div > p { font-size: 0.9375rem; line-height: 1.7; color: var(--fm-text-secondary); margin: 0; }

/* .fm-quick-steps-ol (numbered mini-steps at top) */
.fm-quick-steps-ol { background: var(--fm-surface); border: 1px solid var(--fm-border); border-radius: var(--fm-radius); padding: var(--fm-space-md); margin: var(--fm-space-md) 0; }
.fm-quick-steps-ol ol { padding-left: 1.5em; margin: 0; }
.fm-quick-steps-ol li { padding: 4px 0; font-size: 0.9375rem; }

/* Share & Pin bar on Tasty Recipes card */
.share-pin { background: var(--fm-accent) !important; color: #fff !important; border-radius: var(--fm-radius-sm); font-weight: 700; text-align: center; padding: var(--fm-space-sm); }
.share-pin a { color: #fff !important; text-decoration: none; }

/* ═══ END MISSING COMPONENT STYLES ═══ */

/* === TEAL <mark> HIGHLIGHTS — replaces yellow === */
mark, .entry-content mark, .entry-content mark.has-inline-color {
  background: rgba(5, 185, 180, 0.15) !important;
  color: inherit !important;
  padding: 2px 4px;
  border-radius: 3px;
  border-bottom: 2px solid #05B9B4;
}

/* === HIDE CUSTOM JUMP TO RECIPE — keep Tasty Recipes native only === */
/* .jump-to-recipe-btn — no longer hidden globally */

/* ─── Rich Article Components ──────────────────── */
/* ═══════════════════════════════════════════════════
   OptimalRecipes Rich Article Format CSS v1
   Matches FrutaMeal premium article standard
   ═══════════════════════════════════════════════════ */

/* :root vars removed — using Elite Design 2026 vars */

/* ─── AI Summary / TL;DR Box ───────────────────── */
.ai-summary.tldr,
.ai-summary {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: var(--fm-shadow);
  position: relative;
}
.ai-summary.tldr::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fm-teal), var(--fm-accent));
  border-radius: var(--fm-radius-lg) var(--fm-radius-lg) 0 0;
}
.ai-summary .box-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fm-teal);
  margin-bottom: 12px;
}

/* Testing Data Callout */
.tested-data-callout {
  background: var(--fm-teal-bg);
  border: 1px solid rgba(13,148,136,.2);
  border-radius: var(--fm-radius);
  padding: 16px 20px;
  margin: 12px 0;
}
.tested-data-label {
  font-size: var(--fm-text-sm);
  font-weight: 700;
  color: var(--fm-teal);
  margin-bottom: 8px;
}
.tested-data-callout ul {
  margin: 0; padding-left: 20px;
  font-size: var(--fm-text-sm);
  color: var(--fm-ink-soft);
}
.tested-data-callout li {
  margin-bottom: 4px;
  line-height: 1.6;
}

/* Personal / Chef Note */
.personal-note {
  background: var(--fm-accent-bg);
  border-left: 3px solid var(--fm-accent);
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 0 var(--fm-radius-sm) var(--fm-radius-sm) 0;
  font-size: var(--fm-text-sm);
  color: var(--fm-ink-soft);
}

/* ─── Quick Answer Box ─────────────────────────── */
.quick-answer {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: var(--fm-shadow);
  position: relative;
}
.quick-answer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fm-teal), var(--fm-teal-soft));
  border-radius: var(--fm-radius-lg) var(--fm-radius-lg) 0 0;
}
.quick-answer .box-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fm-teal);
  margin-bottom: 8px;
}
.quick-answer p {
  font-size: var(--fm-text-base);
  color: var(--fm-ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* ─── Key Takeaways Box ────────────────────────── */
.key-takeaways {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 28px;
  margin: 28px 0;
  box-shadow: var(--fm-shadow);
  position: relative;
}
.key-takeaways::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fm-accent), var(--fm-accent-soft));
  border-radius: var(--fm-radius-lg) var(--fm-radius-lg) 0 0;
}
.key-takeaways > p > strong:first-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fm-accent);
}
.key-takeaways ul {
  margin: 12px 0 0; padding-left: 0;
  list-style: none;
}
.key-takeaways li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--fm-border-soft);
  font-size: var(--fm-text-sm);
  color: var(--fm-ink-soft);
  line-height: 1.7;
}
.key-takeaways li:last-child { border-bottom: none; }
.key-takeaways li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--fm-accent);
  font-weight: 700;
}

/* ─── Ingredients Box (DEFINITIVE — matches approved design) ── */
.fm-ingredients-box {
  background: linear-gradient(135deg, #F0FDFC 0%, #E6FAF9 100%) !important;
  border: 1.5px solid rgba(5, 185, 180, 0.25) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  margin: 32px 0 !important;
  box-shadow: 0 2px 12px rgba(5, 185, 180, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}
.fm-ingredients-box::before,
.fm-ingredients-box::after {
  display: none !important;
}
.fm-ingredients-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0D9488 !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid rgba(5, 185, 180, 0.25) !important;
  display: block !important;
}
.fm-ingredients-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  flex-direction: unset !important;
}
.fm-ingredient-item {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(5, 185, 180, 0.12) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 0.938rem !important;
  color: #44403C !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  position: relative !important;
  border-left: 1px solid rgba(5, 185, 180, 0.12) !important;
  border-bottom: 1px solid rgba(5, 185, 180, 0.12) !important;
}
.fm-ingredient-item::before {
  display: none !important;
}
.fm-ingredient-item:hover {
  border-color: rgba(5, 185, 180, 0.35) !important;
  box-shadow: 0 2px 8px rgba(5, 185, 180, 0.1) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}
.fm-ingredient-line {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
}
.fm-ingredient-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
  background: #1A5C57 !important;
  box-shadow: 0 4px 12px rgba(26, 92, 87, 0.25) !important;
  color: #fff !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}
.fm-ingredient-text {
  display: block !important;
  min-width: 0 !important;
  font-size: clamp(0.9rem, 1.05vw, 1.05rem) !important;
  font-weight: 500 !important;
  color: #1C1917 !important;
  line-height: 1.5 !important;
}
.fm-ingredient-text strong {
  color: inherit !important;
  font-weight: 600 !important;
}
.fm-ingredients-note {
  margin-top: 14px !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  color: #57534E !important;
  font-style: italic !important;
}
@media (max-width: 640px) {
  .fm-ingredients-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .fm-ingredients-box {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }
  .fm-ingredient-line {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .fm-ingredient-num {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.15rem !important;
  }
}
/* ─── Equipment List ───────────────────────────── */
.fm-equipment-list {
  margin: 20px 0;
}
.fm-equipment-item {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-left: 3px solid var(--fm-teal);
  border-radius: var(--fm-radius-sm);
  padding: 10px 14px;
  margin-bottom: 6px;
  font-size: var(--fm-text-sm);
  color: var(--fm-ink-soft);
  transition: var(--fm-transition);
}
.fm-equipment-item:hover {
  background: var(--fm-teal-bg);
}

/* ─── Step Cards ───────────────────────────────── */
.fm-step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: var(--fm-radius);
  border: 1px solid var(--fm-border-soft);
  transition: var(--fm-transition);
}
.fm-step-card:hover {
  background: var(--fm-surface);
  box-shadow: var(--fm-shadow-sm);
}
.fm-step-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fm-text-sm);
  color: var(--fm-white);
  background: var(--fm-ink);
  flex-shrink: 0;
}
.fm-step-green .fm-step-num { background: var(--fm-teal); }
.fm-step-gold .fm-step-num { background: var(--fm-accent); }
.fm-step-terra .fm-step-num { background: var(--fm-ink); }
.fm-step-green { border-left: 3px solid var(--fm-teal); }
.fm-step-gold { border-left: 3px solid var(--fm-accent); }
.fm-step-terra { border-left: 3px solid var(--fm-ink); }
.fm-step-body p {
  margin: 0 !important;
  font-size: var(--fm-text-sm) !important;
  line-height: 1.7 !important;
  color: var(--fm-ink-soft);
}

/* ─── Visual Break ─────────────────────────────── */
.visual-break {
  text-align: center;
  color: var(--fm-ink-faint);
  font-size: var(--fm-text-lg);
  letter-spacing: 0.5em;
  padding: 20px 0;
}
hr.visual-break {
  border: none;
  height: 1px;
  background: var(--fm-border);
  margin: 32px auto;
  max-width: 120px;
}

/* ─── Nutrition Highlights ─────────────────────── */
.nutrition-highlights {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: var(--fm-shadow-sm);
}
.nutrition-highlights table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.nutrition-highlights th {
  background: var(--fm-ink);
  color: var(--fm-white);
  padding: 10px 16px;
  text-align: left;
  font-size: var(--fm-text-sm);
  font-weight: 600;
}
.nutrition-highlights td {
  padding: 8px 16px;
  border-bottom: 1px solid var(--fm-border);
  font-size: var(--fm-text-sm);
  color: var(--fm-ink-soft);
}
.health-tags {
  margin-top: 12px;
  font-size: var(--fm-text-sm);
  color: var(--fm-ink-muted);
}

/* ─── Comparison Table ─────────────────────────── */
.comparison-table {
  margin: 28px 0;
  overflow-x: auto;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--fm-radius);
  overflow: hidden;
  box-shadow: var(--fm-shadow-sm);
  font-size: var(--fm-text-sm);
}
.comparison-table th {
  background: var(--fm-ink);
  color: var(--fm-white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: var(--fm-text-sm);
}
.comparison-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--fm-border);
  color: var(--fm-ink-soft);
}
.comparison-table tbody tr:nth-child(even) {
  background: var(--fm-surface);
}
.comparison-table tbody tr:hover {
  background: var(--fm-accent-bg);
}

/* ─── Meal Prep Guide ──────────────────────────── */
.meal-prep-guide {
  background: var(--fm-teal-bg);
  border: 1px solid rgba(13,148,136,.2);
  border-radius: var(--fm-radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
}
.meal-prep-guide h3 {
  color: var(--fm-teal);
  margin-top: 0;
  font-size: var(--fm-text-xl);
}
.meal-prep-guide p {
  font-size: var(--fm-text-sm);
  color: var(--fm-ink-soft);
  line-height: 1.7;
}

/* ─── FAQ Section ──────────────────────────────── */
.faq-section {
  margin: 32px 0;
}
.faq-section h2 {
  margin-bottom: 20px;
}
.faq-section h3 {
  font-size: var(--fm-text-lg);
  color: var(--fm-ink);
  margin: 24px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--fm-border-soft);
}
.faq-section p {
  font-size: var(--fm-text-base);
  color: var(--fm-ink-soft);
  line-height: 1.7;
}

/* ─── Author Box ───────────────────────────────── */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 28px;
  margin: 32px 0;
  box-shadow: var(--fm-shadow-sm);
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--fm-border);
}
.author-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.author-credentials span {
  font-size: var(--fm-text-xs);
  font-weight: 600;
  color: var(--fm-teal);
  background: var(--fm-teal-bg);
  border: 1px solid rgba(13,148,136,.2);
  padding: 3px 10px;
  border-radius: 20px;
}
.author-box p {
  font-size: var(--fm-text-sm);
  color: var(--fm-ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── Expert Citation ──────────────────────────── */
blockquote.expert-citation {
  border-left: 3px solid var(--fm-accent);
  background: var(--fm-accent-bg);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--fm-radius) var(--fm-radius) 0;
  font-style: italic;
  color: var(--fm-ink-soft);
  font-size: var(--fm-text-sm);
}
blockquote.expert-citation cite {
  font-weight: 700;
  color: var(--fm-accent);
}

/* ─── Details/Summary (Substitutions) ──────────── */
details {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  padding: 12px 16px;
  margin: 16px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fm-ink);
  font-size: var(--fm-text-sm);
}
details[open] summary {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fm-border);
}
details ul {
  margin: 0;
  padding-left: 20px;
  font-size: var(--fm-text-sm);
}
details li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ─── Standard Tables ──────────────────────────── */
.entry-content table,
.dynamic-entry-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--fm-radius);
  overflow: hidden;
  margin: 24px 0;
  font-size: var(--fm-text-sm);
  box-shadow: var(--fm-shadow-sm);
}
.entry-content table thead th,
.dynamic-entry-content table thead th {
  background: var(--fm-ink);
  color: var(--fm-white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--fm-text-xs);
}
.entry-content table td,
.dynamic-entry-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--fm-border);
  color: var(--fm-ink-soft);
}
.entry-content table tbody tr:nth-child(even),
.dynamic-entry-content table tbody tr:nth-child(even) {
  background: var(--fm-surface);
}

/* ─── Mobile ───────────────────────────────────── */
@media (max-width: 600px) {
  .ai-summary, .quick-answer, .key-takeaways,
  .fm-ingredients-box, .nutrition-highlights,
  .author-box, .meal-prep-guide {
    padding: 20px 16px;
  }
  .fm-ingredient-line {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  .fm-ingredient-num {
    min-height: 44px;
    font-size: 1.25rem;
    border-radius: 8px;
  }
  .fm-ingredient-text {
    font-size: 1rem;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .fm-step-card {
    flex-direction: column;
    gap: 10px;
  }
  .comparison-table { overflow-x: auto; }
}
