/* Recipe card — intentionally almost unstyled. The block outputs bare
   article markup (h2, p, ul, ol) inside .recipe-article-content, so it
   inherits the article's own typography and list styles. Only a few
   touches are needed.
   NOTE: every var() carries a literal fallback because the block editor
   canvas does not resolve the theme's :root custom properties. */

.rag-recipe-card {
    margin: 24px 0;
    border-top: 1px solid var(--line, #e8e8e8);
    border-bottom: 1px solid var(--line, #e8e8e8);
    padding: 8px 0;
    scroll-margin-top: 90px;
}

.rag-recipe-card > h2:first-child {
    margin-top: 0;
}

.rag-recipe-card > :last-child {
    margin-bottom: 0;
}

.rag-card-meta-line {
    font-size: 14px;
    color: var(--muted, #666);
}

.rag-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.rag-ing-qty {
    color: var(--muted, #666);
}

.rag-steps li {
    margin-bottom: 10px;
}

.rag-card-meta {
    font-size: 13px;
    color: var(--muted, #666);
}

.rag-recipe-link a,
.rag-recipe-link span,
.rag-full-recipe a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 30px;
    background: var(--ink, #111);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.rag-recipe-link a:hover,
.rag-full-recipe a:hover {
    background: var(--ink-soft, #333);
    color: #fff;
}

/* Recipe title (merged into the card's h2) links to the full recipe page. */
.rag-recipe-card h2 a {
    color: inherit;
    text-decoration: none;
}
.rag-recipe-card h2 a:hover {
    text-decoration: underline;
}

@media print {
    .rag-card-image {
        display: none;
    }
}
