.farnost-post-header {
    background-color: var(--brand-1);
    padding: clamp(3rem, 8vw, 5rem) 20px;
    text-align: center;
}

.farnost-post-title {
    color: #fff;
    margin: 0;
}

body.single-post #content,
body.single-agape #content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.farnost-post-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 20px;
}

.farnost-post-featured-image {
    max-width: 100%;
    height: auto;
}

.farnost-post-content .farnost-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 1em 0;
}

.farnost-post-content .farnost-table-scroll table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    margin: 0;
}

.farnost-post-content .farnost-table-scroll th,
.farnost-post-content .farnost-table-scroll td {
    border: 1px solid #dadce0;
    padding: 8px 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.farnost-post-content .farnost-table-scroll th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Mobil: široké tabulky radši scrollovat než rozbít layout */
@media (max-width: 767px) {
    .farnost-post-content .farnost-table-scroll table {
        min-width: max-content;
    }
}

.farnost-post-content .farnost-pdf-embed {
    margin: 1.5em 0;
    border: 1px solid #dadce0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.farnost-pdf-embed__frame {
    display: block;
    width: 100%;
    height: min(75vh, 720px);
    min-height: 420px;
    border: 0;
}

.farnost-pdf-embed__fallback {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    background: #fff;
    border-top: 1px solid #dadce0;
}

.farnost-pdf-embed__button {
    color: inherit;
    text-decoration: underline;
}

/* Mobil: iframe s PDF často prázdný (zejm. iOS) → jen výrazné otevření v native vieweru */
@media (max-width: 767px) {
    .farnost-post-content .farnost-pdf-embed {
        background: #fff;
    }

    .farnost-pdf-embed__frame {
        display: none;
    }

    .farnost-pdf-embed__fallback {
        border-top: 0;
        padding: 1rem;
    }

    .farnost-pdf-embed__button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0.75rem 1.25rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        color: #fff;
        background: #1a1a1a;
        border-radius: 4px;
    }

    .farnost-pdf-embed__button:hover,
    .farnost-pdf-embed__button:focus {
        color: #fff;
        opacity: 0.9;
    }
}
