/* Alba Core docs: Read the Docs base with Alba Property green and warm white. */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --alba-core-green: #536456;
  --alba-core-green-dark: #364439;
  --alba-core-green-mid: #657769;
  --alba-core-accent: #7b927f;
  --alba-core-cream: #fbfaf0;
  --alba-core-text: #1f2822;
  --alba-core-border: #d8dccf;
  --alba-core-soft: #f7f6eb;
  --alba-core-code-bg: #fffefa;
  --alba-core-code-border: #d9ded2;
  --alba-core-code-text: #18221d;
  --alba-core-code-muted: #6b756b;
  --alba-core-code-keyword: #6f4bb4;
  --alba-core-code-name: #1f6f73;
  --alba-core-code-string: #8a5f10;
  --alba-core-code-number: #9a4f13;
  --alba-core-code-comment: #6a746d;
  --alba-core-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body,
.wy-body-for-nav,
.wy-nav-content-wrap {
  background: var(--alba-core-cream);
}

.wy-side-nav-search,
.wy-nav-top {
  background: var(--alba-core-green);
}

.wy-side-nav-search > a,
.wy-side-nav-search .wy-dropdown > a {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wy-side-nav-search img.logo {
  max-width: 88px;
  width: auto;
  margin: 0 auto 0.45rem;
}

.wy-side-nav-search input[type="text"] {
  border-color: #d8dccf;
  border-radius: 4px;
  box-shadow: none;
  color: var(--alba-core-text);
  background: #ffffff;
}

.wy-nav-side {
  background: var(--alba-core-green-dark);
}

.wy-menu-vertical a {
  color: #e4f3e9;
  border-radius: 0 4px 4px 0;
  transition:
    background 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}

.wy-menu-vertical li span.toctree-expand,
.wy-menu-vertical li button.toctree-expand,
.wy-menu-vertical li button.toctree-expand:before {
  color: #ffffff;
  background: transparent;
  opacity: 1;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.7);
}

.wy-menu-vertical li button.toctree-expand:hover,
.wy-menu-vertical li button.toctree-expand:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: 1px solid rgba(255, 255, 255, 0.55);
}

.wy-menu-vertical header,
.wy-menu-vertical p.caption {
  color: #d8dccf;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  margin-top: 1rem;
  text-transform: uppercase;
}

.wy-menu-vertical li.current,
.wy-menu-vertical li.toctree-l2.current {
  background: transparent;
}

.wy-menu-vertical li.current > a,
.wy-menu-vertical li.on a {
  color: #f6fbf4;
  background: rgba(255, 255, 255, 0.1);
  border-right: 3px solid #d8dccf;
}

.wy-menu-vertical li.toctree-l1.current > a {
  background: #f7f6eb;
  color: #17251d;
  border-top: 1px solid #d8dccf;
  border-bottom: 1px solid #d8dccf;
  border-right: 0;
  border-radius: 0;
  font-weight: 600;
}

.wy-menu-vertical li.toctree-l1.current > ul {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fbfaf0;
  overflow: hidden;
}

.wy-menu-vertical li.current > a span.toctree-expand,
.wy-menu-vertical li.current ul li a span.toctree-expand,
.wy-menu-vertical li.current > a button.toctree-expand,
.wy-menu-vertical li.current > a button.toctree-expand:before,
.wy-menu-vertical li.current ul li a button.toctree-expand,
.wy-menu-vertical li.current ul li a button.toctree-expand:before {
  color: var(--alba-core-text);
  background: transparent;
  text-shadow: none;
}

.wy-menu-vertical li.current ul li a,
.wy-menu-vertical li.current ul li.toctree-l2 a,
.wy-menu-vertical li.current ul li.toctree-l3 a,
.wy-menu-vertical li.current ul li.toctree-l4 a {
  margin: 0;
  padding-top: 0.48rem;
  padding-bottom: 0.48rem;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  color: #24362c;
  font-size: 0.88rem;
  line-height: 1.32;
}

.wy-menu-vertical li.current ul li.toctree-l3 a,
.wy-menu-vertical li.current ul li.toctree-l4 a {
  color: #4b5c51;
  font-size: 0.8rem;
}

.wy-menu-vertical li.current ul li.toctree-l4 a code,
.wy-menu-vertical li.current ul li.toctree-l4 a span.pre {
  font-size: 0.75rem;
  font-weight: 400;
}

.wy-menu-vertical li.current ul li.current > a,
.wy-menu-vertical li.current ul li.toctree-l2.current > a,
.wy-menu-vertical li.current ul li.toctree-l3.current > a,
.wy-menu-vertical li.current ul li.toctree-l4.current > a {
  background: #e6eddf;
  color: #102318;
  border-left: 0;
  box-shadow: inset 0 1px 0 rgba(83, 100, 86, 0.1), inset 0 -1px 0 rgba(83, 100, 86, 0.1);
  font-weight: 600;
}

.wy-menu-vertical li.current ul li.toctree-l4.current > a {
  background: #dfe7d8;
  color: #13261b;
  font-weight: 500;
}

