/* ========================
   profile
   ======================== */
#markdown .profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#markdown .profile-image {
    flex: 0 0 10rem;
    max-width: 15rem;
}

#markdown .profile-image img {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#markdown .profile-content {
    flex: 1;
}

@media (max-width: 768px) {
    #markdown .profile {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #markdown .profile-content {
        text-align: center;
    }
}

/* ========================
   details
   ======================== */
.details {
    cursor: pointer;
    background-color: var(--color-off);
    padding: 5px 20px 10px 20px;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    border-radius: 30px;
    box-shadow: 0 4px 0 0 var(--color-text);
    margin: 2rem 0 2rem 0;
}

.details.expanded {
    background-color: var(--color-accent);
}

.dark #markdown .details.expanded {
    border: 1px solid var(--color-off) !important;
    box-shadow: 0 4px 0 0 var(--color-off) !important;
}

.dark #markdown .details.expanded .details-content * {
    color: var(--color-text-dark);
}

#markdown .details.expanded .details-content * {
    color: var(--color-text);
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-text {
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    margin-bottom: 1rem;
}

.details-number {
    font-size: 3.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    width: 3.5rem;
    text-align: left;
    margin-right: 2rem;
    line-height: 1;
}

.dark #markdown .details.expanded .details-text,
.dark #markdown .details.expanded .details-number {
    color: var(--color-text-dark) !important;
}

.dark #markdown .details.expanded blockquote {
    background-color: var(--color-off-dark);
    border: 1px solid var(--color-text-dark);
    box-shadow: 0 4px 0 0 var(--color-text-dark);
}

.dark #markdown .details.expanded table {
    color: var(--color-text);
    border: 1px solid var(--color-text-dark);
    box-shadow: 0 4px 0 0 var(--color-text-dark);
}

.dark #markdown .details.expanded th,
.dark #markdown .details.expanded td {
    background-color: var(--color-off-dark);
}

.details-icon {
    display: flex;
    justify-content: center;
    width: 3rem !important;
    height: 3rem !important;
    flex-shrink: 0;
    align-items: center;
    margin: 0.5rem 1rem 0 0 !important;
    color: var(--color-text);
}

.dark .details.expanded .details-icon {
    color: var(--color-text-dark) !important;
}

.details-content {
    margin-top: 1.5rem;
    display: none;
}

#markdown .details.expanded .details-content {
    display: block;
}

#markdown .details.expanded .details-content a {
    text-decoration: underline !important;
}

#markdown .details.expanded .details-content a:hover {
    text-decoration: none !important;
}
