/* ============================================================
   Event Certificates — Public (frontend) styles
   ============================================================ */

.ec-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Форма поиска ── */
.ec-form {
    margin-bottom: 14px;
}

.ec-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.ec-input {
    flex: 1 1 220px;
    padding: 9px 13px;
    font-size: 1rem;
    line-height: 1.4;
    height: 44px;           /* фиксированная высота — не растягивается вертикально */
    box-sizing: border-box;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    /* Сбрасываем нативный стиль поля search в WebKit */
    -webkit-appearance: none;
    appearance: none;
}

.ec-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, .2);
}

/* ── Кнопки ── */
.ec-btn {
    padding: 9px 18px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
    transition: background .15s, border-color .15s;
}

.ec-btn-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.ec-btn-primary:hover,
.ec-btn-primary:focus {
    background: #135e96;
    border-color: #135e96;
}

.ec-btn-secondary {
    background: #f6f7f7;
    color: #1d2327;
    border-color: #c3c4c7;
}

.ec-btn-secondary:hover,
.ec-btn-secondary:focus {
    background: #e9e9e9;
}

/* ── Строка статуса ── */
.ec-status {
    min-height: 1.4em;
    font-size: .9rem;
    margin-bottom: 8px;
}

.ec-status--info    { color: #2271b1; }
.ec-status--warning { color: #996800; }
.ec-status--error   { color: #d63638; }

/* ── Список результатов ── */
.ec-results {
    margin-top: 4px;
}

.ec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.ec-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-bottom: 1px solid #ececec;
    font-size: .95rem;
}

.ec-item:last-child {
    border-bottom: none;
}

.ec-item:nth-child(even) {
    background: #f9f9f9;
}

/* ФИО — основная ссылка для скачивания */
.ec-name {
    font-weight: 700;
    text-decoration: none;
    color: #2271b1;
    transition: color .15s;
}

.ec-name:hover,
.ec-name:focus {
    color: #135e96;
    text-decoration: underline;
}

/* После ФИО — разделитель */
.ec-name::after {
    content: ' —';
    font-weight: 400;
    color: #787c82;
    margin-left: 2px;
}

.ec-event {
    flex: 1 1 auto;
    color: #1d2327;
}

.ec-date {
    color: #787c82;
    font-size: .85rem;
    white-space: nowrap;
}

/* ── Адаптив ── */
@media (max-width: 480px) {
    .ec-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ec-input {
        width: 100%;
        height: 44px !important; /* переопределяем любые стили темы */
        max-height: 44px;
    }
    .ec-btn {
        width: 100%;
        text-align: center;
        height: 44px;
    }
}
