@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

/*
 * rtui pkgdown theme
 * A terminal field-manual style: matte ink, phosphor accents, crisp rules.
 */

:root {
  color-scheme: dark;

  --rtui-ink: #0d0e0c;
  --rtui-ink-2: #131511;
  --rtui-ink-3: #191c17;
  --rtui-panel: #171a15;
  --rtui-panel-2: #20251d;
  --rtui-paper: #f2efe4;
  --rtui-text: #ece8d8;
  --rtui-text-soft: #d5d0bf;
  --rtui-muted: #a7aa9a;
  --rtui-dim: #757b6a;
  --rtui-green: #b8ff4a;
  --rtui-green-soft: rgba(184, 255, 74, 0.13);
  --rtui-cyan: #55d6ff;
  --rtui-cyan-soft: rgba(85, 214, 255, 0.13);
  --rtui-coral: #ff6a4d;
  --rtui-coral-soft: rgba(255, 106, 77, 0.13);
  --rtui-gold: #f6c445;
  --rtui-gold-soft: rgba(246, 196, 69, 0.14);
  --rtui-border: rgba(242, 239, 228, 0.16);
  --rtui-border-strong: rgba(242, 239, 228, 0.28);
  --rtui-rule: rgba(184, 255, 74, 0.32);
  --rtui-radius: 4px;
  --rtui-radius-sm: 3px;
}

html {
  background: var(--rtui-ink);
}

body {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(184, 255, 74, 0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(242, 239, 228, 0.018) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #0d0e0c 0%, #11130f 58%, #0d0e0c 100%) !important;
  color: var(--rtui-text) !important;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.66;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1080;
  width: 100%;
  height: 4px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      var(--rtui-green) 0 34%,
      var(--rtui-cyan) 34% 68%,
      var(--rtui-coral) 68% 100%
    );
}

body > * {
  position: relative;
}

main,
.contents,
.template-home .contents,
.template-reference-index .contents,
.template-article .contents {
  color: var(--rtui-text);
}

.container,
.container-fluid,
main.container {
  max-width: min(1380px, calc(100% - 2.5rem));
}

::selection {
  background: var(--rtui-green);
  color: #10120e;
}

/* Links and focus */

a {
  color: var(--rtui-green) !important;
  text-decoration: underline;
  text-decoration-color: rgba(184, 255, 74, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus {
  color: var(--rtui-cyan) !important;
  text-decoration-color: var(--rtui-cyan);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--rtui-cyan);
  outline-offset: 3px;
}

/* Navbar */

.navbar {
  z-index: 1030;
  min-height: 72px;
  background: rgba(13, 14, 12, 0.96) !important;
  border-bottom: 1px solid var(--rtui-border) !important;
  box-shadow: inset 0 -3px 0 rgba(184, 255, 74, 0.08);
}

.navbar .container,
.navbar .container-fluid {
  gap: 1rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--rtui-paper) !important;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif !important;
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  text-decoration: none;
}

.navbar-brand::before {
  content: "R>";
  display: inline-grid;
  place-items: center;
  min-width: 2.15rem;
  height: 1.65rem;
  padding: 0 0.34rem;
  border: 1px solid rgba(184, 255, 74, 0.54);
  border-left: 4px solid var(--rtui-green);
  border-radius: var(--rtui-radius-sm);
  background: #080907;
  color: var(--rtui-green);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link,
.navbar-nav .nav-link {
  color: var(--rtui-muted) !important;
  margin: 0 0.08rem;
  padding: 0.7rem 0.72rem 0.62rem !important;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--rtui-paper) !important;
  border-bottom-color: var(--rtui-green);
  background: transparent;
}

.navbar-toggler {
  border-color: var(--rtui-border-strong) !important;
  border-radius: var(--rtui-radius);
}

/* Page header */

.page-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 2.2rem;
  padding: 3.1rem 0 2.55rem !important;
  background:
    linear-gradient(90deg, rgba(184, 255, 74, 0.08) 0 6px, transparent 6px),
    linear-gradient(180deg, rgba(23, 26, 21, 0.98), rgba(13, 14, 12, 0.94)) !important;
  border-top: 1px solid rgba(184, 255, 74, 0.18);
  border-bottom: 1px solid var(--rtui-border) !important;
}

