/* BrightMind Hub — Exam Set Detail
   Page-specific stylesheet. Designed to override the global Hub styles safely. */

.esd-page,
.esd-page * {
    box-sizing: border-box;
}

.esd-page {
    --esd-green: #16803f;
    --esd-green-dark: #0f6330;
    --esd-green-soft: #eef9f2;
    --esd-violet: #6d5ce7;
    --esd-ink: #17251d;
    --esd-muted: #68756d;
    --esd-border: #dfe8e2;
    --esd-bg: #f7faf8;
    --esd-white: #ffffff;
    --esd-shadow: 0 12px 35px rgba(17, 35, 25, .07);
    width: 100%;
    min-height: calc(100vh - 70px);
    background:
        radial-gradient(circle at 82% 4%, rgba(109, 92, 231, .055), transparent 28rem),
        linear-gradient(180deg, #f7faf8 0%, #ffffff 42%);
    color: var(--esd-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.esd-container {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 18px 0 55px;
}

.esd-page a {
    text-decoration: none;
}

.esd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    margin: 0 0 14px;
    color: #78847d;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
}

.esd-breadcrumb a {
    color: var(--esd-green-dark);
    font-weight: 700;
}

.esd-breadcrumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #7a847f;
}

.esd-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 24px;
    padding: 28px 30px;
    border: 1px solid #dce9e0;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(239, 251, 244, .98), rgba(255, 255, 255, .98) 62%),
        #fff;
    box-shadow: 0 10px 32px rgba(16, 56, 34, .055);
    position: relative;
    overflow: hidden;
}

.esd-hero::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -80px;
    top: -110px;
    border-radius: 50%;
    background: rgba(109, 92, 231, .07);
    pointer-events: none;
}

.esd-hero-main {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.esd-kicker-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
}

.esd-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e3f5e9;
    color: var(--esd-green-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.esd-dot {
    color: #a0aaa4;
    font-size: 12px;
}

.esd-hero h1 {
    margin: 0;
    max-width: 760px;
    color: #14251a;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 850;
}

.esd-description {
    max-width: 720px;
    margin: 10px 0 14px;
    color: #65726a;
    font-size: 12.5px;
    line-height: 1.65;
}

.esd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.esd-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid #dfe9e3;
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    color: #65726a;
    font-size: 10px;
    font-weight: 650;
}

.esd-price-card {
    align-self: center;
    position: relative;
    z-index: 1;
    padding: 17px 18px;
    border: 1px solid #d9e8df;
    border-radius: 15px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 24px rgba(16, 56, 34, .055);
    text-align: center;
}

.esd-price-label,
.esd-access-label {
    display: block;
    color: #77847c;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.esd-price-card strong {
    display: block;
    margin: 4px 0 1px;
    color: var(--esd-green-dark);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.esd-price-card small {
    display: block;
    color: #7b877f;
    font-size: 9.5px;
}

.esd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 295px;
    align-items: start;
    gap: 22px;
    margin-top: 22px;
}

.esd-content,
.esd-sidebar {
    min-width: 0;
}

.esd-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 11px;
}

.esd-section-label {
    display: block;
    margin-bottom: 2px;
    color: var(--esd-green);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.esd-section-heading h2 {
    margin: 0;
    color: #18251d;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 820;
    letter-spacing: -.02em;
}

.esd-count {
    color: #758179;
    font-size: 10px;
    font-weight: 700;
}

.esd-subject {
    margin-bottom: 13px;
    border: 1px solid var(--esd-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 45, 30, .035);
    overflow: hidden;
}

.esd-subject-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e7eee9;
    background: #fbfdfb;
}

.esd-subject-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.esd-subject-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--esd-green-soft);
    color: var(--esd-green);
    font-size: 14px;
    font-weight: 900;
}

.esd-subject-title h3 {
    margin: 0;
    color: #1c2921;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.esd-subject-title span {
    display: block;
    margin-top: 2px;
    color: #839087;
    font-size: 9.5px;
}

.esd-subject-tag {
    padding: 4px 7px;
    border-radius: 6px;
    background: #f2f5f3;
    color: #7a857e;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .07em;
}

.esd-paper-list {
    padding: 2px 12px 5px;
}

.esd-paper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 55px;
    padding: 8px 2px;
    border-bottom: 1px solid #edf1ee;
}

.esd-paper:last-child {
    border-bottom: 0;
}

.esd-paper-info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.esd-paper-number {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 29px;
    border: 1px solid #e0e9e3;
    border-radius: 7px;
    background: #f7faf8;
    color: var(--esd-green-dark);
    font-size: 8.5px;
    font-weight: 850;
}

.esd-paper-info > div {
    min-width: 0;
}

.esd-paper-info strong {
    display: block;
    overflow: hidden;
    color: #27342c;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.esd-paper-info small {
    display: block;
    margin-top: 2px;
    color: #8a948e;
    font-size: 9px;
}

.esd-paper-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    flex: 0 0 auto;
}

.esd-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid #dce7df;
    border-radius: 7px;
    background: #fff;
    color: #345140;
    font-size: 8.5px;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.esd-file-btn:hover {
    transform: translateY(-1px);
    border-color: #b9d6c3;
    background: #f6fbf7;
    box-shadow: 0 5px 13px rgba(21, 128, 61, .08);
}

