/* ═══════════════════════════════════════════════════════════════════════════
   valadoc-alt — Базальт СПО brand: оранж #FF8000, графит #333333, белый.
   Брендбук стр. 10-12: синий запрещён, красный — только особые акценты.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Theme variables (light default) ──────────────────────────────────── */
:root {
    --bg:            #ffffff;
    --bg-secondary:  #f6f6f6;
    --bg-tertiary:   #f0f0f0;
    --text:          #333333;
    --text-secondary:#555555;
    --text-muted:    #9a9a9a;
    --border:        #cdcdcd;
    --border-light:  #e8e8e8;

    --brand-orange:  #ff8000;
    --brand-yellow:  #ffcc00;
    --brand-graphite:#333333;

    --header-bg:     #333333;
    --header-text:   #ffffff;

    --link:          #e07000;
    --link-hover:    #cc6600;

    --code-bg:       #f0f0f0;
    --code-text:     #333333;

    --syn-basic:     #2e7d32;
    --syn-keyword:   #c62828;
    --syn-escape:    #7b1fa2;
    --syn-cdata:     #ad1457;
    --syn-element:   #00838f;
    --syn-attr:      #6a1b9a;
    --syn-attrval:   #c2185b;
    --syn-literal:   #c2185b;
    --syn-comment:   #757575;
    --syn-preproc:   #8e24aa;

    --box-bg:        #fff3e0;
    --box-border:    #ffcc80;
    --notify-bg:     #fff8e1;
    --notify-border: #ffc107;

    --row-hover:     #f6f6f6;
    --shadow:        0 1px 3px rgba(0,0,0,0.1);
    --sidebar-width: 260px;
    --header-height: 48px;
    --footer-height: 28px;

    --search-bg:     #ffffff;
    --search-border: #cdcdcd;
    --search-focus:  #ff8000;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:            #1c1c1c;
        --bg-secondary:  #252525;
        --bg-tertiary:   #1a1a1a;
        --text:          #e8e8e8;
        --text-secondary:#b0b0b0;
        --text-muted:    #808080;
        --border:        #3a3a3a;
        --border-light:  #2a2a2a;

        --header-bg:     #141414;
        --header-text:   #e8e8e8;

        --link:          #ff8c1a;
        --link-hover:    #ffa64d;

        --code-bg:       #252525;
        --code-text:     #e8e8e8;

        --syn-basic:     #66bb6a;
        --syn-keyword:   #ef5350;
        --syn-escape:    #ce93d8;
        --syn-cdata:     #f48fb1;
        --syn-element:   #4dd0e1;
        --syn-attr:      #ce93d8;
        --syn-attrval:   #f48fb1;
        --syn-literal:   #f48fb1;
        --syn-comment:   #808080;
        --syn-preproc:   #d1c4e9;

        --box-bg:        #2a2a2a;
        --box-border:    #4a4a4a;
        --notify-bg:     #3a3020;
        --notify-border: #8a7030;

        --row-hover:     #252525;
        --shadow:        0 1px 3px rgba(0,0,0,0.4);

        --search-bg:     #252525;
        --search-border: #4a4a4a;
        --search-focus:  #ff8000;
    }
}

/* ── Reset / Base ────────────────────────────────────────────────────── */
html {
    color: var(--text);
    font-family: "Inter", "Open Sans", "Droid Sans", Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
    background: var(--bg);
}

body {
    margin: 0;
    padding: var(--header-height) 0 var(--footer-height) 0;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.site_header {
    align-items: center;
    background-color: var(--header-bg);
    color: var(--header-text);
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    padding: 6px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    box-sizing: border-box;
}

.header-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--header-text);
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.12);
}

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
}

.header-search {
    width: 420px;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
}

#search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px 6px 32px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    background: rgba(255,255,255,0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    color: var(--header-text);
    transition: background 0.15s, border-color 0.15s;
}

#search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

#search-input:focus {
    background: rgba(255,255,255,0.2);
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(255,128,0,0.25);
}

