/* Food atlas: compact editorial labels around the selected dish. */
.graph-topline {
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-bottom: 6px;
}
.graph-topline #graph-status {
  flex: 1 1 7rem;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.graph-page-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.graph-next:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-inline-start: auto;
  padding: 7px 8px 7px 13px;
  border: 1px solid #d9cbbb;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
.graph-next:hover {
  background: #f6eee4;
  border-color: #bc9e86;
}
#graph-next-label { min-inline-size: 6em; }
.graph-next-page {
  color: var(--muted);
  padding-inline-start: 8px;
  border-inline-start: 1px solid #e1d6ca;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.graph-next-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2e4d7;
  color: #8d482f;
  font-size: 16px;
  line-height: 1;
}
.graph-column{background:#f7f5ef}.graph-node{--node-accent:#526b50;--node-tint:#e7eddf;border:0;border-radius:0;background:transparent;box-shadow:none;padding:10px 10px 15px;min-height:176px;justify-content:flex-start}.graph-node.ingredient{--node-accent:#866126;--node-tint:#f3e7cc}.graph-node.contrast{--node-accent:#a05140;--node-tint:#f6e1da}.graph-node:hover{box-shadow:none;border:0;background:#fff9;border-radius:24px}.node-kind{border-radius:20px;background:var(--node-tint);color:var(--node-accent)!important;padding:3px 10px;font-size:10px;line-height:1.6}.node-title{gap:8px;margin:9px 0 4px;min-height:38px}.node-title strong{font-size:17px;line-height:1.45}.node-title img{width:42px;height:42px;border-radius:50%;box-shadow:0 0 0 3px white}.node-index{font:500 22px/1 var(--serif);color:var(--node-accent);display:flex;flex-direction:column;gap:5px;flex-shrink:0}.node-index span{font:9px/1.2 var(--sans)}.node-note{background:#f7f5ef;font-size:11px;line-height:1.75;margin:8px 0 0;max-width:100%;padding:0 3px}.node-go{position:absolute;right:4px;bottom:0;width:25px;height:25px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--node-accent);font-size:14px;transition:transform .2s}.graph-node:hover .node-go{transform:rotate(45deg);background:var(--node-tint)}.graph-node:focus-visible{border-radius:20px}
.graph-center,.graph.compact-graph .graph-center{
  width:178px;
  min-height:148px;
  border:0;
  border-radius:40px;
  background:#e6eddf;
  padding:14px 16px;
  box-shadow:0 4px 14px #535b4614;
  overflow:hidden;
  isolation:isolate;
}
.graph-center strong{font-size:20px;line-height:1.45;margin:6px 0;word-break:normal;overflow-wrap:anywhere}.graph-center em{margin-top:8px}.center-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.graph-center.has-photo:after{content:"";position:absolute;inset:0;background:#211c16a6;z-index:-1}.graph-center.has-photo{color:#fff}.graph-center:hover{box-shadow:0 6px 18px #535b4624}.edge{stroke-width:1.5;opacity:.6}.graph-node:hover strong{text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){.node-title strong{font-size:15px}.node-title{gap:6px}.node-title img{width:34px;height:34px}.graph-node{padding:8px 5px 17px}.node-kind{font-size:9px;padding:3px 8px}.node-note{font-size:11px}.node-index{font-size:19px}.graph-center strong{font-size:19px}}
.graph-center strong{width:100%;flex-shrink:0;overflow-wrap:normal;word-break:normal;text-wrap:balance;letter-spacing:0;line-height:1.5}
.node-title strong{min-width:0;word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
.node-title .photo-frame{border-radius:50%;flex-shrink:0}
.graph-node.pairing { --node-accent: #786080; --node-tint: #eee6ef; }
.node-drink { flex-shrink: 0; color: var(--node-accent); font-size: 9px; }
.node-title:has(.node-drink) { display: grid; gap: 2px; }
@media(prefers-reduced-motion:reduce){.node-go{transition:none}}
.graph-lines{pointer-events:none}.connection{opacity:.7;transition:opacity .2s}.connection .edge{stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;opacity:1;vector-effect:non-scaling-stroke;transition:stroke-width .2s}.connection .edge.contrast{stroke-dasharray:2 6}.edge-tip{fill:#f7f5ef;stroke:currentColor;stroke-width:1.1}.connection-focused .connection{opacity:.22}.connection-focused .connection.is-active{opacity:1}.connection.is-active .edge{stroke-width:2}.connection.is-active .edge-tip{fill:currentColor}
@media(prefers-reduced-motion:reduce){.connection,.connection .edge{transition:none}}