.page-header::before {
  content: "pkgdown://rtui";
  position: absolute;
  top: 1rem;
  right: max(1rem, calc((100vw - 1380px) / 2));
  color: var(--rtui-dim);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--rtui-green) 0 54px,
      transparent 54px 64px,
      var(--rtui-cyan) 64px 94px,
      transparent 94px 105px,
      var(--rtui-coral) 105px 119px,
      transparent 119px 132px
    );
  opacity: 0.68;
}

.page-header h1 {
  max-width: 860px;
  margin: 0 0 0.7rem;
  padding: 0;
  border: 0;
  color: var(--rtui-paper) !important;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif !important;
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-header .lead,
.template-home .page-header p,
.template-home .page-header .description {
  max-width: 780px;
  color: var(--rtui-text-soft) !important;
  font-size: 1.05rem;
  line-height: 1.64;
}

.template-home .page-header {
  padding-top: 3.8rem !important;
  padding-bottom: 3.15rem !important;
}

.template-home .page-header h1 {
  font-size: 3rem;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--rtui-paper) !important;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  margin-bottom: 1rem;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.52rem;
  border-bottom: 1px solid var(--rtui-border);
}

h2::before {
  content: "//";
  margin-right: 0.62rem;
  color: var(--rtui-coral);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.72em;
  font-weight: 700;
}

h3 {
  margin-top: 1.8rem;
  color: var(--rtui-cyan) !important;
}

h4,
h5,
h6 {
  color: var(--rtui-text-soft) !important;
}

p,
li,
dd,
td {
  color: var(--rtui-text-soft);
}

strong,
b {
  color: var(--rtui-paper);
}

.text-muted,
small,
.small {
  color: var(--rtui-muted) !important;
}

hr {
  border-color: var(--rtui-border) !important;
  opacity: 1;
}

/* Buttons and badges */

.btn {
  border-radius: var(--rtui-radius) !important;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--rtui-green) !important;
  border-color: var(--rtui-green) !important;
  color: #10120e !important;
}

.btn-outline-primary {
  border-color: rgba(184, 255, 74, 0.6) !important;
  color: var(--rtui-green) !important;
}

.badge {
  border-radius: 2px;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0;
}

.badge.bg-primary,
.badge-primary {
  background: var(--rtui-green) !important;
  color: #10120e !important;
}

/* Sections and cards */

.card,
.template-reference-index .section,
.template-reference-index .list-unstyled > li,
.template-home main .list-unstyled > li,
.ref-index tbody tr {
  background: rgba(23, 26, 21, 0.82) !important;
  border: 1px solid var(--rtui-border) !important;
  border-radius: var(--rtui-radius) !important;
  box-shadow: none;
}

.card {
  overflow: hidden;
  border-top: 3px solid rgba(184, 255, 74, 0.48) !important;
}

.card-header,
.card-footer {
  background: rgba(242, 239, 228, 0.035) !important;
  border-color: var(--rtui-border) !important;
}

.template-reference-index .section {
  padding: 1.15rem 1.25rem 1.2rem;
  margin-bottom: 1rem;
  border-left: 5px solid rgba(85, 214, 255, 0.45) !important;
}

.template-reference-index .section:nth-of-type(3n + 1) {
  border-left-color: rgba(184, 255, 74, 0.55) !important;
}

.template-reference-index .section:nth-of-type(3n + 2) {
  border-left-color: rgba(255, 106, 77, 0.52) !important;
}

.template-reference-index .list-unstyled > li,
.template-home main .list-unstyled > li {
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid transparent !important;
}

.template-reference-index .list-unstyled > li:hover,
.template-home main .list-unstyled > li:hover {
  border-color: var(--rtui-border-strong) !important;
  border-left-color: var(--rtui-green) !important;
  background: rgba(32, 37, 29, 0.92) !important;
}

.section-title,
.ref-index h2,
.template-reference-index h2 {
  color: var(--rtui-paper) !important;
}

.template-reference-index h2::before {
  color: var(--rtui-green);
}

/* Page grids and side rails */

