/* SKYLIGHT – detail článku. Vložte za ostatní vlastní CSS. */
body.type-post #content .news-item-detail {
    --article-blue: #245ba5;
    --article-ink: #24242e;
    --article-copy: #454e59;
    --article-muted: #626b76;
    --article-soft: #f3f6fa;
    --article-line: #dfe5eb;
    width: 100%;
    max-width: 1120px;
    min-width: 0;
    margin: 0 auto 64px;
}

/* Základ funguje i bez JS. Skript pouze sestaví společné hero. */
body.type-post #content .news-item-detail > h1,
body.type-post #content .news-item-detail .sl-article-hero h1 {
    margin: 0 0 20px;
    color: var(--article-ink);
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
}
body.type-post #content .news-item-detail > time,
body.type-post #content .news-item-detail .sl-article-hero time {
    display: block;
    margin: 0 0 20px;
    color: var(--article-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
body.type-post #content .news-item-detail .sl-article-hero {
    margin: 0 0 52px;
    padding: 0;
    border-radius: 0;
    background: var(--article-soft);
}
body.type-post #content .news-item-detail .sl-article-hero__intro {
    padding: clamp(24px, 4vw, 48px);
    border-top: 4px solid var(--article-blue);
}
body.type-post #content .news-item-detail .sl-article-hero time {
    margin-bottom: 16px;
    color: var(--article-blue);
}
body.type-post #content .news-item-detail .sl-article-hero time::before,
body.type-post #content .news-item-detail .sl-article-hero time::after {
    content: none;
}
body.type-post #content .news-item-detail .sl-article-lead {
    max-width: 850px;
    margin: 0;
    color: var(--article-copy);
    font-size: clamp(18px, 1.6vw, 20px);
    line-height: 1.75;
    text-align: left;
}
body.type-post #content .news-item-detail .sl-article-hero__media {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}
body.type-post #content .news-item-detail .sl-article-hero__media :is(a, picture) {
    display: block;
}
body.type-post #content .news-item-detail .sl-article-hero__media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    border-radius: 0;
}
body.type-post #content .news-item-detail .sl-article-hero__media figcaption {
    padding: 12px 24px;
    color: var(--article-muted);
    font-size: 14px;
    text-align: center;
}

/* Čtecí sloupec – bez zásahu do zápatí nebo hodnocení obchodu */
body.type-post #content .news-item-detail > .text {
    float: none;
    width: 100%;
    max-width: 760px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    color: var(--article-copy);
    font-size: 18px;
    line-height: 1.85;
    text-align: left;
    overflow-wrap: break-word;
}
body.type-post #content .news-item-detail > .text > :first-child {
    margin-top: 0;
}
body.type-post #content .news-item-detail > .text p {
    margin: 0 0 24px;
    font-size: inherit;
    line-height: inherit;
}
body.type-post #content .news-item-detail :is(.text, .sl-article-lead) :is(strong, b) {
    color: var(--article-ink);
    font-weight: 800;
}
body.type-post #content .news-item-detail :is(.text, .sl-article-lead) a {
    color: var(--article-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}
body.type-post #content .news-item-detail :is(.text, .sl-article-lead) a:hover {
    color: #173e73;
    text-decoration-thickness: 2px;
}
body.type-post #content .news-item-detail a:focus-visible {
    outline: 3px solid var(--article-blue);
    outline-offset: 4px;
}
body.type-post #content .news-item-detail .text :is(h1, h2, h3, h4, h5, h6) {
    color: var(--article-ink);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.015em;
    scroll-margin-top: 110px;
}
body.type-post #content .news-item-detail .text :is(h1, h2) {
    margin: 52px 0 20px;
    font-size: clamp(26px, 2.4vw, 32px);
}
body.type-post #content .news-item-detail .text h3 {
    margin: 36px 0 16px;
    font-size: clamp(22px, 2vw, 25px);
}
body.type-post #content .news-item-detail .text :is(h4, h5, h6) {
    margin: 28px 0 12px;
    font-size: 20px;
}

/* Odrážky i seznamy s odstavci z běžného editoru */
body.type-post #content .news-item-detail .text :is(ul, ol) {
    margin: 0 0 28px;
    padding: 0 0 0 28px;
    list-style-position: outside;
}
body.type-post #content .news-item-detail .text ul {
    list-style-type: square;
}
body.type-post #content .news-item-detail .text ol {
    list-style-type: decimal;
}
body.type-post #content .news-item-detail .text li {
    display: list-item;
    margin: 0 0 12px;
    padding: 0 0 0 6px;
    font-size: inherit;
    line-height: inherit;
}
body.type-post #content .news-item-detail .text li::before {
    content: none;
}
body.type-post #content .news-item-detail .text li::marker {
    color: var(--article-blue);
    font-weight: 800;
}
body.type-post #content .news-item-detail .text li > p {
    margin-bottom: 8px;
}
body.type-post #content .news-item-detail .text li > :last-child {
    margin-bottom: 0;
}
body.type-post #content .news-item-detail .text li :is(ul, ol) {
    margin-top: 12px;
}

