/* 1kr Help: the same dark look as the rest of 1kr.uk (Bootstrap 5.3 dark, Inter). */
:root {
    --help-bg: #0a0a12;
    --help-card: #14141f;
    --help-line: #26263a;
    --help-text: #e8e8f0;
    --help-muted: #a0a0b8;
    --help-accent: #7c5cff;
}
body {
    background: var(--help-bg);
    color: var(--help-text);
    font-family: 'Inter', system-ui, sans-serif;
}
.navbar {
    background: rgba(10, 10, 18, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--help-line);
}
.navbar-brand img { margin-right: .5rem; }
.nav-link { color: var(--help-muted); }
.nav-link:hover { color: var(--help-text); }
.help-main {
    max-width: 760px;
    padding-top: 6rem;
    padding-bottom: 3rem;
}
.help-main h1 { font-weight: 700; font-size: 2rem; }
.help-main .lead { color: var(--help-muted); }
.help-ai-note, .help-privacy, .help-contact {
    color: var(--help-muted);
    font-size: .9rem;
}
.help-chat {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 1.5rem 0;
}
.msg {
    border: 1px solid var(--help-line);
    border-radius: 14px;
    padding: .75rem 1rem;
    background: var(--help-card);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.msg-user {
    align-self: flex-end;
    background: #1d1840;
    border-color: #2f2766;
}
.msg-notice {
    align-self: center;
    color: var(--help-muted);
    background: transparent;
    font-size: .95rem;
}
.msg .who {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--help-muted);
    margin-bottom: .25rem;
}
.msg .body p:last-child, .msg .body ol:last-child, .msg .body ul:last-child { margin-bottom: 0; }
.msg .note, .msg .sources {
    margin-top: .5rem;
    font-size: .85rem;
    color: var(--help-muted);
}
.msg .sources a {
    color: #b3a4ff;
    margin-right: .75rem;
}
.help-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--help-line);
    background: var(--help-card);
    color: var(--help-text);
    padding: .75rem 1rem;
    resize: vertical;
}
.help-form textarea:focus {
    outline: 2px solid var(--help-accent);
    border-color: transparent;
}
.help-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .5rem;
}
.btn-primary {
    background: var(--help-accent);
    border-color: var(--help-accent);
}
@media (max-width: 575px) {
    .help-main { padding-top: 5rem; }
    .help-main h1 { font-size: 1.6rem; }
}

/* The help centre: article list, search and article pages. */
.help-muted, .help-crumbs { color: var(--help-muted); font-size: .95rem; }
.help-crumbs a, .help-group a, .help-article a { color: #b3a4ff; }
.help-articles { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--help-line); }
.help-articles h2 { font-size: 1.5rem; font-weight: 700; }
.help-search { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.help-search input {
    flex: 1;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid var(--help-line);
    background: var(--help-card);
    color: var(--help-text);
    padding: .5rem .75rem;
}
.help-group { margin-bottom: 1.5rem; }
.help-group h2, .help-group h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.help-group ul { padding-left: 1.2rem; }
.help-group li { margin-bottom: .25rem; }
.help-article {
    background: var(--help-card);
    border: 1px solid var(--help-line);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.help-article h2, .help-article h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1rem; }
.help-article table { width: 100%; margin: .75rem 0; border-collapse: collapse; }
.help-article th, .help-article td { border: 1px solid var(--help-line); padding: .4rem .6rem; vertical-align: top; }
.help-article code { color: #e0d7ff; }
.help-article > :last-child { margin-bottom: 0; }
.help-notice { color: #ffb4b4; }
.help-ask { margin-bottom: 2rem; }
@media (max-width: 575px) {
    .help-article { padding: 1rem; }
    .help-article table { display: block; overflow-x: auto; }
}
