/* Skin for the /cable-selection/ pages: the four cable checking and selection
   algorithms. Same geometry as the /standards/ and /about/ clusters — one
   centred text column, the site's rules, and the flowchart as inline SVG that
   takes its colours from the same variables as the rest of the page. */
html, body { height: 100%; }
body { background: var(--paper); }

.cs-pane { max-width: 1060px; margin: 0 auto; padding: 30px 48px 60px; }
@media (max-width: 760px) { .cs-pane { padding: 20px 16px 40px; } }
.cs-kicker { font: 800 10px/1.5 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 6px; }
.cs-pane h1 { font: 900 34px/1.06 var(--display); letter-spacing: -0.025em; margin: 0 0 12px; text-transform: uppercase; }
.cs-pane .lede { font: 500 14px/1.62 var(--sans); color: var(--ink-2); margin: 0 0 8px; max-width: 820px; }
.cs-pane .lede b { color: var(--ink); font-weight: 700; }
.cs-meta { font: 800 10px/1.5 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 24px; }

.cs-sec { margin: 0 0 30px; scroll-margin-top: 140px; }
.cs-sec > h2 { font: 900 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 10px; padding: 0 0 7px; border-bottom: 1px solid var(--border); }
.cs-sec p, .cs-sec li { font: 500 13.5px/1.62 var(--sans); color: var(--ink-2); }
.cs-sec p { margin: 0 0 10px; }
.cs-sec b { color: var(--ink); font-weight: 700; }
.cs-sec a { color: var(--red); }
.cs-sec ul, .cs-sec ol { margin: 0 0 12px; padding-left: 22px; }
.cs-sec li { margin-bottom: 7px; }

/* the direct answer, first thing on the page */
.cs-answer { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red);
  padding: 13px 16px; margin: 0 0 26px; }
.cs-answer p { margin: 0; font: 500 13.5px/1.62 var(--sans); color: var(--ink); }
.cs-answer p + p { margin-top: 9px; }
.cs-answer b { font-weight: 700; }

/* ------------------------------------------------------------- the chart */
.cs-figure { margin: 0; }
.cs-scroll { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--border);
  background: var(--paper); padding: 10px; }
.cs-figure figcaption { font: 500 12px/1.55 var(--sans); color: var(--ink-3); padding-top: 9px; max-width: 780px; }

/* The chart keeps its natural size and pans inside .cs-scroll. Shrinking it to a
   phone width would take the 10 px clause text down to about 3 px; the step
   table below is the readable version on a small screen. */
.cs-scroll .cs-svg { display: block; font-family: var(--sans); max-width: none; height: auto; }
.cs-svg .proc { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.cs-svg .io { fill: var(--surface); stroke: var(--ink); stroke-width: 1; }
.cs-svg .dec { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.cs-svg .cap { fill: var(--carbon); stroke: none; }
.cs-svg .fix { fill: var(--paper); stroke: var(--red); stroke-width: 1; stroke-dasharray: 4 3; }
.cs-svg text { fill: var(--ink); }
.cs-svg .t { font-size: 12.5px; font-weight: 700; }
.cs-svg .c { font-size: 10px; font-weight: 500; fill: var(--ink-3); }
.cs-svg .b { font-size: 10.5px; font-weight: 500; fill: var(--ink-2); }
.cs-svg .mid { text-anchor: middle; }
.cs-svg .capt { font-size: 12px; font-weight: 800; letter-spacing: 0.09em; fill: var(--paper); text-anchor: middle; }
.cs-svg .num { font-size: 12px; font-weight: 900; fill: var(--red); text-anchor: end; font-family: var(--display); }
.cs-svg .lb { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); }
.cs-svg .lb.r { fill: var(--red); }
.cs-svg .ar { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.cs-svg .ar.r { stroke: var(--red); }
.cs-svg .ar.dash { stroke-dasharray: 5 3; }
.cs-svg .head { fill: var(--ink); stroke: none; }
.cs-svg .head.r { fill: var(--red); }

/* -------------------------------------------------------------- tables */
.cs-table-wrap { overflow-x: auto; margin: 10px 0 16px; }
.cs-table { width: 100%; border-collapse: collapse; font: 500 12.5px/1.5 var(--sans); min-width: 640px; }
.cs-table th, .cs-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: right; vertical-align: top; }
.cs-table th { font: 800 9.5px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.cs-table th.l, .cs-table td.l { text-align: left; }
.cs-table th.c, .cs-table td.c { text-align: center; }
.cs-table td.c { font: 800 12px/1.5 var(--display); color: var(--red); }
.cs-table tr:hover td { background: var(--surface); }
.cs-table caption { caption-side: bottom; text-align: left; font: 500 11.5px/1.5 var(--sans);
  color: var(--ink-3); padding-top: 8px; }
.cs-table td:last-child { color: var(--ink-3); }

/* -------------------------------------------------------------- link lists */
.cs-links, .cs-tools { list-style: none; margin: 0; padding: 0; }
.cs-links li, .cs-tools li { border-bottom: 1px solid var(--line); }
.cs-links a, .cs-tools a { display: grid; grid-template-columns: 168px 1fr; gap: 0 14px; padding: 11px 4px;
  text-decoration: none; color: var(--ink); transition: background .1s; }
.cs-tools a { grid-template-columns: 66px 1fr; }
.cs-links a:hover, .cs-tools a:hover { background: var(--surface); }
.cs-links .r, .cs-tools .n { display: block; font: 800 10.5px/1.6 var(--display); color: var(--red); }
.cs-links .t, .cs-tools .t { display: block; font: 700 13px/1.35 var(--sans); }
.cs-links .d { display: block; font: 500 12.5px/1.5 var(--sans); color: var(--ink-2); margin-top: 2px; }
@media (max-width: 620px) {
  .cs-links a { grid-template-columns: 1fr; gap: 2px; }
  .cs-tools a { grid-template-columns: 52px 1fr; }
}

.cs-note { font: 500 12.5px/1.6 var(--sans); color: var(--ink-3); border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 16px; }
.cs-note a { color: var(--red); }

/* the cluster nav — a row in the document, never a fixed rail */
.doc-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 12px 0 0;
  border-top: 1px solid var(--border); }
.doc-jump a { font: 700 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
  padding: 6px 9px; text-decoration: none; }
.doc-jump a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.doc-jump a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
