/* ═══════════════════════════════════════════════════════════════════════
   Editor.js / Rich-Content Fallbacks
   Seiten und Beiträge bleiben lesbar, auch ohne mitgelieferte Editor-Styles.
═══════════════════════════════════════════════════════════════════════ */

.page-content > *:first-child,
.post-body > *:first-child {
    margin-top: 0;
}

.page-content > *:last-child,
.post-body > *:last-child {
    margin-bottom: 0;
}

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    scroll-margin-top: calc(var(--header-h) + var(--quicklinks-h) + var(--member-bar-h, 0px) + 18px);
}

.page-content h2,
.post-body h2 {
    font-size: var(--fs-h2);
    margin: 2em 0 .7em;
    padding-bottom: .35em;
    border-bottom: 2px solid var(--border-color);
}

.page-content h3,
.post-body h3 {
    font-size: var(--fs-h3);
    margin: 1.7em 0 .65em;
}

.page-content .editorjs-media-text__heading,
.post-body .editorjs-media-text__heading {
    font-size: var(--fs-h4) !important;
    font-weight: 700;
    line-height: 1.3;
}

.page-content h4,
.page-content h5,
.page-content h6,
.post-body h4,
.post-body h5,
.post-body h6 {
    margin: 1.45em 0 .55em;
}

.page-content .editorjs-block > h2,
.page-content .editorjs-block > h3,
.page-content .editorjs-block > h4,
.page-content .editorjs-block > h5,
.page-content .editorjs-block > h6,
.post-body .editorjs-block > h2,
.post-body .editorjs-block > h3,
.post-body .editorjs-block > h4,
.post-body .editorjs-block > h5,
.post-body .editorjs-block > h6 {
    margin-top: 0;
    margin-bottom: 0;
}

.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote,
.page-content pre,
.page-content table,
.page-content figure,
.page-content details,
.page-content .editorjs-block,
.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre,
.post-body table,
.post-body figure,
.post-body details,
.post-body .editorjs-block,
.post-body .editorjs-warning,
.post-body .editorjs-link,
.post-body .editorjs-attaches,
.post-body .editorjs-accordion,
.post-body .editorjs-columns,
.post-body .editorjs-gallery,
.post-body .editorjs-carousel,
.post-body .editorjs-embed,
.post-body .editorjs-drawing,
.post-body .editorjs-delimiter,
.page-content .editorjs-warning,
.page-content .editorjs-link,
.page-content .editorjs-attaches,
.page-content .editorjs-accordion,
.page-content .editorjs-columns,
.page-content .editorjs-gallery,
.page-content .editorjs-carousel,
.page-content .editorjs-embed,
.page-content .editorjs-drawing,
.page-content .editorjs-delimiter {
    margin: 1.25rem 0;
}

.page-content ul,
.page-content ol,
.post-body ul,
.post-body ol {
    margin-left: 1.4rem;
    padding-left: 1rem;
}

.page-content li,
.post-body li {
    margin-bottom: .45rem;
}

.page-content ul li > ul,
.page-content ul li > ol,
.page-content ol li > ul,
.page-content ol li > ol,
.post-body ul li > ul,
.post-body ul li > ol,
.post-body ol li > ul,
.post-body ol li > ol {
    margin-top: .5rem;
}

.page-content blockquote,
.page-content .editorjs-quote blockquote,
.post-body .editorjs-warning,
.page-content .editorjs-warning {
    border-radius: var(--radius);
}

.page-content blockquote,
.page-content .editorjs-quote blockquote,
.post-body blockquote,
.post-body .editorjs-quote blockquote {
    border-left: 4px solid var(--accent-teal);
    background: color-mix(in srgb, var(--accent-teal) 8%, white);
    padding: 12px 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.page-content code,
.page-content pre,
.post-body code,
.post-body pre {
    font-family: var(--font-code, 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace);
}

.page-content code {
    font-size: .88em;
    background: var(--bg-secondary);
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 4px;
}

.page-content pre,
.post-body pre {
    overflow-x: auto;
}

.page-content pre.code-block--powershell,
.post-body pre.code-block--powershell {
    background:
        linear-gradient(180deg, rgba(15, 37, 60, .98) 0%, rgba(10, 22, 38, .98) 100%);
    border: 1px solid rgba(96, 165, 250, .2);
    border-left: 4px solid #60a5fa;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
    position: relative;
    padding-top: 2.9rem;
}

.page-content pre.code-block--powershell::before,
.post-body pre.code-block--powershell::before {
    content: attr(data-code-language);
    position: absolute;
    top: .85rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    padding: .22rem .6rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, .14);
    color: #bfdbfe;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.page-content pre {
    background: var(--bg-dark-2);
    color: #e2e8f0;
    padding: 18px 22px;
    border-radius: var(--radius);
    line-height: 1.65;
}

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

