/* ---- Article list ---- */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--kw-radius-md);
    text-decoration: none;
    color: var(--kw-text);
    transition: background 0.15s;
}

    .article-item:hover {
        background: var(--kw-surface-1);
        text-decoration: none;
    }

.article-item-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 4px;
}

.article-item-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--kw-text-muted);
    flex-wrap: wrap;
}

.article-item-tag {
    padding: 1px 8px;
    background: var(--kw-surface-2);
    border-radius: var(--kw-radius-sm);
    font-size: 11px;
    color: var(--kw-text-secondary);
}


/* ---- Knowledge base article ---- */

.kb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--kw-text-muted);
    margin-bottom: 16px;
}

    .kb-breadcrumb a {
        color: var(--kw-text-muted);
    }

        .kb-breadcrumb a:hover {
            color: var(--kw-text-secondary);
        }

.kb-article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.kb-answer-box {
    background: var(--kw-success-light);
    border: 1px solid var(--kw-success);
    border-radius: var(--kw-radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.kb-answer-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--kw-success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.kb-answer-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.kb-explanation {
    margin-bottom: 24px;
    line-height: 1.7;
}

    .kb-explanation p {
        margin-bottom: 12px;
        font-size: 14px;
        color: var(--kw-text-secondary);
    }

    .kb-explanation img {
        display: block;
        max-width: 100%;
        max-height: 480px;
        margin: 0 auto 20px;
        border-radius: var(--kw-radius-md);
    }

    .kb-explanation figcaption {
        text-align: center;
    }

    .kb-explanation figure {
        margin: 20px;
    }

.kb-sources {
    margin-bottom: 24px;
}

.kb-sources-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--kw-text);
}

.kb-sources-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .kb-sources-list li.kb-source-item {
        font-size: 13px;
        line-height: 1.5;
        color: var(--kw-text-secondary);
        padding: 2px 0;
    }

.kb-source-title {
    color: var(--kw-text-secondary);
}

.kb-source-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -2px;
    margin-left: 5px;
    color: var(--kw-brand);
    text-decoration: none;
    transition: opacity 0.15s, color 0.15s;
}

    .kb-source-link:hover {
        color: var(--kw-brand-hover, var(--kw-brand));
        opacity: 0.8;
    }

    .kb-source-link svg {
        display: inline-block;
        width: 14px;
        height: 14px;
    }

/* In-text source reference button */
.kb-source-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 600;
    vertical-align: super;
    line-height: 1;
    color: var(--kw-brand);
    background: transparent;
    border: none;
    padding: 0 3px;
    margin: 0 1px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 3px;
    transition: color 0.15s, background-color 0.15s;
    user-select: none;
}

    .kb-source-ref:hover,
    .kb-source-ref:focus-visible {
        color: var(--kw-brand-hover, var(--kw-brand));
        background-color: var(--kw-surface-2, rgba(0, 0, 0, 0.06));
        outline: none;
    }

/* Source popup tooltip */
.kb-source-popup {
    position: absolute;
    z-index: 9999;
    max-width: 380px;
    min-width: 220px;
    background: var(--kw-surface-1, #ffffff);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-md, 8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 12px 32px 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--kw-text);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.kb-source-popup--visible {
    opacity: 1;
    transform: translateY(0);
}

.kb-source-popup-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--kw-text-muted);
    font-size: 13px;
    line-height: 1;
    padding: 0;
    transition: background-color 0.15s, color 0.15s;
}

    .kb-source-popup-close:hover {
        background: var(--kw-surface-2, rgba(0, 0, 0, 0.06));
        color: var(--kw-text);
    }

