/* SillyBaker — single recipe styles: jump link, Amazon shop, depth sections. Loaded only where needed (see sillybaker_scripts()). */
/* ── Jump to Recipe (content stays visible for Mediavine) ─────────────── */
.recipe-reveal-wrap {
    text-align: center;
    margin: 2rem 0;
}
.recipe-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(224,68,90,.35);
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
}
a.recipe-reveal-btn,
a.recipe-reveal-btn:hover,
a.recipe-reveal-btn:focus {
    color: #fff;
    text-decoration: none;
}
.recipe-reveal-btn:hover {
    background: #c0304a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(224,68,90,.45);
}
.recipe-reveal-btn__icon {
    font-size: .7rem;
}

/* Recipe block — always in the document so ads can be measured and injected. */
.recipe-drawer,
#recipe {
    overflow: visible;
    max-height: none;
    opacity: 1;
    scroll-margin-top: 88px;
}

/* ── Amazon Affiliate Shop ────────────────────────────────────────────── */
.amazon-affiliate-box {
    margin: 1.5rem 0 2rem;
    border: 1px solid #e0c97a;
    border-radius: 14px;
    overflow: hidden;
    background: #fffdf0;
    scroll-margin-top: 5rem;
    transition: box-shadow .4s ease, border-color .4s ease;
}
.amazon-affiliate-box.amazon-shop-highlight {
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, .35);
}
.amazon-affiliate-box--compact {
    margin: 1.25rem 0 1.75rem;
}
.amazon-affiliate-box__disclosure {
    font-size: .75rem;
    color: #888;
    padding: .5rem 1.25rem;
    margin: 0;
    border-bottom: 1px solid #f0e8b0;
    background: #fffbe6;
}
.amazon-affiliate-box__intent {
    margin: 0;
    padding: .75rem 1.25rem 0;
    font-size: .92rem;
    color: #5a4a32;
    line-height: 1.45;
}
.amazon-affiliate-box__more {
    margin: 0;
    padding: 0 1.25rem 1.1rem;
    font-size: .9rem;
}
.amazon-affiliate-section {
    padding: 1.1rem 1.25rem;
}
.amazon-affiliate-section + .amazon-affiliate-section {
    border-top: 1px solid #f0e8b0;
}
.amazon-affiliate-section__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0 0 .85rem;
    color: #3a2a1a;
}
.amazon-affiliate-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.amazon-affiliate-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f0e8c0;
    font-size: .9rem;
}
.amazon-affiliate-list__ingredient {
    color: var(--color-text);
    font-weight: 500;
    flex: 1;
}
.amazon-affiliate-list__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ff9900;
    color: #fff !important;
    font-size: .78rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s, transform .15s;
    min-height: 36px;
}
.amazon-affiliate-list__link:hover {
    background: #e68900;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* Product cards grid */
.amazon-product-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 640px) {
    .amazon-product-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .amazon-product-cards--tools {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
.amazon-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0e8c0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    min-height: 100%;
}
.amazon-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    border-color: #ff9900;
    text-decoration: none !important;
    color: inherit;
}
.amazon-product-card__image {
    aspect-ratio: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff8e8, #ffe8c0);
    padding: 12px;
    position: relative;
    min-height: 96px;
}
.amazon-product-card--tool .amazon-product-card__image {
    background: linear-gradient(145deg, #fff5e6, #ffd9a0);
}
.amazon-product-card--pantry .amazon-product-card__image {
    background: linear-gradient(145deg, #fff0e8, #ffc9a8);
}
.amazon-product-card__image img,
.amazon-product-card__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.amazon-product-card__image.is-fallback {
    background: linear-gradient(145deg, #fff6e0 0%, #ffd898 100%);
}
.amazon-product-card--tool .amazon-product-card__image.is-fallback {
    background: linear-gradient(145deg, #fff3d6, #ffcc80);
}
.amazon-product-card--pantry .amazon-product-card__image.is-fallback {
    background: linear-gradient(145deg, #ffe8d6, #ffb380);
}
.amazon-product-card__image.is-fallback .amazon-product-card__placeholder,
.amazon-product-card__image.is-fallback > .amazon-product-card__placeholder {
    display: flex !important;
}
.amazon-product-card__placeholder {
    font-size: 2.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.08));
}
.amazon-product-card__image:not(.is-fallback) .amazon-product-card__placeholder[hidden] {
    display: none !important;
}
.amazon-jump-link--pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7e0;
    border: 1px solid #e0c97a;
    color: #8a5a00 !important;
    font-weight: 700;
    font-size: .9rem;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none !important;
}
.amazon-jump-link--pill:hover {
    background: #ff9900;
    border-color: #ff9900;
    color: #fff !important;
}
.amazon-product-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.amazon-product-card__name {
    font-size: .86rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.amazon-product-card__cta {
    margin-top: auto;
    font-size: .75rem;
    font-weight: 700;
    color: #c77600;
}

/* ── Content-Depth Sections (tips, storage, substitutions, FAQ, etc.) ──── */
.recipe-depth-section {
    margin: 2.75rem 0;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    background: #fffaf5;
    border-left: 4px solid #e07b39;
}
.recipe-depth-section--tips     { background: #fffbf0; border-left-color: #f5a623; }
.recipe-depth-section--storage  { background: #f0f7ff; border-left-color: #4a90d9; }
.recipe-depth-section--subs     { background: #f5fff0; border-left-color: #4caf50; }
.recipe-depth-section--serving  { background: #fff0f5; border-left-color: #e91e63; }
.recipe-depth-section--faq      { background: #f8f0ff; border-left-color: #9c27b0; border-left: none; padding: 0; background: none; }
.recipe-depth-section--why      { background: #fff5f5; border-left-color: #e53935; }

.recipe-depth-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin: 0 0 .85rem;
    color: #3a2a1a;
}
.recipe-depth-section__text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}
.recipe-depth-section__list {
    margin: 0;
    padding-left: 1.4rem;
    color: #444;
    line-height: 1.8;
}
.recipe-depth-section__list li { margin-bottom: .35rem; }
.recipe-depth-section__list--subs li { list-style: none; padding-left: 0; }
.recipe-depth-section__list--subs li::before { content: '🔄 '; }

/* FAQ — always open so answers count as visible content for ads and search. */
.recipe-faq__item {
    border: 1px solid #e5d9f5;
    border-radius: 8px;
    margin-bottom: .65rem;
    overflow: hidden;
    background: #fff;
}
.recipe-faq__question {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
    padding: .85rem 1rem .4rem;
    margin: 0;
    color: #3a2a1a;
}
.recipe-faq__answer {
    padding: 0 1rem 1rem;
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: .97rem;
}


/* ── Print Recipe button (sits beside Jump to Recipe) ─────────────────── */
.recipe-reveal-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.recipe-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.recipe-print-btn:hover,
.recipe-print-btn:focus-visible { background: var(--color-primary); color: #fff; transform: none; box-shadow: none; }

/* ── Print: just the recipe ──────────────────────────────────────────── */
@media print {
    .recipe-reveal-wrap,
    .video-section,
    .amazon-affiliate-section,
    .amazon-affiliate-box,
    .amazon-affiliate-list,
    .amazon-jump-link,
    .recipe-depth-section--faq,
    .recipe-depth-section--serving,
    .entry-tags,
    .search-toggle,
    .header-search,
    [class*="mv-ad"], [id^="mv-"], .content_hint,
    iframe { display: none !important; }
    .entry-featured-image img { max-height: 3in; width: auto; margin: 0 auto; }
    .recipe-meta-box { border: 1px solid #999; background: none; grid-template-columns: repeat(5, auto); }
    .entry-content li, .recipe-depth-section li { break-inside: avoid; }
    .entry-content h2, .entry-content h3 { break-after: avoid; }
    .entry-content a::after { content: none; }
}

/* ── Star ratings ─────────────────────────────────────────────────────── */
.star-display {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 2px;
    color: #d9d2ca;
    vertical-align: -1px;
}
.star-display::before { content: "★★★★★"; }
.star-display__fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f5a623;
}
.star-display__fill::before { content: "★★★★★"; }

.rating-summary { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.rating-summary:hover { text-decoration: none; color: var(--color-primary); }
.rating-summary__avg { font-weight: 700; color: var(--color-text); }
.rating-summary__count { color: var(--color-text-light); }
.rating-summary--empty { color: var(--color-primary); font-weight: 600; }

.comment-rating { margin: 0 0 .35rem; }

/* Star picker: inputs are rendered 5→1 and displayed reversed. */
.comment-form-rating { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.comment-form-rating legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.comment-form-rating__optional { font-weight: 400; color: var(--color-text-muted); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label {
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    color: #d9d2ca;
    transition: color .15s, transform .15s;
}
.star-input label::before { content: "★"; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #f5a623; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

/* ── Nutrition panel ──────────────────────────────────────────────────── */
.nutrition-panel {
    margin: 2.5rem 0;
    padding: 1.25rem 1.5rem;
    border: 2px solid #2d2d2d;
    border-radius: 10px;
    max-width: 420px;
    background: #fff;
}
.nutrition-panel__title { font-family: var(--font-heading); font-size: 1.5rem; margin: 0; }
.nutrition-panel__serving { margin: 0 0 .5rem; color: var(--color-text-light); font-size: .9rem; border-bottom: 6px solid #2d2d2d; padding-bottom: .5rem; }
.nutrition-panel__table { width: 100%; border: 0; border-collapse: collapse; font-size: .95rem; margin: 0; }
.nutrition-panel__table th,
.nutrition-panel__table td { padding: .4rem 0; border: 0; border-bottom: 1px solid var(--color-border-dark); background: none; text-align: left; font-weight: 400; }
.nutrition-panel__table tr:nth-child(n) th,
.nutrition-panel__table tr:nth-child(n) td { background: none; }
.nutrition-panel__table td { text-align: right; font-weight: 700; }
.nutrition-panel__row--cal th,
.nutrition-panel__row--cal td { font-size: 1.15rem; font-weight: 800; border-bottom-width: 3px; border-bottom-color: #2d2d2d; }
.nutrition-panel__row--sub th { padding-left: 1.25rem; color: var(--color-text-light); }
.nutrition-panel__row--sub td { font-weight: 400; }
.nutrition-panel__note { margin: .75rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--color-text-light); }

/* ── Author box ───────────────────────────────────────────────────────── */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.author-box__photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; }
.author-box__body { flex: 1; min-width: 0; }
.author-box__eyebrow { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.author-box__name { margin: 0; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; }
.author-box__name a { color: var(--color-text); text-decoration: none; }
.author-box__tagline { margin: .15rem 0 .5rem; color: var(--color-text-light); font-size: .95rem; }
.author-box__bio { margin: 0 0 .75rem; line-height: 1.65; }
@media (max-width: 520px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .author-box .social-links { justify-content: center; }
}

@media print {
    .author-box, .rating-summary--empty { display: none !important; }
    .nutrition-panel { break-inside: avoid; }
}
