/* Match the deployed General Rotors homepage. Keep the manual layout and print view. */
@media screen {
  :root {
    color-scheme: dark;
    --paper: #0b0d12;
    --panel: #111621;
    --line: #282f3b;
    --muted: #b0b8c6;
    --text: #f3f5f8;
    --blue: #87aaff;
    --mint: #5fdfa0;
    --red: #ff797f;
    --green: var(--blue);
    --focus: #f2d38c;
  }

  a { text-decoration-color: #7185a9; }
  a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible,
  .table-wrap:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
  }
  .skip { background: var(--focus); color: #111725; }
  .topbar { background: #090b10f5; }
  .topbar::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--red) 0 33.33%, var(--mint) 33.33% 66.66%, var(--blue) 66.66%);
    opacity: .8;
    pointer-events: none;
  }
  .brand img { width: 40px; height: 40px; }
  .doc-label { display: inline-flex; align-items: center; gap: 9px; }
  .doc-label img { display: block; width: 24px; height: 24px; flex: none; }
  .sidebar { background: #0d1118; }
  .nav-group h2 { color: #c6cedb; }
  .nav-group a:hover { background: #182030; }
  .nav-group a[aria-current=page] {
    color: #b8cdff;
    background: #17243d;
    border-left-color: var(--blue);
  }
  .search-box { border-color: #6b7b96; background: #101620; }
  .search-box::placeholder { color: #a2adbd; opacity: 1; }
  .breadcrumb span { color: #8b98ad; }
  .eyebrow { color: #9eb7ec; }
  p, ol, ul { color: #c5cedb; }
  .lead { color: #d4dcea; }
  .notice {
    color: #d0e7da;
    background: #101f1a;
    border-left-color: var(--mint);
  }
  .notice p { color: inherit; }
  .image-link, .editor-figure>a { background: #10141c; border-color: #364153; }
  .figure-placeholder { background: var(--panel); }
  th { color: #c5cede; background: #171e2b; }
  td { color: #c2cbd9; }
  td:first-child { color: #e3e9f3; }
  td:nth-child(2):not(:last-child) { color: #bdcdec; }
  code { color: #d6e2ff; background: #1a2435; }
  pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #101620;
    color: #d6e2ff;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 16px;
  }
  pre code { background: transparent; padding: 0; }
  th, td { overflow-wrap: anywhere; }
  body>main>table { display: block; max-width: 100%; overflow-x: auto; }
  p code, li code, td code { overflow-wrap: anywhere; }
  summary { color: #d9e3f5; }
  .related a { background: #131c2b; border-color: #364866; }
  .page-navigation a { color: #c5d7ff; }
  .schematic { background: #10141c; }
  .endpoint { border-color: #536b96; background: #192232; }
  .endpoint strong { background: #253755; }
  .endpoint span:before { color: #d6e2ff; }
  .print-button:hover { border-color: #8aa4d0; }
  .hub-links>a { background: #10141c; border-top: 2px solid var(--blue); }
  .hub-links>a:nth-child(2) { border-top-color: var(--mint); }
  .hub-links>a:nth-child(3) { border-top-color: var(--red); }
  .hub-links>a:hover { border-color: #718dbd; }
  .hub-links>a:nth-child(2) .eyebrow { color: var(--mint); }
  .hub-links>a:nth-child(3) .eyebrow { color: var(--red); }
  .hub-links p { color: var(--muted); }
  a.article-link { color: #a8c5ff; border-bottom-color: #87aaff65; }
  a.article-link:visited { color: #c6bef0; }
  a.article-link:hover { color: #d6e2ff; }
  ::selection { background: #324b78; color: #fff; }
}

@media screen and (max-width: 650px) {
  .sidebar { background: #0d1118; }
  .brand { letter-spacing: .8px; }
  .brand img { width: 34px; height: 34px; }
  .doc-label { gap: 6px; }
  .doc-label img { width: 20px; height: 20px; }
}

@media screen and (max-width: 360px) {
  .topbar { padding-inline: 12px; gap: 8px; }
  .topbar .divider { display: none; }
  .topbar .doc-label { font-size: 10px; }
  .menu-button { padding-inline: 8px; }
}
.site-notices { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; }
.connection-figure { margin: 1.5rem 0; }
.connection-figure figcaption { color: var(--muted); font-size: .875rem; margin-top: .5rem; }
.connection-flow {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.6fr) 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 1.25rem;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.connection-flow li {
  position: relative;
  display: grid;
  align-content: center;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
}
.connection-flow li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 1.5rem;
  border-top: 1px solid var(--muted);
}
.connection-flow span { color: var(--muted); font-size: .875rem; }
@media (max-width: 650px) {
  .connection-flow { grid-template-columns: 1fr; gap: 1rem; }
  .connection-flow li + li::before {
    top: auto;
    right: 50%;
    bottom: 100%;
    height: 1rem;
    width: 0;
    border-top: 0;
    border-right: 1px solid var(--muted);
  }
}

.lesson-rules td { vertical-align: top; }
.lesson-rules figure { margin: .8rem 0 0; }
@media screen and (max-width: 700px) {
  .lesson-rules table, .lesson-rules tbody { display: block; }
  .lesson-rules thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .lesson-rules tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "machine time" "edge edge" "rule rule";
    gap: .65rem .9rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .lesson-rules tbody tr > td { display: block; width: auto; padding: 0; border: 0; min-width: 0; }
  .lesson-rules td:nth-child(1) { grid-area: machine; }
  .lesson-rules td:nth-child(2) { grid-area: edge; }
  .lesson-rules td:nth-child(3) { grid-area: rule; }
  .lesson-rules td:nth-child(4) { grid-area: time; }
  .lesson-rules td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 600;
  }
}