.kb-source-popup-content {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.kb-source-popup-num {
    font-weight: 600;
    color: var(--kw-text-muted);
    flex-shrink: 0;
    font-size: 12px;
}

.kb-source-popup-title {
    font-weight: 500;
    color: var(--kw-text);
    overflow-wrap: break-word;
    word-break: break-word;
}

.kb-source-popup-link {
    color: var(--kw-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    transition: color 0.15s;
}

    .kb-source-popup-link:hover {
        color: var(--kw-brand);
    }

        .kb-source-popup-link:hover .kb-source-popup-title {
            color: var(--kw-brand);
        }

.kb-source-popup-icon {
    flex-shrink: 0;
    color: var(--kw-brand);
    display: inline-block;
    vertical-align: middle;
}

.kb-related {
    margin-bottom: 24px;
}

.kb-related-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.kb-related-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kb-related-link {
    display: block;
    padding: 10px 14px;
    background: var(--kw-surface-1);
    border-radius: var(--kw-radius-md);
    font-size: 13px;
    color: var(--kw-text);
    text-decoration: none;
    transition: background 0.15s;
}

    .kb-related-link:hover {
        background: var(--kw-surface-2);
        text-decoration: none;
    }

/* ---- Knowledge base: editorial articles ---- */

.kb-articles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.kb-article-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--kw-surface-1);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-lg);
    text-decoration: none;
    color: var(--kw-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .kb-article-card:hover {
        border-color: var(--kw-border-strong);
        box-shadow: var(--kw-shadow-sm);
        text-decoration: none;
    }

.kb-article-card-img {
    width: 104px;
    height: 78px;
    object-fit: cover;
    border-radius: var(--kw-radius-md);
    flex-shrink: 0;
}

.kb-article-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.kb-article-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.kb-article-card-excerpt {
    font-size: 13px;
    color: var(--kw-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kw-text-muted);
    margin: 8px 0 12px;
}

.kb-article-byline {
    font-size: 12px;
    color: var(--kw-text-muted);
}

.kb-article-hero {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--kw-radius-lg);
    margin-bottom: 24px;
}

.kb-article-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--kw-text);
    margin-bottom: 24px;
}

    .kb-article-content h2 {
        font-size: 20px;
        font-weight: 600;
        margin: 28px 0 10px;
    }

    .kb-article-content h3 {
        font-size: 17px;
        font-weight: 600;
        margin: 22px 0 8px;
    }

    .kb-article-content p {
        margin-bottom: 14px;
    }

    .kb-article-content ul, .kb-article-content ol {
        margin: 0 0 14px 22px;
    }

    .kb-article-content li {
        margin-bottom: 6px;
    }

    .kb-article-content a {
        color: var(--kw-brand);
        text-decoration: underline;
    }

    .kb-article-content img {
        max-width: 100%;
        height: auto;
        border-radius: var(--kw-radius-md);
        margin: 12px 0;
    }

    .kb-article-content blockquote {
        margin: 14px 0;
        padding: 8px 16px;
        border-left: 3px solid var(--kw-border-strong);
        color: var(--kw-text-secondary);
    }

    .kb-article-content code {
        font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
        font-size: 13px;
        background: var(--kw-surface-2);
        padding: 1px 5px;
        border-radius: var(--kw-radius-sm);
    }

    .kb-article-content pre {
        background: var(--kw-surface-2);
        padding: 14px 16px;
        border-radius: var(--kw-radius-md);
        overflow-x: auto;
        margin-bottom: 14px;
    }

        .kb-article-content pre code {
            background: none;
            padding: 0;
        }

    .kb-article-content table {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 14px;
        font-size: 14px;
    }

    .kb-article-content th, .kb-article-content td {
        border: 1px solid var(--kw-border);
        padding: 8px 12px;
        text-align: left;
    }

/* ---- Articles: table of contents, sharing, prev/next ---- */

.article-toc {
    background: var(--kw-surface-1);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.article-toc-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kw-text-muted);
    margin-bottom: 10px;
}

.article-toc-link {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    color: var(--kw-text-secondary);
    text-decoration: none;
}

    .article-toc-link:hover {
        color: var(--kw-brand);
        text-decoration: none;
    }

