div.docs {
    font-family: "Cabin", "Verdana", sans-serif;
    text-align: left;
}

div.docs-index {
    position: sticky;
    top: 0;
    height: 80vh;
    overflow-y: auto;
    font-size: 0.85rem;
}

div.docs-index ol {
    list-style: none;
}

div.docs-index li {
    margin: 0.25em 0;
}

div.docs-index > nav > ol {
    padding: 0;
    list-style: none;
}

div.docs-index > nav > ol ol {
    padding-left: 1.4em;
}

div.docs-index a {
    text-decoration: none;
}

div.docs-index a:hover {
    text-decoration: none;
    outline: 2px solid var(--theme-orange);
    outline-offset: 2px;
    border-radius: 0.2em;
}

div.docs-index a.active {
    color: var(--theme-orange);
    font-weight: 600;
}

div.docs-content {
    padding-left: 1em;
    border-left: 1px solid rgb(0, 0, 0, 0.25);
    font-size: 1.2rem;
    text-align: justify;
}

div.docs-content ul {
    list-style: none;
    padding-left: 0.5em;
}

div.docs-content ul li {
    margin: 0.55em 0;
    text-align: left;
}

figure.docs-media {
    margin: 1.5em 0;
}

figure.docs-media img,
figure.docs-media video {
    max-width: 100%;
    display: block;
    margin: auto;
    border-radius: 0.3em;
    box-shadow: 0 0 2px 2px rgb(0, 0, 0, 0.25);
}

figure.docs-media figcaption {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
    opacity: 0.75;
}

pre {
    padding: 0.1em 0.5em;
    overflow: auto;
    background-color: #f9f9f9;
}

code {
    font-size: 0.8em;
    color: hsl(210, 60%, 30%);
}

pre[class*="language-"] code {
    color: inherit;
}

pre.highlighted,
code.highlighted {
    background-color: hsl(210, 40%, 96%);
    padding: 0.1em 0.35em;
    border-radius: 0.2em;
    border: 1px solid hsl(210, 30%, 88%);
}

div.alert-notice code {
    color: var(--theme-orange-darkest);
}

span.type-description {
    font-size: 0.9em;
    line-height: 1.7;
    display: inline-block;
}

dl.feature-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25em 1em;
    margin: 0.75em 0;
    font-size: 0.95rem;
}

dl.feature-meta dt {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding-top: 0.2em;
    white-space: nowrap;
}

dl.feature-meta dd {
    margin: 0;
}

dl.feature-meta dt.group-sep,
dl.feature-meta dt.group-sep + dd {
    margin-top: 0.75em;
}

kbd {
    display: inline-block;
    padding: 0.1em 0.45em;
    font-family: monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 0.25em;
    background-color: #f3f3f3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

div.docs-content table {
    font-size: 0.9rem;
    border-collapse: collapse;
    margin: 0.5em auto;
}

div.docs-content table th,
div.docs-content table td {
    padding: 0.35em 0.75em;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-align: left;
}

div.docs-content table thead th {
    background-color: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

span.phpdoc-only {
    color: var(--theme-orange);
    font-weight: bold;
    margin-left: 0.3em;
    vertical-align: middle;
    position: relative;
    cursor: help;
}

span.phpdoc-only::after {
    content: "PHPDoc only type";
    position: absolute;
    bottom: calc(100% + 0.3em);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.75rem;
    font-weight: normal;
    padding: 0.2em 0.5em;
    border-radius: 0.25em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

span.phpdoc-only:hover::after {
    opacity: 1;
}

span.availability-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

span.availability-free {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #adb5bd;
}

span.availability-premium {
    background-color: #fff8e1;
    color: #d4600a;
    border: 1px solid #e8894a;
}
