/* Home page */
.home-photo {
    width: 30%;
    border-radius: 50%;
    box-shadow: 2px 2px 5px;
}

/* Hyperlinks */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    padding-top: 1.0em;
}

.sc {
    font-variant: small-caps;
}

/* Containers */
.container {
    display: flex;
}

/* Artifact badges */
.badge-container {
    display: flex;
    align-items: center;
    gap: 0.3em;
    justify-content: left;
    font-size: 1em;
}

.badge {
    height: 2em;
    width: auto;
}

/* Blog post list */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.post-item a {
    text-decoration: none;
    flex: 1;
    /* font-size: 1.2em; */
}

.post-date {
    /* font-size: 1.0em; */
    white-space: nowrap;
}

/* Prism overrides */
pre[class*="language-"] {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5em;
    border: 1px solid #000000;
    font-size: 0.9em;
}

pre[class*="language-"],
code[class*="language-"] {
    font-size: 0.9em;
}

/* Inline code */
:not(pre) > code {
    padding: 0.1em 0.3em;
    border-radius: 1em;
}

/* Navbar */
.sticky-top {
    position: sticky;
    top: 0;
    background-color: inherit; /* or your preferred background */
    z-index: 100; /* ensures it stays above other content */
}

/* Reformat summary menu */
summary {
    /* Standard way (works in Firefox, Chrome, Edge) */
    list-style: none;
}

summary::marker {
    /* Alternative standard way for modern browsers (use content: "" to hide) */
    content: none;
}

summary::-webkit-details-marker {
    /* For Safari */
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    details {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
    
    nav {
        display: flex;
        justify-content: left;
        flex-direction: column;
        gap: 0rem;
        padding: 0;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    details {
        display: none;
    }
    
    .desktop-nav {
        display: block;
    }

    nav {
        display: flex;
        justify-content: center;
        gap: 2rem; /* spacing between nav items */
    }

}

.nav-item{
    font-size: 1.2em;
    padding: 0 0.5rem;
}

/* List */
ul {
    list-style: none;
    padding-left: 0;
}
