/* Header buttons that hide the sidebars (docs/assets/layout.js). Hidden sidebars give their width to the text:
   the page grid drops its maximum width, so the header, tabs, text and footer stay aligned. */
.rg-layout { display: none; align-items: center; }
.rg-layout__btn { cursor: pointer; background: none; border: 0; color: inherit; }
.rg-layout__btn svg .rg-layout__pane { fill: currentColor; stroke: none; transition: opacity .15s; }
.rg-layout__btn[aria-pressed="true"] svg .rg-layout__pane { opacity: 0; }
.rg-layout__btn--nav { display: none; }

@media screen and (min-width: 60em) {
  .rg-layout { display: flex; }
  html[data-rg-hide-toc] .md-sidebar--secondary { display: none; }
  html[data-rg-hide-toc] .md-grid { max-width: none; }
}
@media screen and (min-width: 76.25em) {
  .rg-layout__btn--nav { display: inline-block; }
  html[data-rg-hide-nav] .md-sidebar--primary { display: none; }
  html[data-rg-hide-nav] .md-grid { max-width: none; }
}

/* Entry buttons under the home page's first paragraph */
.md-typeset .rg-cta { display: flex; flex-wrap: wrap; gap: .5em; margin: 1em 0 1.4em; }
.md-typeset .rg-cta .md-button { margin: 0; padding: .45em 1.1em; font-size: .72rem; }
.md-typeset .rg-cta .md-button:not(.md-button--primary) { color: var(--md-typeset-a-color); border-color: currentColor; }
.md-typeset .rg-cta .md-button:not(.md-button--primary):hover { color: var(--md-accent-bg-color); border-color: var(--md-accent-fg-color); }

/* Severity levels (1 Hazard to 5 Severe), coloured after the CISA scoring system's levels; build_docs.py writes them */
.md-typeset .sev { display: inline-block; min-width: 1.6em; padding: 0 .45em; border-radius: .25em; font-size: .85em; font-weight: 600;
  line-height: 1.6; white-space: nowrap; text-align: center; }
.md-typeset .sev-0 { color: var(--md-default-fg-color--light); }
.md-typeset .sev-1 { background: rgba(120, 120, 120, .16); color: var(--md-default-fg-color--light); }
.md-typeset .sev-2 { background: rgba(46, 160, 67, .16); color: #1a7f37; }
.md-typeset .sev-3 { background: rgba(212, 167, 44, .24); color: #7d5800; }
.md-typeset .sev-4 { background: rgba(219, 109, 40, .2); color: #a8420a; }
.md-typeset .sev-5 { background: rgba(207, 34, 46, .18); color: #b3121f; }
[data-md-color-scheme="slate"] .md-typeset .sev-2 { color: #56d364; }
[data-md-color-scheme="slate"] .md-typeset .sev-3 { color: #e3b341; }
[data-md-color-scheme="slate"] .md-typeset .sev-4 { color: #ffa657; }
[data-md-color-scheme="slate"] .md-typeset .sev-5 { color: #ff8182; }
