/* -------- Base tokens -------- */
:root {
    --bg: #ffffff;
    --fg: #1b1b1b;
    --muted: #4a4a4a;
    --light-blue: #3871C1;
    --border: #283364;
    --surface: #283364;
    --radius: 10px;
}

/** { box-sizing: border-box; }
body { margin: 0; background: var(--color-light-alt-background); color: var(--color-text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.6; }*/
/*main { margin: 2rem auto; padding: 0 1rem; }*/
/*header h1 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin: 0 0 .25rem; }*/
.hint { color: var(--muted); }

.article-container {
    border: 1px solid var(--color-logo-dark);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.article-container details { border-top: 1px solid var(--color-logo-light); }
.article-container details:first-of-type { border-top: 0; }

summary {
    list-style: none; /* remove default marker */
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    padding: .5rem .5rem; cursor: pointer; font-weight: 700; background: var(--color-logo-dark);
}
summary:focus { outline: 4px solid  #ffbf47; outline-offset: -3px; }
summary:hover { background: #fafafa; }
/* Chevron icon purely with CSS rotation on open */
.chevron {
    inline-size: 1rem; block-size: 1rem; transform: rotate(-90deg);
    transition: transform 160ms ease;
}
.chevron:hover {color: black;}
details[open] .chevron { transform: rotate(0deg); }

.panel-title { color: white; }
.panel-title:hover { color: var(--color-text); }
.panel { background: var(--color-light-alt-background); padding: .75rem 1.5rem 1rem; font-weight: 500; color: black; font-family: "Raleway", "HelveticaNeue", Helvetica, Arial, sans-serif}

details {
    margin: .25rem .5rem;
}

.kb-section-grid {
    margin: 2em auto;
    width: 70%;
}
.kb-article-title {
    color: var(--color-logo-dark);
    text-align: left;
    margin: .5em 0 .5em 1.5em;
}
.kb-topic-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .75em;
    width: 80%;
    border: 3px solid var(--color-emphasis);
    margin: 0 auto;
    padding: .75em 1em;
    border-radius: 7px;
    background-color: var(--color-light-alt-background);
    justify-items: center;
    align-items: center;
}
.kb-top-link {
    font-size: 14px;
}
.kb-paragraph {
    width: 80%;
    margin: 0 auto;
}
img {
    vertical-align: bottom;
}
.kb-list-only {
    list-style-type: disc;
    padding-bottom: .75rem;
    margin-left: 1rem;
}
.kb-list-only > ul > li:first-child {
    margin-top: .5rem;
}

.kb-sub-list {
    list-style-type: circle;
    padding-bottom: 8px;
    margin-left: 1.75rem;
}

.kb-top-link.common-link:focus-visible {
    outline: 3px solid var(--light-blue);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Clear float after heading block */
.kb-article-title.h3-override-h4::after {
    content: "";
    display: block;
    clear: both;
}

/*
ol {
    color: black;
    margin: 0 0 1rem 2rem;
    list-style-type: decimal;
}
ol.li {
    list-style: none;
    margin: .25rem 0;
    font-size: 1rem;
    font-weight: bold;
}
ul > li {
    padding-bottom: .5rem;
    list-style-type: none;
    margin-left: 1rem;
}
*/

.internal-paragraph { margin-top: 0.75rem; color: black; font-weight: 700; }

/* Buttons (links styled as buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
    border: 1px solid var(--light-blue);
}
.btn-primary {
    background: var(--light-blue);
    color: #fff;
}
.btn-small {
    font-size: 0.875rem;
}
.btn:focus-visible {
    outline: 3px solid var(--light-blue);
    outline-offset: 2px;
}

/* Media blocks */
embed {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

/* Image inside text */
img {
    max-width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) { .chevron { transition: none; } }

