/* Reuse the legal-page typography, column, red rules and code backgrounds. */
.km-code-pages:has(.km-bot-page) {
    background: #fff;
}

.km-bot-page .page-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 24px;
}

.km-bot-page .page-title h1 {
    overflow-wrap: anywhere;
}

.km-bot-page__languages {
    margin-left: auto;
    font-size: 0.9rem;
}

.km-bot-page__languages button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--kunst-accent);
    cursor: pointer;
    font: inherit;
    min-height: 44px;
    padding: 6px 10px;
}

.km-bot-page__languages button[aria-pressed="true"] {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.km-bot-page :focus-visible {
    outline: 2px solid var(--kunst-accent);
    outline-offset: 3px;
}

.km-bot-page .block-title {
    margin-top: 32px;
}

.km-bot-page p,
.km-bot-page ul,
.km-bot-page pre {
    margin: 0 0 20px;
}

.km-bot-page ul {
    list-style: disc;
    padding-left: 20px;
}

.km-bot-page pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.km-bot-page a {
    color: var(--kunst-accent);
}

/* Theme section display rules must not override the language selection. */
.km-bot-page [hidden] {
    display: none !important;
}
