/* GEM - THE ROSTER PAGE (roster_main_body.html): the Active Characters page and the native roster's list, one design.
   This is the page's own CSS exactly as it was in the template's inline <style>, moved into a file; the menu's rules are in gem_roster_nav.css. The search box and the
   running total (at the end) are new. Your theme's own variables (--gold-border, --post-bg ...) do the colouring; the second value is a fallback. */
    #roster-list { display: flex; flex-wrap: wrap; justify-content: center; }
    .forum-header { display: block; }

    #roster-page-title {
        font-weight: normal; margin: 0.8em 0 0.2em 0; text-align: center;
        font-family: var(--darcy); font-size: 35px; color: var(--gold-text);
    }

    #content-container .memberwrap, #content-container .wantedwrap { display: block !important; }
    .memberinfo-avatar .inner img { border-radius: 100%; width: 68px !important; height: 68px !important; }
    .wantedwrap { margin-right: 20px; }
    .member-links { position: absolute; right: -26px; bottom: 50px; z-index: 1;}
    .member-links ul { list-style: none; }
    .member-links ul li { padding: 3px; }
    .member-flourishbottom { bottom: 5px; }


.roster-list-wrap {
    position: relative;
    overflow: hidden; 
    min-height: 600px;
}


.sidepanel  {
    width: 250px;
    position: absolute;
    z-index: 10;
    height: 100%;
    top: 0;
    left: -252px;
    background-color: #111;
    transition: left 0.5s ease;
    will-change: left;
    border-right: 2px solid var(--gold-border);
    border-bottom: 2px solid var(--gold-border);
}

.sidepanel a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidepanel a:hover {
  color: #f1f1f1;
}

.sidepanel .closebtn {
  position: absolute;
  top: -10px;
  right: -5px;
  font-size: 36px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: var(--gold-border);
  color: #000;
  padding: 10px 15px;
  border: none;
  transform: rotate(-90deg);
  border-radius: 0 0 20px 20px;
  margin-left: -46px;
}

.openbtn:hover {
  background-color:#444;
}

.sidepanel h3 {
    text-align: center;
    font-family: var(--eaves-allsmall);
    padding: 10px 10px 0 10px;
    text-transform: lowercase;
    font-size: 25px;
    font-weight: 500;
    color: var(--light-taupe);
}

.accordion-toggle {
    display: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.filter-content {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.5s ease-in-out;
    background: rgba(0,0,0,0.05);
}

.accordion-toggle:checked ~ .filter-content {
    max-height: 300px; 
}

.accordion-toggle:checked ~ .accordion-header i {
    transform: rotate(180deg);
}

.filter-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    color: #eee;
    font-family: var(--source);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 700;
}

.filter-icon {
    display: inline-block; /* Required for rotation to work properly */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gold-text);
}

.accordion-toggle:checked ~ .accordion-header .filter-icon {
    transform: rotate(180deg);
}

#clear-all-filters {
    width: 100%;
    text-align: center;
    background-color: var(--gold-border);
    color: #000;
    font-family: var(--source);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 0;
    padding: 10px;
}

.filter-item label {
    padding-left: 10px;
}

.filter-group.namesort {
    text-align: center;
}

.accordion-item.genderblock {
    border-top: 1px solid var(--post-text);
    margin-top: 3px;
}

button.sort-header {
    font-family: var(--eaves-allpetite);
    font-size: 22px;
    padding: 5px 10px;
    display: block;
    margin: 0 auto;
}

button.sort-header.surname {
    border-top: 1px solid rgba(255,255,255,0.2);
}

button.sort-header .iconify {
    font-size: 12px;
}

/* ---- the search box and the total ------------------------------------------------------------------------------------------------------------------ */
.roster-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.6rem; margin: .4rem 0 1.1rem; padding: 0 1rem; }
.roster-search { display: flex; gap: 6px; align-items: stretch; max-width: 100%; }
.roster-search input[type="search"] { box-sizing: border-box; width: 24rem; max-width: 100%; padding: 8px 12px; border: 1px solid var(--gold-border, #b9a26a); background-color: var(--post-bg, #120d0f); color: var(--post-text, #e9d19c); font-family: var(--source, inherit); font-size: 14px; }
.roster-search input[type="search"]::placeholder { color: var(--post-text, #e9d19c); opacity: .65; }
.roster-search input[type="search"]:focus-visible { outline: 2px solid var(--gold-text, #e9d19c); outline-offset: 1px; }
.roster-search-btn { padding: 8px 16px; border: 0; background-color: var(--gold-border, #b9a26a); color: #000; font-family: var(--source, inherit); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.roster-search-btn:focus-visible { outline: 2px solid var(--gold-text, #e9d19c); outline-offset: 2px; }
.roster-count { margin: 0; font-family: var(--source, inherit); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-text, #e9d19c); }
.roster-showall { margin-left: .8rem; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.roster-empty { width: 100%; margin: 0; padding: 2.5rem 1rem; text-align: center; font-style: italic; }
.roster-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .roster-search { width: 100%; } .roster-search input[type="search"] { flex: 1 1 auto; width: auto; min-width: 0; } }
