/* The app's gold accent (crates/poe2-oracle/src/ui/theme.rs, GOLD and BORDER) on mdBook's coal theme. */
.coal {
    --links: #d0913b;
    --sidebar-active: #d0913b;
    --sidebar-header-border-color: #6b5022;
}

.content img {
    border: 1px solid #2b2b30;
    border-radius: 4px;
}

kbd {
    display: inline-block;
    padding: 0 0.35em;
    border: 1px solid #6b5022;
    border-radius: 3px;
    background: #1f1811;
    color: #dcdcdc;
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1.4;
    white-space: nowrap;
}

/* Keys pressed together (Ctrl+E) keep the plus between them clear of both caps, as on the site
 * (site/style.css). Sibling selectors skip the "+" text, so this finds every keycap next to
 * another. */
kbd:has(+ kbd) {
    margin-right: 0.25em;
}

kbd + kbd {
    margin-left: 0.25em;
}

/* The header's language switch (guide.js), drawn as the site's (site/style.css, .lang-switch) in
 * the reader's theme. mdBook's rem is 10px. */
.lang-switch {
    display: inline-flex;
    gap: 0.4rem;
    margin-inline-end: 0.5rem;
    vertical-align: middle;
    line-height: 1.6;
}

.lang-switch a,
.lang-switch span {
    padding: 0.16rem 0.8rem;
    border: 1px solid var(--theme-hover);
    border-radius: 3px;
    font-size: 1.36rem;
}

.lang-switch a {
    background: var(--theme-hover);
    color: var(--fg);
}

.lang-switch a:hover {
    color: var(--icons-hover);
}

.lang-switch span {
    background: color-mix(in srgb, var(--links) 8%, var(--bg));
    border-color: var(--links);
    color: var(--links);
}

/* The title, a link back to the site (guide.js), keeps the look mdBook gives it. */
.menu-title a {
    color: inherit;
    text-decoration: none;
}

.menu-title a:hover {
    color: var(--icons-hover);
}
