/* Tampilan materi siswa A326 — mengikuti referensi testtampilan.oneapp.dev.
   Seluruh ikon inline SVG: tidak ada font/gambar eksternal dan tidak ada request tambahan. */
#student-class-materials-isi.kartu-siswa {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.sp-material-catalog {
    container-type: inline-size;
    --material-primary: #315fc4;
    --material-text: #1d2b44;
    --material-muted: #7d899d;
    --material-border: #e6ebf3;
    color: var(--material-text);
    width: 100%;
}
.sp-material-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}
.sp-material-heading h2 {
    margin: 3px 0 7px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.035em;
}
.sp-material-eyebrow {
    margin: 0;
    color: var(--material-primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.sp-material-lead {
    max-width: 590px;
    margin: 0;
    color: var(--material-muted);
    font-size: .92rem;
    line-height: 1.6;
}
.sp-material-search {
    width: 280px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    flex: 0 0 auto;
    border: 1px solid var(--material-border);
    border-radius: 10px;
    background: #fff;
    color: #9aa5b6;
}
.sp-material-search:focus-within {
    border-color: var(--material-primary);
    box-shadow: 0 0 0 3px rgba(49, 95, 196, .12);
}
.sp-material-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--material-text);
    font: inherit;
    font-size: .85rem;
}
.sp-material-search-icon { font-size: 1.25rem; line-height: 1; }
.sp-material-breadcrumb,
.sp-material-back {
    margin: 0 0 18px;
    color: #718096;
    font-size: .8rem;
    font-weight: 800;
}
.sp-material-back {
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--material-primary);
    cursor: pointer;
}
.sp-material-folder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.sp-material-folder-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--material-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(39, 62, 100, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}
.sp-material-folder-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(39, 62, 100, .10);
}
.sp-material-folder-card-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}
.sp-material-folder-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #edf3ff;
    color: var(--material-primary);
}
.sp-material-folder-svg { width: 28px; height: 28px; }
.sp-material-folder-copy { min-width: 0; flex: 1; }
.sp-material-folder-copy h3 {
    margin: 1px 0 5px;
    color: var(--material-text);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 900;
}
.sp-material-folder-copy p {
    min-height: 40px;
    margin: 0;
    color: var(--material-muted);
    font-size: .78rem;
    line-height: 1.55;
}
.sp-material-folder-meta,
.sp-material-facts,
.sp-material-reading {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    color: #8b96a8;
    font-size: .7rem;
    font-weight: 800;
}
.sp-material-folder-meta span,
.sp-material-facts span,
.sp-material-reading span { white-space: nowrap; }
.sp-material-folder-open {
    width: 100%;
    min-height: 40px;
    margin-top: auto;
    border: 0;
    border-radius: 8px;
    background: var(--material-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
}
.sp-material-folder-card.is-locked {
    border-color: #f3d6a6;
    background: #fffbeb;
    box-shadow: none;
}
.sp-material-folder-card.is-locked:hover { transform: none; box-shadow: none; }
.sp-material-folder-card.is-locked .sp-material-folder-icon {
    background: #fef3c7;
    color: #b45309;
}
.sp-material-folder-lock-label { color: #a16207; }
.sp-material-folder-open:disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}
.sp-material-detail-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.sp-material-concept {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #dfe8fb;
    border-radius: 12px;
    background: #f4f7ff;
    color: #334d86;
}
.sp-material-concept summary {
    cursor: pointer;
    font-size: .82rem;
    font-weight: 900;
}
.sp-material-concept ol {
    margin: 12px 0 0;
    padding-left: 22px;
    font-size: .8rem;
    line-height: 1.7;
}
.sp-material-subheading {
    margin: 22px 0 11px;
    color: var(--material-text);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.sp-material-folder-grid-sub { margin-bottom: 20px; }
.sp-material-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.sp-material-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--material-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(39, 62, 100, .045);
}
.sp-material-book-icon {
    width: 76px;
    height: 84px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #edf3ff;
    color: var(--material-primary);
}
.sp-material-book-icon svg { width: 35px; height: 35px; }
.sp-material-card-info { min-width: 0; flex: 1; }
.sp-material-card-category {
    margin: 0 0 5px;
    color: var(--material-primary);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sp-material-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.sp-material-title-row h3 {
    margin: 0;
    color: var(--material-text);
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 900;
}
.sp-material-description {
    margin: 6px 0 0;
    color: var(--material-muted);
    font-size: .8rem;
    line-height: 1.55;
}
.sp-material-reading {
    margin-top: 7px;
    color: #718096;
}
.sp-material-warning { color: #b45309; }
.sp-material-prerequisite {
    margin-top: 11px;
    padding: 7px 10px;
    border: 1px solid #d6e2fb;
    border-radius: 7px;
    background: #f4f7ff;
    color: var(--material-primary);
    font-size: .72rem;
    font-weight: 900;
    cursor: pointer;
}
.sp-material-actions {
    min-width: 154px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
}
.sp-material-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    box-shadow: 0 4px 10px rgba(39, 62, 100, .08);
    font: inherit;
    font-size: .73rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.sp-material-action-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sp-material-action-read {
    border-color: #315fc4;
    background: #315fc4;
    color: #fff;
}
.sp-material-action-download {
    border-color: #e7bd60;
    background: #fffaf0;
    color: #8a5700;
}
.sp-material-action-done {
    border-color: #278653;
    background: #278653;
    color: #fff;
}
.sp-material-action:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 15px rgba(39, 62, 100, .14);
}
.sp-material-action:focus-visible {
    outline: 3px solid rgba(49, 95, 196, .2);
    outline-offset: 2px;
}
.sp-material-action:disabled {
    border-color: #bfe3cb;
    background: #e9f8ef;
    color: #207744;
    box-shadow: none;
    cursor: default;
}
.sp-material-empty {
    padding: 28px;
    border: 1px dashed #d9e0eb;
    border-radius: 14px;
    background: rgba(255, 255, 255, .7);
    color: var(--material-muted);
    text-align: center;
    font-size: .85rem;
    font-weight: 800;
}
.sp-material-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(29, 43, 68, .45);
}
.sp-material-modal-card {
    position: relative;
    width: min(440px, 100%);
    max-height: min(680px, calc(100dvh - 40px));
    overflow-y: auto;
    padding: 24px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(19, 31, 55, .25);
}
.sp-material-modal-card h3 {
    margin: 4px 35px 8px 0;
    color: var(--material-text);
    font-size: 1.2rem;
    font-weight: 900;
}
.sp-material-modal-lead {
    margin: 0 0 16px;
    color: var(--material-muted);
    font-size: .8rem;
    line-height: 1.55;
}
.sp-material-modal-close {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f4f8;
    color: #657086;
    font-size: 1.35rem;
    cursor: pointer;
}
.sp-material-prerequisite-list {
    display: grid;
    gap: 9px;
}
.sp-material-prerequisite-list > div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid #f0dba9;
    border-radius: 9px;
    background: #fff9ec;
}
.sp-material-prerequisite-list > div.is-ready {
    border-color: #c8ead4;
    background: #effaf3;
}
.sp-material-prerequisite-list strong {
    color: var(--material-text);
    font-size: .82rem;
}
.sp-material-prerequisite-list span {
    color: var(--material-muted);
    font-size: .73rem;
    line-height: 1.45;
}