.template-home > .row,
.template-reference-index > .row,
.template-reference-topic > .row,
.template-article > .row,
.template-authors > .row,
.template-license > .row,
.template-news > .row {
  --bs-gutter-x: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 315px);
  column-gap: 2.6rem;
  align-items: start;
}

.template-home > .row > main#main,
.template-reference-index > .row > main#main,
.template-reference-topic > .row > main#main,
.template-article > .row > main#main,
.template-authors > .row > main#main,
.template-license > .row > main#main,
.template-news > .row > main#main,
.template-home > .row > aside,
.template-reference-index > .row > aside,
.template-reference-topic > .row > aside,
.template-article > .row > aside,
.template-authors > .row > aside,
.template-license > .row > aside,
.template-news > .row > aside {
  width: auto !important;
  max-width: none;
  flex: none;
}

.template-home > .row > main#main {
  grid-column: 1;
  min-width: 0;
}

.template-reference-index > .row > main#main,
.template-reference-topic > .row > main#main,
.template-article > .row > main#main,
.template-authors > .row > main#main,
.template-license > .row > main#main,
.template-news > .row > main#main {
  grid-column: 1;
  min-width: 0;
}

.template-home > .row > aside,
.template-reference-index > .row > aside,
.template-reference-topic > .row > aside,
.template-article > .row > aside,
.template-authors > .row > aside,
.template-license > .row > aside,
.template-news > .row > aside {
  grid-column: 2;
  position: sticky;
  top: 96px;
  align-self: start;
  padding-top: 1rem;
}

.template-home > .row > aside > div,
.template-reference-index > .row > aside > nav,
.template-reference-topic > .row > aside > nav,
.template-article > .row > aside > nav,
.template-authors > .row > aside > nav,
.template-license > .row > aside > nav,
.template-news > .row > aside > nav,
.template-reference-index > .row > aside > div,
.template-reference-topic > .row > aside > div,
.template-article > .row > aside > div,
.template-authors > .row > aside > div,
.template-license > .row > aside > div,
.template-news > .row > aside > div {
  margin: 0 0 0.9rem;
  padding: 0.9rem 0 0.9rem 1rem;
  background: rgba(13, 14, 12, 0.58);
  border-left: 1px solid var(--rtui-border);
}

.template-home > .row > aside h2,
.template-reference-index > .row > aside h2,
.template-reference-topic > .row > aside h2,
.template-article > .row > aside h2,
.template-authors > .row > aside h2,
.template-license > .row > aside h2,
.template-news > .row > aside h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.58rem;
  padding: 0 0 0.44rem;
  border-bottom: 1px solid var(--rtui-border);
  color: var(--rtui-paper) !important;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.template-home > .row > aside h2::before,
.template-reference-index > .row > aside h2::before,
.template-reference-topic > .row > aside h2::before,
.template-article > .row > aside h2::before,
.template-authors > .row > aside h2::before,
.template-license > .row > aside h2::before,
.template-news > .row > aside h2::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  margin: 0;
  background: var(--rtui-green);
}

