/* Raio-X do prato: capítulo só da página de restaurantes.
   Calor no salão (o que todo mundo vê), frio depois do feixe (o que quase ninguém vê).
   Custos em tons quentes, em ordem; verde só para o que sobra. */

.rp { background: #081629; color: var(--white); padding-block: clamp(56px, 8vw, 104px); }

.rp-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: end;
    margin-bottom: clamp(28px, 4vw, 44px);
}
.rp-head h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--white);
}
.rp-head p { margin: 0; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, .78); max-width: 34em; }

.rp-stage { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); background: #081629; }
.rp-stage svg { display: block; width: 100%; height: auto; font-family: var(--font); font-variant-numeric: tabular-nums; }

.rp-zone { font-size: 15px; font-weight: 600; fill: #FFE2A8; }
.rp-zone--cold { fill: #14DBF2; }
.rp-open { font-weight: 700; fill: #FFE9BD; }
.rp-gantry { font-family: var(--display); font-size: 13px; font-weight: 700; fill: #CFFAFF; }
.rp-cap { font-family: var(--display); font-weight: 700; fill: #FFFFFF; }
.rp-sub { fill: rgba(255, 255, 255, .72); }
.rp-msg { font-weight: 700; }
.rp-row { fill: #FFFFFF; }
.rp-in { font-weight: 600; }
.rp-val { font-weight: 700; }
.rp-total-l { font-weight: 700; }
.rp-total { font-family: var(--display); font-weight: 800; }
.rp-pct { font-size: 8.5px; font-weight: 700; }
.rp-center { font-family: var(--display); font-weight: 800; paint-order: stroke; stroke: #0E2A4A; stroke-width: 6px; stroke-linejoin: round; }
.rp-tag-v { font-family: var(--display); font-size: 21px; font-weight: 800; fill: var(--ink); }
.rp-tag-l { font-size: 12.5px; font-weight: 600; fill: var(--ink); }

.rp-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.rp-bar > span { font-size: 15px; color: rgba(255, 255, 255, .72); margin-right: 4px; }
.rp-order, .rp-toggle {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--radius-s);
    border: 1px solid rgba(255, 255, 255, .28);
    background: transparent;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.rp-order { position: relative; overflow: hidden; }
.rp-order:hover, .rp-toggle:hover { border-color: var(--white); }
.rp-order[aria-pressed="true"] { background: rgba(20, 219, 242, .14); border-color: var(--cyan); }
.rp-order[aria-pressed="true"]::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--cyan);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
}
.rp-toggle { margin-left: auto; color: rgba(255, 255, 255, .86); }

.rp-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px clamp(24px, 5vw, 64px);
    align-items: center;
    margin-top: clamp(28px, 4vw, 44px);
}
.rp-foot h3 { margin: 0 0 6px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; color: var(--white); }
.rp-foot p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 40em; }
.rp-foot .rp-note { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.rp-foot .btn, .rp-foot .btn:hover { color: var(--ink); white-space: normal; }

@media (max-width: 720px) {
    .rp-head, .rp-foot { grid-template-columns: minmax(0, 1fr); }
    .rp-bar > span { width: 100%; }
    .rp-order { flex: 1 1 100%; text-align: left; }
    .rp-toggle { margin-left: 0; flex: 1 1 100%; }
    .rp-foot .btn { width: 100%; text-align: center; }
}