.article-toc-link--level-3 {
    padding-left: 18px;
    font-size: 13px;
}

.article-share {
    margin-bottom: 20px;
}

.article-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 0;
}

.article-pager-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--kw-surface-1);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-md);
    text-decoration: none;
    color: var(--kw-text);
    flex: 1;
    min-width: 0;
    transition: border-color 0.15s;
}

    .article-pager-link:hover {
        border-color: var(--kw-brand);
        text-decoration: none;
    }

.article-pager-link--next {
    text-align: right;
}

.article-pager-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kw-text-muted);
}

.article-pager-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}

.kb-cta-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-lg);
    text-decoration: none;
    color: var(--kw-text);
    transition: all 0.15s;
}

    .kb-cta-card:hover {
        border-color: var(--kw-brand);
        box-shadow: var(--kw-shadow-sm);
        text-decoration: none;
    }

.kb-cta-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--kw-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .kb-cta-icon.exam {
        background: var(--kw-brand-light);
        color: var(--kw-brand);
    }

    .kb-cta-icon.learn {
        background: var(--kw-success-light);
        color: var(--kw-teal);
    }

    .kb-cta-icon.atlas {
        background: var(--kw-warning-light);
        color: var(--kw-coral);
    }

    .kb-cta-icon.regs {
        background: var(--kw-brand-light);
        color: var(--kw-blue);
    }

.kb-cta-body {
    min-width: 0;
}

.kb-cta-title {
    font-size: var(--kw-font-size-sm, 13px);
    font-weight: 500;
}

.kb-cta-desc {
    font-size: var(--kw-font-size-xs, 11px);
    color: var(--kw-text-muted);
}


/* ---- Atlas ---- */

.atlas-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.atlas-heading {
    display: flex;
    align-items: baseline;
    gap: var(--kw-space-2);
}

.atlas-filter-summary {
    margin-bottom: var(--kw-space-4);
    color: var(--kw-text-secondary);
    font-size: var(--kw-font-size-sm);
}

.atlas-filter-clear {
    margin-left: var(--kw-space-2);
}

.atlas-title {
    font-size: 20px;
    font-weight: 600;
}

.atlas-count {
    font-size: 13px;
    color: var(--kw-text-muted);
}

.atlas-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--kw-surface-1);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-md);
    font-size: 13px;
    color: var(--kw-text-muted);
    min-width: 220px;
}

    .atlas-search input {
        flex: 1;
        border: none;
        background: transparent;
        font-family: var(--kw-font);
        font-size: 13px;
        color: var(--kw-text);
        outline: none;
    }

        .atlas-search input::placeholder {
            color: var(--kw-text-muted);
        }

.fish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fish-card {
    background: var(--kw-surface-2);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none;
    color: var(--kw-text);
    display: block;
}

    .fish-card:hover {
        border-color: var(--kw-border-strong);
        text-decoration: none;
    }

.fish-img {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--kw-surface-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .fish-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .fish-img svg {
        width: 60%;
        height: 60%;
        opacity: 0.15;
    }

.fish-badges {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
}

.fish-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.fish-badge--protected {
    background: rgba(209, 60, 48, 0.15);
    color: var(--kw-red, #D13C30);
}

.fish-badge--igo {
    background: rgba(186, 117, 23, 0.15);
    color: var(--kw-amber, #BA7517);
}

.fish-info {
    padding: 10px 12px;
}

.fish-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.fish-latin {
    font-size: 11px;
    color: var(--kw-text-muted);
    font-style: italic;
}

.fish-meta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--kw-text-secondary);
}

.fish-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

    .fish-meta-item svg {
        color: var(--kw-text-muted);
        flex-shrink: 0;
    }
/* ---- Atlas detail ---- */

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--kw-text-secondary);
    margin-bottom: 16px;
    text-decoration: none;
}

    .detail-back:hover {
        color: var(--kw-text);
        text-decoration: none;
    }
/* Admin bar */

