/* The pictures. Line colours are a colour-blind-checked set (no green) that
   follows each product in a fixed order; logos sit on white plates so dark
   marks read on the dark theme too. Everything else uses the brand tokens. */
:root {
  --dg-s1: #2a78d6; --dg-s2: #eb6834; --dg-s3: #1a9fc0; --dg-s4: #eda100; --dg-s5: #e87ba4; --dg-s6: #6250d6; --dg-s7: #e34948; --dg-s8: #9c3f8f;
  --dg-chip: #ffffff; --dg-chip-ink: #160303; --dg-chip-muted: #6e6763;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dg-s1: #3987e5; --dg-s2: #d95926; --dg-s3: #1f9cba; --dg-s4: #c98500; --dg-s5: #d55181; --dg-s6: #9085e9; --dg-s7: #e66767; --dg-s8: #a855a0; --dg-chip: #fbf7f5; }
}
:root[data-theme="dark"] { --dg-s1: #3987e5; --dg-s2: #d95926; --dg-s3: #1f9cba; --dg-s4: #c98500; --dg-s5: #d55181; --dg-s6: #9085e9; --dg-s7: #e66767; --dg-s8: #a855a0; --dg-chip: #fbf7f5; }

.dg-fig { margin: 0; display: grid; gap: 10px; }
.dg-scroll { overflow-x: auto; padding-bottom: 4px; }
.dg-svg { display: block; width: 100%; max-width: var(--w); min-width: var(--min); height: auto; font-family: var(--font-ui); }
.dg-cap { font-size: 13.5px; color: var(--muted); max-width: 80ch; }
.dg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.dg-lgd { display: inline-flex; align-items: center; gap: 6px; }
.dg-lgd svg { overflow: visible; }

.dg-svg text { fill: var(--body); font-size: 12px; }
.dg-svg a { text-decoration: none; }
.dg-svg a:hover text { text-decoration: underline; }
.dg-svg a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dg-chip { fill: var(--dg-chip); stroke: var(--rule); }
.dg-ln { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.dg-svg .dg-nm { fill: var(--ink); font-weight: 600; font-size: 13px; }
.dg-svg .dg-nm.sm { font-size: 12.5px; }
.dg-svg .dg-st { fill: var(--ink); font-weight: 650; font-size: 13.5px; }
.dg-stop { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; }
.dg-dot-y { fill: var(--ink); }
.dg-dot-o { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; }
.dg-svg .dg-tm { fill: var(--ink); font-size: 12.5px; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.dg-svg .dg-tm.none { fill: var(--muted); font-style: italic; }
.dg-svg .dg-pt, .dg-svg .dg-ct, .dg-svg .dg-tl { fill: var(--muted); }

/* who sells what */
.dg-who { display: grid; grid-template-columns: 116px repeat(var(--cols), minmax(128px, 1fr)); gap: 4px 6px; min-width: 960px; }
.dg-ch { align-self: end; padding: 0 8px 8px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.25; text-decoration: none; }
.dg-ch:hover { color: var(--ink); }
.dg-ch.on { color: var(--ink); border-bottom: 2px solid var(--tab-line); }
.dg-rh { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 600; }
.dg-rh .logo { width: auto; max-width: 84px; padding: 4px 6px; box-sizing: content-box; border-radius: 6px; background: var(--dg-chip); }
.dg-rh.rest { align-self: start; padding-top: 12px; color: var(--muted); }
.dg-cell { display: grid; gap: 6px; align-content: start; padding: 6px; border-radius: var(--radius-sm); }
.dg-cell.on { background: var(--tint); }
.dg-who > .dg-rh.rest, .dg-who > .dg-rh.rest ~ .dg-cell { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 12px; }
.dg-tile { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--dg-chip); border: 1px solid var(--rule); text-decoration: none; }
a.dg-tile:hover { border-color: var(--ink); }
.dg-tile .logo { flex: none; width: auto; height: 15px; max-width: 48px; }
.dg-tile b { color: var(--dg-chip-ink); font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.dg-none { padding: 7px 10px; color: var(--rule-2); }

/* price line */
.dg-axis { stroke: var(--ink); stroke-width: 1.4; }
.dg-tk { stroke: var(--ink); stroke-width: 1.2; }
.dg-stem { stroke: var(--rule-2); stroke-width: 1.4; }
.dg-pill { fill: var(--dg-chip); stroke: var(--rule-2); }
.dg-svg .dg-pv { fill: var(--dg-chip-ink); font-weight: 600; font-size: 12.5px; }
.dg-svg .dg-bn { fill: var(--ink); font-weight: 600; font-size: 12.5px; }
.dg-bin { fill: none; stroke: var(--muted); stroke-dasharray: 4 4; }

/* change timeline */
.dg-grid { stroke: var(--hair); }
.dg-lane { stroke: var(--rule); }
.dg-k.feature { fill: var(--dg-s1); }
.dg-k.price { fill: var(--dg-s2); }
.dg-k.rename { fill: var(--dg-s6); }
.dg-k.policy { fill: var(--dg-s4); }
.dg-k.retired { stroke: var(--dg-s7); stroke-width: 2.4; stroke-linecap: round; }
.dg-hit { fill: transparent; }
.dg-ev:hover .dg-k { stroke: var(--ink); stroke-width: 1.5; }

/* old names */
.dg-rl { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.dg-rl.fade { stroke: var(--muted); stroke-dasharray: 3 5; }
.dg-term { stroke: var(--cite-mark); stroke-width: 3; stroke-linecap: round; }
.dg-old { fill: var(--bg); stroke: var(--muted); stroke-width: 1.8; }
.dg-now { fill: var(--ink); }
.dg-svg .dg-on { fill: var(--muted); font-size: 12.5px; }
.dg-svg .dg-nn { fill: var(--ink); font-weight: 650; font-size: 13.5px; }
.dg-svg .dg-wd { fill: var(--muted); }

/* table header logos */
.ph-logo { display: block; width: auto; height: 16px; max-width: 64px; margin-bottom: 8px; padding: 3px 5px; box-sizing: content-box; border-radius: 5px; background: var(--dg-chip); }