#search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 2000;
    padding: 6px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

#search-results .sr-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    color: var(--link);
    text-decoration: none;
    font-size: 12px;
    gap: 6px;
}

#search-results .sr-item:hover {
    background: var(--row-hover);
    text-decoration: none;
}

/* ── Sidebar package filter ──────────────────────────────────────────── */
.pkgs-panel-search {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

#pkgs-filter {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px 6px 30px;
    border: 1px solid var(--search-border);
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    background-color: var(--search-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 9px center;
    color: var(--text);
}

#pkgs-filter:focus {
    border-color: var(--search-focus);
    box-shadow: 0 0 0 2px rgba(255,128,0,0.15);
}

#pkgs-no-results {
    display: none;
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* ── Body layout ─────────────────────────────────────────────────────── */
.site_body {
    display: flex;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    padding-left: var(--sidebar-width);
}

.site_content {
    flex: 1;
    padding: 24px 32px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

h1.main_title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text);
}

h2, h3 {
    font-family: "Droid Serif", serif;
    font-weight: 400;
    color: var(--text);
}

.main_hr {
    border: 0;
    background-color: var(--border);
    height: 1px;
    margin: 10px 0 20px 0;
}

/* ── Package rows ────────────────────────────────────────────────────── */
#cards-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pkg-row {
    border-bottom: 1px solid var(--border);
    padding: 12px 8px 12px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
    transition: background-color 0.1s;
}

.pkg-row:first-child {
    border-top: 1px solid var(--border);
}

.pkg-row:hover {
    background-color: var(--row-hover);
}

.pkg-row.hidden {
    display: none !important;
}

.pkg-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    min-width: 0;
}

.pkg-row-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    overflow-wrap: break-word;
}

.pkg-row-name:hover {
    text-decoration: underline;
}

.pkg-row-binary {
    font-size: 11px;
    color: var(--text-muted);
    font-family: "Roboto Mono", monospace;
}

.pkg-row-binary a {
    color: var(--text-muted);
    text-decoration: none;
}

.pkg-row-binary a:hover {
    color: var(--link);
    text-decoration: underline;
}

.pkg-row-summary {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    min-width: 200px;
    line-height: 1.4;
}

.pkg-row-description {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    flex-basis: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pkg-row-maintainer {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.pkg-row-maintainer a {
    color: var(--link);
    text-decoration: none;
}

.pkg-row-maintainer a:hover {
    text-decoration: underline;
}

/* ── Navi list in root sidebar ───────────────────────────────────────── */
#root-sidebar .navi_main {
    font-size: 12px;
    list-style: none;
    margin: 0;
    padding: 0 0 0 0;
}

#root-sidebar .navi_main li.hidden {
    display: none !important;
}

#root-sidebar {
    display: flex;
    flex-direction: column;
}

#root-sidebar .navi_main {
    overflow-y: auto;
    flex: 1;
}

#root-sidebar .pkgs-panel-search {
    flex-shrink: 0;
}

/* ── Package info (injected after Description: heading) ───────────────── */
.pkg-info-card {
    font-size: 12px;
    line-height: 1.6;
    margin: 4px 0 12px 0;
}

.pkg-info-card p {
    margin: 0 0 4px 0;
}

