/*
 * kitchen.css  --  a wall display, not a page.
 *
 * ===========================================================================
 * WHY THIS ONE IS DARK WHEN EVERY OTHER VENUE SURFACE IS WARM
 * ===========================================================================
 *
 * Every other page here is read at arm's length on a phone or a laptop. This
 * one is a glossy panel on a bracket, two to four metres away, usually under
 * hard overhead light and often at an angle. A light background on that screen
 * is a mirror: it throws back the lights and whoever is standing in front of
 * it. Dark with bright type is what every kitchen display uses, and it is a
 * property of the room rather than a change of mind about the brand.
 *
 * ===========================================================================
 * SIZING IS BY VIEWPORT, NOT BY BREAKPOINT
 * ===========================================================================
 *
 * The screens this lands on run from a spare 19" monitor to a 55" TV, and the
 * browser reports both as roughly 1920px wide. A media query cannot tell them
 * apart, so nothing here uses one for type: every size is a clamp() against vw,
 * which tracks the physical size in the only way available to the page.
 */

.kitchen-app {
    /* Overriding the warm palette rather than editing it: the tokens still come
       from legal.css, they are simply re-pointed for this surface. */
    --surface: #12131a;
    --border: rgba(255, 255, 255, 0.14);
    background: #0b0c11;
    color: #f4f5f7;
    margin: 0;
    /* TVs OVERSCAN. A wall display that loses its first column and its last row
       to the bezel is a display with a bug nobody can find, so the whole page
       sits inside a safe area rather than bleeding to the edges. */
    padding: 2.2vw 2.6vw;
    min-height: 100vh;
    box-sizing: border-box;
}

.kitchen-app .board-centre { color: #f4f5f7; }

.kitchen-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.1vw;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.4vw;
}

.kitchen-bar h1 {
    margin: 0;
    font-size: clamp(1.3rem, 2.1vw, 2.4rem);
    letter-spacing: -0.02em;
}

.kitchen-bar__stats { display: flex; align-items: baseline; gap: 0.5rem; }

.kitchen-total {
    font-size: clamp(1.8rem, 3.4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.kitchen-total-label {
    font-size: clamp(0.7rem, 1.1vw, 1.15rem);
    opacity: 0.6;
}

/* The not-yet-accepted nudge. Deliberately not red: it is information for the
   floor, not an emergency in the kitchen, and a screen where everything shouts
   is a screen where nothing does. */
.kitchen-nudge {
    padding: 0.8vw 1.1vw;
    margin-bottom: 1.2vw;
    border-radius: 12px;
    border: 1px solid rgba(245, 190, 80, 0.45);
    background: rgba(245, 190, 80, 0.12);
    color: #f7d79b;
    font-size: clamp(0.85rem, 1.3vw, 1.35rem);
    font-weight: 700;
}

/*
 * TWO COLUMNS, and the make list gets twice the room. What is being cooked is
 * the job; what is plated and waiting is a reminder. On a narrow screen they
 * stack, with making first for the same reason.
 */
.kitchen-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2vw;
    align-items: start;
}

@media (max-width: 60rem) {
    .kitchen-main { grid-template-columns: 1fr; }
}

.kitchen-heading {
    margin: 0 0 0.9vw;
    font-size: clamp(0.75rem, 1.1vw, 1.15rem);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.55;
    font-weight: 700;
}

.make-list, .pass-list { display: flex; flex-direction: column; gap: 0.9vw; }

.make-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.4vw;
    padding: 1.1vw 1.4vw;
    border-radius: 14px;
    background: var(--surface);
    /* The band lives on the LEFT EDGE rather than as a background wash: at four
       metres a tinted card and a plain one are hard to tell apart, but a bar of
       colour in a column is not. */
    border-left: 6px solid transparent;
}

.make-row.is-warm { border-left-color: #f5be50; }
.make-row.is-late {
    border-left-color: #e5484d;
    background: rgba(229, 72, 77, 0.1);
}

/* THE QUANTITY IS THE BIGGEST THING ON THE SCREEN. It is the one number the
   cook is actually acting on; the dish name only says which pan. */
.make-qty {
    font-size: clamp(2rem, 4.2vw, 5rem);
    font-weight: 800;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
    min-width: 1.6em;
    text-align: center;
}

.make-body { min-width: 0; }

.make-name {
    font-size: clamp(1.1rem, 2.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.make-detail {
    font-size: clamp(0.8rem, 1.3vw, 1.4rem);
    opacity: 0.7;
    margin-top: 0.15em;
}

/*
 * THE NOTE. The reason this line was not batched with the others, so it has to
 * survive a four-metre glance by somebody who is not looking for it. Its own
 * block, its own colour, and never appended to the dish name -- which at that
 * distance reads as part of the dish.
 */
.make-note {
    margin-top: 0.35em;
    padding: 0.25em 0.6em;
    display: inline-block;
    border-radius: 8px;
    background: rgba(245, 190, 80, 0.16);
    border: 1px solid rgba(245, 190, 80, 0.5);
    color: #f7d79b;
    font-size: clamp(0.85rem, 1.5vw, 1.6rem);
    font-weight: 700;
}

.make-tables {
    font-size: clamp(0.75rem, 1.2vw, 1.25rem);
    opacity: 0.6;
    margin-top: 0.3em;
    font-variant-numeric: tabular-nums;
}

.make-age {
    font-size: clamp(0.75rem, 1.2vw, 1.3rem);
    opacity: 0.55;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.kitchen-empty {
    opacity: 0.4;
    font-size: clamp(0.9rem, 1.4vw, 1.5rem);
    margin: 0;
    padding: 1.2vw 0;
}

/* The pass column is secondary, so its rows are quieter than the make list's
   even though they share a component. */
.pass-list .make-qty { font-size: clamp(1.5rem, 2.8vw, 3.2rem); }
.pass-list .make-name { font-size: clamp(0.95rem, 1.6vw, 1.8rem); }

/* Which station this screen shows (2026-10-17). Big enough to read and change
   from across a kitchen, quiet enough not to compete with the dishes. */
.kitchen-station {
    font: inherit; font-size: clamp(14px, 1.3vw, 22px); font-weight: 700;
    padding: 0.35em 0.8em; border-radius: 999px; margin-left: 1rem;
    background: rgba(255, 255, 255, 0.08); color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.kitchen-station option { color: #111; }
.kitchen-install { font: inherit; font-size: clamp(13px, 1.1vw, 18px); font-weight: 700; padding: 0.35em 0.9em;
    border-radius: 999px; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; }
