.kw-recipe, .kw-recipe-list {
    --kw-recipe-primary: #002f6c;
    --kw-recipe-text: #233141;
    --kw-recipe-muted: #566475;
    --kw-recipe-border: #dce3eb;
    --kw-recipe-surface: #f4f7fa;
    color: var(--kw-recipe-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.65;
    text-align: left;
    overflow-wrap: anywhere;
}
.kw-recipe *, .kw-recipe *::before, .kw-recipe *::after,
.kw-recipe-list *, .kw-recipe-list *::before, .kw-recipe-list *::after { box-sizing: border-box; }
.kw-recipe { width: 100%; max-width: 1120px; margin: 0 auto 48px; container: kw-recipe / inline-size; }
.kw-recipe [hidden] { display: none !important; }
.kw-recipe h2, .kw-recipe h3, .kw-recipe h4, .kw-recipe-list h3 { font-family: inherit; color: var(--kw-recipe-primary); line-height: 1.25; font-weight: 650; letter-spacing: normal; text-transform: none; }
.kw-recipe .kw-recipe-title { font-size: clamp(28px, 4vw, 48px); margin: 8px 0 28px; max-width: 900px; }
.kw-recipe .kw-recipe-eyebrow { display: block; color: var(--kw-recipe-muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.kw-recipe .kw-recipe-hero { margin: 0 0 28px; border-radius: 12px; overflow: hidden; }
.kw-recipe .kw-recipe-hero img { display: block; width: 100%; height: auto; max-height: 580px; object-fit: cover; }
.kw-recipe .kw-recipe-intro { font-size: 20px; line-height: 1.6; margin: 0 0 30px; max-width: 820px; }
.kw-recipe .kw-recipe-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; border-block: 1px solid var(--kw-recipe-border); padding: 22px 0; margin: 0 0 40px; }
.kw-recipe .kw-recipe-facts dt { color: var(--kw-recipe-muted); font-size: 13px; font-weight: 400; }
.kw-recipe .kw-recipe-facts dd { color: var(--kw-recipe-primary); font-size: 18px; font-weight: 650; margin: 3px 0 0; }
.kw-recipe .kw-recipe-columns { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); align-items: start; gap: 48px; }
.kw-recipe .kw-recipe-section-heading { margin: 0 0 24px; }
.kw-recipe h3 { font-size: 27px; margin: 6px 0 16px; }
.kw-recipe h4 { font-size: 18px; margin: 0 0 8px; }
.kw-recipe .kw-recipe-controls { padding: 18px; background: var(--kw-recipe-surface); border-radius: 8px; margin-bottom: 24px; }
.kw-recipe .kw-recipe-controls > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.kw-recipe .kw-recipe-servings { display: flex; align-items: center; gap: 10px; }
.kw-recipe .kw-recipe-servings input { appearance: textfield; width: 72px; min-width: 0; height: 44px; border: 1px solid var(--kw-recipe-border); border-radius: 6px; background: white; color: var(--kw-recipe-primary); font-family: inherit; font-weight: 650; font-size: 18px; line-height: 1; text-align: center; padding: 6px; margin: 0; box-shadow: none; }
.kw-recipe .kw-recipe-servings input::-webkit-inner-spin-button { appearance: none; }
.kw-recipe .kw-recipe-servings > span { flex: 1; font-size: 14px; }
.kw-recipe button { font-family: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0; }
.kw-recipe .kw-recipe-adjust { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--kw-recipe-border); border-radius: 6px; background: white; color: var(--kw-recipe-primary); font-size: 24px; font-weight: 500; line-height: 1; }
.kw-recipe .kw-recipe-fine { color: var(--kw-recipe-muted); font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.kw-recipe .kw-recipe-ingredient-list { list-style: none; margin: 0; padding: 0; }
.kw-recipe .kw-recipe-group { list-style: none; padding: 12px 0 4px; margin: 12px 0 0; }
.kw-recipe .kw-recipe-group:first-child { margin-top: 0; padding-top: 0; }
.kw-recipe .kw-recipe-ingredient { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--kw-recipe-border); }
.kw-recipe .kw-recipe-ingredient label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; margin: 0; cursor: pointer; font-weight: 400; }
.kw-recipe .kw-recipe-ingredient input { appearance: auto; flex: 0 0 19px; width: 19px; height: 19px; padding: 0; margin: 4px 0 0; accent-color: var(--kw-recipe-primary); }
.kw-recipe .kw-recipe-ingredient small { display: block; font-size: 13px; color: var(--kw-recipe-muted); margin-top: 2px; }
.kw-recipe .kw-recipe-quantity { font-weight: 650; color: var(--kw-recipe-primary); }
.kw-recipe .kw-recipe-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.kw-recipe .kw-recipe-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; max-width: 100%; border: 1px solid var(--kw-recipe-primary); background: var(--kw-recipe-primary); color: white; border-radius: 6px; padding: 10px 16px; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: normal; }
.kw-recipe .kw-recipe-button-secondary { background: white; color: var(--kw-recipe-primary); border-color: var(--kw-recipe-border); }
.kw-recipe .kw-recipe-button:hover, .kw-recipe .kw-recipe-adjust:hover { filter: brightness(.94); }
.kw-recipe button:disabled { cursor: default; opacity: .45; }
.kw-recipe :is(button,input,textarea):focus-visible, .kw-recipe-list a:focus-visible { outline: 3px solid #5889c9; outline-offset: 3px; }
.kw-recipe .kw-recipe-shopping { margin-top: 24px; padding: 18px; border: 1px solid var(--kw-recipe-border); border-radius: 8px; }
.kw-recipe .kw-recipe-shopping textarea { display: block; width: 100%; min-height: 220px; max-width: 100%; resize: vertical; color: var(--kw-recipe-text); background: white; font-family: inherit; font-size: 14px; line-height: 1.6; border: 1px solid var(--kw-recipe-border); border-radius: 4px; padding: 12px; margin: 12px 0; }
.kw-recipe .kw-recipe-status { font-size: 13px; color: var(--kw-recipe-primary); margin: 12px 0 0; }
.kw-recipe .kw-recipe-status:empty { display: none; }
.kw-recipe .kw-recipe-steps { list-style: none; padding: 0; margin: 0; }
.kw-recipe .kw-recipe-steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; margin: 0 0 28px; padding: 0; }
.kw-recipe .kw-recipe-step-number { display: flex; justify-content: center; align-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--kw-recipe-primary); color: white; font-size: 14px; font-weight: 650; }
.kw-recipe .kw-recipe-steps h4 { margin-top: 4px; }
.kw-recipe .kw-recipe-step-time { color:var(--kw-recipe-muted); font-size:13px; margin:0 0 10px; }
.kw-recipe .kw-recipe-prose { white-space: pre-line; margin: 0; }
.kw-recipe .kw-recipe-tips { padding: 24px; border-radius: 8px; background: var(--kw-recipe-surface); border-top: 3px solid var(--kw-recipe-primary); margin-top: 36px; }
.kw-recipe .kw-recipe-tips h3 { font-size: 24px; margin: 0 0 22px; }
.kw-recipe .kw-recipe-tips > div + div { margin-top: 22px; }
.kw-recipe .kw-recipe-notes { margin-top: 28px; color: var(--kw-recipe-muted); font-size: 14px; }
.kw-recipe .kw-recipe-notes h3 { font-size: 18px; }
.kw-recipe-list .kw-recipe-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.kw-recipe-list .kw-recipe-card { border: 1px solid var(--kw-recipe-border); border-radius: 10px; overflow: hidden; background: white; margin: 0; padding: 0; }
.kw-recipe-list .kw-recipe-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.kw-recipe-list .kw-recipe-card-image, .kw-recipe-list .kw-recipe-card-placeholder { aspect-ratio: 3/2; overflow: hidden; }
.kw-recipe-list .kw-recipe-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kw-recipe-list .kw-recipe-card-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--kw-recipe-surface); color: var(--kw-recipe-primary); gap: 8px; }
.kw-recipe-list .kw-recipe-card-placeholder span:first-child { font-size: 25px; font-weight: 650; }
.kw-recipe-list .kw-recipe-card-placeholder span:last-child { font-size: 12px; letter-spacing: .06em; }
.kw-recipe-list .kw-recipe-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.kw-recipe-list .kw-recipe-card h3 { font-size: 23px; margin: 0 0 12px; }
.kw-recipe-list .kw-recipe-card p { color: var(--kw-recipe-muted); margin: 0 0 20px; font-size: 15px; }
.kw-recipe-list .kw-recipe-card-facts { display: flex; gap: 16px; margin-top: auto; color: var(--kw-recipe-muted); font-size: 13px; }
.kw-recipe-list .kw-recipe-card-link { display: block; margin-top: 16px; font-size: 14px; font-weight: 650; color: var(--kw-recipe-primary); }
.kw-recipe-list .kw-recipe-card a:hover .kw-recipe-card-link { text-decoration: underline; }
.kw-recipe-list .kw-recipe-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.kw-recipe-list .kw-recipe-pagination a { color: var(--kw-recipe-primary); padding: 10px; }
@media (max-width: 800px) {
    .kw-recipe .kw-recipe-columns { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .kw-recipe .kw-recipe-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .kw-recipe .kw-recipe-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .kw-recipe .kw-recipe-intro { font-size: 18px; }
    .kw-recipe .kw-recipe-tips, .kw-recipe .kw-recipe-controls, .kw-recipe .kw-recipe-shopping { padding: 16px; }
}
@container kw-recipe (max-width: 800px) {
    .kw-recipe .kw-recipe-columns { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .kw-recipe .kw-recipe-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container kw-recipe (max-width: 420px) {
    .kw-recipe .kw-recipe-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .kw-recipe .kw-recipe-intro { font-size: 18px; }
    .kw-recipe .kw-recipe-tips, .kw-recipe .kw-recipe-controls, .kw-recipe .kw-recipe-shopping { padding: 16px; }
}
@media print {
    .kw-recipe .kw-recipe-controls, .kw-recipe .kw-recipe-shopping-controls, .kw-recipe .kw-recipe-shopping,
    .kw-recipe .kw-recipe-status, .kw-recipe input[type="checkbox"] { display: none !important; }
    .kw-recipe .kw-recipe-columns { display: block; }
    .kw-recipe .kw-recipe-method { margin-top: 24px; }
    .kw-recipe .kw-recipe-steps > li, .kw-recipe .kw-recipe-ingredient { break-inside: avoid; }
    .kw-recipe .kw-recipe-hero { max-height: 240px; }
}
