/* Styles for `ribbons.html`, loaded after `app.css` so the shared tokens and
 * components are already in scope. Rules written the same way in three or
 * more pages belong in `app.css` instead: `tests/test_shared_styles.py`
 * fails when one is copied that far.
 */
.page-header {
    text-align: center;
    padding: 32px 24px 24px;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #d4a54a;
    margin: 0 0 8px;
}
.page-header p { color: #9aa2af; margin: 0; }

.ribbons-search-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 24px 20px;
    max-width: 1280px;
    margin: 0 auto;
}
.ribbons-search-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 220px;
}
.ribbons-search-group label {
    font-size: .78rem;
    color: #9aa2af;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ribbons-search-input {
    background: #12151b;
    border: 1px solid #252a35;
    border-radius: 2px;
    color: #d6d9e0;
    padding: 7px 10px;
    font-size: .88rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.ribbons-search-input:focus { border-color: #d4a54a; }
.member-search-wrap { position: relative; }

.member-cards-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 0 24px 40px;
    max-width: 1280px;
    margin: 0 auto;
}
.member-card {
    background: #12151b;
    border: 1px solid #252a35;
    border-radius: 2px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}
.member-card:hover { background: #181c24; border-color: #d4a54a; }
.member-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #252a35;
}
.member-card-name {
    font-size: .9rem;
    font-weight: 600;
    color: #d6d9e0;
    text-align: center;
    word-break: break-word;
}
.member-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: #6b7280;
    font-size: .88rem;
}
body.light-mode .member-cards-grid { }
body.light-mode .member-card { background: #fff; border-color: #d7dce6; }
body.light-mode .member-card:hover { background: #f8faff; border-color: #4338ca; }
body.light-mode .member-card-name { color: #1f2937; }

.ribbons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    padding: 0 24px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.ribbon-card {
    background: #12151b;
    border: 1px solid #252a35;
    border-radius: 2px;
    padding: 16px;
    transition: border-color .15s, background .15s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.ribbon-card:hover {
    background: #181c24;
    border-color: #d4a54a;
}
.ribbon-card-image {
    display: block;
    width: 100%;
    border-radius: 2px;
    margin-bottom: 12px;
    object-fit: cover;
}
.ribbon-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #d6d9e0;
    margin: 0 0 4px;
}
.ribbon-card-subtitle {
    font-size: .82rem;
    color: #9aa2af;
    margin: 0 0 10px;
}
.ribbon-card-desc {
    font-size: .82rem;
    color: #aeb5c1;
    margin: 0 0 12px;
    line-height: 1.5;
}
.ribbon-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    color: #6b7280;
}

.unofficial-section {
    padding: 0 24px 40px;
    max-width: 1280px;
    margin: 0 auto;
}
.unofficial-section-title {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #4b5563;
    font-family: 'IBM Plex Mono', monospace;
    padding: 10px 0 4px;
    border-bottom: 1px solid #252a35;
    margin-bottom: 12px;
}
.unofficial-alert {
    background: rgba(234,179,8,.08);
    border: 1px solid rgba(234,179,8,.3);
    border-radius: 2px;
    color: #d4a54a;
    padding: 10px 14px;
    font-size: .84rem;
    margin-bottom: 14px;
}
.unofficial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.ribbon-card-unofficial {
    opacity: .75;
    border-style: dashed;
}.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: #6b7280;
    font-size: .88rem;
    display: none;
}

body.light-mode .page-header h1 { color: #4338ca; }
body.light-mode .page-header p { color: #6b7280; }
body.light-mode .ribbons-search-group label { color: #6b7280; }
body.light-mode .ribbons-search-input {
    background: #ffffff;
    border-color: #d7dce6;
    color: #1f2937;
}
body.light-mode .ribbons-search-input:focus { border-color: #4338ca; }
body.light-mode .ribbon-card {
    background: #ffffff;
    border-color: #d7dce6;
}
body.light-mode .ribbon-card:hover {
    background: #f8faff;
    border-color: #4338ca;
}
body.light-mode .ribbon-card-title { color: #1f2937; }
body.light-mode .ribbon-card-subtitle { color: #6b7280; }
body.light-mode .ribbon-card-desc { color: #374151; }
body.light-mode .ribbon-card-footer { color: #6b7280; }
body.light-mode .unofficial-section-title { color: #9ca3af; border-bottom-color: #d7dce6; }
body.light-mode .unofficial-alert {
    background: rgba(234,179,8,.07);
    border-color: rgba(234,179,8,.4);
    color: #92400e;
}
