/*
Ghost CMS extras: Koenig cards, native comments, and
member-related styling that the original Tailwind build
did not cover.
*/

/* Prose images & figures */
.prose img {
    width: 100%;
    height: auto;
}

.prose figure {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.prose figcaption {
    text-align: center;
    color: #A3A3A3;
    font-size: 0.875rem;
    padding-top: 1rem;
}

/* Wide & full width cards */
.prose .kg-width-wide,
.prose .kg-width-full {
    max-width: 100%;
}

/* Code blocks */
.prose pre {
    background-color: #000000;
    color: #A3A3A3;
    border: 1px solid #444444;
    border-radius: 8px;
}

.prose code {
    color: #EABA3F;
    background-color: #2C2C2C;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Horizontal rule */
.prose hr {
    border-color: #444444;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Bookmark card */
.prose .kg-bookmark-card {
    background-color: #2C2C2C;
    border: 1px solid #444444;
    border-radius: 8px;
    overflow: hidden;
}

.prose .kg-bookmark-container {
    display: flex;
    text-decoration: none;
}

.prose .kg-bookmark-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 1.5rem;
}

.prose .kg-bookmark-title {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.prose .kg-bookmark-description {
    color: #A3A3A3;
    font-size: 0.875rem;
    line-height: 1.5;
}

.prose .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    color: #A3A3A3;
    font-size: 0.8rem;
    gap: 0.5rem;
}

.prose .kg-bookmark-thumbnail {
    position: relative;
    min-width: 33%;
}

.prose .kg-bookmark-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .prose .kg-bookmark-container {
        flex-direction: column;
    }
    .prose .kg-bookmark-thumbnail {
        order: -1;
        min-height: 180px;
    }
}

/* Button card */
.prose .kg-card.kg-button-card {
    background-color: #000000;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.prose .kg-btn {
    display: inline-block;
    background-color: #EABA3F;
    color: #17171A;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 9999px;
}

.prose .kg-btn:hover {
    opacity: 0.9;
}

/* Callout card */
.prose .kg-callout-card {
    display: flex;
    background-color: #2C2C2C;
    border-radius: 8px;
    padding: 1.5rem;
    gap: 1rem;
}

.prose .kg-callout-card.kg-callout-card-grey {
    background-color: #2C2C2C;
}

/* File card */
.prose .kg-file-card-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2C2C2C;
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 1.5rem;
}

.prose .kg-file-card-filetitle {
    color: #ffffff;
}

.prose .kg-file-card-filemeta {
    color: #A3A3A3;
    font-size: 0.8rem;
}

/* Gallery card */
.prose .kg-gallery-container {
    display: flex;
    flex-direction: column;
    margin: 2.5rem 0;
}

.prose .kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.prose .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video & embed */
.prose .kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.prose iframe {
    width: 100%;
    border: 0;
}

/* Native comments */
.ghost-comments-root {
    margin-top: 1rem;
}

/* Footer secondary nav fallback */
.link-item ul li:last-child a {
    border-right: 0;
    padding-right: 0;
}
