.br-recipe {
    --br-ink: #26271f;
    --br-paper: #fffdf7;
    --br-panel: #f0ebdc;
    --br-accent: #46532d;
    --br-rule: #9c937d;
    box-sizing: border-box;
    container-type: inline-size;
    background: var(--br-paper);
    color: var(--br-ink);
    border: 1px solid var(--br-rule);
    padding: clamp(14px, 3vw, 32px);
    margin-block: 2rem;
    overflow-wrap: anywhere;
}
.br-recipe *, .br-recipe *::before { box-sizing: border-box; }
.br-recipe h2, .br-recipe h3, .br-recipe h4, .br-recipe p { color: inherit; margin: 0; }
.br-recipe h2 { font: 600 clamp(1.7rem, 3vw, 2.8rem)/1.1 Georgia, serif; }
.br-recipe h3 { font: 700 1.22rem/1.2 system-ui, sans-serif; margin-bottom: .8rem; }
.br-recipe h4 { font: 700 1rem/1.3 system-ui, sans-serif; }
.br-hero { display: grid; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--br-rule); }
.br-intro { display: grid; align-content: center; gap: .55rem; }
.br-meta { font-size: .88rem; }
.br-hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.br-columns { display: grid; gap: 1.3rem; }
.br-ingredients, .br-method { min-width: 0; }
.br-controls, .br-step-nav { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
.br-recipe [hidden] { display: none !important; }
.br-field { display: grid; gap: .25rem; font-size: .87rem; font-weight: 650; }
.br-stepper { display: flex; }
.br-recipe .br-controls button, .br-recipe .br-primary, .br-recipe .br-step button,
.br-recipe select, .br-recipe .br-portion {
    min-height: 44px;
    max-width: 100%;
    border: 1px solid var(--br-rule);
    border-radius: .32rem;
    padding: .5rem .72rem;
    background: var(--br-paper);
    color: var(--br-ink);
    font: 650 .88rem/1.2 system-ui, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}
.br-recipe .br-controls button:hover, .br-recipe .br-step button:hover { background: var(--br-panel); }
.br-recipe .br-stepper button { width: 44px; font-size: 1.15rem; }
.br-recipe .br-portion { width: 5rem; border-inline: 0; text-align: center; border-radius: 0; }
.br-recipe .br-primary { display: inline-flex; align-items: center; background: var(--br-accent); color: #fff; text-decoration: none; }
.br-recipe button:disabled { opacity: .58; cursor: default; }
.br-recipe :is(button,input,select,a):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.br-list { margin-top: .8rem; }
.br-list h4 { padding: .8rem 0 .25rem; }
.br-list label { display: grid; grid-template-columns: 1.25rem 1fr; gap: .65rem; align-items: start; min-height: 44px; padding: .62rem .25rem; margin: 0; cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--br-rule) 42%, transparent); }
.br-list input[type=checkbox], .br-pdf-option input { width: 1.15rem; height: 1.15rem; accent-color: var(--br-accent); margin: .15rem 0 0; }
.br-list label.br-checked { background: var(--br-panel); }
.br-list label.br-checked span { text-decoration: line-through; }
.br-list label:hover { background: color-mix(in srgb, var(--br-panel) 65%, transparent); }
.br-actions { margin-top: .8rem; }
.br-recipe ol.br-steps { list-style: none; margin: 0; padding: 0; counter-reset: br-step; }
.br-recipe .br-steps > li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .65rem; counter-increment: br-step; margin: 0; padding: .72rem 0; border-top: 1px solid color-mix(in srgb, var(--br-rule) 55%, transparent); }
.br-steps > li::before { content: counter(br-step, decimal-leading-zero); font: 600 1.2rem/1.25 Georgia, serif; color: var(--br-accent); }
.br-step { display: grid; gap: .44rem; justify-items: start; }
.br-step img { max-width: 100%; height: auto; }
.br-tip, .br-nutrition { background: var(--br-panel); border-inline-start: 3px solid var(--br-accent); padding: .7rem .85rem; margin-top: .9rem; }
.br-tip h4 { margin-bottom: .35rem; }
.br-footer { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--br-rule); }
.br-pdf-option { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: .88rem; }
.br-status:not(:empty) { flex-basis: 100%; }
.br-classic .br-method { padding-top: .35rem; }
.br-modern { --br-paper: #f4f8f6; --br-panel: #e4eee8; --br-accent: #245846; --br-rule: #7e9c8b; border-radius: 22px; }
.br-modern h2 { font-family: system-ui, sans-serif; letter-spacing: -.035em; }
.br-modern .br-hero-photo img, .br-modern .br-ingredients, .br-modern .br-method { border-radius: 16px; }
.br-modern .br-ingredients, .br-modern .br-method { background: var(--br-panel); padding: .95rem; }
.br-modern .br-step { padding-block: .2rem; }
.br-magazine { --br-paper: #fbf6e8; --br-panel: #eee5cf; --br-accent: #4a5428; --br-rule: #877c5e; }
.br-magazine .br-hero { border-block: 4px double var(--br-rule); padding-block: 1rem; }
.br-magazine h2 { font-size: clamp(2.1rem, 4vw, 3.65rem); letter-spacing: -.04em; }
.br-magazine .br-hero-photo { border: 6px solid var(--br-panel); outline: 1px solid var(--br-rule); }
.br-magazine .br-ingredients { padding: .95rem; border: 1px solid var(--br-rule); background: var(--br-panel); }
.br-magazine .br-method { padding-top: .85rem; border-top: 2px solid var(--br-rule); }
.br-magazine .br-steps > li { grid-template-columns: 2.25rem minmax(0, 1fr); }
.br-magazine .br-steps > li::before { font-size: 1.55rem; }
.br-compact { padding: .85rem; }
.br-compact h2 { font: 700 clamp(1.35rem, 2.6vw, 2rem)/1.1 system-ui, sans-serif; }
.br-compact .br-hero { padding-bottom: .6rem; margin-bottom: .8rem; }
.br-compact .br-columns { gap: .8rem; }
.br-compact .br-steps > li { grid-template-columns: 1.35rem minmax(0, 1fr); padding: .4rem 0; gap: .4rem; }
.br-compact .br-steps > li::before { font: 700 .88rem/1.5 system-ui, sans-serif; }
.br-compact .br-step { gap: .18rem; }
.br-compact .br-step img { max-width: 140px; }
.br-cooking .br-method { font-size: 1.12em; }
.br-cooking .br-steps > li::before { content: attr(data-step); }
@container (min-width: 520px) {
    .br-magazine .br-columns, .br-modern .br-columns, .br-compact .br-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .br-magazine .br-has-photo { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .br-modern .br-has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
    .br-modern .br-hero-photo { grid-column: 1; grid-row: 1; }
    .br-classic .br-list { columns: 2; column-gap: 1.3rem; }
    .br-classic .br-list label { break-inside: avoid; }
}
@media print {
    body:has(.br-recipe) * { visibility: hidden; }
    body .br-recipe, body .br-recipe * { visibility: visible; }
    body .br-recipe { position: absolute; inset: 0 auto auto 0; width: 100%; margin: 0; padding: 0; border: 0; background: white; color: black; }
    body .br-recipe .br-controls, body .br-recipe button { display: none !important; }
    body .br-recipe .br-steps li[hidden] { display: grid !important; }
    .br-steps li { break-inside: avoid; }
}
