/* Step 06: point-to-point vs point-to-plane (all rules scoped to #s6) */
#s6 .s6-race { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { #s6 .s6-race { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#s6 .s6-lane { margin: 0; display: grid; gap: 8px; min-width: 0; align-content: start; }
#s6 .s6-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.98rem; }
#s6 .s6-head b { font-family: var(--f-display); font-size: 1.12rem; }
#s6 .s6-sub { font-size: 0.86rem; color: var(--muted); }
#s6 canvas.plot { touch-action: manipulation; }
#s6 .s6-out { font-size: 0.8rem; padding: 7px 10px; }
#s6 .s6-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }

/* line swatches that match the chart: point-to-point dashed muted, point-to-line solid ink */
#s6 .s6-sw { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--ink); vertical-align: middle; margin-right: 7px; position: relative; top: -1px; }
#s6 .s6-sw.p2p { border-top: 2.5px dashed var(--muted); }
#s6 .s6-sw.p2l { border-top-color: var(--ink); }
#s6 .s6-head .s6-sw { align-self: center; margin-right: 0; top: 0; }

#s6 .s6-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { #s6 .s6-bottom { grid-template-columns: minmax(0, 1fr) 18.5rem; } }
#s6 .s6-chartbox { min-width: 0; }
#s6 .s6-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 6px; }
#s6 .s6-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.86rem; color: var(--muted); }
#s6 .s6-chart-wrap { position: relative; }
#s6 canvas.s6-chart { height: 230px; cursor: crosshair; }
@media (max-width: 520px) { #s6 canvas.s6-chart { height: 200px; } }
#s6 .s6-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 6px 9px; font-family: var(--f-mono); font-size: 0.76rem; line-height: 1.6; color: var(--ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 12%, transparent); white-space: nowrap; }
#s6 .s6-tip .s6-sw { width: 16px; }
#s6 .s6-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--bg); }
#s6 .s6-seg button { font: inherit; font-size: 0.84rem; font-weight: 700; padding: 5px 11px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
#s6 .s6-seg button + button { border-left: 1px solid var(--rule); }
#s6 .s6-seg button[aria-pressed="true"] { background: var(--tint); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
#s6 .s6-cap2 { margin-top: 2px; }
#s6 .try { margin-bottom: 18px; }
#s6 code { font-family: var(--f-mono); font-size: 0.88em; }
#s6 .s6-tbl th:not(:first-child), #s6 .s6-tbl td.num { text-align: right; }
#s6 .s6-tbl td.num { white-space: nowrap; }
#s6 .s6-tbl td:first-child { color: var(--muted); }
#s6 .s6-tbl td b { font-weight: 600; }
/* phones: the buttons sit right under the two lanes, the chart follows */
@media (max-width: 899px) { #s6 #s6-controls { order: -1; } }
