/* WordPress integration. Visual tokens and states remain in the reference CSS. */
[hidden] {
    display: none !important;
}

#main-content {
    margin-top: -5rem;
}

.mobile-menu-layer {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / .5);
    animation: .15s ease menu-overlay-in;
}

.mobile-sheet {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 .625rem .9375rem -.1875rem rgb(0 0 0 / .1), 0 .25rem .375rem -.25rem rgb(0 0 0 / .1);
    animation: .5s cubic-bezier(.4, 0, .2, 1) menu-slide-in;
}

.mobile-menu-layer.is-closing .mobile-sheet {
    animation: .3s cubic-bezier(.4, 0, .2, 1) menu-slide-out both;
}

.mobile-menu-layer.is-closing .mobile-menu-overlay {
    animation: .15s ease menu-overlay-out both;
}

@keyframes menu-slide-in {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes menu-slide-out {
    to {
        transform: translateX(-100%);
    }
}

@keyframes menu-overlay-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes menu-overlay-out {
    to {
        opacity: 0;
    }
}

.footer-legal {
    margin-top: .65rem;
    font-size: .625rem;
    color: #777;
    display: flex;
    flex-direction: column;
}

.footer-legal a:hover {
    color: var(--primary);
}

.document-page {
    max-width: 76rem;
    margin-inline: auto;
}

.document-breadcrumbs {
    display: flex;
    gap: .7rem;
    margin-bottom: 2.5rem;
    font-size: .75rem;
    color: #777;
}

.document-page h1 {
    max-width: 65rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.document-updated {
    margin-block: 1.5rem 2.5rem;
    color: #777;
    font-size: .75rem;
}

.document-content {
    max-width: 58rem;
    font-size: 1rem;
    line-height: 1.85;
}

.document-content > * + * {
    margin-top: 1.2rem;
}

.document-content h2 {
    margin-top: 2.5rem;
    font-size: 1.75rem;
}

.document-content h3 {
    margin-top: 2rem;
    font-size: 1.2rem;
}

.document-content a {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.document-content ul, .document-content ol {
    padding-left: 1.5em;
}

.document-content ul {
    list-style: disc;
}

.document-content ol {
    list-style: decimal;
}

.document-content table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    max-width: 100%;
}

.document-content td, .document-content th {
    padding: .7rem;
    border: 1px solid var(--border);
}

.document-content blockquote {
    padding-left: 1.5rem;
    border-left: 2px solid var(--primary);
}

body.menu-open {
    overflow: hidden;
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-sheet, .mobile-menu-overlay {
        animation: none !important;
    }
}