.page-content pre code.language-powershell,
.page-content pre code.language-ps,
.page-content pre code.language-ps1,
.page-content pre code.language-pwsh,
.post-body pre code.language-powershell,
.post-body pre code.language-ps,
.post-body pre code.language-ps1,
.post-body pre code.language-pwsh {
    color: #e2e8f0;
}

.page-content .ps-token.ps-comment,
.post-body .ps-token.ps-comment { color: #7dd3fc; font-style: italic; }
.page-content .ps-token.ps-string,
.post-body .ps-token.ps-string { color: #f9a8d4; }
.page-content .ps-token.ps-variable,
.post-body .ps-token.ps-variable { color: #fde68a; }
.page-content .ps-token.ps-parameter,
.post-body .ps-token.ps-parameter { color: #86efac; }
.page-content .ps-token.ps-keyword,
.post-body .ps-token.ps-keyword { color: #c4b5fd; font-weight: 600; }
.page-content .ps-token.ps-cmdlet,
.post-body .ps-token.ps-cmdlet { color: #93c5fd; }
.page-content .ps-token.ps-type,
.post-body .ps-token.ps-type { color: #fca5a5; }
.page-content .ps-token.ps-number,
.post-body .ps-token.ps-number { color: #fdba74; }
.page-content .ps-token.ps-constant,
.post-body .ps-token.ps-constant { color: #67e8f9; font-weight: 600; }
.page-content .ps-token.ps-operator,
.post-body .ps-token.ps-operator { color: #e5e7eb; }

body.dark-mode .page-content pre.code-block--powershell,
body.dark-mode .post-body pre.code-block--powershell {
    border-color: rgba(96, 165, 250, .28);
    box-shadow: 0 14px 28px rgba(2, 6, 23, .34);
}

.page-content table,
.page-content .editorjs-table table,
.post-body .editorjs-table table {
    width: 100%;
    border-collapse: collapse;
}

.page-content table caption,
.post-body table caption,
.page-content .cms-site-table caption,
.post-body .cms-site-table caption {
    caption-side: top;
    padding: .75rem .9rem;
    border: 1px solid var(--border-color);
    border-bottom: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
}

.page-content .cms-site-table-toolbar,
.post-body .cms-site-table-toolbar {
    display: none;
}

.page-content .cms-site-table-pagination,
.post-body .cms-site-table-pagination {
    display: flex;
    justify-content: flex-end;
    padding: .9rem 0 0;
    border-top: 0;
    background: transparent;
}

.page-content .cms-site-table-pagination__list,
.post-body .cms-site-table-pagination__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.page-content .cms-site-table-pagination__button,
.post-body .cms-site-table-pagination__button {
    min-width: 2.25rem;
    padding: .42rem .72rem;
    border: 1px solid color-mix(in srgb, var(--accent-teal) 28%, var(--border-color));
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
}

.page-content .cms-site-table-pagination__button:hover,
.page-content .cms-site-table-pagination__button:focus-visible,
.page-content .cms-site-table-pagination__button.is-active,
.post-body .cms-site-table-pagination__button:hover,
.post-body .cms-site-table-pagination__button:focus-visible,
.post-body .cms-site-table-pagination__button.is-active {
    border-color: var(--accent-teal);
    background: color-mix(in srgb, var(--accent-teal) 10%, var(--bg-primary));
    color: var(--accent-teal);
    outline: none;
}

.page-content .cms-site-table-pagination__button[disabled],
.post-body .cms-site-table-pagination__button[disabled] {
    cursor: not-allowed;
    opacity: .45;
}

.page-content th,
.page-content td,
.page-content .editorjs-table th,
.page-content .editorjs-table td,
.post-body .editorjs-table th,
.post-body .editorjs-table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.page-content th,
.page-content .editorjs-table th,
.post-body .editorjs-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
}

.page-content img,
.post-body img,
.page-content picture,
.post-body picture,
.page-content .editorjs-image img,
.page-content .editorjs-gallery img,
.page-content .editorjs-carousel img,
.page-content .editorjs-drawing img,
.post-body .editorjs-image img,
.post-body .editorjs-gallery img,
.post-body .editorjs-carousel img,
.post-body .editorjs-drawing img {
    border-radius: var(--radius-sm);
    max-width: 100%;
    height: auto;
}

.page-content .phinit-content-image,
.post-body .phinit-content-image,
.page-content figure > img,
.post-body figure > img,
.page-content picture > img,
.post-body picture > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.page-content figure,
.post-body figure,
.page-content .editorjs-image,
.post-body .editorjs-image {
    width: 100%;
    max-width: 100%;
}

.page-content .editorjs-image[data-size="normal"] > img,
.post-body .editorjs-image[data-size="normal"] > img {
    width: min(100%, var(--cms-editorjs-image-normal-width, 760px)) !important;
}

.page-content .editorjs-image[data-size="wide"] > img,
.post-body .editorjs-image[data-size="wide"] > img {
    width: min(100%, var(--cms-editorjs-image-wide-width, 760px)) !important;
}

.page-content .editorjs-media-text,
.post-body .editorjs-media-text {
    --cms-editorjs-media-text-spacing-top: 10px;
    --cms-editorjs-media-text-spacing-bottom: 10px;
    --cms-editorjs-space-before: var(--cms-editorjs-media-text-spacing-top);
    --cms-editorjs-space-after: var(--cms-editorjs-media-text-spacing-bottom);
    display: grid !important;
    grid-template-columns: minmax(0, var(--cms-editorjs-media-text-image-width, 40%)) minmax(0, 1fr);
    grid-template-areas: "media content";
    align-items: flex-start;
    gap: clamp(1rem, 2.4vw, 1.5rem);
    margin-block-start: var(--cms-editorjs-media-text-spacing-top) !important;
    margin-block-end: var(--cms-editorjs-media-text-spacing-bottom) !important;
    margin-top: var(--cms-editorjs-media-text-spacing-top) !important;
    margin-bottom: var(--cms-editorjs-media-text-spacing-bottom) !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.page-content .editorjs-media-text--image-right,
.post-body .editorjs-media-text--image-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--cms-editorjs-media-text-image-width, 40%));
    grid-template-areas: "content media";
}

.page-content .editorjs-media-text--has-heading,
.post-body .editorjs-media-text--has-heading {
    grid-template-areas:
        "heading heading"
        "media content";
}

.page-content .editorjs-media-text--has-heading.editorjs-media-text--image-right,
.post-body .editorjs-media-text--has-heading.editorjs-media-text--image-right {
    grid-template-areas:
        "heading heading"
        "content media";
}

.page-content .editorjs-media-text__heading,
.post-body .editorjs-media-text__heading {
    grid-area: heading;
}

.page-content .editorjs-media-text__media,
.post-body .editorjs-media-text__media {
    grid-area: media;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box;
}

.page-content .editorjs-media-text__media > img,
.post-body .editorjs-media-text__media > img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: 4 / 3;
    object-fit: var(--cms-editorjs-media-text-image-fit, cover) !important;
}

.page-content .editorjs-media-text__content,
.post-body .editorjs-media-text__content {
    grid-area: content;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}

.page-content .editorjs-media-text__content > :first-child,
.post-body .editorjs-media-text__content > :first-child {
    margin-top: 0;
}

.page-content .editorjs-media-text__content > :last-child,
.post-body .editorjs-media-text__content > :last-child {
    margin-bottom: 0;
}

/* Wrapper-unabhängiger EditorJS-Fallback für HubSites und dynamische Public-Routen. */
.editorjs-media-text {
    --cms-editorjs-media-text-spacing-top: 10px;
    --cms-editorjs-media-text-spacing-bottom: 10px;
    --cms-editorjs-space-before: var(--cms-editorjs-media-text-spacing-top);
    --cms-editorjs-space-after: var(--cms-editorjs-media-text-spacing-bottom);
    display: grid !important;
    grid-template-columns: minmax(0, var(--cms-editorjs-media-text-image-width, 40%)) minmax(0, 1fr);
    grid-template-areas: "media content";
    align-items: flex-start;
    gap: clamp(1rem, 2.4vw, 1.5rem);
    margin-block-start: var(--cms-editorjs-media-text-spacing-top) !important;
    margin-block-end: var(--cms-editorjs-media-text-spacing-bottom) !important;
    margin-top: var(--cms-editorjs-media-text-spacing-top) !important;
    margin-bottom: var(--cms-editorjs-media-text-spacing-bottom) !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.editorjs-block.editorjs-media-text[data-spacing-top="0"], .editorjs-block.editorjs-media-text--spacing-top-0 { --cms-editorjs-space-before: 0px; --cms-editorjs-media-text-spacing-top: 0px; margin-block-start: 0px !important; margin-top: 0px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="5"], .editorjs-block.editorjs-media-text--spacing-top-5 { --cms-editorjs-space-before: 5px; --cms-editorjs-media-text-spacing-top: 5px; margin-block-start: 5px !important; margin-top: 5px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="10"], .editorjs-block.editorjs-media-text--spacing-top-10 { --cms-editorjs-space-before: 10px; --cms-editorjs-media-text-spacing-top: 10px; margin-block-start: 10px !important; margin-top: 10px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="15"], .editorjs-block.editorjs-media-text--spacing-top-15 { --cms-editorjs-space-before: 15px; --cms-editorjs-media-text-spacing-top: 15px; margin-block-start: 15px !important; margin-top: 15px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="20"], .editorjs-block.editorjs-media-text--spacing-top-20 { --cms-editorjs-space-before: 20px; --cms-editorjs-media-text-spacing-top: 20px; margin-block-start: 20px !important; margin-top: 20px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="30"], .editorjs-block.editorjs-media-text--spacing-top-30 { --cms-editorjs-space-before: 30px; --cms-editorjs-media-text-spacing-top: 30px; margin-block-start: 30px !important; margin-top: 30px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="40"], .editorjs-block.editorjs-media-text--spacing-top-40 { --cms-editorjs-space-before: 40px; --cms-editorjs-media-text-spacing-top: 40px; margin-block-start: 40px !important; margin-top: 40px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="60"], .editorjs-block.editorjs-media-text--spacing-top-60 { --cms-editorjs-space-before: 60px; --cms-editorjs-media-text-spacing-top: 60px; margin-block-start: 60px !important; margin-top: 60px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="80"], .editorjs-block.editorjs-media-text--spacing-top-80 { --cms-editorjs-space-before: 80px; --cms-editorjs-media-text-spacing-top: 80px; margin-block-start: 80px !important; margin-top: 80px !important; }
.editorjs-block.editorjs-media-text[data-spacing-top="100"], .editorjs-block.editorjs-media-text--spacing-top-100 { --cms-editorjs-space-before: 100px; --cms-editorjs-media-text-spacing-top: 100px; margin-block-start: 100px !important; margin-top: 100px !important; }

.editorjs-block.editorjs-media-text[data-spacing-bottom="0"], .editorjs-block.editorjs-media-text--spacing-bottom-0 { --cms-editorjs-space-after: 0px; --cms-editorjs-media-text-spacing-bottom: 0px; margin-block-end: 0px !important; margin-bottom: 0px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="5"], .editorjs-block.editorjs-media-text--spacing-bottom-5 { --cms-editorjs-space-after: 5px; --cms-editorjs-media-text-spacing-bottom: 5px; margin-block-end: 5px !important; margin-bottom: 5px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="10"], .editorjs-block.editorjs-media-text--spacing-bottom-10 { --cms-editorjs-space-after: 10px; --cms-editorjs-media-text-spacing-bottom: 10px; margin-block-end: 10px !important; margin-bottom: 10px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="15"], .editorjs-block.editorjs-media-text--spacing-bottom-15 { --cms-editorjs-space-after: 15px; --cms-editorjs-media-text-spacing-bottom: 15px; margin-block-end: 15px !important; margin-bottom: 15px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="20"], .editorjs-block.editorjs-media-text--spacing-bottom-20 { --cms-editorjs-space-after: 20px; --cms-editorjs-media-text-spacing-bottom: 20px; margin-block-end: 20px !important; margin-bottom: 20px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="30"], .editorjs-block.editorjs-media-text--spacing-bottom-30 { --cms-editorjs-space-after: 30px; --cms-editorjs-media-text-spacing-bottom: 30px; margin-block-end: 30px !important; margin-bottom: 30px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="40"], .editorjs-block.editorjs-media-text--spacing-bottom-40 { --cms-editorjs-space-after: 40px; --cms-editorjs-media-text-spacing-bottom: 40px; margin-block-end: 40px !important; margin-bottom: 40px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="60"], .editorjs-block.editorjs-media-text--spacing-bottom-60 { --cms-editorjs-space-after: 60px; --cms-editorjs-media-text-spacing-bottom: 60px; margin-block-end: 60px !important; margin-bottom: 60px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="80"], .editorjs-block.editorjs-media-text--spacing-bottom-80 { --cms-editorjs-space-after: 80px; --cms-editorjs-media-text-spacing-bottom: 80px; margin-block-end: 80px !important; margin-bottom: 80px !important; }
.editorjs-block.editorjs-media-text[data-spacing-bottom="100"], .editorjs-block.editorjs-media-text--spacing-bottom-100 { --cms-editorjs-space-after: 100px; --cms-editorjs-media-text-spacing-bottom: 100px; margin-block-end: 100px !important; margin-bottom: 100px !important; }

.editorjs-media-text--image-width-33 {
    --cms-editorjs-media-text-image-width: 33%;
}

.editorjs-media-text--image-width-40 {
    --cms-editorjs-media-text-image-width: 40%;
}

.editorjs-media-text--image-width-50 {
    --cms-editorjs-media-text-image-width: 50%;
}

.editorjs-media-text--image-fit-contain .editorjs-media-text__media > img {
    object-fit: contain !important;
}

.editorjs-media-text--image-fit-cover .editorjs-media-text__media > img {
    object-fit: cover !important;
}

.editorjs-media-text--image-fit-fill .editorjs-media-text__media > img {
    object-fit: fill !important;
}

.editorjs-media-text--image-fit-scale-down .editorjs-media-text__media > img {
    object-fit: scale-down !important;
}

.editorjs-media-text--image-fit-none .editorjs-media-text__media > img {
    object-fit: none !important;
}

.editorjs-media-text--image-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--cms-editorjs-media-text-image-width, 40%));
    grid-template-areas: "content media";
}

.editorjs-media-text--has-heading {
    grid-template-areas:
        "heading heading"
        "media content";
}

.editorjs-media-text--has-heading.editorjs-media-text--image-right {
    grid-template-areas:
        "heading heading"
        "content media";
}

.editorjs-media-text__heading {
    grid-area: heading;
}

.editorjs-media-text__media {
    grid-area: media;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box;
}

.editorjs-media-text__media > img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: 4 / 3;
    object-fit: var(--cms-editorjs-media-text-image-fit, cover) !important;
}

.editorjs-media-text__content {
    grid-area: content;
    min-width: 0;
    box-sizing: border-box;
}

.editorjs-media-text__content p {
    margin: 0 0 1em;
    line-height: 1.75;
}

.editorjs-media-text__content ul,
.editorjs-media-text__content ol {
    margin: .7em 0 1em 1.35rem;
    padding-left: 1rem;
}

.editorjs-media-text__content ul {
    list-style: disc outside;
}

.editorjs-media-text__content ol {
    list-style: decimal outside;
}

.editorjs-media-text__content li {
    margin-bottom: .4rem;
}

.editorjs-media-text__content > :first-child {
    margin-top: 0;
}

.editorjs-media-text__content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .editorjs-media-text,
    .editorjs-media-text--image-right,
    .page-content .editorjs-media-text,
    .post-body .editorjs-media-text,
    .page-content .editorjs-media-text--image-right,
    .post-body .editorjs-media-text--image-right {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "heading"
            "media"
            "content";
    }

            .editorjs-media-text__media,
            .editorjs-media-text__content,
    .page-content .editorjs-media-text__media,
    .post-body .editorjs-media-text__media,
    .page-content .editorjs-media-text__content,
    .post-body .editorjs-media-text__content {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.page-content figure figcaption,
.page-content .editorjs-image figcaption,
.page-content .editorjs-embed figcaption,
.post-body .editorjs-image figcaption,
.post-body .editorjs-embed figcaption {
    margin-top: .65rem;
    font-size: .85rem;
    color: var(--text-muted);
    text-align: center;
}

.page-content .editorjs-list__items,
.post-body .editorjs-list__items {
    margin: 0 0 0 1.4rem;
    padding-left: 1rem;
    padding-inline-start: 1rem;
    list-style-position: outside;
}

.page-content .editorjs-list__items li,
.post-body .editorjs-list__items li {
    padding-left: .35em;
}

.page-content .editorjs-list__items:not(ol),
.post-body .editorjs-list__items:not(ol) {
    list-style: disc outside;
}

.page-content ol.editorjs-list__items,
.post-body ol.editorjs-list__items {
    list-style: decimal outside;
}

.page-content .editorjs-list__item > .editorjs-list__items,
.post-body .editorjs-list__item > .editorjs-list__items {
    margin-left: 1.2rem;
    margin-bottom: 0;
}

.page-content .editorjs-checklist ul,
.post-body .editorjs-checklist ul {
    list-style: none;
    padding-left: 0;
    margin: 1em 0 1.2em;
}

.page-content .editorjs-checklist label,
.post-body .editorjs-checklist label {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    line-height: 1.7;
}

.page-content .editorjs-checklist input[type="checkbox"],
.post-body .editorjs-checklist input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: .25rem;
    accent-color: var(--accent-teal);
}

.page-content .editorjs-warning,
.post-body .editorjs-warning {
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--accent-color) 30%, var(--border-color));
    border-left: 4px solid var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 9%, white);
}

