/*==========================================================
    LOCALLIA SIDEBAR
==========================================================*/
/*----------------------------------------------------------
    FRAMEWORK
----------------------------------------------------------






.locallia-sidebar-footer {
}
*/
/*----------------------------------------------------------
    PANEL
----------------------------------------------------------*/
.locallia-sidebar {

    background: #f7f5f0;
    border: 1px solid #cbb98d;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
    box-shadow:
    0 2px 10px rgba(0,0,0,.08),
    inset 0 1px rgba(255,255,255,.35);
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
.locallia-sidebar-body {

    padding: 0px;
    background: #f7f5f0;
}

/*----------------------------------------------------------
    HEADER
----------------------------------------------------------*/
.locallia-sidebar-header {

    background: linear-gradient(#1b2127,#2a3138);
    color: #f5f2ea;
    border-bottom: 3px solid #d3ad57;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.locallia-sidebar-header-left {

    display: flex;
    align-items: center;
    gap: 10px;

}

.locallia-sidebar-header-right {

    display: flex;
    align-items: baseline;
    gap: 4px;

}

.locallia-sidebar-header-icon {

    width: 18px;
    height: 18px;
    opacity: .75;

}

.locallia-sidebar-header-title {

    font-weight: 600;

}

.locallia-sidebar-header-label {

    font-size: .78rem;
    color: rgba(255,255,255,.70);
    text-transform: uppercase;

}

.locallia-sidebar-header-count {

    font-size: .95rem;
    font-weight: 700;
    color: #d3ad57;

}

.locallia-sidebar-icon {

    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    object-fit: contain;

}
/*----------------------------------------------------------
    BODY
----------------------------------------------------------*/
.people-az-sidebar {
    font-size: 0.95rem;
}
/*----------------------------------------------------------
    A–Z NAVIGATION
----------------------------------------------------------*/
.az-letter {

    margin: 0;
    border: 0;
    border-bottom: 1px solid #ddd8cd;
    border-radius: 0;
    overflow: hidden;
    background: #20201f;
}

.az-letter summary {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 6px 10px;

    background: #2f6ea3;
    color: #ffffff;

    border-radius: 4px;
    margin-bottom: 2px;

    font-weight: 500;
    font-size: 0.90rem;

    cursor: pointer;
    list-style: none;

}

.az-letter summary:hover {
    background: linear-gradient(#3b454f,#2d343b);
}

.az-letter summary::-webkit-details-marker {
    display: none;
}

.az-letter summary::before {
    content: "▶";
    display: inline-block;
    width: 18px;
    transition: transform .2s ease;
}
/* Nice animation */
.az-letter-items {
    overflow: hidden;
}

.az-letter[open] .az-letter-items {
    animation: azExpand .18s ease-out;
}

@keyframes azExpand {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.az-letter[open] summary::before {
    transform: rotate(90deg);
}

.az-letter-items {
    padding: 0;
    background: #f7f5f0;
}

.az-letter-items .views-row {
    margin: 2px 0;
}

/* Better spacing */
.az-letter summary {
    letter-spacing: .04em;
    background: linear-gradient(#303842,#242b31);
}
.letter-count {

    margin-left: auto;
    background: rgba(255,255,255,.18);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 600;
}
/*----------------------------------------------------------
    PERSON LINKS
----------------------------------------------------------*/
.person-nav-item a {

    display: block;
    padding: 8px 12px 8px 20px;
    text-decoration: none;
    color: #2b2b2b;
    background: #f7f5f0;
    border-left: 3px solid transparent;
    border-radius: 3px;
    transition: all .15s ease;
    font-size: .92rem;
}

.person-nav-item a:hover {

    background: rgba(211,173,87,.10);
    border-left-color: #d3ad57;
    color: #3c2d12;
}

.person-nav-item.is-active {
    background: rgba(211,173,87,.14);
    border-left: 3px solid #f4b400;
}

/* Current selected person */
.person-nav-item.is-active a {

    background: rgba(211,173,87,.16);
    color: #3c2d12;
    border-left: 4px solid #d3ad57;
    font-weight: 700;
}

/*----------------------------------------------------------
    ACTIVE ITEM
----------------------------------------------------------*/

/*----------------------------------------------------------
    STICKY BEHAVIOUR
----------------------------------------------------------*/

/*----------------------------------------------------------
    SCROLLBAR
----------------------------------------------------------*/
.sidebar-panel-content {
    max-height: 75vh;
    overflow-y: auto;
    background: rgba(255,255,255,.60);
}

.sidebar-panel-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-panel-content::-webkit-scrollbar-thumb {
    background: #a7b8c8;
    border-radius: 8px;
}

.sidebar-panel-content::-webkit-scrollbar-thumb:hover {
    background: #6d89a3;
}



.layout__region--first .views-element-container {

    position: sticky;
    top: 20px;

    align-self: flex-start;

}
/*----------------------------------------------------------
    RELATED INFORMATION SIDEBAR
----------------------------------------------------------*/


/*----------------------------------------------------------
    RELATED INFORMATION BLOCK
----------------------------------------------------------*/



/*----------------------------------------------------------
    RELATED INFORMATION ROWS
----------------------------------------------------------*/

.locallia-related-row {

    padding: 8px 12px;
    border-bottom: 1px solid #ddd8cd;
}

.locallia-related-row:last-child {

    border-bottom: 0;
}

.locallia-related-row a {

    display: block;
    text-decoration: none;
    color: #2b2b2b;
    transition: all .15s ease;
}

.locallia-related-row a:hover {

    color: #3c2d12;
    padding-left: 6px;
}

.locallia-sidebar-title {

    padding: 10px 14px;
    background: linear-gradient(#303842,#242b31);
    color: #ffffff;
    font-weight: 600;
    font-size: .90rem;
    letter-spacing: .04em;
    border-bottom: 2px solid #d3ad57;
}

.locallia-sidebar-section-title {

    padding: 8px 12px;
    background: linear-gradient(#303842,#242b31);
    color: #ffffff;
    font-weight: 600;
    font-size: .90rem;
    letter-spacing: .04em;
    border-bottom: 2px solid #d3ad57;
    text-decoration: none;
}

.locallia-sidebar-section-title:hover {

    background: linear-gradient(#3b454f,#2d343b);
    color: #ffffff;
}

/*----------------------------------------------------------
    EVA BLOCKS
----------------------------------------------------------*/

.layout__region--third {

    position: sticky;
    top: 20px;
    align-self: flex-start;

}

.layout__region--third .views-element-container {

    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.layout__region--third .views-view {

    margin: 0;
}

.locallia-sidebar-section-title {

    cursor: pointer;
    list-style: none;

}

.locallia-sidebar-section-title::before {

    content: "▶";
    display: inline-block;
    width: 18px;

}

.locallia-sidebar-section-title {

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;

}

.locallia-sidebar-section-name {

    flex: 1;
    display: flex;
    align-items: center;

}

.locallia-sidebar-section-count {

    font-size: .85rem;
    font-weight: 600;
    opacity: .75;

}

/* Sidebar links */
.locallia-sidebar-section .views-field-title a {
    display: block;
    padding: 8px 20px 8px 12px;      /* extra padding on the right */
    text-decoration: none;
    color: #2b2b2b;
    background: #f7f5f0;
    border-right: 3px solid transparent;
    border-radius: 3px;
    transition: all .15s ease;
    font-size: .92rem;
}

.locallia-sidebar-section .views-field-title a:hover {
    
    background: rgba(211,173,87,.10);
    border-right-color: #d3ad57;
    color: #3c2d12;
}

.locallia-sidebar-section .views-field-title a.is-active,
.locallia-sidebar-section .views-field-title a[aria-current="page"] {
    background: rgba(211,173,87,.16);
    color: #3c2d12;
    border-right: 4px solid #d3ad57;
    font-weight: 700;
}

.locallia-sidebar-section {
    margin: 0.2rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.locallia-sidebar-section:first-child {
    margin-top: 0;
}

.locallia-sidebar-section:last-child {
    margin-bottom: 0;
}

/*----------------------------------------------------------
    MOST CONNECTED
----------------------------------------------------------*/
.most-connected-count {

    margin-left: 6px;
    font-weight: 600;
    color: #8a6d1f;

}

/*----------------------------------------------------------
    OCCUPATION BROWSE MENU
----------------------------------------------------------*/
.occupation-group {
    margin: 0;
    border: 0;
    border-bottom: 1px solid #ddd8cd;
    border-radius: 0;
    overflow: hidden;
    background: #20201f;
}

.occupation-group summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(#303842,#242b31);
    color: #ffffff;
    border-radius: 4px;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 0.90rem;
    letter-spacing: .04em;
    cursor: pointer;
    list-style: none;
}

.occupation-group summary:hover {
    background: linear-gradient(#3b454f,#2d343b);
}

.occupation-group summary::-webkit-details-marker {
    display: none;
}

.occupation-group summary::before {
    content: "▶";
    display: inline-block;
    width: 18px;
    transition: transform .2s ease;
}

.occupation-group[open] summary::before {
    transform: rotate(90deg);
}

.occupation-group-items {
    padding: 0;
    background: #f7f5f0;
}

.occupation-item a {
    display: block;
    padding: 8px 12px 8px 20px;
    text-decoration: none;
    color: #2b2b2b;
    background: #f7f5f0;
    border-left: 3px solid transparent;
    border-radius: 3px;
    transition: all .15s ease;
    font-size: .92rem;
}

.occupation-item a:hover {
    background: rgba(211,173,87,.10);
    border-left-color: #d3ad57;
    color: #3c2d12;
}

.occupation-item .letter-count {
    margin-left: auto;
}