/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
    /* Margin bottom by footer height + 20px for padding */
    margin: 0;
}

@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
}

.footer .text-muted {
    margin: 0 0;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.container .jumbotron, .container-fluid .jumbotron {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 24px;
}

.jumbotron {
    margin: 0 0;
    text-align: center;
    background-color: transparent;
    padding-top: 0;
}

.jumbotron h1 {
    line-height: 1;
    font-weight: bold;
}

#toc > ul {
    padding-inline-start: 0;
}
#toc > ul > li > ul {
    padding-inline-start: 1em;
}

div.qlist.qanda > ol {
    margin-left: 0;
    padding-inline-start: 0;
}

div.qlist.qanda > ol > li {
    list-style: none;
    padding-top: .75em;
}

#forkongithub a{
    background:#000;
    color:#fff;
    text-decoration:none;
    font-family:arial,sans-serif;
    text-align:center;
    font-weight:bold;
    padding:5px 40px;
    font-size:1.25rem;
    line-height:2rem;
    position:relative;
}
#forkongithub a:hover{
    background:#832779;
    color:#fff;
}
#forkongithub a::before,#forkongithub a::after{
    content:"";
    width:100%;
    display:block;
    position:absolute;
    top:1px;
    left:0;
    height:1px;
    background:#fff;
}
#forkongithub a::after{
    bottom:1px;
    top:auto;
}
@media screen and (min-width:992px){
    #forkongithub{
        position:fixed;
        display:block;
        top:0;
        right:0;
        width:200px;
        overflow:hidden;
        height:200px;
        z-index:9999;
    }
    #forkongithub a{
        width:200px;
        position:absolute;
        top:40px;
        right:-50px;
        transform:rotate(45deg);
        -webkit-transform:rotate(45deg);
        -ms-transform:rotate(45deg);
        -moz-transform:rotate(45deg);
        -o-transform:rotate(45deg);
        box-shadow:4px 4px 10px rgba(0,0,0,0.8);
    }
}
@media only screen and (max-width: 991px) {
    #forkongithub {
        display: none;
    }
}

/* Contributor card grid (Active / Emeritus / Wall of Fame on team.html)
-------------------------------------------------- */
.contributor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}

@media (max-width: 480px) {
    .contributor-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.contributor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.contributor-card:hover,
.contributor-card:focus {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #5614b0;
    text-decoration: none;
    transform: translateY(-1px);
}

.contributor-badge {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.contributor-name {
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
    font-size: 1em;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contributor-role {
    flex: 0 0 auto;
    font-size: 0.75em;
    font-weight: 600;
    color: #5614b0;
    border: 1px solid #5614b0;
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: 0.5px;
}

.contributor-role-chair {
    color: #fff;
    background: #f59523;
    border-color: #f59523;
    letter-spacing: 0.3px;
}

.contributor-empty {
    grid-column: 1 / -1;
    color: #777;
    font-style: italic;
    margin: 0;
}

.contributor-legend {
    color: #555;
    font-size: 0.85em;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4em;
    align-items: center;
}

.contributor-legend .contributor-role {
    display: inline-flex;
    align-items: center;
}

.team-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em 1.5em;
    margin: 0 0 1.5em 0;
}

.team-last-updated {
    color: #777;
    font-size: 0.85em;
    margin: 0;
}

.team-last-updated time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #555;
}