.page-content .editorjs-warning .warning-title,
.post-body .editorjs-warning .warning-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: .35rem;
}

.page-content .editorjs-link a,
.post-body .editorjs-link a,
.page-content .editorjs-attaches a,
.post-body .editorjs-attaches a {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
}

.page-content .editorjs-link__content strong,
.post-body .editorjs-link__content strong {
    display: block;
    margin-bottom: .35rem;
}

.page-content .editorjs-link__content p,
.post-body .editorjs-link__content p,
.page-content .editorjs-link__content small,
.post-body .editorjs-link__content small {
    color: var(--text-muted);
}

.page-content .editorjs-link__image,
.post-body .editorjs-link__image {
    margin-bottom: .75rem;
}

.page-content .editorjs-embed__frame,
.post-body .editorjs-embed__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-dark-2);
}

.page-content .editorjs-embed iframe,
.post-body .editorjs-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-content .editorjs-columns,
.post-body .editorjs-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.page-content .editorjs-columns__col,
.post-body .editorjs-columns__col {
    min-width: 0;
}

.page-content .editorjs-accordion details,
.post-body .editorjs-accordion details {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    overflow: hidden;
}

.page-content .editorjs-accordion summary,
.post-body .editorjs-accordion summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text-primary);
    list-style: none;
}

