/* ============================================================
   Poprawki stylów podstrony producenta (/autorzy/...)
   Plik wstrzykiwany po style.min.css w header.tpl
   Spec: docs/superpowers/specs/2026-05-20-autorzy-page-style-fix-design.md
   ============================================================ */

/* === Pasek producentów (chipsy / pigułki) === */
.category-nav.well {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 20px;
    border: 0;
    background: transparent;
    box-shadow: none;
    list-style: none;
}
.category-nav.well::before {
    content: "Producent:";
    font-weight: 600;
    color: #404041;
    margin-right: 6px;
}
.category-nav.well a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #404041;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    transition: background .15s, color .15s;
}
.category-nav.well a:hover {
    background: #e2e8ee;
    color: #404041;
    text-decoration: none;
}
.category-nav.well a.active {
    background: #25aae1;
    color: #fff;
}
.category-nav.well a.active:hover {
    background: #1d96c8;
    color: #fff;
}
/* defensywnie — gdyby gdzieś jeszcze został h1/h2 wewnątrz */
.category-nav.well a h1,
.category-nav.well a h2 {
    all: unset;
    font: inherit;
}

/* === Pasek sortowania / przełącznika widoku === */
.category-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 0 0 20px;
}
.category-options form {
    float: none;
    margin: 0;
}
.category-options form .control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.category-options form .control-label {
    width: auto;
    margin: 0;
    text-align: left;
    font-weight: 500;
}
.category-options form .controls {
    margin-left: 0;
}
.category-options #sort {
    font-size: 14px;
    height: 34px;
    padding: 4px 8px;
    width: auto;
    min-width: 180px;
}
.category-options .category-view {
    float: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.category-options .category-view span {
    float: none;
    padding-top: 0;
    font-weight: 500;
}
.category-options .clearfix {
    display: none;
}

/* === Tytuł producenta (h2.category-title) === */
.category-title {
    margin: 4px 0 16px;
    font-size: 26px;
    font-weight: 600;
    color: #222;
}

/* === Strona /autorzy (lista producentów) === */
.article.category-list.producerlistbox {
    margin: 8px 0 32px;
}
.article.category-list.producerlistbox .global-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 600;
    color: #222;
}
.producer-list-intro {
    color: #606060;
    font-size: 15px;
    margin: 0 0 16px;
}

/* === Mobilnie === */
@media (max-width: 575px) {
    .category-nav.well {
        padding: 8px 0;
        gap: 6px;
    }
    .category-nav.well a {
        font-size: 13px;
        padding: 5px 10px;
    }
    .category-options {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .category-options form .control-group {
        flex-wrap: wrap;
    }
    .category-options #sort {
        width: 100%;
        min-width: 0;
    }
    .category-options .category-view {
        margin-left: 0;
    }
    .category-title {
        font-size: 22px;
    }
}
