/* Page-specific styles for /admission-process-grade-i-to-ix */

.ap-grade-page {
    background: #fff;
}

.ap-grade-kicker {
    margin: 0 0 0.85rem;
    color: #8a6a12;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ap-grade-tagline {
    margin: 0 auto 0.85rem;
    max-width: 36rem;
    color: #171641;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 700;
    line-height: 1.4;
}

.ap-grade-lead {
    max-width: 42rem !important;
}

.ap-grade-shell {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.ap-grade-band {
    background:
        radial-gradient(rgb(23 22 65 / 0.05) 1px, transparent 1.2px),
        #fbf6ed;
    background-size: 16px 16px, auto;
}

.ap-grade-info-panel .schedule-uniform-key__detail {
    margin: 0;
    color: #171641;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.7;
}

.ap-grade-cards,
.ap-grade-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-grade-card,
.ap-grade-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.2rem 1.3rem;
    border: 1px solid #e8e1d7;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 12px 30px rgb(23 22 65 / 0.05);
}

.ap-grade-card__num,
.ap-grade-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: #171641;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.ap-grade-card p,
.ap-grade-step p {
    margin: 0;
    color: #4b4970;
    font-size: 0.98rem;
    line-height: 1.65;
}

.ap-grade-step h3 {
    margin: 0.1rem 0 0.4rem;
    color: #171641;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.ap-grade-notice {
    margin: 0;
    border-left-color: #e9573a;
    color: #171641;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
}

.ap-grade-subjects-table {
    min-width: 28rem;
}

@media (min-width: 900px) {
    .ap-grade-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ap-grade-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-grade-steps .ap-grade-step:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.5rem);
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .ap-grade-shell {
        width: min(100% - 1.5rem, 820px);
    }

    .ap-grade-subjects-table {
        min-width: 22rem;
        font-size: 0.92rem;
    }
}
