/* FONTS
   The PDF is copy-protected (no embedded font list, no extractable text);
   judged by eye off the page renders. Headings: a plain grotesque bold
   (Arial/Helvetica-alike). Body: a rounded humanist sans. Both map cleanly
   onto a single family -> Inter, weights 400/700/800. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap");

:root {
  --ink: #231916; /* body text, rules, reversed-out headers -- the manual's own cover band */
  --paper: #f4f2f1; /* tint behind callout boxes */
}

* {
  box-sizing: border-box;
  margin-top: 0;
}

body {
  color: var(--ink);
  font-family: "Inter", sans-serif;
  margin: 0;
}
p {
  line-height: 1.55;
}
main {
  margin-left: 20vw;
  padding-bottom: 3em;
}
img {
  width: 100%;
  margin-bottom: 0.75em;
}
a {
  text-decoration: none;
  color: var(--ink);
}
a:hover,
a:active {
  text-decoration: underline;
}

/* MASTHEAD: dark brand column (the cover's own ground) + product panel */
#masthead {
  display: flex;
  flex-wrap: wrap;
  min-height: 18em;
}
#masthead .brand-panel {
  flex: 0 1 30%;
  min-width: 14em;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
}
#masthead .brand-panel img {
  width: min(70%, 12em);
  margin: 0;
}
#masthead .product-panel {
  flex: 1 1 70%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding: 2em 3em;
}
#masthead .product-panel img.photo {
  width: min(26em, 100%);
  margin: 0 0 1.5em;
}
#masthead h1 {
  font-size: 2.75em;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
}
#masthead .tagline {
  font-size: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.2em 0 0;
}
#masthead .doc-type {
  color: #6b6b6b;
  margin: 0.4em 0 0;
}

/* HEADINGS */
.flow h2 {
  font-weight: 800;
  font-size: 1.7em;
  color: #fff;
  background: var(--ink);
  padding: 0.2em 0.4em;
  text-transform: uppercase;
  margin: 1.5em 0 0.75em;
}
.flow h3 {
  font-weight: 700;
  font-size: 1.15em;
  text-transform: uppercase;
  margin: 0 0 0.3em;
}
.flow h2,
.flow h3 {
  break-after: avoid;
}
.flow h2,
.table-scroll,
.panel-layout,
.icon-notes {
  column-span: all;
}
.half-container > header + * {
  margin-top: 0;
}

/* SIDE NAVIGATION */
#side-nav {
  width: 20vw;
  background: white;
  position: fixed;
  z-index: 5;
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid rgba(35, 25, 22, 0.15);
}
.nav-container {
  display: flex;
  flex-direction: column;
  margin: 1em 1em 2em;
}
.nav-container h3 {
  margin-bottom: 1.5rem;
}
.nav-container h4,
#toc-mobile h4 {
  font-size: 1em;
  font-weight: 700;
  margin: 0.6em 0 0.2em;
}
.nav-container a,
#toc-mobile a {
  color: var(--ink);
}
#toc-mobile {
  padding: 0 1em;
}

/* CONTAINERS */
.flex-container {
  display: flex;
  padding-left: 2em;
}
.half-container {
  padding: 0 1em;
  width: 100%;
  columns: 2 30em;
  column-gap: 3em;
}
.half-container > header {
  column-span: all;
}
.no-columns {
  columns: auto !important;
}
.flow p,
.flow li,
figure {
  break-inside: avoid;
}
section + section {
  margin-top: 2em;
}
.flow > * + * {
  margin-bottom: 1em;
}
.keep-together {
  break-inside: avoid;
}

/* Safety icon notes: the lightning/exclamation triangles beside their text */
.icon-notes {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 1em 0;
}
.icon-note {
  display: flex;
  align-items: flex-start;
  gap: 1em;
}
.icon-note img {
  width: 4em;
  flex: 0 0 auto;
  margin: 0.2em 0 0;
}
.icon-note p {
  margin: 0;
}

/* Product Description: sticky diagram beside the numbered parts list */
.panel-layout {
  display: grid;
  grid-template-columns: minmax(16em, 22em) 1fr;
  gap: 2em;
  align-items: start;
}
.panel-layout > figure {
  position: sticky;
  top: 1em;
}
.parts-list {
  padding-left: 1.4em;
  margin: 0;
}
.parts-list > li {
  margin-bottom: 1em;
}
.parts-list h3 {
  display: inline;
  text-transform: none;
  font-size: 1em;
}
.parts-list p {
  margin-top: 0.3em;
}
.ast {
  font-size: 0.92em;
  color: #4a4038;
}

/* Connections: each hookup diagram with its own caption */
.connection-figure {
  margin-bottom: 1.5em;
}
.connection-figure figcaption {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95em;
  margin-bottom: 0.5em;
}

/* Notice box (CE conformity statement) */
.notice {
  background: var(--paper);
  border-left: 4px solid var(--ink);
  padding: 1em 1.25em;
  margin: 1em 0;
}
.notice > strong {
  display: block;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

@media (max-width: 900px) {
  .flex-container {
    flex-direction: column;
    padding-left: 0;
  }
  .half-container {
    width: 100%;
    padding: 0;
  }
  nav#side-nav {
    display: none;
  }
  main {
    margin: 0 auto;
    padding: 0 1em 3em;
  }
  #masthead {
    flex-direction: column;
  }
  #masthead .product-panel,
  #masthead .brand-panel {
    flex-basis: auto;
    width: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  .panel-layout {
    grid-template-columns: 1fr;
  }
  .panel-layout > figure {
    position: static;
    width: 100%;
    max-width: 22em;
    margin: 0 auto;
  }
  #toc-mobile {
    display: block;
    padding: 0 0 1em;
  }
}

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