/* Artikelvy (post.hbs / page.hbs) */

.post-full {
    padding: 1.5rem 0 3rem;
}

.post-full-header {
    margin-bottom: 1.5rem;
}

.post-full-tag {
    margin-bottom: 0.75rem;
}

.post-full-title {
    font-size: 2rem;
    margin: 0.5rem 0 0.75rem;
}

.post-full-excerpt {
    color: var(--text-secondary);
    font-size: 1.1875rem;
    margin: 0 0 1.25rem;
}

.post-full-byline {
    margin: 0;
}

.post-full-media {
    margin: 0 0 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.post-full-media img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.post-full-media figcaption {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    text-align: center;
    padding: 0.625rem;
    background: var(--bg-surface);
}

/* Artikelns brödtext */

.gh-content {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.gh-content > * + * {
    margin-top: 1.25em;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
    margin-top: 1.75em;
}

.gh-content a {
    color: var(--accent);
    text-decoration: underline;
}

.gh-content blockquote {
    border-left: 3px solid var(--blockquote-border);
    margin: 1.5em 0;
    padding-left: 1em;
    color: var(--text-secondary);
    font-style: italic;
}

.gh-content code {
    background: var(--code-bg);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    padding: 0.15em 0.4em;
    font-size: 0.875em;
}

.gh-content pre {
    background: var(--code-bg);
    border-radius: var(--radius-md);
    padding: 1em;
    overflow-x: auto;
}

.gh-content pre code {
    padding: 0;
    background: none;
}

.gh-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: var(--radius-md);
}

.gh-content figcaption {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    text-align: center;
    margin-top: 0.5em;
}

.gh-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2em 0;
}

/* Responsiva inbäddningar (YouTube m.fl.) */

.kg-embed-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    border-radius: var(--radius-md);
}

/* Breakout-kort från Koenig-editorn (bilder/kort markerade som "wide" eller "full") */

.kg-width-wide {
    width: 100%;
    max-width: 920px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img {
    width: 100%;
}

/* Artikelns sidfot */

.post-full-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.post-full-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Prenumerationsruta */

.subscribe-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.subscribe-box-title {
    margin: 0 0 0.375rem;
    font-size: 1.25rem;
}

.subscribe-box-text {
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.subscribe-form [data-members-success],
.subscribe-form [data-members-error] {
    display: none;
    width: 100%;
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
}

.subscribe-form.success [data-members-success] {
    display: block;
    color: var(--accent);
}

.subscribe-form.error [data-members-error] {
    display: block;
    color: var(--danger);
}

/* Kommentarer */

.post-full-comments {
    margin-top: 2.5rem;
}

/* Mobil */

@media (max-width: 640px) {
    .post-full-title {
        font-size: 1.625rem;
    }

    .post-full-excerpt {
        font-size: 1.0625rem;
    }

    .post-full-footer {
        justify-content: flex-start;
    }
}
