/* Fonts: AvenirNext -> Montserrat, Muli -> Mulish, Bicyclette -> Montserrat */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Mulish:wght@300;400;700&display=swap");

:root {
  --ink: #0d0d0d;
  --accent: #e24933;
  --paper: #f6f5f5;
  --dark-band: #232323;
}

body {
  font-family: 'Mulish', sans-serif;
  color: var(--ink);
  background: #ffffff;
  margin: 0;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-band);
  margin-top: 0;
}

b, strong {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
}


#side-nav {
  position: fixed;
  width: 20vw;
  height: 100%;
  overflow-y: auto;
  background: var(--paper);
  padding: 2em 1em;
  box-sizing: border-box;
}

#side-nav a {
  color: inherit;
  text-decoration: none;
}

#side-nav h4 { margin-bottom: 0.5em; }

main {
  margin-left: 20vw;
  padding: 2em 0;
}

.flex-container {
  display: flex;
  padding: 0 2em;
}

.half-container {
  width: 100%;
  padding: 0 1em;
  columns: 2 30rem;
  column-gap: 3em;
}

.half-container.no-columns {
  columns: auto !important;
}

.half-container > header {
  column-span: all;
}

section + section {
  margin-top: 3em;
}

.flow > * + * {
  margin-bottom: 1em;
}

.grid-wrapper {
  column-span: all;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12em, 18em));
  gap: 1em;
}

img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.75em;
}

.full-width-img {
  width: 100%;
}

h2 {
  color: var(--dark-band);
  text-transform: uppercase;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--accent);
  break-after: avoid;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-band);
  break-after: avoid;
}

h4, h5, h6 {
  break-after: avoid;
}

.keep-together {
  break-inside: avoid;
}

/* hand-placed split where column balancing strands a figure;
   only with two columns, a forced break in one column overflows sideways */
.half-container { container-type: inline-size; }
@container (min-width: 63rem) {
  .column-end { break-after: column; }
}

h2, h3, h4, h5 {
  break-after: avoid;
}

.tech-info-h3 {
  text-transform: uppercase;
  background: var(--paper);
  padding: 0.25em 0.5em;
  display: inline-block;
  color: var(--ink);
}

.welcome-section { margin-top: 3em; }
.welcome-section .flow { columns: auto; }

p, li, ul, ol {
  break-inside: avoid;
}

/* a lead-in ("…go to:") never ends a column above its path */
:has(+ p > .menu-path:only-child) { break-after: avoid; }

/* on-device menu paths: "Menu > Global > …" */
.menu-path {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92em;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 0.1em 0.45em;
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.callout, .warning {
  background: var(--paper);
  padding: 1em;
  border-left: 4px solid var(--accent);
  margin: 1em 0;
  break-inside: avoid;
}

.callout { font-style: italic; }

/* the box already carries the accent bar */
.callout .menu-path, .warning .menu-path {
  border-left: 0;
  padding: 0;
}

.warning-center {
  text-align: center;
  background: var(--paper);
  padding: 1em;
  border: 2px solid var(--accent);
  margin: 1em 0;
  break-inside: avoid;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
}

.doc-table th, .doc-table td {
  border: 1px solid #ccc;
  padding: 0.4em 0.5em;
  vertical-align: top;
}

.doc-table th {
  background: #eee;
  color: var(--ink);
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.doc-table td[colspan="3"],
.doc-table td[colspan="4"],
.doc-table td[colspan="5"] {
  background: #eee;
  font-weight: bold;
}

.table-scroll {
  overflow-x: auto;
}

.doc-table th, .doc-table td {
  overflow-wrap: normal;
}

h2.banner { text-wrap: balance; }

@media (max-width: 900px) {
  .flex-container { flex-direction: column; }
  .half-container { width: 100%; padding: 0; columns: auto; }
  #side-nav { display: none; }
  main { margin: 0 auto; padding: 1em; }
  #toc-mobile { display: block; }
  .wide-figure { overflow-x: auto; }
  .wide-figure img { min-width: 700px; }
  h2.banner { font-size: 1.1em; }
}

@media (min-width: 901px) {
  #toc-mobile { display: none; }
}

body { overflow-wrap: anywhere; }

#toc-mobile a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.2); display: inline-block; padding-bottom: 2px; }

/* labels sit over the switches they name: left, both, right */
.screen-nav {
  margin: 1em 0;
  break-inside: avoid;
}
.screen-nav img { display: block; margin: 0.25em 0; }
.screen-nav .screen-labels { margin: 0; }
.screen-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em;
}
.screen-labels > span:nth-child(2) { text-align: center; }
.screen-labels > span:nth-child(3) { text-align: right; }
.screen-labels .nw { white-space: nowrap; }

/* small multiples inside the column; column-span would reorder the flow */
.sweep-graphs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em;
  margin: 1.5em 0;
  break-inside: avoid;
}
.sweep-graphs img { margin: 0; }

.hw-grid {
  column-span: all;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3em;
}
@media (max-width: 900px) {
  .hw-grid { grid-template-columns: 1fr; }
}

.hardware-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5em;
}
.hw-num {
  font-size: 2.5em;
  font-weight: 300;
  line-height: 1;
  margin: 0;
  margin-right: 0.5em;
  min-width: 1em;
  color: var(--ink);
}
.hardware-item p {
  margin: 0;
  padding-top: 0.3em;
}

.single-column {
  width: 100%;
  padding: 0 1em;
}

/* masthead follows the cover: photo, white mark panel, gradient title panel */
.masthead-mark {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding: 1.2em 2em;
  background: #fff;
}
.masthead-mark img {
  height: 2.2em;
  width: auto;
  margin: 0;
  filter: invert(1);
}
.masthead-mark span {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8em;
}
.masthead-title {
  background: linear-gradient(135deg, #ff5b73, #ff7a3d);
  color: #fff;
  padding: 1.5em 2em 2em;
}
.masthead-title h1 {
  color: #fff;
  font-weight: 700;
  font-size: 2.6em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.1em;
}
.masthead-title p {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.1em;
  line-height: 1.5;
}
