/* Critical CSS is now inlined in the HTML head */
/* This file contains non-critical styles that load after page render */

/* Non-critical styles - these load after page render */

img {
    max-width: 95%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Headers already have critical styles inlined */

pre {
    font-family: monospace;
    font-size: 1rem;
    background-color: #333;
    color: #f8f8f2;
    padding: 0.6rem 0.2rem;
    border-radius: 0.2rem;
    overflow-x: auto;
    max-width: 90%;
    margin: 0 auto;
}

code {
    font-family: monospace;
    font-size: 0.8rem;
    background-color: #333;
    color: #f8f8f2;
    padding: 0.2rem 0.3rem 0.3rem;
    border-radius: 0.2rem;
}

p > code,
li > code,
dd > code,
td > code {
    background-color: #333;
    word-wrap: break-word;
    box-decoration-break: clone;
    padding: 0.1rem 0.3rem 0.2rem;
    border-radius: 0.2rem;
}

section a[target="_blank"]:after {
    content: "⤴ ";
    /* Unicode for right arrow */
    font-size: 0.8em;
    /* Adjust the size as needed */
    margin-left: 5px;
    /* Add some space between text and arrow */
    color: inherit;
    /* Ensure the arrow matches the link color */
}

/* Title styles already inlined */

summary:hover {
    text-color: #f8f8f2;
}

summary::marker {
    content: "";
}

/* Additional UFO Theme Styling for Mysteries Pages */
body.mysteries-theme pre {
    background-color: #001100;
    color: var(--ufo-text);
    border: 1px solid var(--ufo-highlight);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

body.mysteries-theme code {
    background-color: #001100;
    color: var(--ufo-text);
    border: 1px solid var(--ufo-highlight);
}

body.mysteries-theme p > code,
body.mysteries-theme li > code,
body.mysteries-theme dd > code,
body.mysteries-theme td > code {
    background-color: #001100;
    color: var(--ufo-text);
    border: 1px solid var(--ufo-highlight);
}

/* UFO theme external link arrows */
body.mysteries-theme section a[target="_blank"]:after {
    content: "🛸 ";
    color: var(--ufo-highlight);
}

/* UFO theme list styling enhancement */
body.mysteries-theme li {
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.2);
}
