/**
 * components/header.html — как footer.css: переменные + fallback #330033
 *
 * Standalone (index, updates, terms…): body > .line
 * Layout (msg, settings…): .header в base.css, здесь только .line внутри
 */

.line {
    position: var(--header-position, fixed);
    top: var(--header-top, 0);
    left: 0;
    width: 100%;
    height: var(--header-height, 60px);

    background-color: var(--header-bg, #330033);
    color: var(--header-text, #ffffff);
    box-shadow: 0 4px 8px var(--header-shadow, rgba(0, 0, 0, 0.6));

    display: flex;
    align-items: center;
    padding-left: 10px;
    z-index: var(--header-z-index, 100);
}

.logotext {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.line img {
    width: 50px;
    flex-shrink: 0;
}

.texttop {
    color: var(--header-text, #ffffff);
    margin-left: 10px;
    font-size: 32px;
    white-space: nowrap;
}

.line a {
    text-decoration: none;
}

/* layout: полоса рисуется .header в base.css, .line только контент */
.layout .header .line {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: var(--header-height, 60px);
    z-index: auto;
    background: transparent;
    box-shadow: none;
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .line img {
        width: 50px;
    }

    .texttop {
        font-size: 28px;
    }
}