.admin-bar {
    position: sticky;
    top: 0;
    z-index: 1001;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--kw-space-4);
    background: #1e293b;
    font-size: var(--kw-font-size-xxs);
    color: #94a3b8;
    gap: var(--kw-space-4);
}

body:has(.admin-bar) .app-header {
    top: 32px;
}

.admin-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.15s;
}

    .admin-bar-link:hover {
        color: var(--kw-text-on-accent);
        text-decoration: none;
    }

.admin-bar-left {
    display: flex;
    align-items: center;
    gap: var(--kw-space-4);
}

.admin-bar-toggle {
    display: flex;
    gap: 1px;
    padding: 1px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--kw-radius-sm);
}

.admin-bar-toggle-btn {
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
}

    .admin-bar-toggle-btn:hover {
        color: #cbd5e1;
    }

    .admin-bar-toggle-btn.active {
        background: rgba(255, 255, 255, 0.15);
        color: var(--kw-text-on-accent);
    }

.admin-bar-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--kw-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

    .admin-bar-edit:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--kw-text-on-accent);
        text-decoration: none;
    }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-img {
    background: var(--kw-surface-1);
    border-radius: var(--kw-radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kw-border);
    overflow: hidden;
}

    .detail-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .detail-img svg {
        width: 50%;
        height: 50%;
        opacity: 0.15;
    }

.detail-img-caption {
    font-size: 10px;
    color: var(--kw-text-muted);
    margin-top: 8px;
    text-align: center;
}

.detail-latin {
    font-size: 14px;
    color: var(--kw-text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.detail-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.detail-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.detail-badge--predator {
    background: rgba(209, 60, 48, 0.1);
    color: var(--kw-red, #D13C30);
}

.detail-badge--family {
    background: var(--kw-brand-light);
    color: var(--kw-brand);
}

.detail-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    margin-bottom: 16px;
}

    .detail-table tr {
        border-bottom: 1px solid var(--kw-border);
    }

        .detail-table tr:last-child {
            border-bottom: none;
        }

    .detail-table td {
        padding: 8px 0;
    }

        .detail-table td:first-child {
            color: var(--kw-text-muted);
            width: 45%;
        }

        .detail-table td:last-child {
            font-weight: 500;
        }

.detail-section-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.detail-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.detail-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--kw-text-secondary);
    line-height: 1.5;
}

.detail-feature-dot {
    color: var(--kw-brand);
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.2;
}

.detail-desc {
    font-size: 13px;
    color: var(--kw-text-secondary);
    line-height: 1.6;
}

    .detail-desc strong {
        color: var(--kw-text);
        font-weight: 600;
    }

.detail-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-section {
    margin-top: 24px;
}

.detail-badge--introduced {
    background: rgba(186, 117, 23, 0.12);
    color: var(--kw-amber);
}

.detail-badge--igo {
    background: rgba(209, 60, 48, 0.1);
    color: var(--kw-red);
}

.detail-comparison {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--kw-surface-1);
    border-radius: var(--kw-radius-md);
}

.detail-comparison-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kw-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-info-item--wide {
    grid-column: 1/-1;
}

.detail-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kw-text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.detail-info-text {
    font-size: 13px;
    color: var(--kw-text-secondary);
    line-height: 1.5;
}

.detail-table--compact {
    margin-top: 16px;
}

.detail-reg-scroll {
    overflow-x: auto;
}

.detail-reg-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    min-width: 440px;
}

    .detail-reg-table th {
        text-align: left;
        padding: 8px 10px;
        color: var(--kw-text-muted);
        font-weight: 500;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 2px solid var(--kw-border);
    }

    .detail-reg-table td {
        padding: 7px 10px;
        border-bottom: 1px solid var(--kw-border);
    }

    .detail-reg-table tr:last-child td {
        border-bottom: none;
    }

    .detail-reg-table td:first-child {
        font-weight: 500;
        white-space: nowrap;
    }

