/* ==========================================================================
   Single Institution Page Styles
   ========================================================================== */

.institution-detail-page .institution-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- Header --- */
.institution-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.institution-logo {
    flex-shrink: 0;
}

.institution-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

.institution-title-group .entry-title {
    margin: 0 0 0.5rem 0;
    font-size: 2.8em;
    font-weight: 700;
    color: #1d2327;
}

.institution-description {
    font-size: 1.1em;
    line-height: 1.7;
    color: #444;
}
.institution-description p:last-child {
    margin-bottom: 0;
}


/* --- Tab System --- */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 2rem;
}

.tab-link {
    padding: 1rem 1.5rem;
    font-size: 1.1em;
    font-weight: 600;
    color: #50575e;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Overlap the main border */
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-link:hover {
    color: #1d2327;
}

.tab-link.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #1d2327;
}

/* --- Content inside tabs --- */
.author-summaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.institution-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.institution-item-list li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1em;
    transition: background-color 0.2s ease;
}
.institution-item-list li:hover {
    background-color: #f9f9f9;
}

.institution-item-list li:last-child {
    border-bottom: none;
}

.institution-item-list a {
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
}
.institution-item-list a:hover {
    text-decoration: underline;
}

.institution-item-list .item-meta {
    font-size: 0.9em;
    color: #777;
    margin-left: 0.5rem;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

