.staticphp
{
    --color-theme-primary: #7A86B8;
    --color-theme-primary-alt: #4F5B93;
    --color-theme-secondary: #E44D26;
    /* --color-background: #e0e0e0; */
    --color-background-sidebar: #ccc;
    --color-background-sidebar-alt: #bbb;
    --color-background-code: #ccc;
    /* --color-text: #3f3f3f; */
    --color-line: #666666;
}

.staticphp b
{
    color: var( --color-text ) !important;
}

.staticphp a[ target="_blank" ]:after
{
    content: "⧉";
    padding-left: 4px;
    padding-right: 4px;
}

.staticphp img
{
    max-width: 100%;
}

.staticphp header
{
    background-color: var( --color-theme-primary );
    margin-inline: -3rem;
    margin-top: -1rem;
    padding: 0.5rem 3rem;
    width: calc( 100% + 6rem );
    display: none;
}

.staticphp header h2 a
{
    text-decoration: none;
    color: white;
}

.staticphp nav.staticphp
{
    background-color: var( --color-background-alt );
    display: flex;
    gap: 1rem;
    flex-direction: row;
    margin-inline: -1rem;
    margin-top: -1rem;
    margin-bottom: -1rem;
    width: calc( 100% + 2rem );
}

.staticphp nav.staticphp a
{
    color: var( --color-text );
    text-decoration: none;
    font-weight: 300 !important;
}

.staticphp nav.staticphp a.current
{
    font-weight: bold !important;
}

.staticphp section.content
{
    min-height: 70vh;
    line-height: 1.8;
    word-wrap: break-word;
}

.staticphp section.content a
{
    color: var( --color-theme-primary );
    font-weight: bold;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.staticphp section.content a:hover
{
    color: var( --color-theme-secondary );
}

.staticphp section.content code
{
    padding: 2px 4px;
    border-radius: 4px;
    background-color: var( --color-background-alt );
    font-size: 0.8rem;
}

.staticphp section.content b
{
    color: var( --color-text );
}

/* Docs Styles */

.staticphp .docs
{
    display: flex;
    align-items: stretch;
    min-height: 70vh;
    padding: 0;
    flex-direction: column;
    margin-inline: -2rem;
}

.staticphp .docs > .sidebar
{
    flex: 0 0 auto;
    background-color: var( --color-background-alt );
}

.staticphp .docs > .sidebar a
{
    color: var( --color-text );
    text-decoration: none;
}

.staticphp .docs > .sidebar a:hover
{
    color: var( --color-text );
}

.staticphp .docs > .sidebar h1
{
    margin: 0;
    padding: 1rem;
    font-size: 1.4rem;
    text-decoration: underline;
    text-underline-offset: 12px;
    text-decoration-color: var( --color-line );
    text-align: center;
}

.staticphp .docs > .sidebar nav
{
    flex-direction: column;
    width: 100%;
}

.staticphp .docs > .sidebar nav a
{
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var( --color-text );
}

.staticphp .docs > .sidebar nav a.current
{
    font-weight: 900;
}

.staticphp .docs > .content
{
    flex: 1 1 auto;
    line-height: 1.8;
    padding: 1rem;
}

.staticphp .docs > .content *:first-child
{
    margin-top: 0;
}

.staticphp .docs > .content a
{
    font-weight: bold;
}

.staticphp .docs > .content h2,
.staticphp .docs > .content h3
{
    border-bottom: 1px solid var( --color-line );
    padding-bottom: 4px;
}

.staticphp .docs > .content h4,
.staticphp .docs > .content h5
{
    text-decoration: underline;
    text-underline-offset: 12px;
    text-decoration-color: var( --color-line );
}

.staticphp .docs > .content pre
{
    padding: 1rem;
    overflow-x: auto;
    max-width: 100%;
}

.staticphp .docs > .content pre,
.staticphp .docs > .content code
{
    background-color: var( --color-background-alt );
    font-size: 1rem;
    line-height: 0.9;
    border-radius: 0.5rem;
    font-family: monospace;
}

.staticphp .docs > .content code
{
    padding: 0.3rem 0.5rem;
}

.staticphp .docs .standalone
{
    padding: 5vh 5vw;
    text-align: center;
}

.staticphp .docs .standalone h2
{
    font-size: 2rem;
}

.staticphp .docs .standalone p
{
    font-size: 1.2rem;
}

.staticphp .toggle-checkbox
{
    display: none;
}

.staticphp #toggle-docs-menu ~ nav
{
    display: none;
}

.staticphp #toggle-docs-menu:checked ~ nav
{
    display: flex;
}

.staticphp .toggle-docs-menu-btn
{
    margin: 0;
    padding: 0;
}

.staticphp .toggle-docs-menu-btn label
{
    padding: 0.3rem 1rem;
    display: block;
    text-align: center;
    cursor: pointer;
    font-size: 0.8rem;
}

@media ( max-width: 799px )
{
    .staticphp .docs > .sidebar h1
    {
        padding-bottom: 0;
    }
}

@media ( min-width: 800px )
{
    .staticphp .docs
    {
        flex-direction: row;
    }

    .staticphp .docs > .sidebar
    {
        max-width: 302px;
    }

    .staticphp .docs > .sidebar h1
    {
        text-align: left;
        padding: 2rem;
    }

    .staticphp #toggle-docs-menu ~ nav,
    .staticphp #toggle-docs-menu:checked ~ nav
    {
        display: flex;
    }

    .staticphp .docs > .sidebar nav a
    {
        padding: 0.5rem 2rem;
    }

    .staticphp .docs > .content
    {
        max-width: 970px;
        padding: 2rem 4rem;
    }

    .staticphp .toggle-docs-menu-btn
    {
        display: none;
    }

    .staticphp .docs .standalone h2
    {
        font-size: 3rem;
    }
}