.template-home > .row > aside p,
.template-home > .row > aside li,
.template-reference-index > .row > aside p,
.template-reference-index > .row > aside li,
.template-reference-topic > .row > aside p,
.template-reference-topic > .row > aside li,
.template-article > .row > aside p,
.template-article > .row > aside li,
.template-authors > .row > aside p,
.template-authors > .row > aside li,
.template-license > .row > aside p,
.template-license > .row > aside li,
.template-news > .row > aside p,
.template-news > .row > aside li {
  color: var(--rtui-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.template-home > .row > aside p,
.template-reference-index > .row > aside p,
.template-reference-topic > .row > aside p,
.template-article > .row > aside p,
.template-authors > .row > aside p,
.template-license > .row > aside p,
.template-news > .row > aside p {
  margin: 0 0 0.42rem;
}

.template-home > .row > aside ul,
.template-reference-index > .row > aside ul,
.template-reference-topic > .row > aside ul,
.template-article > .row > aside ul,
.template-authors > .row > aside ul,
.template-license > .row > aside ul,
.template-news > .row > aside ul {
  margin: 0;
}

.template-home > .row > aside .list-unstyled > li,
.template-reference-index > .row > aside .list-unstyled > li,
.template-reference-topic > .row > aside .list-unstyled > li,
.template-article > .row > aside .list-unstyled > li,
.template-authors > .row > aside .list-unstyled > li,
.template-license > .row > aside .list-unstyled > li,
.template-news > .row > aside .list-unstyled > li {
  margin: 0 0 0.42rem;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.template-home > .row > aside a,
.template-reference-index > .row > aside a,
.template-reference-topic > .row > aside a,
.template-article > .row > aside a,
.template-authors > .row > aside a,
.template-license > .row > aside a,
.template-news > .row > aside a {
  color: var(--rtui-text-soft) !important;
  text-decoration: none;
}

.template-home > .row > aside a:hover,
.template-home > .row > aside a:focus,
.template-reference-index > .row > aside a:hover,
.template-reference-index > .row > aside a:focus,
.template-reference-topic > .row > aside a:hover,
.template-reference-topic > .row > aside a:focus,
.template-article > .row > aside a:hover,
.template-article > .row > aside a:focus,
.template-authors > .row > aside a:hover,
.template-authors > .row > aside a:focus,
.template-license > .row > aside a:hover,
.template-license > .row > aside a:focus,
.template-news > .row > aside a:hover,
.template-news > .row > aside a:focus {
  color: var(--rtui-green) !important;
}

.template-home > .row > aside .roles {
  color: var(--rtui-dim) !important;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
}

/* Reference tables */

.table,
table {
  color: var(--rtui-text-soft) !important;
  border-color: var(--rtui-border) !important;
}

.table th,
table th {
  background: rgba(242, 239, 228, 0.04) !important;
  border-color: var(--rtui-border) !important;
  color: var(--rtui-paper) !important;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0;
}

.table td,
table td {
  border-color: var(--rtui-border) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > *,
.table-hover > tbody > tr:hover > * {
  background: rgba(184, 255, 74, 0.055) !important;
  color: var(--rtui-text) !important;
}

.ref-index th,
.ref-index td {
  border-color: transparent !important;
}

.ref-index code,
.template-reference-index code {
  color: var(--rtui-green) !important;
}

dt,
.ref-heading {
  color: var(--rtui-green) !important;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  letter-spacing: 0;
}

.ref-heading {
  padding-left: 0.9rem;
  border-left: 4px solid var(--rtui-green);
}

.ref-description,
.usage {
  color: var(--rtui-text-soft);
}

/* Code: block borders live only on the block, never on individual lines. */

pre,
pre.sourceCode,
div.sourceCode {
  position: relative;
  overflow: auto;
  background: #090a08 !important;
  color: var(--rtui-text) !important;
  border: 1px solid var(--rtui-border) !important;
  border-left: 4px solid var(--rtui-green) !important;
  border-radius: var(--rtui-radius) !important;
  box-shadow: inset 0 1px 0 rgba(242, 239, 228, 0.035);
}

pre {
  padding: 1rem 1.1rem !important;
}

div.sourceCode {
  margin: 1rem 0;
}

div.sourceCode pre,
pre.sourceCode {
  margin: 0;
}

div.sourceCode pre,
div.sourceCode pre.sourceCode {
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

code,
kbd,
samp,
pre {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace !important;
}

code {
  color: var(--rtui-green) !important;
  font-size: 0.88em;
}

code a,
code a:hover,
code a:focus,
.sourceCode a,
.sourceCode a:hover,
.sourceCode a:focus {
  color: inherit !important;
  text-decoration-color: currentColor;
}

pre code,
pre code.sourceCode,
code.sourceCode,
pre code span,
pre code.sourceCode span {
  display: inline;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

p code,
li code,
td code,
dd code,
.alert code {
  padding: 0.08em 0.24em !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(184, 255, 74, 0.38) !important;
  border-radius: 0 !important;
  background: rgba(184, 255, 74, 0.075) !important;
  color: var(--rtui-green) !important;
}

.copy-button,
.btn-copy-ex {
  border-color: var(--rtui-border) !important;
  border-radius: var(--rtui-radius-sm) !important;
  background: rgba(242, 239, 228, 0.04) !important;
  color: var(--rtui-muted) !important;
}

.copy-button:hover,
.btn-copy-ex:hover {
  background: var(--rtui-green-soft) !important;
  color: var(--rtui-green) !important;
}

/* Syntax colors */

.sourceCode .kw,
.sourceCode .cf,
.sourceCode .fu {
  color: var(--rtui-cyan) !important;
}

.sourceCode .va,
.sourceCode .er,
.sourceCode .ex {
  color: var(--rtui-paper) !important;
}

.sourceCode .st,
.sourceCode .ch {
  color: #8fff85 !important;
}

.sourceCode .dv,
.sourceCode .fl,
.sourceCode .cn {
  color: var(--rtui-gold) !important;
}

.sourceCode .co {
  color: var(--rtui-muted) !important;
  font-style: italic;
}

.sourceCode .op,
.sourceCode .ot {
  color: var(--rtui-coral) !important;
}

/* Sidebar and table of contents */

.sidebar,
.pkgdown-sidebar,
#toc {
  background: rgba(13, 14, 12, 0.54) !important;
  border: 0 !important;
  border-left: 1px solid var(--rtui-border) !important;
  border-radius: 0;
  box-shadow: none;
}

.sidebar,
.pkgdown-sidebar {
  padding: 0.8rem 0 0.8rem 1rem;
}

.sidebar h2,
.pkgdown-sidebar h2,
#toc .toc-title {
  color: var(--rtui-paper) !important;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

.sidebar h2::before,
.pkgdown-sidebar h2::before {
  display: none;
}

.sidebar a,
.pkgdown-sidebar a,
#toc a,
.list-group-item {
  color: var(--rtui-muted) !important;
  text-decoration: none;
}

.sidebar a:hover,
.pkgdown-sidebar a:hover,
#toc a:hover,
.sidebar a.active,
.pkgdown-sidebar a.active,
#toc a.active {
  color: var(--rtui-green) !important;
}

.list-group-item {
  background: transparent !important;
  border-color: var(--rtui-border) !important;
}

.list-group-item.active {
  background: var(--rtui-green-soft) !important;
  border-color: rgba(184, 255, 74, 0.36) !important;
}

/* Forms, search, and dropdowns */

.form-control,
.search-input,
input[type="search"],
input[type="text"] {
  background: #080907 !important;
  border: 1px solid var(--rtui-border) !important;
  border-radius: var(--rtui-radius) !important;
  color: var(--rtui-text) !important;
}

.form-control::placeholder,
.search-input::placeholder,
input::placeholder {
  color: var(--rtui-dim) !important;
}

.form-control:focus,
.search-input:focus,
input[type="search"]:focus,
input[type="text"]:focus {
  border-color: rgba(85, 214, 255, 0.68) !important;
  box-shadow: 0 0 0 3px var(--rtui-cyan-soft) !important;
}

.dropdown-menu,
.aa-Panel {
  overflow: hidden;
  background: rgba(19, 21, 17, 0.99) !important;
  border: 1px solid var(--rtui-border-strong) !important;
  border-radius: var(--rtui-radius) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36) !important;
}

.dropdown-item,
.aa-Item,
.aa-SourceHeader {
  color: var(--rtui-text-soft) !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.aa-Item[aria-selected="true"],
.aa-Item:hover {
  background: var(--rtui-green-soft) !important;
  color: var(--rtui-paper) !important;
}

.dropdown-divider {
  border-color: var(--rtui-border) !important;
}

/* Callouts */

.alert,
blockquote {
  border: 1px solid var(--rtui-border) !important;
  border-left: 5px solid var(--rtui-gold) !important;
  border-radius: var(--rtui-radius) !important;
  background: rgba(246, 196, 69, 0.08) !important;
  color: var(--rtui-text-soft) !important;
}

blockquote {
  padding: 1rem 1.15rem !important;
}

.alert-info {
  border-left-color: var(--rtui-cyan) !important;
  background: var(--rtui-cyan-soft) !important;
}

.alert-success {
  border-left-color: var(--rtui-green) !important;
  background: var(--rtui-green-soft) !important;
}

.alert-danger,
.alert-warning {
  border-left-color: var(--rtui-coral) !important;
}

blockquote strong,
.alert strong {
  color: var(--rtui-paper) !important;
}

/* Images and figures */

img {
  border-radius: var(--rtui-radius-sm);
}

.figure,
figure {
  color: var(--rtui-muted);
}

.figure img,
figure img,
.template-home .logo img {
  border: 1px solid var(--rtui-border);
}

.template-home .logo img {
  background: rgba(242, 239, 228, 0.035);
  padding: 0.6rem;
}

/* Footer */

.pkgdown-footer,
footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: #080907 !important;
  border-top: 1px solid var(--rtui-border) !important;
  color: var(--rtui-muted) !important;
}

.pkgdown-footer a,
footer a {
  color: var(--rtui-text-soft) !important;
}

.pkgdown-footer a:hover,
footer a:hover {
  color: var(--rtui-green) !important;
}

/* Scrollbars */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--rtui-ink);
}

::-webkit-scrollbar-thumb {
  background: var(--rtui-panel-2);
  border: 2px solid var(--rtui-ink);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rtui-green);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  a,
  button,
  .btn,
  .card,
  .dropdown-item,
  .nav-link,
  .template-reference-index .list-unstyled > li,
  .template-home main .list-unstyled > li,
  .template-reference-index .section {
    transition:
      background-color 0.16s ease,
      border-color 0.16s ease,
      color 0.16s ease;
  }
}

