.article-search-section {
    margin-bottom: 2rem;
}

.article-search-shell {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.75rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    padding: 1.15rem;
}

.article-search-eyebrow {
    margin-bottom: 0.35rem;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.article-search-title {
    margin: 0 0 0.4rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.article-search-copy {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.article-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
}

.article-search-field {
    min-width: 0;
}

.article-search-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
}

.article-search-input-wrap {
    position: relative;
}

.article-search-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-size: 0.98rem;
    line-height: 1.4;
    padding: 0.9rem 1rem;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.article-search-input::placeholder {
    color: #94a3b8;
}

.article-search-input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.article-search-hint {
    margin: 0.55rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}

.article-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f766e, #0f9a8d);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    min-height: 3.1rem;
    padding: 0.95rem 1.2rem;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.article-search-button:hover,
.article-search-button:focus-visible {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.article-search-button:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.22);
    outline-offset: 2px;
}

.article-search-results {
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.article-search-results[hidden] {
    display: none;
}

.article-search-results-head {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.85rem 1rem;
}

.article-search-result {
    display: block;
    border-bottom: 1px solid #eef2f7;
    color: inherit;
    padding: 0.95rem 1rem;
    text-decoration: none;
    transition:
        background-color 140ms ease,
        transform 140ms ease;
}

.article-search-result:last-child {
    border-bottom: 0;
}

.article-search-result:hover,
.article-search-result:focus-visible {
    background: #f8fafc;
}

.article-search-result:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.18);
    outline-offset: -3px;
}

.article-search-result-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
}

.article-search-result-title {
    display: block;
    color: #0f172a;
    font-size: 0.97rem;
    font-weight: 800;
    line-height: 1.45;
}

.article-search-result-copy {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.55;
}

.article-search-result-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #ccfbf1;
    color: #115e59;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
}

.article-search-empty {
    padding: 1rem;
}

.article-search-empty p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-search-empty a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .article-search-shell {
        border-radius: 1.4rem;
        padding: 1rem;
    }

    .article-search-title {
        font-size: 1.02rem;
    }

    .article-search-form {
        grid-template-columns: 1fr;
    }

    .article-search-button {
        width: 100%;
    }

    .article-search-result-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-search-result-badge {
        align-self: flex-start;
    }
}