/* Citace */
body.type-post #content .news-item-detail .text blockquote {
    position: relative;
    margin: 36px 0;
    padding: 28px 32px;
    border: 0;
    border-left: 4px solid var(--article-blue);
    border-radius: 0;
    background: var(--article-soft);
    color: var(--article-ink);
    font-size: 20px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.7;
    text-align: left;
    box-shadow: none;
}
body.type-post #content .news-item-detail .text blockquote::before,
body.type-post #content .news-item-detail .text blockquote::after {
    content: none;
}
body.type-post #content .news-item-detail .text blockquote > :last-child {
    margin-bottom: 0;
}
body.type-post #content .news-item-detail .text blockquote cite {
    display: block;
    margin-top: 16px;
    color: var(--article-muted);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
}

/* Obrázky, popisky, oddělovače, tabulky */
body.type-post #content .news-item-detail .text img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    vertical-align: middle;
}
body.type-post #content .news-item-detail .text > p:has(> img:only-child),
body.type-post #content .news-item-detail .text > p:has(> a:only-child > img:only-child),
body.type-post #content .news-item-detail .text figure {
    margin: 32px 0;
}
body.type-post #content .news-item-detail .text figure img {
    display: block;
    margin: 0 auto;
}
body.type-post #content .news-item-detail .text figcaption {
    margin-top: 12px;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
body.type-post #content .news-item-detail .text hr {
    height: 0;
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--article-line);
}
body.type-post #content .news-item-detail .text table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    overflow-x: auto;
    font-size: 16px;
    line-height: 1.6;
}
body.type-post #content .news-item-detail .text :is(th, td) {
    padding: 14px 16px;
    border: 1px solid var(--article-line);
    text-align: left;
    vertical-align: top;
}
body.type-post #content .news-item-detail .text th {
    background: var(--article-soft);
    color: var(--article-ink);
    font-weight: 800;
}
body.type-post #content .news-item-detail .text pre {
    max-width: 100%;
    padding: 20px;
    background: var(--article-soft);
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.6;
}
body.type-post #content .news-item-detail > .next-prev {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    max-width: 760px;
    margin: 48px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--article-line);
}
body.type-post #content .news-item-detail > .next-prev .btn {
    padding: 14px 22px;
    border: 1px solid var(--article-blue);
    border-radius: 0;
    background: #fff;
    color: var(--article-blue);
    font-weight: 700;
    text-decoration: none;
}
body.type-post #content .news-item-detail > .next-prev .btn:hover {
    background: var(--article-blue);
    color: #fff;
}
@media (max-width: 767px) {
    body.type-post #content .news-item-detail {
        margin-bottom: 40px;
    }
    body.type-post #content .news-item-detail .sl-article-hero {
        margin-bottom: 32px;
    }
    body.type-post #content .news-item-detail .sl-article-hero__intro {
        padding: 24px 20px;
    }
    body.type-post #content .news-item-detail > .text {
        font-size: 17px;
        line-height: 1.8;
    }
    body.type-post #content .news-item-detail .text :is(h1, h2) {
        margin-top: 36px;
    }
    body.type-post #content .news-item-detail .text blockquote {
        margin: 28px 0;
        padding: 22px 20px;
        font-size: 18px;
    }
}
body.type-post #content .next-prev [data-testid="buttonNextArticle"] {
    margin-left: auto;
}

@media (max-width: 575px) {
    body.type-post #content .news-item-detail > .next-prev {
        gap: 12px;
    }

    body.type-post #content .news-item-detail > .next-prev .btn {
        flex: 1 1 100%;
        justify-content: space-between;
        width: 100%;
    }
}
body.type-post .breadcrumbs-wrapper {
    margin-bottom: 0 !important;
}

body.type-post #content .news-item-detail .sl-article-hero {
    align-items: center !important;
}

body.type-post #content .news-item-detail > .next-prev .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 14px;
    box-sizing: border-box;
    height: auto !important;
    min-height: 54px;
    padding: 15px 22px !important;
    line-height: 1.4 !important;
    border: 1px solid #dfe5eb;
    border-radius: 0;
    background: #f3f6fa;
    color: #245ba5;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    text-decoration: none !important;
}

body.type-post #content .news-item-detail > .next-prev .btn:hover {
    border-color: #245ba5;
    background: #245ba5;
    color: #fff;
}