/* ============================================================
   St. Mary's Orthodox School — Result Highlights
   Colours: navy #1a2a5e | gold #c8a84b
   ============================================================ */

:root {
    --rh-navy:    #1a2a5e;
    --rh-navy-dk: #131f47;
    --rh-navy-lt: #eef1f8;
    --rh-gold:    #c8a84b;
    --rh-gold-dk: #a8872e;
    --rh-text:    #2c2c2a;
    --rh-muted:   #5f5e5a;
    --rh-border:  #ddd;
    --rh-radius:  8px;
}

/* ── Layout ──────────────────────────────────────────────── */
.rh-wrap {
    display: flex;
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    align-items: flex-start;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.rh-sidebar {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.rh-sidebar__section {
    margin-bottom: 1.5rem;
}

.rh-sidebar__heading {
    background: var(--rh-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: var(--rh-radius) var(--rh-radius) 0 0;
    margin: 0;
}

.rh-year-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--rh-border);
    border-top: none;
    border-radius: 0 0 var(--rh-radius) var(--rh-radius);
    overflow: hidden;
}

.rh-year-list li + li {
    border-top: 1px solid var(--rh-border);
}

.rh-year-link {
    display: block;
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--rh-navy);
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
}

.rh-year-link:hover {
    background: var(--rh-navy-lt);
    padding-left: 20px;
}

.rh-year-link.is-active {
    background: var(--rh-gold);
    color: var(--rh-navy-dk);
    font-weight: 700;
    padding-left: 20px;
    border-left: 3px solid var(--rh-gold-dk);
}

/* ── Main content ────────────────────────────────────────── */
.rh-main {
    flex: 1;
    min-width: 0;
}

.rh-main__header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 3px solid var(--rh-gold);
    padding-bottom: .6rem;
    margin-bottom: 1.5rem;
}

.rh-main__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--rh-navy);
    margin: 0;
}

.rh-main__year {
    font-size: 13px;
    color: var(--rh-muted);
}

/* ── Sections ────────────────────────────────────────────── */
.rh-section {
    margin-bottom: 2rem;
}

.rh-section__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--rh-gold-dk);
    border-left: 4px solid var(--rh-gold);
    padding-left: 10px;
    margin: 0 0 1rem;
}

/* ── Grids ───────────────────────────────────────────────── */
.rh-grid {
    display: grid;
    gap: 1rem;
}

.rh-grid--toppers {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.rh-grid--achievers {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

/* ── Cards ───────────────────────────────────────────────── */
.rh-card {
    background: #fff;
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    padding: 1rem .75rem;
    text-align: center;
}

.rh-card--topper {
    border-color: var(--rh-gold);
    border-width: 2px;
    background: #fffdf4;
}

.rh-rank {
    display: inline-block;
    background: var(--rh-navy);
    color: var(--rh-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: .6rem;
}

.rh-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rh-gold);
    display: block;
    margin: 0 auto .5rem;
}

.rh-card--topper .rh-photo {
    width: 90px;
    height: 90px;
}

.rh-photo--placeholder {
    background: var(--rh-navy-lt);
    line-height: 72px;
    font-size: 28px;
    color: var(--rh-navy);
}

.rh-card--topper .rh-photo--placeholder {
    line-height: 90px;
}

.rh-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--rh-text);
    margin: 0 0 2px;
}

.rh-pct {
    font-size: 15px;
    font-weight: 700;
    color: var(--rh-navy);
    margin: 0;
}

.rh-card--topper .rh-pct {
    color: var(--rh-gold-dk);
    font-size: 17px;
}

.rh-empty {
    color: var(--rh-muted);
    font-style: italic;
    padding: 2rem 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .rh-wrap {
        flex-direction: column;
    }
    .rh-sidebar {
        width: 100%;
        position: static;
        display: flex;
        gap: 1rem;
    }
    .rh-sidebar__section {
        flex: 1;
        margin-bottom: 0;
    }
}
