/*
 * Canonical presentation of article body content.
 *
 * This file is deliberately shared by the public article detail and the
 * administration preview. Keep editing controls in rich_text_editor.css.
 */

.news-detail--article-rich .news-article-body {
    box-sizing: border-box;
    max-width: 100%;
    color: rgba(18, 26, 38, 0.96);
    font-family: var(--nl-article-font-stack, "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: normal;
}

.news-detail--article-rich .news-article-body.news-panel {
    padding: 0.85rem 1.1rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.news-detail--article-rich .news-article-body *,
.news-detail--article-rich .news-article-body *::before,
.news-detail--article-rich .news-article-body *::after {
    box-sizing: border-box;
}

.news-detail--article-rich .news-article-body p,
.news-detail--article-rich .news-article-body li,
.news-detail--article-rich .news-article-body a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.news-detail--article-rich .news-article-body a {
    color: var(--jelonka-brand-strong, #154086);
    text-decoration: underline;
}

.news-detail--article-rich .news-article-body a:hover,
.news-detail--article-rich .news-article-body a:focus {
    color: var(--jelonka-accent, #ee5312);
}

.news-detail--article-rich .news-article-body p {
    margin-top: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

.news-detail--article-rich .news-article-body p,
.news-detail--article-rich .news-article-body li {
    margin-top: 0;
    margin-bottom: 1.05rem;
}

.news-detail--article-rich .news-article-body h2,
.news-detail--article-rich .news-article-body h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--jelonka-ink, #1b2740);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: start;
    text-transform: none;
}

.news-detail--article-rich .news-article-body h2 {
    font-size: calc(1.325rem + 0.9vw);
}

.news-detail--article-rich .news-article-body h3 {
    font-size: calc(1.3rem + 0.6vw);
}

.news-detail--article-rich .news-article-body ul,
.news-detail--article-rich .news-article-body ol {
    display: block;
    margin: 1rem 0;
    padding: 0 0 0 2rem;
}

.news-detail--article-rich .news-article-body ul {
    list-style: disc outside;
}

.news-detail--article-rich .news-article-body ol {
    list-style: decimal outside;
}

.news-detail--article-rich .news-article-body li {
    display: list-item;
    list-style: inherit;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

.news-detail--article-rich .news-article-body ul ul {
    list-style-type: circle;
}

.news-detail--article-rich .news-article-body ul ul ul {
    list-style-type: square;
}

.news-detail--article-rich .news-article-body ul ul,
.news-detail--article-rich .news-article-body ul ol,
.news-detail--article-rich .news-article-body ol ul,
.news-detail--article-rich .news-article-body ol ol {
    margin-top: 0;
    margin-bottom: 0;
}

.news-detail--article-rich .news-article-body .news-default-font,
.news-detail--article-rich .news-article-body .news-default-font * {
    font-family: var(--nl-article-font-stack, "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

.news-detail--article-rich .news-article-body strong,
.news-detail--article-rich .news-article-body b {
    font-weight: 700;
}

.news-detail--article-rich .news-article-body > :first-child {
    margin-top: 0;
}

.news-detail--article-rich .news-article-body > :last-child {
    margin-bottom: 0;
}

.news-detail--article-rich .news-article-body .news-quote {
    position: relative;
    width: min(100%, 46rem);
    margin: 2rem auto;
    padding: 1.45rem 1.55rem 1.2rem 1.65rem;
    border-left: 5px solid rgba(190, 86, 0, 0.78);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 241, 233, 0.96) 100%);
    box-shadow: 0 22px 42px rgba(23, 33, 38, 0.08);
}

.news-detail--article-rich .news-article-body .news-quote::before {
    content: "\"";
    position: absolute;
    top: -0.35rem;
    left: 0.95rem;
    color: rgba(190, 86, 0, 0.22);
    font-size: clamp(3.8rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.news-detail--article-rich .news-article-body .news-quote::after {
    content: "\"";
    position: absolute;
    right: 0.95rem;
    bottom: -0.85rem;
    color: rgba(190, 86, 0, 0.18);
    font-size: clamp(3.6rem, 6vw, 4.9rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.news-detail--article-rich .news-article-body .news-quote blockquote {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-left: 1.35rem;
    border-left: 0;
    color: var(--jelonka-ink, #1b2740);
    font-size: 2em;
    font-weight: 400;
    line-height: 1.25;
}

.news-detail--article-rich .news-article-body .news-quote blockquote > *:first-child {
    margin-top: 0;
}

.news-detail--article-rich .news-article-body .news-quote blockquote > *:last-child {
    margin-bottom: 0;
}

.news-detail--article-rich .news-article-body .news-quote figcaption {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(23, 33, 38, 0.1);
    color: var(--jelonka-ink-soft, #5c6674);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.news-detail--article-rich .news-article-body .news-quote--line {
    width: min(100%, 44rem);
    padding: 0.35rem 0 0.35rem 1.35rem;
    border-left: 4px solid rgba(190, 86, 0, 0.72);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.news-detail--article-rich .news-article-body .news-quote--line blockquote {
    padding-left: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.news-detail--article-rich .news-article-body .news-quote--line::before,
.news-detail--article-rich .news-article-body .news-quote--line::after {
    display: none;
}

.news-detail--article-rich .news-article-body .news-quote--line figcaption {
    margin-top: 0.8rem;
    padding-top: 0.55rem;
    border-top: 0;
    color: rgba(23, 33, 38, 0.72);
    font-size: 0.92rem;
}

.news-detail--article-rich .news-article-body .news-highlight-block {
    width: min(100%, 48rem);
    margin: 1.75rem auto;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(20, 97, 162, 0.14);
    border-radius: 20px;
    background: var(--news-highlight-block-bg, linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(233, 241, 248, 0.96) 100%));
    box-shadow: 0 18px 36px rgba(21, 64, 134, 0.08);
    color: var(--jelonka-ink, #1b2740);
}

.news-detail--article-rich .news-article-body .news-highlight-block > *:first-child {
    margin-top: 0;
}

.news-detail--article-rich .news-article-body .news-highlight-block > *:last-child {
    margin-bottom: 0;
}

.news-detail--article-rich .news-article-body .news-legacy-fat-quote {
    width: min(100%, 46rem);
    margin: 2rem auto;
    color: var(--jelonka-ink, #1b2740);
    font-size: clamp(1.28rem, 2.7vw, 1.72rem);
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
}

.news-detail--article-rich .news-article-body .news-legacy-fat-quote > * {
    font: inherit;
}

.news-detail--article-rich .news-article-body .news-embed {
    position: relative;
    width: min(100%, 52rem);
    margin: 1.75rem auto;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 38, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(23, 33, 38, 0.08);
}

.news-detail--article-rich .news-article-body .news-embed iframe {
    display: block;
    width: 100%;
    border: 0;
}

.news-detail--article-rich .news-article-body .news-embed--video iframe {
    min-height: 18rem;
    aspect-ratio: 16 / 9;
}

.news-detail--article-rich .news-article-body .news-embed--shorts {
    width: min(100%, 24rem);
    background: #050505;
}

.news-detail--article-rich .news-article-body .news-embed--shorts iframe {
    min-height: 0;
    aspect-ratio: 9 / 16;
}

.news-detail--article-rich .news-article-body .news-embed--facebook {
    width: min(100%, var(--facebook-embed-width, 500px));
    max-width: 100%;
    margin: 15px auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.news-detail--article-rich .news-article-body .news-embed--facebook .wrifr1 {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    margin: 0;
    overflow: visible;
}

.news-detail--article-rich .news-article-body .news-embed--facebook .wrifr2 {
    position: static;
    inset: auto;
    overflow: visible;
}

.news-detail--article-rich .news-article-body .news-embed--facebook .difr {
    position: relative;
    width: 100%;
    height: 0;
}

.news-detail--article-rich .news-article-body .news-embed--facebook .wrifr3 {
    position: absolute;
    inset: 0;
    display: block;
}

.news-detail--article-rich .news-article-body .news-embed--facebook .ifr {
    width: 100%;
    height: 100%;
    border: 0;
}

.news-detail--article-rich .news-article-body .news-embed--map iframe {
    min-height: 22rem;
    aspect-ratio: 16 / 10;
}

.news-detail--article-rich .news-article-body .news-inline-image {
    width: min(100%, 40rem);
    margin: 1.35rem 0;
}

.news-detail--article-rich .news-article-body .news-inline-image img {
    display: block;
    width: 100%;
    max-height: 70vh;
    border-radius: 0;
    object-fit: contain;
    background: rgba(23, 33, 38, 0.05);
}

.news-detail--article-rich .news-article-body .information-page-image {
    width: min(100%, 52rem);
    margin: 1.75rem auto;
}

.news-detail--article-rich .news-article-body .information-page-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.news-detail--article-rich .news-article-body .news-inline-image figcaption,
.news-detail--article-rich .news-article-body .information-page-image figcaption {
    padding: 0.45rem 0.15rem 0;
    color: rgba(23, 33, 38, 0.72);
    font-size: 0.92rem;
    line-height: 1.45;
}

.news-detail--article-rich .news-article-body table {
    margin: 1.5rem 0;
    overflow: visible;
    overflow-x: auto;
    border: 1px solid rgba(23, 33, 38, 0.12);
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 34px rgba(23, 33, 38, 0.07);
}

.news-detail--article-rich .news-article-body th,
.news-detail--article-rich .news-article-body td {
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(23, 33, 38, 0.1);
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    vertical-align: top;
    white-space: pre-line;
}

.news-detail--article-rich .news-article-body th {
    background: rgba(20, 97, 162, 0.08);
    color: var(--jelonka-brand-strong, #154086);
    font-weight: 800;
}

.news-detail--article-rich .news-article-body tr:nth-child(even) td {
    background: rgba(243, 246, 250, 0.72);
}

.news-detail--article-rich .news-article-body .news-inline-gallery {
    position: relative;
    width: min(100%, 56rem);
    margin: 2rem auto;
    padding: clamp(0.55rem, 1.4vw, 0.9rem);
    border: 1px solid rgba(23, 33, 38, 0.1);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 233, 0.94));
    box-shadow: 0 22px 48px rgba(23, 33, 38, 0.1);
}

.news-detail--article-rich .news-article-body .news-inline-gallery__viewport {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(23, 33, 38, 0.05);
}

.news-detail--article-rich .news-article-body .news-inline-gallery__track {
    position: relative;
}

.news-detail--article-rich .news-article-body .news-inline-gallery__slide {
    margin: 0;
}

.news-detail--article-rich .news-article-body .news-inline-gallery__slide[hidden] {
    display: none;
}

.news-detail--article-rich .news-article-body .news-inline-gallery__open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.news-detail--article-rich .news-article-body .news-inline-gallery__open img {
    display: block;
    width: 100%;
    max-height: min(72vh, 720px);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #12181f;
}

.news-detail--article-rich .news-article-body .news-inline-gallery figcaption {
    padding: 0.65rem 0.2rem 0.15rem;
    color: rgba(23, 33, 38, 0.74);
    font-size: 0.94rem;
    line-height: 1.45;
}

.news-detail--article-rich .news-article-body .news-inline-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 3.05rem;
    height: 3.05rem;
    place-items: center;
    padding: 0 0 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--jelonka-ink, #1b2740);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 12px 28px rgba(23, 33, 38, 0.18);
}

.news-detail--article-rich .news-article-body .news-inline-gallery__nav--prev {
    left: clamp(0.9rem, 2vw, 1.35rem);
}

.news-detail--article-rich .news-article-body .news-inline-gallery__nav--next {
    right: clamp(0.9rem, 2vw, 1.35rem);
}

.news-detail--article-rich .news-article-body .news-inline-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 0.42rem;
    padding-top: 0.75rem;
}

.news-detail--article-rich .news-article-body .news-inline-gallery__dot {
    width: 0.72rem;
    height: 0.72rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(23, 33, 38, 0.24);
}

.news-detail--article-rich .news-article-body .news-inline-gallery__dot.is-active {
    width: 1.8rem;
    background: var(--jelonka-accent, #ee5312);
}

.news-detail--article-rich .news-article-body .news-quote,
.news-detail--article-rich .news-article-body .news-highlight-block,
.news-detail--article-rich .news-article-body .news-embed,
.news-detail--article-rich .news-article-body .news-inline-image,
.news-detail--article-rich .news-article-body .information-page-image,
.news-detail--article-rich .news-article-body .news-inline-gallery,
.news-detail--article-rich .news-article-body table {
    max-width: 100%;
}

.news-detail--article-rich .news-article-body table {
    display: block;
    width: fit-content;
}

@media (min-width: 1200px) {
    .news-detail--article-rich .news-article-body h2 {
        font-size: 2rem;
    }

    .news-detail--article-rich .news-article-body h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .news-detail--article-rich .news-article-body {
        font-size: 1.125rem;
    }

    .news-detail--article-rich .news-article-body.news-panel {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 680px) {
    .news-detail--article-rich .news-article-body .news-inline-gallery {
        margin-inline: -0.25rem;
        border-radius: 16px;
    }

    .news-detail--article-rich .news-article-body .news-inline-gallery__open img {
        aspect-ratio: 4 / 3;
    }

    .news-detail--article-rich .news-article-body .news-inline-gallery__nav {
        width: 2.55rem;
        height: 2.55rem;
        font-size: 2rem;
    }
}
