/* ── Page reset for scrollable layout ── */
body {
    overflow: auto !important;
    min-height: 100vh;
}

#wrapper {
    position: relative !important;
    min-height: 100vh;
    animation: none !important;
    opacity: 1 !important;
}

#bg {
    position: fixed !important;
    animation: none !important;
}

#overlay {
    position: fixed !important;
    animation: none !important;
    opacity: 1 !important;
}

/* ── Layout ── */
#page {
    position: relative;
    z-index: 10;
    max-width: 860px;
    margin: 0 auto;
    padding: 5em 2em 6em;
    font-size: 1.2em;
}

/* ── Back link ── */
.back-link {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    border-bottom: none !important;
    margin-bottom: 3em;
    transition: color 0.2s ease;
}
.back-link:hover {
    color: #fff;
    border-bottom: none !important;
}
.back-link i {
    margin-right: 0.5em;
}

/* ── Page title ── */
.page-title {
    font-size: 2.8em;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1em;
    margin-bottom: 0.3em;
}

.page-subtitle {
    font-size: 0.95em;
    opacity: 0.6;
    margin-bottom: 3.5em;
    line-height: 1.5em;
}

/* ── Section headers ── */
.section-header {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.2em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cred-section {
    margin-bottom: 3.5em;
}

/* ── Credential item ── */
.cred-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85em 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
}

.cred-item:last-child {
    border-bottom: none;
}

.cred-left {
    flex: 1;
}

.cred-name {
    font-size: 1.2em;
    font-weight: 300;
    line-height: 1.3em;
    color: rgba(255,255,255,0.98);
}

.cred-issuer {
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 0.2em;
}

.cred-tag {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 3px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    margin-left: 1em;
    flex-shrink: 0;
}

.cred-tag.in-progress {
    border-color: rgba(255,200,100,0.6);
    color: rgba(255,200,100,0.9);
}

/* ── Doc preview trigger ── */
.cred-preview-wrap {
    position: relative;
    margin-left: 1.2em;
    flex-shrink: 0;
}

.preview-trigger {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 4px 0;
    border-bottom: none !important;
    transition: color 0.2s ease;
    user-select: none;
    display: inline-block;
}

.preview-trigger i {
    margin-right: 0.4em;
    font-size: 0.85em;
}

.cred-preview-wrap:hover .preview-trigger {
    color: rgba(255,255,255,0.75);
}

/* ── Doc preview popup ── */
.doc-preview {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(10,10,10,0.97);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 1.2em;
    width: 60vw;
    height: 80vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.doc-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 3px;
}

.doc-preview-close {
    position: absolute;
    top: 0.6em;
    right: 0.8em;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    border-bottom: none !important;
    transition: color 0.2s ease;
}
.doc-preview-close:hover {
    color: #fff;
}

/* ── Backdrop ── */
.preview-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.6);
}

/* ── Credly badges ── */
.credly-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: flex-start;
    padding: 0.5em 0;
}

/* ── Continuing ed list ── */
.cont-ed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cont-ed-list li {
    padding: 0.7em 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 1.05em;
    color: rgba(255,255,255,0.88);
    display: flex;
    align-items: baseline;
    gap: 0.8em;
    line-height: 1.4em;
}

.cont-ed-list li:last-child {
    border-bottom: none;
}

.cont-ed-issuer {
    font-size: 0.65em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 7em;
}

.cont-ed-name {
    flex: 1;
}

.cont-ed-view {
    font-size: 0.55rem;
    flex-shrink: 0;
    margin-left: 0.8em;
}

/* ── Footer ── */
.page-footer {
    text-align: center;
    font-size: 0.7em;
    color: rgba(255,255,255,0.3);
    padding-top: 2em;
    border-top: 1px solid rgba(255,255,255,0.08);
}
