/* Decomposition is neutral; only the final solution links are interactive. */
.restaurant-solutions { --profit-connector:#b8c5d4;--profit-neutral:#f4f6f8;--profit-neutral-border:#dce3eb;--profit-gap:24px;--profit-solution-width:180px;--solution-surface:#e9f3ff; }
.restaurant-solutions h2 { font-size:clamp(28px,2.7vw,36px); }
.restaurant-solutions-intro { color:var(--muted);font-size:15px;margin-top:12px; }
.profit-map-frame { margin-top:36px; }
.profit-map { position:relative;isolation:isolate;max-width:1060px;margin:0 auto;padding:14px 16px 8px 0;scroll-margin-top:120px; }
.profit-map::before { content:"";position:absolute;z-index:-1;top:0;right:0;bottom:0;width:calc(var(--profit-solution-width) + 32px);border-left:1px solid #d7e7fc;border-radius:8px;background:#f3f8ff;pointer-events:none; }
.profit-map ul { list-style:none;margin:0;padding:0; }
.profit-map-head { display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;font-size:12px;line-height:1.6;font-weight:650;color:var(--muted); }
.profit-map-head > span:last-child { display:flex;flex-direction:column;align-items:center;gap:2px;width:var(--profit-solution-width);flex-shrink:0;color:#0759c6;text-align:center; }
.profit-map-head strong { font-size:15px;letter-spacing:.04em; }
.profit-map-head small { font-size:11px;font-weight:500; }
.profit-logic-tree { display:flex;align-items:center;width:100%; }
.profit-node { position:relative;flex:0 0 115px;width:115px;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 8px;border:1px solid var(--profit-neutral-border);border-radius:5px;background:var(--profit-neutral);text-align:center;color:var(--ink); }
.profit-node h3,.profit-node h4,.profit-node h5,.profit-node h6 { font-size:14px;font-weight:700;line-height:1.6;margin:0;letter-spacing:0; }
.profit-node p { font-size:11px;line-height:1.6;color:var(--muted);margin-top:7px; }
.profit-node::after { content:"";position:absolute;top:50%;left:100%;width:calc(var(--profit-gap) / 2);height:1px;background:var(--profit-connector); }
.profit-node--root { flex-basis:155px;width:155px;padding:22px 10px;background:var(--ink);border-color:var(--ink);color:#fff; }
.profit-node--root h3 { font-size:16px; }
.profit-map .profit-level { flex:1;min-width:0;padding-left:var(--profit-gap); }
.profit-branch-operator { position:absolute;left:var(--operator-x,57.5px);top:var(--operator-y,0px);transform:translate(-50%,-50%);z-index:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 4px;width:115px;min-height:22px;padding:2px 0;background:#fff;color:var(--ink);font-size:11px;font-weight:500;line-height:1.6;text-align:center;pointer-events:none; }
.profit-equation-term,.profit-equation-tail { white-space:nowrap; }
.profit-equation-tail { display:inline-flex;align-items:center;gap:4px; }
.profit-branch-operator b { font-size:1.15em;font-weight:700; }
.profit-junction { display:flex;align-items:center;position:relative;width:100%;min-width:0;padding:12px 0; }
.profit-junction::before { content:"";position:absolute;left:calc(var(--profit-gap) / -2);top:50%;width:calc(var(--profit-gap) / 2);height:1px;background:var(--profit-connector); }
.profit-junction::after { content:"";position:absolute;left:calc(var(--profit-gap) / -2);top:0;bottom:0;width:1px;background:var(--profit-connector); }
.profit-junction:first-child::after { top:50%; }
.profit-junction:last-child::after { bottom:50%; }
.profit-junction:only-child::after { display:none; }
.profit-terminal { display:flex;align-items:center;flex:1;min-width:0; }
.profit-node--outcome { padding:12px 6px;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center; }
.profit-node--outcome::after { display:none; }
.profit-node .profit-outcome-label { margin:0;font-size:14px;font-weight:650;line-height:1.6;color:var(--ink); }
.profit-terminal-line { display:block;flex:1;min-width:var(--profit-gap);height:1px;background:var(--profit-connector); }
.profit-leaf { position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 var(--profit-solution-width);width:var(--profit-solution-width);min-height:72px;padding:13px 24px 13px 12px;border:1px solid #86b7ee;border-radius:5px;background:var(--solution-surface);color:#0759c6;text-align:center;font-size:15px;font-weight:650;line-height:1.6;transition:background .18s,border-color .18s; }
.profit-leaf-label { min-width:0;max-width:100%;overflow-wrap:anywhere; }
.profit-leaf:hover { border-color:var(--blue);background:#deedff; }
.profit-leaf[aria-current="true"] { border-color:#0759c6;box-shadow:none;background:#0759c6;color:#fff; }
.profit-leaf[aria-current="true"] .profit-leaf-arrow { color:#fff; }
.profit-leaf[aria-current="true"]:hover { background:#064ca9;border-color:#064ca9; }
.profit-leaf:focus-visible { outline:3px solid #0759c6;outline-offset:3px; }
.profit-solution-phrase { display:inline-block; }
.profit-phrase { white-space:nowrap; }
.profit-leaf-arrow { position:absolute;right:8px;top:8px;color:#0759c6;font-size:13px;font-weight:400;line-height:1; }
.restaurant-solution-panels { margin-top:34px; }
.restaurant-solution-panel { padding:30px 32px;border:0;border-radius:6px;background:var(--solution-surface);scroll-margin-top:120px; }
.restaurant-solution-panel + .restaurant-solution-panel { margin-top:28px; }
.restaurant-solutions[data-enhanced="true"] .restaurant-solution-panel { margin-top:0; }
.restaurant-solutions .restaurant-solution-panel[hidden] { display:none; }
.restaurant-solution-category { font-size:12px;letter-spacing:.06em;color:var(--blue);font-weight:650;margin-bottom:9px; }
.restaurant-solution-panel h3 { font-size:clamp(21px,2vw,26px);line-height:1.5; }
.restaurant-solution-lead { font-size:15px;line-height:1.85;margin-top:12px;text-wrap:pretty; }
.restaurant-solution-options { display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:28px;margin-top:25px; }
.restaurant-solution-options > div { border-top:1px solid var(--line);padding-top:16px;min-width:0; }
.restaurant-solution-options h4 { font-size:16px;line-height:1.7;margin:0 0 7px;font-weight:700; }
.restaurant-solution-options p { font-size:14px;line-height:1.9;color:var(--muted); }
.restaurant-solution-metrics { font-size:12px;line-height:1.9;color:var(--muted);border-top:1px solid var(--line);padding-top:17px;margin-top:26px; }
.restaurant-solution-metrics strong { color:var(--ink);margin-right:.8em;font-weight:650; }
.restaurant-tree-back { display:inline-flex;align-items:center;gap:16px;margin-top:19px;padding:4px 0;min-height:44px;font-size:13px;color:var(--blue);font-weight:650; }
.profit-map:focus-visible { outline:3px solid #f5b731;outline-offset:5px; }
/* The article is a programmatic reading target, not an interactive control.
   Keep link focus indicators; do not draw an outer frame around the article. */
.restaurant-solution-panel:focus { outline:none; }
/* Desktop parents align with the centres of their direct child boxes. */
@media (min-width:1000px) and (max-width:1099px) {
 .restaurant-solutions { --profit-gap:22px; }
}
@media (min-width:1000px), (max-width:760px) {
 .profit-node { transform:translateY(var(--profit-node-offset,0px)); }
 .profit-junction::before { top:var(--profit-anchor-y,50%); }
 .profit-junction:first-child::after { top:var(--profit-anchor-y,50%); }
 .profit-junction:last-child::after { bottom:var(--profit-tail-gap,50%); }
}
@media (min-width:761px) and (max-width:999px) {
 .profit-map { --profit-solution-width:190px;max-width:666px; }
 .profit-logic-tree { display:block;max-width:650px;margin-inline:auto; }
 .profit-node { width:100%;padding:15px 17px;text-align:center; }
 .profit-node h3,.profit-node h4,.profit-node h5,.profit-node h6 { font-size:16px; }
 .profit-node p { margin-top:4px; }
 .profit-node::after { top:100%;left:12px;width:1px;height:15px; }
 .profit-node--root { display:flex;align-items:center;justify-content:center;padding:19px 20px;gap:20px; }
 .profit-node--root h3 { font-size:19px; }
 .profit-map .profit-level { padding:14px 0 0 25px; }
 .profit-junction { display:block;padding:0 0 36px; }
 .profit-branch-operator { left:50%;top:-18px;width:160px;min-height:22px;font-size:11px; }
 .profit-junction:last-child { padding-bottom:0; }
 .profit-junction::before { left:-13px;top:33px;width:13px; }
 .profit-junction::after { left:-13px;top:0;bottom:0; }
 .profit-junction:first-child::after { top:-14px; }
 .profit-junction:last-child::after { bottom:auto;height:33px; }
 .profit-junction:only-child::after { display:block;top:-14px;height:47px; }
 .profit-terminal .profit-node--outcome { width:auto;flex:1;align-items:center; }
 .profit-terminal-line { flex:0 0 22px;min-width:22px; }
 .profit-leaf { flex-basis:190px;width:190px; }
}
/* Phones keep the same connected, horizontal tree as desktop. */
@media (max-width:760px) {
 .restaurant-solutions-intro { font-size:14px;line-height:1.9; }
 .profit-map-frame { margin-top:26px;--profit-gap:16px;--profit-solution-width:168px; }
 .profit-map-viewport { overflow:clip; }
 .profit-map { width:760px;max-width:none;margin:0;transform-origin:top left; }
 .profit-map-head { font-size:15px; }
 .profit-map-head strong { font-size:18px; }
 .profit-node { flex-basis:88px;width:88px;min-height:88px;padding:10px 5px; }
 .profit-node h3,.profit-node h4,.profit-node h5,.profit-node h6 { font-size:16px;line-height:1.5; }
 .profit-node--root { flex-basis:120px;width:120px;padding:14px 10px; }
 .profit-node--outcome { padding:10px 5px; }
 .profit-node .profit-outcome-label { font-size:16px;line-height:1.5; }
 .profit-branch-operator { width:88px;font-size:11px; }
 .profit-leaf { min-height:88px;padding:12px 22px 12px 8px;font-size:18px;line-height:1.5; }
 .restaurant-solution-panels { margin-top:25px; }
 .restaurant-solution-panel { padding:23px 19px; }
 .restaurant-solution-category { font-size:11px; }
 .restaurant-solution-panel h3 { font-size:21px; }
 .restaurant-solution-lead { font-size:14px; }
 .restaurant-solution-options { grid-template-columns:minmax(0,1fr);gap:20px;margin-top:23px; }
 .restaurant-solution-options h4 { font-size:16px; }
 .restaurant-solution-options p { font-size:14px; }
 .restaurant-solution-metrics { font-size:12px;margin-top:22px; }
}
@media (prefers-reduced-motion:reduce) { .restaurant-solutions * { scroll-behavior:auto;transition:none; } }
.restaurant-owner-context { margin-top:20px;color:var(--muted);font-size:15px;line-height:2; }
.restaurant-owner-context p + p { margin-top:12px; }
.restaurant-owner-context + .restaurant-solutions-intro { margin-top:20px;font-size:13px; }
@media (max-width:760px) {
 .restaurant-owner-context { margin-top:16px;font-size:14px; }
 .restaurant-owner-context + .restaurant-solutions-intro { font-size:12px; }
}

/* One focused scene accompanies each selected solution. */
.restaurant-solution-overview { display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:36px;align-items:center;max-width:1000px; }
.restaurant-solution-copy { min-width:0; }
.restaurant-solution-art { margin:0;display:flex;align-items:center;justify-content:center; }
.restaurant-solution-art img { display:block;width:100%;height:270px;object-fit:contain; }
@media (min-width:761px) and (max-width:999px) {
 .restaurant-solution-overview { grid-template-columns:minmax(0,1fr) 210px;gap:24px; }
 .restaurant-solution-art img { height:175px; }
}
@media (max-width:760px) {
 .restaurant-solution-overview { grid-template-columns:minmax(0,1fr);gap:20px; }
 .restaurant-solution-art { width:min(100%,280px);justify-self:center; }
 .restaurant-solution-art img { height:210px; }
}