.wy-menu-vertical a:hover {
  background: var(--alba-core-green-mid);
  color: #ffffff;
}

.wy-menu-vertical li.current ul li a:hover {
  background: #edf2e7;
  color: #102318;
}

.wy-nav-content {
  max-width: 1040px;
  background: var(--alba-core-cream);
}

.rst-content,
.rst-content p,
.rst-content li {
  color: var(--alba-core-text);
  line-height: 1.65;
}

.rst-content h1,
.rst-content h2,
.rst-content h3 {
  color: #173626;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.rst-content h1 {
  border-bottom: 1px solid var(--alba-core-border);
  padding-bottom: 0.35rem;
}

.rst-content code.literal,
.rst-content tt.literal {
  color: #364439;
  background: #f0f1e3;
  border: 1px solid #d8dccf;
  border-radius: 3px;
  font-family: var(--alba-core-mono);
  font-size: 0.92em;
  font-weight: 400;
  padding: 0.08rem 0.25rem;
}

.rst-content div[class^="highlight"],
.rst-content pre.literal-block {
  border: 1px solid var(--alba-core-code-border);
  border-radius: 5px;
  background: var(--alba-core-code-bg);
  box-shadow: none;
}

.rst-content div[class^="highlight"] pre,
.rst-content pre.literal-block,
.rst-content code,
.rst-content tt,
.rst-content kbd,
.rst-content samp {
  font-family: var(--alba-core-mono);
  font-size: 0.94em;
  font-weight: 400;
  letter-spacing: 0;
}

.rst-content div[class^="highlight"] pre {
  color: var(--alba-core-code-text);
  line-height: 1.58;
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .ow {
  color: var(--alba-core-code-keyword);
  font-weight: 500;
}

.highlight .n,
.highlight .na,
.highlight .nb,
.highlight .nc,
.highlight .nd,
.highlight .ne,
.highlight .nf,
.highlight .nn,
.highlight .nt,
.highlight .nv,
.highlight .fm {
  color: var(--alba-core-code-name);
  font-weight: 400;
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo {
  color: var(--alba-core-code-string);
  font-weight: 400;
}

.highlight .m {
  color: var(--alba-core-code-number);
}

.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cp,
.highlight .cs {
  color: var(--alba-core-code-comment);
  font-style: italic;
  font-weight: 400;
}

.highlight .o,
.highlight .p {
  color: #405045;
}

.highlight .err {
  color: #9b1c1c;
  background: #fff1f1;
}

.rst-content dl.py class,
.rst-content dl.py function,
.rst-content dl.py method,
.rst-content dl.py attribute {
  border-top: 1px solid var(--alba-core-border);
  padding-top: 0.75rem;
}

html.writer-html4 .rst-content dl:not(.docutils) > dt,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) > dt {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.8rem 0 0.45rem;
  padding: 0.62rem 0.75rem;
  border-top: 2px solid var(--alba-core-accent);
  border-left: 1px solid var(--alba-core-border);
  border-right: 1px solid var(--alba-core-border);
  border-bottom: 1px solid var(--alba-core-border);
  border-radius: 5px;
  background: #f2f5ed;
  color: var(--alba-core-text);
  font-family: var(--alba-core-mono);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}

html.writer-html4 .rst-content dl:not(.docutils) code.descclassname,
html.writer-html4 .rst-content dl:not(.docutils) code.descname,
html.writer-html4 .rst-content dl:not(.docutils) .sig-name,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descclassname,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name {
  color: #18221d;
  font-family: var(--alba-core-mono);
  font-weight: 500;
}

.rst-content dl.py dt em,
.rst-content dl.py dt .sig-param,
.rst-content dl.py dt .sig-return {
  color: #3f6f60;
  font-family: var(--alba-core-mono);
  font-style: normal;
  font-weight: 400;
}

.rst-content .viewcode-link,
.rst-content .viewcode-back {
  color: #327a52;
  font-family: var(--alba-core-mono);
  font-size: 0.76rem;
  font-weight: 500;
  padding-left: 0.45rem;
}

.rst-content .admonition,
.rst-content .note {
  border-radius: 4px;
  border-left: 4px solid var(--alba-core-accent);
}

.rst-content table.docutils {
  border: 1px solid var(--alba-core-border);
}

.rst-content table.docutils thead th {
  background: var(--alba-core-soft);
}

footer {
  color: #6b7280;
}

.alba-core-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.alba-core-tile {
  display: block;
  padding: 1rem;
  border: 1px solid var(--alba-core-border);
  border-radius: 5px;
  background: #ffffff;
  color: var(--alba-core-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.06);
}

.alba-core-tile:hover {
  border-color: var(--alba-core-accent);
  box-shadow: 0 2px 8px rgba(54, 68, 57, 0.14);
}

.alba-core-tile strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #173626;
}

.alba-core-tile span {
  color: #4b5563;
  font-size: 0.92rem;
}
