/* Kimelfe research area landing page (VIVO /area page body) */

body.area #wrapper-content {
    max-width: 1140px;
}

.kimelfe-area-panel {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(19, 41, 75, 0.06);
    padding: 28px 32px 32px;
    margin: 0.5em 0 1em;
}

.kimelfe-area-breadcrumb {
    font-size: 0.875em;
    color: #6b7280;
    margin: 0 0 1em;
}

.kimelfe-area-breadcrumb a {
    color: #167093;
    text-decoration: none;
}

.kimelfe-area-breadcrumb a:hover,
.kimelfe-area-breadcrumb a:focus {
    text-decoration: underline;
}

.kimelfe-area-page h1 {
    color: #13294b;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75em;
    letter-spacing: -0.01em;
}

.kimelfe-area-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.75em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #e8edf2;
}

.kimelfe-area-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.875em;
    font-weight: 600;
    background: #e8f2f8;
    color: #167093;
}

.kimelfe-area-badge--muted {
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 500;
}

.kimelfe-area-concept-link {
    display: none;
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: 600;
    color: #13294b;
    background: #fff;
    border: 1px solid #c5d3e0;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kimelfe-area-concept-link:hover,
.kimelfe-area-concept-link:focus {
    background: #f4f8fb;
    border-color: #13294b;
    box-shadow: 0 1px 4px rgba(19, 41, 75, 0.1);
    text-decoration: none;
    color: #13294b;
}

.kimelfe-area-loading {
    padding: 3em 0;
    text-align: center;
    color: #6b7280;
    font-size: 1em;
}

.kimelfe-area-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #13294b;
    margin: 0;
}

.kimelfe-area-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1em;
}

.kimelfe-area-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.kimelfe-area-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.kimelfe-area-search input {
    min-width: 240px;
    padding: 8px 12px;
    border: 1px solid #c5d3e0;
    border-radius: 4px;
    font-size: 0.9375em;
    color: #13294b;
    background: #fff;
}

.kimelfe-area-search input:focus {
    outline: none;
    border-color: #13294b;
    box-shadow: 0 0 0 2px rgba(19, 41, 75, 0.12);
}

.kimelfe-area-search-status {
    margin: 0 0 1em;
    font-size: 0.875em;
    color: #6b7280;
}

.kimelfe-area-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1.5em;
    text-align: center;
    color: #6b7280;
    border: 1px dashed #dde3ea;
    border-radius: 5px;
    background: #f8fbfd;
}

.kimelfe-area-investigators {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.kimelfe-area-investigators li {
    margin: 0;
}

.kimelfe-area-investigators a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid #e0e5eb;
    border-radius: 5px;
    background: #fff;
    color: #13294b;
    text-decoration: none;
    line-height: 1.35;
    font-size: 0.9375em;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kimelfe-area-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #6cace4;
    background: #e8f2f8;
}

.kimelfe-area-name {
    flex: 1;
    min-width: 0;
    display: block;
    font-weight: 600;
}

.kimelfe-area-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kimelfe-area-meta {
    display: block;
    font-size: 0.8125em;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.3;
}

.kimelfe-area-investigators a:hover,
.kimelfe-area-investigators a:focus {
    border-color: #13294b;
    background: #f8fbfd;
    box-shadow: 0 3px 10px rgba(19, 41, 75, 0.1);
    text-decoration: none;
    color: #13294b;
}

.kimelfe-area-investigators a:hover .kimelfe-area-photo,
.kimelfe-area-investigators a:focus .kimelfe-area-photo {
    border-color: #13294b;
}

.kimelfe-area-footer {
    margin-top: 2em;
    padding-top: 1.25em;
    border-top: 1px solid #e8edf2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kimelfe-area-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.kimelfe-area-page-label {
    color: #6b7280;
    font-size: 0.9em;
    padding: 0 4px;
}

.kimelfe-area-pagination .btn {
    padding: 7px 16px;
    font-size: 0.875em;
    font-weight: 600;
    color: #13294b;
    background: #fff;
    border: 1px solid #c5d3e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kimelfe-area-pagination .btn:hover,
.kimelfe-area-pagination .btn:focus {
    background: #13294b;
    border-color: #13294b;
    color: #fff;
    box-shadow: 0 2px 6px rgba(19, 41, 75, 0.2);
    outline: none;
}

.kimelfe-area-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.875em;
    font-weight: 600;
    color: #167093;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.kimelfe-area-back a:hover,
.kimelfe-area-back a:focus {
    background: #e8f2f8;
    color: #13294b;
    text-decoration: none;
}

body.area #footer {
    margin-top: 0;
}

.kimelfe-areas-index h1 {
    color: #13294b;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75em;
}

.kimelfe-areas-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25em;
}

.kimelfe-areas-filter {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #c5d3e0;
    background: #fff;
    color: #13294b;
    font-size: 0.875em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.kimelfe-areas-filter:hover,
.kimelfe-areas-filter:focus,
.kimelfe-areas-filter.is-active {
    background: #13294b;
    border-color: #13294b;
    color: #fff;
    outline: none;
}

.kimelfe-areas-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kimelfe-areas-card {
    display: block;
    padding: 16px 18px;
    border: 1px solid #e0e5eb;
    border-radius: 5px;
    background: #fff;
    color: #13294b;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kimelfe-areas-card:hover,
.kimelfe-areas-card:focus {
    border-color: #13294b;
    background: #f8fbfd;
    box-shadow: 0 3px 10px rgba(19, 41, 75, 0.1);
    text-decoration: none;
    color: #13294b;
}

.kimelfe-areas-card-text h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #13294b;
}

.kimelfe-areas-card-meta {
    margin: 0;
    font-size: 0.875em;
    color: #6b7280;
}

.kimelfe-areas-all-link {
    margin: 1em 0 0;
    text-align: right;
    font-size: 0.9375em;
}

.kimelfe-areas-all-link a {
    color: #167093;
    font-weight: 600;
    text-decoration: none;
}

.kimelfe-areas-all-link a:hover,
.kimelfe-areas-all-link a:focus {
    color: #13294b;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .kimelfe-area-investigators {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .kimelfe-area-panel {
        padding: 20px 18px 24px;
    }

    .kimelfe-area-page h1 {
        font-size: 1.5rem;
    }

    .kimelfe-area-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .kimelfe-area-concept-link {
        margin-left: 0;
    }

    .kimelfe-area-investigators {
        grid-template-columns: 1fr;
    }

    .kimelfe-areas-list {
        grid-template-columns: 1fr;
    }

    .kimelfe-area-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