.detail-reg-row--national {
    background: rgba(37, 99, 235, 0.07);
}

    .detail-reg-row--national td:first-child {
        font-weight: 700;
        color: var(--kw-brand);
    }

.detail-reg-diff {
    background: var(--kw-warning-light);
    color: var(--kw-warning);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}


.detail-names-pl {
    background: var(--kw-brand-light);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-md);
    padding: 16px 18px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-names-pl-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kw-brand);
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-names-pl-text {
    font-size: 15px;
    color: var(--kw-text);
    line-height: 1.55;
    font-weight: 500;
}

.detail-names-other-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kw-text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.detail-names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 6px 20px;
    font-size: 13px;
}

.detail-name-lang {
    color: var(--kw-text-muted);
    text-transform: capitalize;
}

.detail-name-lang-pl {
    text-transform: none;
    opacity: 0.75;
}

/* ---- Info pages (about, contact, privacy, terms) ---- */

.info-content {
    line-height: 1.7;
}

.info-section {
    margin-bottom: 28px;
}

    .info-section h2 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--kw-text);
    }

    .info-section p {
        font-size: 14px;
        color: var(--kw-text-secondary);
        margin-bottom: 10px;
    }

    .info-section ul {
        font-size: 14px;
        color: var(--kw-text-secondary);
        padding-left: 20px;
        margin-bottom: 10px;
    }

    .info-section li {
        margin-bottom: 6px;
    }

/* ---- Auth pages (register, login, verify, settings) ---- */

.auth-container {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--kw-surface-1);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-lg);
    padding: 32px;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--kw-text-secondary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--kw-text-secondary);
}

.auth-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--kw-font);
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-md);
    background: var(--kw-bg);
    color: var(--kw-text);
    outline: none;
    transition: border-color 0.15s;
}

    .auth-input:focus {
        border-color: var(--kw-brand);
    }

.auth-hint {
    font-size: 11px;
    color: var(--kw-text-muted);
    line-height: 1.5;
}

.auth-error {
    font-size: 12px;
    color: var(--kw-danger);
}

.auth-field-error {
    font-size: 12px;
    color: var(--kw-danger);
}

.auth-field + .auth-btn {
    margin-top: 8px;
}

.auth-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
    font-family: var(--kw-font);
    font-weight: 600;
    border-radius: var(--kw-radius-md);
    cursor: pointer;
    border: none;
    background: var(--kw-brand);
    color: var(--kw-text-on-accent);
    transition: background 0.15s;
}

    .auth-btn:hover {
        background: var(--kw-brand-hover);
    }

.auth-btn--secondary {
    background: var(--kw-surface-2);
    color: var(--kw-text);
    border: 1px solid var(--kw-border);
    font-weight: 500;
}

    .auth-btn--secondary:hover {
        border-color: var(--kw-border-strong);
        background: var(--kw-surface-2);
    }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 12px;
    color: var(--kw-text-muted);
}

    .auth-divider::before, .auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--kw-border);
    }

.auth-logo {
    text-align: center;
    margin-bottom: 16px;
}

.auth-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.auth-error-box {
    padding: 10px 14px;
    border-radius: var(--kw-radius-md);
    font-size: 13px;
    background: var(--kw-danger-light);
    color: var(--kw-danger);
    margin-bottom: 16px;
    text-align: center;
}

.auth-oauth {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--kw-font);
    font-weight: 500;
    border: 1px solid var(--kw-border);
    border-radius: var(--kw-radius-md);
    background: var(--kw-bg);
    color: var(--kw-text);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

    .auth-oauth-btn:hover {
        border-color: var(--kw-border-strong);
        box-shadow: var(--kw-shadow-sm);
        text-decoration: none;
    }

    .auth-oauth-btn svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

.auth-oauth-btn--facebook svg {
    color: #1877F2;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--kw-text-secondary);
}

    .auth-footer a {
        color: var(--kw-brand);
        font-weight: 500;
    }