@media (max-width: 899.98px) {
  .template-home > .row,
  .template-reference-index > .row,
  .template-reference-topic > .row,
  .template-article > .row,
  .template-authors > .row,
  .template-license > .row,
  .template-news > .row {
    display: flex;
    flex-direction: column;
  }

  .template-home > .row > aside,
  .template-reference-index > .row > aside,
  .template-reference-topic > .row > aside,
  .template-article > .row > aside,
  .template-authors > .row > aside,
  .template-license > .row > aside,
  .template-news > .row > aside {
    order: -1;
    position: static;
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.35rem;
    padding-top: 0;
  }

  .template-home > .row > aside > div,
  .template-reference-index > .row > aside > nav,
  .template-reference-topic > .row > aside > nav,
  .template-article > .row > aside > nav,
  .template-authors > .row > aside > nav,
  .template-license > .row > aside > nav,
  .template-news > .row > aside > nav,
  .template-reference-index > .row > aside > div,
  .template-reference-topic > .row > aside > div,
  .template-article > .row > aside > div,
  .template-authors > .row > aside > div,
  .template-license > .row > aside > div,
  .template-news > .row > aside > div {
    margin: 0;
    padding: 0.82rem 0.92rem;
    border: 1px solid var(--rtui-border);
    border-left: 4px solid var(--rtui-green);
  }

  .template-home > .row > main#main,
  .template-reference-index > .row > main#main,
  .template-reference-topic > .row > main#main,
  .template-article > .row > main#main,
  .template-authors > .row > main#main,
  .template-license > .row > main#main,
  .template-news > .row > main#main {
    order: 0;
    width: 100% !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.65rem;
    border: 1px solid var(--rtui-border);
    border-radius: var(--rtui-radius);
    background: rgba(13, 14, 12, 0.98);
  }

  .page-header {
    padding: 2.45rem 0 2rem !important;
  }

  .page-header::before {
    display: none;
  }

  .page-header h1,
  .template-home .page-header h1 {
    font-size: 2.08rem;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 15px;
  }

  .navbar {
    min-height: 64px;
  }

  .navbar-brand {
    font-size: 1.02rem !important;
  }

  .page-header h1,
  .template-home .page-header h1 {
    font-size: 1.8rem;
  }

  .template-reference-index .section,
  .template-reference-index .list-unstyled > li,
  .template-home main .list-unstyled > li {
    padding: 0.95rem;
  }

  .template-home > .row > aside,
  .template-reference-index > .row > aside,
  .template-reference-topic > .row > aside,
  .template-article > .row > aside,
  .template-authors > .row > aside,
  .template-license > .row > aside,
  .template-news > .row > aside {
    grid-template-columns: 1fr;
  }
}