@container (max-width: 900px) {
    .sp-material-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 620px) {
    .sp-material-heading { align-items: stretch; flex-direction: column; gap: 16px; }
    .sp-material-search { width: 100%; }
    .sp-material-card { flex-direction: column; gap: 15px; }
    .sp-material-actions {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@container (max-width: 460px) {
    .sp-material-folder-grid,
    .sp-material-actions { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .sp-material-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .sp-material-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }
    .sp-material-search { width: 100%; }
    .sp-material-card { flex-direction: column; gap: 15px; }
    .sp-material-book-icon { width: 58px; height: 58px; flex-basis: 58px; }
    .sp-material-book-icon svg { width: 27px; height: 27px; }
    .sp-material-actions {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .sp-material-folder-grid { grid-template-columns: 1fr; }
    .sp-material-folder-card,
    .sp-material-card { padding: 17px; }
    .sp-material-detail-title { align-items: flex-start; }
    .sp-material-folder-detail-heading .sp-material-folder-icon { width: 48px; height: 48px; flex-basis: 48px; }
    .sp-material-title-row { align-items: flex-start; flex-direction: column; }
    .sp-material-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-material-folder-card,
    .sp-material-action { transition: none; }
    .sp-material-folder-card:hover,
    .sp-material-action:not(:disabled):hover { transform: none; }
}
