/* Rich typography & Quill 2 formatting for custom pages */
.page-content {
    color: #1D2A22;
    font-size: 1.0625rem;
    line-height: 1.8;
    word-wrap: break-word;
}

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

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

.page-content h1 {
    font-size: 2.125rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: #0E3524;
    margin: 2rem 0 0.85rem;
}

.page-content h2 {
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #134C31;
    margin: 1.75rem 0 0.75rem;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #18623E;
    margin: 1.4rem 0 0.6rem;
}

.page-content p {
    margin: 0.9rem 0;
    color: #2A3830;
}

.page-content strong {
    font-weight: 700;
    color: #132119;
}

.page-content a {
    color: #1F7A4D;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #BBDDC8;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.page-content a:hover {
    color: #134C31;
    text-decoration-color: #1F7A4D;
}

/* Lists (including Quill 2 data-list="bullet" / "ordered") */
.page-content ul,
.page-content ol {
    margin: 1rem 0;
    padding-left: 1.6rem;
}

.page-content ul {
    list-style-type: disc;
}

.page-content ol {
    list-style-type: decimal;
}

.page-content li {
    margin: 0.4rem 0;
    padding-left: 0.25rem;
}

.page-content ol > li[data-list="bullet"] {
    list-style-type: disc;
}

.page-content ol > li[data-list="ordered"] {
    list-style-type: decimal;
}

.page-content li::marker {
    color: #1F7A4D;
    font-weight: 700;
}

/* Hide Quill internal UI marker spans */
.page-content .ql-ui {
    display: none;
}

/* Blockquote */
.page-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.35rem;
    border-left: 4px solid #1F7A4D;
    background-color: #F1F8F3;
    border-radius: 0 1rem 1rem 0;
    color: #134C31;
    font-style: italic;
}

/* Code blocks & inline code */
.page-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
    background-color: #F1F8F3;
    color: #134C31;
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    border: 1px solid #DDEEE3;
}

.page-content pre,
.page-content .ql-code-block-container {
    margin: 1.4rem 0;
    padding: 1.15rem 1.35rem;
    background-color: #0E3524;
    color: #ECFDF5;
    border-radius: 1rem;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.65;
}

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

/* Images */
.page-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6rem auto;
    border-radius: 1.25rem;
    border: 1px solid #E2E8E4;
    box-shadow: 0 8px 24px rgba(14, 53, 36, 0.08);
}

/* Responsive embedded videos (YouTube / Vimeo) */
.page-content iframe.ql-video,
.page-content iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 240px;
    margin: 1.6rem 0;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 10px 28px rgba(14, 53, 36, 0.12);
    background: #0E3524;
}

.page-content hr {
    border: 0;
    border-top: 1px solid #E2E8E4;
    margin: 2rem 0;
}

/* Quill alignment classes */
.page-content .ql-align-center { text-align: center; }
.page-content .ql-align-right { text-align: right; }
.page-content .ql-align-justify { text-align: justify; }

/* Quill indent classes */
.page-content .ql-indent-1 { padding-left: 2rem; }
.page-content .ql-indent-2 { padding-left: 4rem; }
.page-content .ql-indent-3 { padding-left: 6rem; }
.page-content .ql-indent-4 { padding-left: 8rem; }
.page-content .ql-indent-5 { padding-left: 10rem; }
.page-content .ql-indent-6 { padding-left: 12rem; }
.page-content .ql-indent-7 { padding-left: 14rem; }
.page-content .ql-indent-8 { padding-left: 16rem; }

/* Quill size classes */
.page-content .ql-size-small { font-size: 0.85em; }
.page-content .ql-size-large { font-size: 1.35em; }
.page-content .ql-size-huge { font-size: 1.85em; }

