/* Pull the web book toward the kits' print identity: dark slate + accent rule.
   Patrol Sight uses an alert red, the museum kit a gold; one accent is used here
   so the two kits read as one library. */

:root {
  --ha-navy: #101826;
  --ha-accent: #b0413e;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--ha-navy);
  --md-accent-fg-color: var(--ha-accent);
  --md-typeset-a-color: #8f3330;
}

[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #e06c68;
  --md-typeset-a-color: #e79a97;
}

/* Section headings echo the left accent rule of the PDFs. */
.md-typeset h2 {
  border-left: 4px solid var(--ha-accent);
  padding-left: 0.5rem;
  margin-top: 2.2rem;
}

/* The kits lean on tables heavily; keep them legible and scrollable on mobile
   rather than letting the page scroll sideways. */
.md-typeset table:not([class]) {
  font-size: 0.72rem;
  display: table;
}
.md-typeset__table {
  overflow-x: auto;
}
.md-typeset table:not([class]) th {
  background: var(--ha-navy);
  color: #fff;
  font-weight: 600;
}
[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: #1d2634;
}

/* The cover subtitle and confidentiality line that replace the print cover block. */
.md-typeset .doc-subtitle {
  color: var(--md-default-fg-color--light);
  font-size: 0.85rem;
  margin-top: -0.6rem;
}
.md-typeset .doc-subtitle em {
  font-style: normal;
}
.md-typeset .doc-confidential {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ha-accent);
  margin-top: -0.35rem;
}
.md-typeset .doc-confidential em {
  font-style: normal;
}
[data-md-color-scheme="slate"] .md-typeset .doc-confidential {
  color: #e06c68;
}

/* Downloads block sits tight under the title. */
.md-typeset .admonition.abstract {
  font-size: 0.75rem;
}
