/* Thermex brand palette
   Pulled from thermex-systems.com and the company logo:
     teal     #30c0cd  (logo hexagon, trim accent)
     charcoal #444444  (logo wordmark, body text, headings)
     white    #ffffff  (page background)
*/

:root {
  --thermex-teal: #30c0cd;
  --thermex-charcoal: #444444;

  /* Type stack
     Bricolage Grotesque — display (chapter / page titles, h2)
     Plex Sans — body, subheadings, UI
     Plex Mono — codes, measurements, key labels, file paths
  */
  --thermex-font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --thermex-font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --thermex-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* === Typography === */
body {
  font-family: var(--thermex-font-sans);
}

.doc h1,
.doc h2 {
  font-family: var(--thermex-font-display);
  font-weight: 700;
}

.doc h3,
.doc h4,
.doc h5,
.doc h6 {
  font-family: var(--thermex-font-sans);
  font-weight: 600;
}

.navbar .navbar-brand .navbar-item {
  font-family: var(--thermex-font-sans);
  font-weight: 600;
}

code,
kbd,
samp,
pre,
.literal,
.listingblock pre {
  font-family: var(--thermex-font-mono);
}

/* === Top navigation — white with a teal trim line === */
.navbar {
  background-color: #ffffff;
  border-bottom: 4px solid var(--thermex-teal);
}

.navbar .navbar-brand .navbar-item,
.navbar .navbar-brand a {
  color: var(--thermex-charcoal);
}

/* Brand link is a flex container that vertically centres the logo image */
.navbar .navbar-brand .navbar-item:first-child {
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.navbar .navbar-brand .thermex-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* === Hide the "Edit this page" link === */
.edit-this-page {
  display: none !important;
}

/* === Hide the multi-component "Explore" panel ===
   Designed for multi-component / multi-version sites; with one
   component at one version it just shows "Thermex → Thermex". */
.nav-panel-explore {
  display: none !important;
}

/* === Body links — teal === */
.doc a {
  color: var(--thermex-teal);
}

.doc a:hover,
.doc a:focus {
  color: var(--thermex-charcoal);
  text-decoration: underline;
}

/* === Headings — charcoal, with a teal underline on h2 for visual rhythm === */
.doc h1,
.doc h2,
.doc h3,
.doc h4,
.doc h5,
.doc h6 {
  color: var(--thermex-charcoal);
}

.doc h2 {
  border-bottom: 2px solid var(--thermex-teal);
  padding-bottom: 0.25rem;
}

/* === Left sidebar: current page === */
.nav-list .nav-item.is-current-page > .nav-link {
  color: var(--thermex-teal);
  font-weight: 600;
}

/* === Right TOC: active anchor === */
.toc.sidebar .toc-menu a.is-active {
  color: var(--thermex-teal);
  font-weight: 600;
}

/* === Admonition labels — colour follows severity ===
   Matches the convention on the Safety page:
     WARNING   red      — risk of death or serious injury
     CAUTION   amber    — risk of equipment damage or minor injury
     IMPORTANT charcoal — required step, not a hazard
   The default UI paints IMPORTANT red and CAUTION purple, which reads as
   IMPORTANT being more severe than WARNING. White label text on each
   colour stays above 4.5:1 contrast. NOTE (blue) and TIP (green) unchanged. */
.doc .admonitionblock td.icon i.icon-warning {
  background-color: #c62828;
}

.doc .admonitionblock td.icon i.icon-caution {
  background-color: #b45309;
}

.doc .admonitionblock td.icon i.icon-important {
  background-color: var(--thermex-charcoal);
}
