/* ========================================
   ORGANIZATIONS PAGE LAYOUT
   organizations-layout.css
   ======================================== */

#organizations-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 28px 36px 28px 36px;
    box-sizing: border-box;
}

#org-body {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

/* ========================================
   TOOLBAR (search + count)
   ======================================== */

#org-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

#org-search {
    flex: 1;
    max-width: 320px;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: border-color 0.15s;
}

#org-search:focus {
    border-color: #0000CC;
}

#org-count {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* ========================================
   LIST (left)
   ======================================== */

#org-list {
    flex: 0 0 300px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.org-list-item {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
    background: none;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.1s;
}

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

.org-list-item:hover {
    background: #f8f8f8;
}

.org-list-item.selected {
    background: #f0f0fc;
    border-left-color: #0000CC;
}

.org-list-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.org-list-item.selected .org-list-name {
    color: #0000CC;
}

.org-list-type {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #999;
}

/* ========================================
   DETAIL (right)
   ======================================== */

#org-detail {
    flex: 1;
    overflow-y: auto;
    padding: 28px 36px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #333;
}

.org-name {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.org-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0f0fc;
    color: #0000CC;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.org-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 20px;
    margin: 24px 0;
    font-size: 14px;
}

.org-facts dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    padding-top: 2px;
}

.org-facts dd {
    margin: 0;
}

.org-facts a {
    color: #0000CC;
    text-decoration: none;
}

.org-facts a:hover {
    text-decoration: underline;
}

.org-social {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
}

.org-section {
    margin-top: 24px;
}

.org-section h3 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.org-section p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.6;
}

.org-no-details {
    color: #aaa;
    font-style: italic;
    font-size: 14px;
}

.org-empty {
    padding: 48px;
    text-align: center;
    color: #aaa;
    font-size: 15px;
    font-style: italic;
}

/* ========================================
   ACTIVE NAV LINK
   ======================================== */

#menus a.active-nav {
    color: #0000CC;
    border-bottom: 2px solid #0000CC;
    padding-bottom: 2px;
}
