/* Mendelio Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Shared badges ─────────────────────────────────────── */
.eqs-category-badge,
.eqs-lang-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.eqs-category-badge {
    background: #e8f0fe;
    color: #1a56db;
}

.eqs-lang-badge {
    background: #f3f4f6;
    color: #374151;
}

/* ── Single post ───────────────────────────────────────── */
.eqs-single-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.eqs-single-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.eqs-single-title {
    margin-bottom: 12px;
}

.eqs-single-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eqs-single-date {
    font-size: 13px;
    color: #6b7280;
}

.eqs-isin {
    font-size: 12px;
    color: #374151;
    font-family: monospace;
}

.eqs-single-content {
    line-height: 1.7;
    margin-bottom: 24px;
}

.eqs-single-pdf {
    margin-bottom: 24px;
}

.eqs-pdf-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.eqs-pdf-btn:hover {
    background: #b91c1c;
    color: #fff;
}

.eqs-single-footer,
.eqs-single-disclaimer,
.eqs-single-contact {
    font-size: 13px;
    color: #6b7280;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    line-height: 1.5;
}

.eqs-back-link {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.eqs-back-link a {
    font-size: 14px;
    text-decoration: none;
    color: #1a56db;
}

.eqs-back-link a:hover {
    text-decoration: underline;
}

/* ── News Filter Shortcode ───────────────────────────── */

.mendelio-filter-wrap {
    margin: 0 auto;
    font-family: "Montserrat", Sans-serif;
}

.mendelio-filter-form {
    margin-bottom: 32px;
}

/* ── Row 1: Category toggle buttons ── */
.mendelio-filter-row--categories {
    margin-bottom: 16px;
}

.mendelio-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mendelio-filter-wrap .mendelio-category-btn {
    padding: 11px 24px !important;
    border: 2px solid #6E1047 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #6E1047 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.18s, color 0.18s !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.mendelio-filter-wrap .mendelio-category-btn:hover {
    background: #6E1047 !important;
    color: #ffffff !important;
}

.mendelio-filter-wrap .mendelio-category-btn.is-active {
    background: #6E1047 !important;
    color: #ffffff !important;
    border-color: #6E1047 !important;
}

/* ── Row 2: Year select + actions ── */
.mendelio-filter-row--controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mendelio-filter-wrap .mendelio-filter-row--controls .mendelio-filter-field select {
    padding: 10px 16px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #000000 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    min-width: 140px !important;
    appearance: auto !important;
    box-shadow: none !important;
}

.mendelio-filter-wrap .mendelio-filter-row--controls .mendelio-filter-field select:focus {
    outline: none !important;
    border-color: #6E1047 !important;
    box-shadow: 0 0 0 3px rgba(46, 110, 184, 0.15) !important;
}

.mendelio-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mendelio-filter-wrap .mendelio-filter-btn {
    padding: 10px 32px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: #ffffff !important;
    background: linear-gradient(90deg, #6E1047 0%, #e1e100 100%) !important;
    transition: opacity 0.18s !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.mendelio-filter-wrap .mendelio-filter-btn:hover {
    opacity: 0.88 !important;
}

.mendelio-filter-wrap .mendelio-reset-btn {
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    background: transparent !important;
    color: #69727d !important;
    transition: color 0.18s !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.mendelio-filter-wrap .mendelio-reset-btn:hover {
    color: #000000 !important;
}

/* ── Results ── */
.mendelio-filter-results {
    min-height: 100px;
}

.mendelio-filter-results.mendelio-loading {
    opacity: 0.5;
    pointer-events: none;
}

.mendelio-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.mendelio-news-item {
    border-radius: 15px;
    border: none;
    background: #ffffff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.25s;
}

.mendelio-news-item:hover {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

.mendelio-filter-wrap .mendelio-news-link {
    display: grid !important;
    grid-template-columns: 70% 30% !important;
    align-items: center !important;
    column-gap: 20px !important;
    padding: 2em !important;
    text-decoration: none !important;
    color: inherit !important;
}

.mendelio-news-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mendelio-news-date {
    font-size: 13px;
    color: #777777;
    font-weight: 400;
    margin-top: 8px;
}

.mendelio-news-title {
    font-family: "Montserrat", Sans-serif;
    font-size: 21px;
    font-weight: 400;
    color: #7A7A7A;
    line-height: 1.4;
    transition: color 0.18s;
}

.mendelio-filter-wrap .mendelio-news-item:hover .mendelio-news-title {
    color: #6E1047;
}

.mendelio-filter-wrap .mendelio-news-read-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    height: 40px !important;
    padding: 0 22px !important;
    min-width: 150px !important;
    background: linear-gradient(90deg, #6E1047 19%, #E1E100 100%) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    font-family: "Montserrat", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
    box-shadow: none !important;
}

.mendelio-filter-wrap .mendelio-news-item:hover .mendelio-news-read-more {
    opacity: 0.85 !important;
}

.mendelio-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--darwin-muted);
    font-size: 15px;
}

.mendelio-error {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
}

/* ── Pagination ── */
.mendelio-filter-pagination {
    text-align: center;
    margin-top: 28px;
}

.mendelio-filter-wrap .mendelio-load-more {
    padding: 12px 36px !important;
    background: linear-gradient(90deg, #6E1047 0%, #e1e100 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: opacity 0.18s !important;
    box-shadow: none !important;
}

.mendelio-filter-wrap .mendelio-load-more:hover {
    opacity: 0.88 !important;
}

.mendelio-filter-wrap .mendelio-load-more:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .mendelio-category-btn {
        padding: 7px 15px;
        font-size: 13px;
    }

    .mendelio-filter-row--controls {
        flex-direction: column;
        align-items: stretch;
    }

    .mendelio-filter-row--controls .mendelio-filter-field,
    .mendelio-filter-row--controls .mendelio-filter-field select {
        width: 100%;
    }

    .mendelio-filter-actions {
        width: 100%;
    }

    .mendelio-filter-btn {
        flex: 1;
    }

    .mendelio-filter-wrap .mendelio-news-link {
        grid-template-columns: 1fr !important;
        row-gap: 20px !important;
        padding: 24px 20px !important;
    }

    .mendelio-filter-wrap .mendelio-news-read-more {
        justify-self: flex-start !important;
    }
}