.auth-alert {
    padding: 10px 14px;
    border-radius: var(--kw-radius-md);
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-alert--error {
    background: var(--kw-danger-light);
    color: var(--kw-danger);
    border: 1px solid var(--kw-danger);
}

.auth-alert--success {
    background: var(--kw-success-light);
    color: var(--kw-success);
    border: 1px solid var(--kw-success);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--kw-text-secondary);
}

    .auth-check input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--kw-brand);
    }
/* Auth settings page */

.auth-section {
    margin-bottom: 24px;
}

.auth-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--kw-border);
}

    .auth-info-row:last-child {
        border-bottom: none;
    }

.auth-info-label {
    color: var(--kw-text-muted);
    font-size: 13px;
}

.auth-info-value {
    font-weight: 500;
}

.auth-logout-section {
    margin-top: 8px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.auth-link {
    font-size: 13px;
    color: var(--kw-brand);
    text-decoration: none;
    font-weight: 500;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--kw-brand);
    font-family: var(--kw-font);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

    .auth-link-btn:hover {
        text-decoration: underline;
    }

.auth-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--kw-text);
}

.auth-section-title--danger {
    color: var(--kw-danger);
}

.auth-info-value--actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-provider-email {
    font-weight: 400;
    color: var(--kw-text-secondary);
    font-size: 13px;
}

.auth-link-btn--danger {
    color: var(--kw-danger);
}

    .auth-link-btn--danger:hover {
        text-decoration: underline;
    }

.auth-danger-zone {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--kw-border);
}

.auth-danger-text {
    font-size: 13px;
    color: var(--kw-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.auth-btn--danger {
    background: var(--kw-danger);
    color: var(--kw-text-on-accent);
}

    .auth-btn--danger:hover {
        background: #c0392b;
    }

.auth-card--wide {
    max-width: 480px;
}
/* Nav login button */

.app-nav .app-nav-btn {
    font-size: 13px;
    font-family: var(--kw-font);
    color: var(--kw-brand);
    background: var(--kw-brand-light);
    border: none;
    border-radius: var(--kw-radius-sm);
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: filter 0.15s;
}

    .app-nav .app-nav-btn:hover {
        filter: brightness(0.93);
        text-decoration: none;
        color: var(--kw-brand);
    }

.app-nav-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 24px 20px;
    }

    .auth-container {
        padding: 20px 12px;
    }

    .app-nav .app-nav-btn {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

        .app-nav .app-nav-btn:hover {
            background: var(--kw-surface-1);
        }
}

.error-page {
    text-align: center;
    padding: 80px 24px;
    max-width: 520px;
    margin: 0 auto;
}

.error-code {
    font-size: 96px;
    font-weight: 800;
    color: var(--kw-brand);
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.8;
}

.error-page h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--kw-text-secondary);
    margin-bottom: 28px;
}

.error-request-id {
    margin-top: 32px;
    font-size: 12px;
    color: var(--kw-text-secondary);
}

/* Changelog */
.changelog-page { max-width: 780px; margin: 0 auto; padding: 32px 16px 56px; }
    .content-page-header { margin-bottom: 30px; }
    .content-page-header h1 { margin: 6px 0 8px; color: var(--kw-text); font-size: 40px; }
    .content-page-header p { color: var(--kw-text-secondary); line-height: 1.6; }
    .changelog-release { position: relative; padding: 24px; margin-bottom: 18px; border: 1px solid var(--kw-border); border-radius: var(--kw-radius-lg); background: var(--kw-surface-2); }
    .changelog-release h2 { margin: 4px 0 20px; color: var(--kw-text); }
    .changelog-release h3 { margin: 18px 0 6px; color: var(--kw-text); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
    .changelog-release ul { margin: 0; padding-left: 20px; color: var(--kw-text-secondary); line-height: 1.7; }
    .changelog-release-meta { display: flex; justify-content: space-between; align-items: center; color: var(--kw-text-muted); font-size: 12px; }