.page-content .editorjs-accordion summary::-webkit-details-marker,
.post-body .editorjs-accordion summary::-webkit-details-marker {
    display: none;
}

.page-content .editorjs-accordion__content,
.post-body .editorjs-accordion__content {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border-color);
}

.page-content .editorjs-gallery,
.post-body .editorjs-gallery,
.page-content .editorjs-carousel,
.post-body .editorjs-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.page-content .editorjs-delimiter hr,
.post-body .editorjs-delimiter hr {
    border: 0;
    border-top: 1px solid var(--border-color);
}

.page-content .editorjs-spacer,
.post-body .editorjs-spacer {
    --cms-phinit-editorjs-spacer-height: 40px;
    box-sizing: border-box;
    display: block !important;
    clear: both;
    flex: 0 0 auto;
    width: 100%;
    height: var(--cms-phinit-editorjs-spacer-height) !important;
    min-height: var(--cms-phinit-editorjs-spacer-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

.page-content .editorjs-spacer[data-height="15"],
.post-body .editorjs-spacer[data-height="15"] { --cms-phinit-editorjs-spacer-height: 15px; }
.page-content .editorjs-spacer[data-height="16"],
.post-body .editorjs-spacer[data-height="16"] { --cms-phinit-editorjs-spacer-height: 16px; }
.page-content .editorjs-spacer[data-height="24"],
.post-body .editorjs-spacer[data-height="24"] { --cms-phinit-editorjs-spacer-height: 24px; }
.page-content .editorjs-spacer[data-height="25"],
.post-body .editorjs-spacer[data-height="25"] { --cms-phinit-editorjs-spacer-height: 25px; }
.page-content .editorjs-spacer[data-height="32"],
.post-body .editorjs-spacer[data-height="32"] { --cms-phinit-editorjs-spacer-height: 32px; }
.page-content .editorjs-spacer[data-height="40"],
.post-body .editorjs-spacer[data-height="40"] { --cms-phinit-editorjs-spacer-height: 40px; }
.page-content .editorjs-spacer[data-height="48"],
.post-body .editorjs-spacer[data-height="48"] { --cms-phinit-editorjs-spacer-height: 48px; }
.page-content .editorjs-spacer[data-height="56"],
.post-body .editorjs-spacer[data-height="56"] { --cms-phinit-editorjs-spacer-height: 56px; }
.page-content .editorjs-spacer[data-height="60"],
.post-body .editorjs-spacer[data-height="60"] { --cms-phinit-editorjs-spacer-height: 60px; }
.page-content .editorjs-spacer[data-height="64"],
.post-body .editorjs-spacer[data-height="64"] { --cms-phinit-editorjs-spacer-height: 64px; }
.page-content .editorjs-spacer[data-height="72"],
.post-body .editorjs-spacer[data-height="72"] { --cms-phinit-editorjs-spacer-height: 72px; }
.page-content .editorjs-spacer[data-height="75"],
.post-body .editorjs-spacer[data-height="75"] { --cms-phinit-editorjs-spacer-height: 75px; }
.page-content .editorjs-spacer[data-height="80"],
.post-body .editorjs-spacer[data-height="80"] { --cms-phinit-editorjs-spacer-height: 80px; }
.page-content .editorjs-spacer[data-height="96"],
.post-body .editorjs-spacer[data-height="96"] { --cms-phinit-editorjs-spacer-height: 96px; }
.page-content .editorjs-spacer[data-height="100"],
.post-body .editorjs-spacer[data-height="100"] { --cms-phinit-editorjs-spacer-height: 100px; }
.page-content .editorjs-spacer[data-height="120"],
.post-body .editorjs-spacer[data-height="120"] { --cms-phinit-editorjs-spacer-height: 120px; }
.page-content .editorjs-spacer[data-height="140"],
.post-body .editorjs-spacer[data-height="140"] { --cms-phinit-editorjs-spacer-height: 140px; }
.page-content .editorjs-spacer[data-height="160"],
.post-body .editorjs-spacer[data-height="160"] { --cms-phinit-editorjs-spacer-height: 160px; }
.page-content .editorjs-spacer[data-height="180"],
.post-body .editorjs-spacer[data-height="180"] { --cms-phinit-editorjs-spacer-height: 180px; }
.page-content .editorjs-spacer[data-height="200"],
.post-body .editorjs-spacer[data-height="200"] { --cms-phinit-editorjs-spacer-height: 200px; }

body.dark-mode .page-content,
body.dark-mode .post-body {
    color: var(--text-primary);
}

body.dark-mode .page-content :where(p, li, td, blockquote) a:not([class]),
body.dark-mode .post-body :where(p, li, td, blockquote) a:not([class]),
body.dark-mode .page-content .editorjs-paragraph a,
body.dark-mode .post-body .editorjs-paragraph a,
body.dark-mode .page-content .editorjs-list__item a,
body.dark-mode .post-body .editorjs-list__item a {
    color: var(--link-color, #93c5fd);
    text-decoration: underline;
    text-decoration-color: var(--link-underline, rgba(147, 197, 253, .5));
    text-underline-offset: .16em;
}

body.dark-mode .page-content :where(p, li, td, blockquote) a:not([class]):hover,
body.dark-mode .page-content :where(p, li, td, blockquote) a:not([class]):focus-visible,
body.dark-mode .post-body :where(p, li, td, blockquote) a:not([class]):hover,
body.dark-mode .post-body :where(p, li, td, blockquote) a:not([class]):focus-visible,
body.dark-mode .page-content .editorjs-paragraph a:hover,
body.dark-mode .page-content .editorjs-paragraph a:focus-visible,
body.dark-mode .post-body .editorjs-paragraph a:hover,
body.dark-mode .post-body .editorjs-paragraph a:focus-visible,
body.dark-mode .page-content .editorjs-list__item a:hover,
body.dark-mode .page-content .editorjs-list__item a:focus-visible,
body.dark-mode .post-body .editorjs-list__item a:hover,
body.dark-mode .post-body .editorjs-list__item a:focus-visible {
    color: var(--link-hover, #bfdbfe);
    text-decoration-color: currentColor;
}

body.dark-mode .page-content code {
    background: rgba(255,255,255,.08);
    color: #f9a8d4;
}

body.dark-mode .page-content blockquote,
body.dark-mode .page-content .editorjs-quote blockquote {
    background: rgba(13,148,136,.14);
    color: var(--text-secondary);
}

body.dark-mode .page-content .editorjs-warning,
body.dark-mode .post-body .editorjs-warning,
body.dark-mode .page-content .editorjs-link a,
body.dark-mode .post-body .editorjs-link a,
body.dark-mode .page-content .editorjs-attaches a,
body.dark-mode .post-body .editorjs-attaches a,
body.dark-mode .page-content .editorjs-accordion details,
body.dark-mode .post-body .editorjs-accordion details {
    background: var(--bg-dark-3);
    border-color: var(--border-dark);
}

body.dark-mode .page-content .editorjs-link__content p,
body.dark-mode .post-body .editorjs-link__content p,
body.dark-mode .page-content .editorjs-link__content small,
body.dark-mode .post-body .editorjs-link__content small,
body.dark-mode .page-content figcaption,
body.dark-mode .post-body figcaption {
    color: var(--text-light);
}

body.dark-mode .page-content table,
body.dark-mode .post-body table,
body.dark-mode .page-content .editorjs-table table,
body.dark-mode .post-body .editorjs-table table,
body.dark-mode .page-content .cms-site-table,
body.dark-mode .post-body .cms-site-table {
    background: transparent;
}

body.dark-mode .page-content table caption,
body.dark-mode .post-body table caption,
body.dark-mode .page-content .cms-site-table caption,
body.dark-mode .post-body .cms-site-table caption {
    border-color: var(--border-dark);
    background: color-mix(in srgb, var(--bg-dark-3) 86%, #0f172a 14%);
    color: var(--text-primary);
}

body.dark-mode .page-content .cms-site-table-pagination__button,
body.dark-mode .post-body .cms-site-table-pagination__button {
    border-color: var(--border-dark);
    background: color-mix(in srgb, var(--bg-dark-3) 92%, white 8%);
    color: var(--text-secondary);
}

body.dark-mode .page-content .cms-site-table-pagination__button:hover,
body.dark-mode .page-content .cms-site-table-pagination__button:focus-visible,
body.dark-mode .page-content .cms-site-table-pagination__button.is-active,
body.dark-mode .post-body .cms-site-table-pagination__button:hover,
body.dark-mode .post-body .cms-site-table-pagination__button:focus-visible,
body.dark-mode .post-body .cms-site-table-pagination__button.is-active {
    border-color: var(--accent-teal-light);
    background: color-mix(in srgb, var(--accent-teal) 18%, var(--bg-dark-3));
    color: var(--accent-teal-light);
}

body.dark-mode .page-content th,
body.dark-mode .page-content td,
body.dark-mode .page-content .editorjs-table th,
body.dark-mode .page-content .editorjs-table td,
body.dark-mode .post-body .editorjs-table th,
body.dark-mode .post-body .editorjs-table td,
body.dark-mode .page-content .cms-site-table th,
body.dark-mode .page-content .cms-site-table td,
body.dark-mode .post-body .cms-site-table th,
body.dark-mode .post-body .cms-site-table td {
    border-color: var(--border-dark);
}

body.dark-mode .page-content th,
body.dark-mode .page-content .editorjs-table th,
body.dark-mode .post-body .editorjs-table th,
body.dark-mode .page-content .cms-site-table th,
body.dark-mode .post-body .cms-site-table th {
    background: color-mix(in srgb, var(--bg-dark-3) 86%, #0f172a 14%);
    color: var(--text-primary);
}

body.dark-mode .page-content td,
body.dark-mode .page-content .editorjs-table td,
body.dark-mode .post-body .editorjs-table td,
body.dark-mode .page-content .cms-site-table td,
body.dark-mode .post-body .cms-site-table td {
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--bg-dark-2) 74%, transparent 26%);
}

@media (max-width: 768px) {
    .page-content,
    .post-body {
        padding: 22px 20px;
    }

    .page-content .editorjs-columns,
    .post-body .editorjs-columns,
    .page-content .editorjs-gallery,
    .post-body .editorjs-gallery,
    .page-content .editorjs-carousel,
    .post-body .editorjs-carousel {
        grid-template-columns: 1fr;
    }

    .page-content table,
    .post-body table,
    .page-content .editorjs-table,
    .post-body .editorjs-table {
        display: block;
        overflow-x: auto;
    }
}
