/* Fonts: Manrope for text and JetBrains Mono for code, served from this site: no outside host is asked. Both are under the SIL Open
   Font License (fonts/OFL-*.txt). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/mono.woff2") format("woff2"); }

/* kaji's documentation in the console's colours: the navy of the logo, rounded cards. */
:root { --kaji-radius: 8px; }
body { letter-spacing: 0; font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; }
article p, article li { line-height: 1.7; }
.sidebar-brand { padding: 1.4rem 1rem .6rem; }
.sidebar-logo { max-width: 9.5rem; }
.sidebar-drawer .sidebar-tree .reference { border-radius: 6px; }
.sidebar-tree .current > .reference { font-weight: 600; }
article h1 { font-weight: 800; letter-spacing: -0.02em; }
article h2 { margin-top: 2.2rem; font-weight: 700; letter-spacing: -0.015em; }
article h3 { font-weight: 700; letter-spacing: -0.01em; }
code, pre, kbd, samp { font-feature-settings: "calt" 0, "liga" 0; }
.admonition { border-radius: var(--kaji-radius); border: 1px solid var(--color-background-border); box-shadow: none; }
.admonition > .admonition-title { font-weight: 600; }
div.highlight, .highlight pre { border-radius: var(--kaji-radius); }
code.literal { border-radius: 5px; }
table.docutils { border-radius: var(--kaji-radius); overflow: hidden; }
table.docutils th { background: var(--color-background-secondary); }
.kaji-console-link { font-weight: 600; color: var(--color-brand-primary); }
.kaji-console-link:hover { text-decoration: underline; }
.kaji-steps { counter-reset: step; list-style: none; padding-left: 0; }
.kaji-steps > li { list-style: none; counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.kaji-steps > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--color-brand-primary); color: #fff; font-weight: 600; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.dark .kaji-steps > li::before, body[data-theme="dark"] .kaji-steps > li::before { color: #0f1623; }
.kaji-steps > li::marker { content: ""; }
/* the notes and tips in the brand's blue, not the theme's green */
.admonition.tip, .admonition.hint { border-color: var(--color-brand-primary); }
.admonition.tip > .admonition-title, .admonition.hint > .admonition-title { background: color-mix(in srgb, var(--color-brand-primary) 14%, transparent); }
.admonition.tip > .admonition-title::before, .admonition.hint > .admonition-title::before { background-color: var(--color-brand-primary); }

/* screenshots of the console: a hairline and rounded corners, centred, a caption beneath */
figure.kaji-shot { margin: 1.4rem auto; text-align: center; }
figure.kaji-shot img { border: 1px solid var(--color-background-border); border-radius: var(--kaji-radius); max-width: 100%; height: auto; box-shadow: 0 1px 3px rgba(15, 22, 35, .08); }
figure.kaji-shot figcaption { text-align: center; font-size: .85rem; color: var(--color-foreground-secondary); margin-top: .5rem; }

/* the animated logo in the sidebar (media/kaji-v2.gif): a rounded card */
.sidebar-logo { border-radius: 10px; }
