/* Explain: Base reset, typography defaults, print watermark, and no-copy rules. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    line-height: 1.75;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.35;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
}

::selection {
    background: var(--primary-color);
    color: var(--on-primary);
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 0.35rem;
}

summary.nav-link {
    list-style: none;
    cursor: pointer;
}

summary.nav-link::marker {
    content: '';
}

summary.nav-link::-webkit-details-marker {
    display: none;
}

/* Long-form article content coming from rich text fields */
.rich-text {
    line-height: 1.95;
    color: var(--text-color);
}

.rich-text p + p {
    margin-top: 1rem;
}

.rich-text h2 {
    margin: 1.6rem 0 0.6rem;
    font-size: 1.35rem;
}

.rich-text h3 {
    margin: 1.2rem 0 0.5rem;
    font-size: 1.15rem;
}

.rich-text ul,
.rich-text ol {
    margin: 0.8rem 0;
    padding-inline-start: 1.4rem;
    list-style: disc;
}

.rich-text ol {
    list-style: decimal;
}

.rich-text li {
    margin-bottom: 0.35rem;
}

.rich-text img {
    margin: 1rem 0;
    border-radius: var(--radius-sm);
}

.rich-text blockquote {
    margin: 1rem 0;
    padding-inline-start: 1rem;
    border-inline-start: 4px solid var(--primary-color);
    color: var(--text-muted);
}

.rich-text a {
    color: var(--primary-color);
    border-bottom: 1px solid currentColor;
}

body.no-copy {
    -webkit-user-select: none;
    user-select: none;
}

@media print {
    body::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        width: 400px;
        height: 400px;
        transform: translate(-50%, -50%);
        background-image: url('https://files.cdn-files-a.com/uploads/12552830/normal_6ae7c83e97711.jpg?format=avif');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.1;
        z-index: -1;
    }
    .print-logo {
        display: block !important;
        text-align: center;
        margin-bottom: 2rem;
    }
    .print-logo img {
        height: 60px;
        margin: 0 auto;
    }

    header,
    footer,
    aside,
    #backToTop,
    .share-bar,
    .dir-ticker-bar,
    .chat-shell,
    .chat-stream,
    [data-chat-root] {
        display: none !important;
    }

    .section-block {
        padding-block: 0.5rem;
    }
}