.esd-file-btn span {
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 17px;
    padding: 0 3px;
    border-radius: 4px;
    background: #edf7f0;
    color: var(--esd-green-dark);
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
}

.esd-file-btn em {
    font-style: normal;
}

.esd-file-pdf span {
    background: #fff0f0;
    color: #a43b3b;
}

.esd-file-docx span,
.esd-file-doc span {
    background: #eef4ff;
    color: #315f9d;
}

.esd-locked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9a6a1c;
    font-size: 9.5px;
    font-weight: 750;
}

.esd-unavailable {
    color: #9a7260;
    font-size: 9px;
    font-weight: 700;
}

.esd-purchase {
    position: sticky;
    top: 88px;
    padding: 19px;
    border: 1px solid #dce7df;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--esd-shadow);
}

.esd-purchase h2 {
    margin: 8px 0 5px;
    color: #17251d;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 820;
    letter-spacing: -.02em;
}

.esd-purchase-copy {
    margin: 0;
    color: #748079;
    font-size: 10.5px;
    line-height: 1.6;
}

.esd-big-price {
    margin: 15px 0 13px;
    color: var(--esd-green-dark);
    font-size: 27px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.04em;
}

.esd-big-price small {
    margin-right: 2px;
    color: #6f7c74;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}

.esd-primary,
.esd-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.esd-primary {
    background: var(--esd-green);
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(22, 128, 63, .17);
}

.esd-primary:hover {
    transform: translateY(-1px);
    background: var(--esd-green-dark);
    box-shadow: 0 9px 21px rgba(22, 128, 63, .22);
}

.esd-primary span {
    margin-right: 6px;
    font-size: 13px;
}

.esd-secondary {
    margin-top: 7px;
    border: 1px solid #d9e4dd;
    background: #fff;
    color: var(--esd-green-dark) !important;
}

.esd-secondary:hover {
    background: #f4faf6;
}

.esd-secure,
.esd-access-note {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #edf1ee;
    color: #7b867f;
    font-size: 8.5px;
    line-height: 1.5;
}

.esd-access-note {
    display: block;
}

.esd-granted {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 9px 0 14px;
    padding: 11px;
    border: 1px solid #d7ebdd;
    border-radius: 10px;
    background: #f2fbf5;
}

.esd-check {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #d8f0df;
    color: var(--esd-green-dark);
    font-size: 14px;
    font-weight: 900;
}

.esd-granted h2 {
    margin: 1px 0 3px;
    color: #165e31;
    font-size: 13px;
}

.esd-granted p {
    margin: 0;
    color: #6c7c72;
    font-size: 9px;
    line-height: 1.55;
}

.esd-granted strong {
    color: #365844;
}

.esd-help-card {
    margin-top: 11px;
    padding: 14px 16px;
    border: 1px solid #e3eae5;
    border-radius: 13px;
    background: #fbfdfc;
}

.esd-help-card strong {
    color: #34453b;
    font-size: 10.5px;
}

.esd-help-card ul {
    margin: 8px 0 0;
    padding-left: 16px;
    color: #77827b;
    font-size: 9px;
    line-height: 1.8;
}

.esd-empty {
    padding: 35px 20px;
    border: 1px dashed #d5e2d9;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.esd-empty-icon {
    font-size: 24px;
}

.esd-empty h3 {
    margin: 7px 0 2px;
    font-size: 13px;
}

.esd-empty p {
    margin: 0;
    color: #7a867e;
    font-size: 10px;
}

@media (max-width: 900px) {
    .esd-hero {
        grid-template-columns: 1fr;
    }

    .esd-price-card {
        width: min(245px, 100%);
        justify-self: start;
    }

    .esd-layout {
        grid-template-columns: 1fr;
    }

    .esd-purchase {
        position: static;
    }

    .esd-sidebar {
        order: -1;
    }
}

@media (max-width: 620px) {
    .esd-page {
        font-size: 12px;
    }

    .esd-container {
        width: 94%;
        padding-top: 10px;
    }

    .esd-breadcrumb {
        font-size: 9px;
        margin-bottom: 9px;
    }

    .esd-hero {
        padding: 19px 17px;
        border-radius: 15px;
    }

    .esd-hero h1 {
        font-size: 21px;
    }

    .esd-description {
        font-size: 11px;
    }

    .esd-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .esd-meta span:last-child {
        grid-column: 1 / -1;
    }

    .esd-section-heading h2 {
        font-size: 15px;
    }

    .esd-subject-head {
        padding: 10px 11px;
    }

    .esd-subject-tag {
        display: none;
    }

    .esd-paper {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding: 9px 1px;
    }

    .esd-paper-info {
        width: 100%;
    }

    .esd-paper-info strong {
        white-space: normal;
    }

    .esd-paper-actions {
        width: 100%;
        justify-content: flex-start;
        padding-left: 43px;
    }

    .esd-file-btn {
        min-height: 26px;
    }

    .esd-purchase {
        padding: 16px;
    }
}