.pkg-info-row {
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.pkg-info-row a {
    color: var(--link);
    text-decoration: none;
}

.pkg-info-row a:hover {
    text-decoration: underline;
}

.pkg-info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.pkg-info-summary {
    color: var(--text);
}

.pkg-info-desc {
    color: var(--text-secondary);
    font-size: 12px;
}

.pkg-info-maintainer {
    color: var(--text-muted);
    font-size: 11px;
}

.pkg-info-maintainer a {
    color: var(--link);
}

/* ── Symbol icons (shared) ────────────────────────────────────────────── */
.sr-i {
    display: inline-block;
    width: 13px;
    height: 13px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
    flex-shrink: 0;
}

.sr-i-pkg         { background-image: url(package.svg); }
.sr-i-class       { background-image: url(class.svg); }
.sr-i-interface   { background-image: url(interface.svg); }
.sr-i-struct      { background-image: url(struct.svg); }
.sr-i-enum        { background-image: url(enum.svg); }
.sr-i-errordomain { background-image: url(errordomain.svg); }
.sr-i-delegate    { background-image: url(delegate.svg); }
.sr-i-nspace      { background-image: url(namespace.svg); }
.sr-i-method      { background-image: url(method.svg); }
.sr-i-property    { background-image: url(property.svg); }
.sr-i-signal      { background-image: url(signal.svg); }
.sr-i-constant    { background-image: url(constant.svg); }
.sr-i-field       { background-image: url(field.svg); }
.sr-i-errorcode   { background-image: url(errorcode.svg); }
.sr-i-enumvalue   { background-image: url(enumvalue.svg); }

.sr-list {
    margin-top: 0;
}

.sr-t {
    color: var(--text-muted);
    font-size: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.sr-p {
    color: var(--text-muted);
    font-size: 10px;
    flex-shrink: 0;
    margin-left: 6px;
}

.sr-p::before {
    content: '· ';
    opacity: 0.5;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    box-sizing: border-box;
    padding: 5px 16px;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.06);
    z-index: 500;
}

.site_footer a {
    color: var(--text-muted);
}

.site_footer kbd {
    font-family: inherit;
    color: var(--link);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sidebar-toggle {
        display: flex;
    }
    .site_body .site_navigation,
    #root-sidebar {
        z-index: 1500;
        box-shadow: 4px 0 16px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    .site_navigation.open,
    #root-sidebar.open {
        transform: translateX(0);
    }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1400;
    }
    .site_body {
        padding-left: 0;
    }
    body:not(.root-page) .site_content {
        padding: 16px;
        max-width: 100%;
    }
    body:not(.root-page) .site_navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: var(--sidebar-width);
        height: calc(100% - var(--header-height) - var(--footer-height));
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 13px;
    }
    .header-search {
        max-width: 260px;
    }
    .site_content {
        padding: 16px;
    }
    .pkg-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 8px;
    }
    .pkg-row-summary {
        flex: none;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .header-title {
        display: none;
    }
    .site_content {
        padding: 12px;
    }
    h1.main_title {
        font-size: 1.4em;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Per-package page layout (valadoc-generated pages with sidebar)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Root page: sidebar always visible, same layout as per-package pages */
.root-page .site_footer {
    width: 100%;
}

/* Per-package page sidebar (valadoc default) */
.site_navigation {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: inline-block;
    overflow-y: auto;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100% - var(--header-height) - var(--footer-height));
}

.site_navigation > ul:first-child {
    margin-top: 6px;
}

.site_navigation > ul:last-child {
    margin-bottom: 6px;
}

.navi_main {
    font-size: 12px;
    list-style: none;
    margin: 0;
    padding: 0 0 0 0;
}

.navi_main li {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 12px 6px 0;
}

.navi_main li::before {
    content: '';
    display: inline-block;
    height: 16px;
    width: 16px;
    min-width: 16px;
    margin-right: 8px;
    margin-left: 16px;
    vertical-align: middle;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.site_navigation .navi_main li::before {
    padding-left: 0 !important;
}

.navi_main .package::before {
    background-image: url(package.svg);
}

.navi_main .namespace::before {
    background-image: url(namespace.svg);
}

.navi_main .class::before {
    background-image: url(class.svg);
}

.navi_main .abstract_class::before {
    background-image: url(abstractclass.svg);
}

.navi_main .interface::before {
    background-image: url(interface.svg);
}

.navi_main .struct::before {
    background-image: url(struct.svg);
}

.navi_main .enum::before {
    background-image: url(enum.svg);
}

.navi_main .errordomain::before {
    background-image: url(errordomain.svg);
}

.navi_main .delegate::before {
    background-image: url(delegate.svg);
}

.navi_main .method::before,
.navi_main .static_method::before,
.navi_main .virtual_method::before,
.navi_main .abstract_method::before {
    background-image: url(method.svg);
}

.navi_main .creation_method::before {
    background-image: url(constructor.svg);
}

.navi_main .abstract_method::before {
    background-image: url(abstractmethod.svg);
}

.navi_main .virtual_method::before {
    background-image: url(virtualmethod.svg);
}

.navi_main .static_method::before {
    background-image: url(staticmethod.svg);
}

.navi_main .property::before,
.navi_main .abstract_property::before,
.navi_main .virtual_property::before {
    background-image: url(property.svg);
}

.navi_main .abstract_property::before {
    background-image: url(abstractproperty.svg);
}

.navi_main .virtual_property::before {
    background-image: url(virtualproperty.svg);
}

.navi_main .signal::before {
    background-image: url(signal.svg);
}

.navi_main .constant::before {
    background-image: url(constant.svg);
}

.navi_main .field::before {
    background-image: url(field.svg);
}

.navi_main .errorcode::before {
    background-image: url(errorcode.svg);
}

.navi_main .enumvalue::before {
    background-image: url(enumvalue.svg);
}

.site_navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background-color 0.1s;
    outline: none;
}

.navi_main li:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.site_navigation a:hover,
.site_navigation a:focus-visible {
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    .navi_main li:hover {
        background-color: rgba(255, 255, 255, 0.06);
    }
}

/* Per-package page header (simple, no search) */
body:not(.root-page) .site_header {
    justify-content: space-between;
    font-size: 15px;
}



/* ═══════════════════════════════════════════════════════════════════════════
   Preserved valadoc classes (for per-package API documentation pages)
   = colours overridden via CSS variables, structure unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */

.main_optional_parameter              { font-style: italic; }
.main_diagram                         { border-style: none; display: block; margin: 0 auto; }
.site_navi                            { text-align: right; }

.main_notification {
    padding: 5px 10px 5px 60px;
    border: 1px solid var(--box-border);
    background-color: var(--box-bg);
    margin: 10px;
    min-height: 48px;
    background-position: 6px 0.5em;
    background-repeat: no-repeat;
    background-image: url(warning.svg);
}

.main_table {
    border-collapse: collapse;
    border: 1px solid var(--box-border);
    background: var(--box-bg);
    margin: 0 auto;
}

.main_source, .main_sourcesample {
    padding: 5px 10px 5px 5px;
    margin: 10px;
    border: 1px solid var(--box-border);
    background-color: var(--box-bg);
}

input {
    border: 1px solid var(--box-border);
}

.site_title                           { text-align: left; font-size: 40px; }

.main_type                            { text-decoration: none; font-style: italic; }
.main_basic_type                      { text-decoration: none; font-weight: bold; color: var(--syn-basic); }
.main_keyword                         { text-decoration: none; font-weight: bold; color: var(--syn-keyword); }
.main_escape                          { text-decoration: none; color: var(--syn-escape); }
.xml_cdata                            { text-decoration: none; font-weight: normal; color: var(--syn-cdata); }
.xml_escape                           { text-decoration: none; font-weight: normal; color: var(--syn-cdata); }
.xml_element                          { text-decoration: none; font-weight: normal; color: var(--syn-element); }
.xml_attribute                        { text-decoration: none; font-weight: bold; color: var(--syn-attr); }
.xml_attribute_value                  { text-decoration: none; font-weight: normal; color: var(--syn-attrval); }
.xml_comment                          { text-decoration: none; font-weight: normal; color: #0202ff; }
.main_source .main_literal            { text-decoration: none; color: var(--syn-literal); }
.main_comment                         { text-decoration: none; color: var(--syn-comment); }
.main_preprocessor                    { text-decoration: none; color: var(--syn-preproc); }

div.main_code_definition {
    background-color: var(--code-bg);
    color: var(--code-text);
    border-radius: 6px;
    font-family: "Roboto Mono", monospace;
    margin: 12px;
    padding: 12px;
}

div.main_notification_block {
    padding: 5px 10px;
    border: 1px solid var(--notify-border);
    background-color: var(--notify-bg);
    margin: 10px;
}

span.main_block_headline {
    background-image: url(tip.svg);
    background-repeat: no-repeat;
    background-position: center right;
    font-weight: bold;
    display: block;
}

div.main_block_content                 { margin-left: 15px; }
span.leaf_code_definition              { font-family: monospace; }
div.leaf_brief_description             { display: block; margin-left: 40px; }

.main_parameter_table_unknown_parameter{ color: gray; }

.main_parameter_table_name,
.main_errordomain_table_name,
.main_enum_table_name {
    vertical-align: top;
    text-align: right;
    font-weight: bold;
    width: 120px;
    padding: 4px 10px 4px 4px;
}

.main_parameter_table,
.main_errordomain_table,
.main_enum_table                       { margin-right: 20px; margin-left: 20px; }

.navi_hr {
    background-color: var(--border);
    border: 0;
    border-bottom: 1px solid var(--bg);
    border-top: 1px solid var(--border);
    height: 0;
    margin: 6px 0;
}

.navi_main .abstract_class > a,
.navi_inline .abstract_class > a       { font-style: italic; }

a.navi_link:hover, a.external_link:hover { text-decoration: underline; }
ul.no_bullet li                        { list-style-type: none; }

.navi_inline {
    font-size: 12px;
    line-height: 21px;
    list-style: none;
    margin: 6px 3px;
    padding-left: 12px;
}

.css_content_literal {
    font-family: "Roboto Mono", monospace;
    color: #ff01ff;
}

code {
    font-family: "Roboto Mono", monospace;
    color: var(--code-text);
}

.main_code_definition a,
.leaf_code_definition a                { text-decoration: none; color: inherit; }
.main_code_definition a:hover,
.leaf_code_definition a:hover          { text-decoration: underline; }

/* ── Box (collapsible sections) ──────────────────────────────────────── */
.box {
    margin: 20px auto;
    width: 90%;
}

.box .headline {
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    font-weight: bold;
    color: var(--text);
    cursor: pointer;
    padding: 8px 44px 8px 12px;
    display: flex;
    align-items: center;
    position: relative;
}

.box .headline::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    line-height: 1;
}

.box .headline:hover {
    background-color: var(--bg-tertiary);
}

.box .headline.open::after {
    content: '−';
}

.box .content {
    border: 1px solid var(--box-border);
    border-top: none;
    overflow: auto;
    display: none;
    padding: 0;
}

.box .content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.box .content li {
    display: flex;
    align-items: center;
    padding: 6px 12px 6px 0;
    font-size: 12px;
}

.box .content li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 8px;
    margin-left: 4px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.box .content li.method::before,
.box .content li.static_method::before,
.box .content li.virtual_method::before,
.box .content li.abstract_method::before,
.box .content li.creation_method::before {
    background-image: url(method.svg);
}

.box .content li.creation_method::before {
    background-image: url(constructor.svg);
}

.box .content li.abstract_method::before {
    background-image: url(abstractmethod.svg);
}

.box .content li.virtual_method::before {
    background-image: url(virtualmethod.svg);
}

.box .content li.static_method::before {
    background-image: url(staticmethod.svg);
}

.box .content li.property::before,
.box .content li.abstract_property::before,
.box .content li.virtual_property::before {
    background-image: url(property.svg);
}

.box .content li.abstract_property::before {
    background-image: url(abstractproperty.svg);
}

.box .content li.virtual_property::before {
    background-image: url(virtualproperty.svg);
}

.box .content li.signal::before {
    background-image: url(signal.svg);
}

.box .content li.class::before,
.box .content li.abstract_class::before {
    background-image: url(class.svg);
}

.box .content li.abstract_class::before {
    background-image: url(abstractclass.svg);
}

.box .content li.interface::before {
    background-image: url(interface.svg);
}

.box .content li.struct::before {
    background-image: url(struct.svg);
}

.box .content li.enum::before {
    background-image: url(enum.svg);
}

.box .content li.errordomain::before {
    background-image: url(errordomain.svg);
}

.box .content li.delegate::before {
    background-image: url(delegate.svg);
}

.box .content li.namespace::before {
    background-image: url(namespace.svg);
}

.box .content li.constant::before {
    background-image: url(constant.svg);
}

.box .content li.field::before {
    background-image: url(field.svg);
}

.box .content li.errorcode::before {
    background-image: url(errorcode.svg);
}

.box .content li.enumvalue::before {
    background-image: url(enumvalue.svg);
}

.box .content li a {
    color: var(--text-secondary);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.box .content li:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.box .content li a:hover {
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    .box .content li:hover {
        background-color: rgba(255, 255, 255, 0.06);
    }
}

.box .column {
    float: left;
    width: 33%;
}

.deprecated {
    opacity: 0.5;
    text-decoration: line-through;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Icons (preserved from valadoc)
   ═══════════════════════════════════════════════════════════════════════════ */

.abstract_class::before,    .description a.abstract_class,    .brief_description a.abstract_class   { background-image: url(abstractclass.svg);  font-style: italic; background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.abstract_method::before,   .description a.abstract_method,   .brief_description a.abstract_method  { background-image: url(abstractmethod.svg);  background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.abstract_property::before, .description a.abstract_property, .brief_description a.abstract_property{ background-image: url(abstractproperty.svg);background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.class::before, .main_list_cl::before,  .description a.class, .brief_description a.class            { background-image: url(class.svg);           background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.constant::before,          .description a.constant,          .brief_description a.constant         { background-image: url(constant.svg);        background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.creation_method::before, .main_list_m::before, .description a.creation_method, .brief_description a.creation_method { background-image: url(constructor.svg); background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.delegate::before, .main_list_del::before, .description a.delegate, .brief_description a.delegate   { background-image: url(delegate.svg); background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.document::before               { background-image: url(document.svg); background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.enum::before, .main_list_en::before, .description a.enum, .brief_description a.enum               { background-image: url(enum.svg); background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.enumvalue::before, .enum_value::before, .description a.enumvalue, .brief_description a.enumvalue   { background-image: url(enumvalue.svg); background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.errorcode::before,             .description a.errorcode,    .brief_description a.errorcode         { background-image: url(errorcode.svg);      background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.errordomain::before, .main_list_errdom::before, .description a.errordomain, .brief_description a.errordomain { background-image: url(errordomain.svg);background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.field::before, .main_list_field::before, .description a.field, .brief_description a.field         { background-image: url(field.svg);           background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.interface::before, .main_list_iface::before, .description a.interface, .brief_description a.interface { background-image: url(interface.svg);   background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.method::before,                .description a.method,       .brief_description a.method            { background-image: url(method.svg);          background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.namespace::before, .main_list_ns::before, .description a.namespace, .brief_description a.namespace { background-image: url(namespace.svg);    background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.package::before                { background-image: url(package.svg);  background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.package_index::before          { background-image: url(packages.svg); background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.property::before, .main_list_prop::before, .description a.property, .brief_description a.property { background-image: url(property.svg);     background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.signal::before, .main_list_sig::before, .description a.signal, .brief_description a.signal         { background-image: url(signal.svg);          background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.static_method::before,         .description a.static_method, .brief_description a.static_method    { background-image: url(staticmethod.svg);    background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.struct::before, .main_list_stru::before, .description a.struct, .brief_description a.struct        { background-image: url(struct.svg);          background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.virtual_method::before,        .description a.virtual_method,.brief_description a.virtual_method   { background-image: url(virtualmethod.svg);   background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
.virtual_property::before,      .description a.virtual_property, .brief_description a.virtual_property { background-image: url(virtualproperty.svg); background-repeat: no-repeat; background-position: left center; padding-left: 1.5em; }
