/* Dish pages. Loaded on top of styles.css, which supplies the header, nav,
   footer, review banner and .tool-box. Only what is specific to dishes lives
   here — the shared furniture stays shared so every page keeps matching. */

.dish { padding-top: 0; overflow: hidden; }
.dish-hero {
    display: block; width: calc(100% + 60px); margin: -30px -30px 22px;
    height: 260px; object-fit: cover; background: #eceff4;
}
.dish h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }
.dish-blurb { color: #5a6068; font-size: 1.03em; line-height: 1.7; max-width: 60ch; }

.dish-macros {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    margin: 22px 0 6px; padding: 16px 0; border-top: 2px solid #eceff4; border-bottom: 2px solid #eceff4;
}
.dish-macros b { display: block; font-size: 1.5em; font-weight: 800; color: #2d6a4a; letter-spacing: -.5px; line-height: 1.1; }
.dish-macros span { font-size: .68em; text-transform: uppercase; letter-spacing: .07em; color: #8b9199; font-weight: 700; }

.dish-toggle { display: flex; background: #eef1ee; border-radius: 12px; padding: 4px; margin: 24px 0 18px; }
.dish-toggle button {
    flex: 1; border: 0; background: none; cursor: pointer;
    font: 600 15px/1 inherit; color: #6d746f; padding: 12px; border-radius: 9px;
    transition: background .15s, color .15s;
}
.dish-toggle button.on { background: #fff; color: #1d2021; box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.dish-toggle button:focus-visible { outline: 2.5px solid #667eea; outline-offset: 2px; }

.pane-intro { color: #6d746f; font-size: .95em; margin-bottom: 14px; }

.ings { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ing {
    display: flex; align-items: center; gap: 12px;
    background: #f7f9f7; border-radius: 10px; padding: 10px 12px;
}
.ing-photo { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #eceff4; }
.ing .food-tile { width: 46px; height: 46px; margin-right: 0; }
.ing-tx { flex: 1; min-width: 0; }
.ing-tx b { display: block; font-size: 15px; font-weight: 600; color: #26292a; }
.ing-tx small { display: block; font-size: 12.5px; color: #7d8482; margin-top: 1px; }
.ing-g { font-weight: 700; color: #2d6a4a; font-size: 14px; white-space: nowrap; }
.ing-g.none { color: #b8bec2; font-weight: 400; }
.ing-plain { background: #fbfcfb; border: 1px dashed #e2e7e3; }

.ing .pick {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
    border: 2px solid #c9cddb; background: #fff; color: #667eea;
    font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer;
    display: grid; place-items: center; padding: 0;
}
.ing .pick[aria-pressed="true"] { background: #2d6a4a; border-color: #2d6a4a; color: #fff; }
.ing .pick:focus-visible { outline: 2.5px solid #667eea; outline-offset: 2px; }

.dish-cta {
    display: block; width: 100%; border: 0; cursor: pointer;
    background: #2d6a4a; color: #fff; font: 700 15px/1 inherit;
    padding: 15px; border-radius: 11px; margin-bottom: 8px;
}
.dish-cta:hover { background: #24583d; }
.dish-cta:focus-visible { outline: 2.5px solid #1d2021; outline-offset: 2px; }

.steps { margin: 12px 0 0 20px; color: #4a5258; }
.steps li { margin-bottom: 11px; line-height: 1.65; }

.dish-foot { font-size: .84em; color: #8b9199; line-height: 1.6; margin-top: 14px; }

/* ---- the index ---- */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.dish-card {
    display: block; text-decoration: none; color: inherit; background: #f7f9f7;
    border-radius: 14px; overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.dish-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30,50,40,.14); }
.dish-card img { display: block; width: 100%; height: 158px; object-fit: cover; background: #eceff4; }
.dish-card .c { padding: 14px 15px 16px; }
.dish-card b { display: block; font-size: 16px; color: #26292a; line-height: 1.3; margin-bottom: 5px; }
.dish-card small { display: block; font-size: 12.5px; color: #7d8482; line-height: 1.5; }
.dish-card .meta { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #2d6a4a; }
.dish-card .draft {
    display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: #8a6a12;
    background: #fdf4dd; border: 1px solid #ecd08f; padding: 2px 6px; border-radius: 4px;
}

@media (max-width: 600px) {
    .dish-hero { width: calc(100% + 36px); margin: -22px -18px 18px; height: 200px; }
    .dish-macros { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
}
