.content-page-template main.page-php {
    width: calc(100% - var(--container-indent));
    max-width: 1920px;
    margin: var(--header-height) auto 6vh;
    padding-top: 32px;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.content-page-template main.page-php > * {
    min-width: 0;
    max-width: 100%;
}

.content-page-template main.page-php :where(h1, h2, h3, h4, h5, h6) {
    margin: 0.8em 0 0.6em;
    line-height: 1.25;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.content-page-template main.page-php h1 {
    font-size: 32px;
}

.content-page-template main.page-php h2 {
    font-size: 28px;
}

.content-page-template main.page-php h3 {
    font-size: 24px;
}

.content-page-template main.page-php h4 {
    font-size: 22px;
}

.content-page-template main.page-php :where(h5, h6) {
    font-size: 20px;
}

.content-page-template main.page-php > :first-child {
    margin-top: 0;
}

.content-page-template main.page-php :where(p, li, dd, dt) {
    font-size: inherit;
    line-height: inherit;
}

.content-page-template main.page-php p {
    margin-bottom: 0.8em;
}

.content-page-template main.page-php :where(ul, ol) {
    margin: 0 0 1.2em;
    padding: 0.2em 0 0 1.8em;
    list-style-position: outside;
}

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

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

.content-page-template main.page-php ul ul,
.content-page-template main.page-php ol ul {
    list-style-type: circle;
}

.content-page-template main.page-php ol ol {
    list-style-type: lower-alpha;
}

.content-page-template main.page-php li {
    margin-bottom: 0.35em;
}

.content-page-template main.page-php li :where(ul, ol) {
    margin-top: 0.35em;
    margin-bottom: 0;
}

.content-page-template main.page-php a:not(:where(.wp-block-button__link, .wp-element-button, .button, .btn)) {
    color: #117736;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    word-break: normal;
    overflow-wrap: anywhere;
}

.content-page-template main.page-php a:not(:where(.wp-block-button__link, .wp-element-button, .button, .btn)):hover {
    color: var(--black);
    text-decoration-thickness: 2px;
}

.content-page-template main.page-php a:focus-visible {
    outline: 2px solid #117736;
    outline-offset: 3px;
}

.content-page-template main.page-php :where(img, video, iframe) {
    max-width: 100%;
}

.content-page-template main.page-php :where(img, video) {
    height: auto;
}

.content-page-template main.page-php figure {
    margin: 0 0 1.2em;
}

.content-page-template main.page-php figcaption {
    margin-top: 0.5em;
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.5;
}

.content-page-template main.page-php blockquote {
    margin: 0 0 1.2em;
    padding: 0.5em 0 0.5em 1em;
    border-left: 3px solid var(--primary);
}

.content-page-template main.page-php blockquote > :last-child {
    margin-bottom: 0;
}

.content-page-template main.page-php hr {
    width: 100%;
    margin: 1.5em 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.content-page-template main.page-php :where(pre, .wp-block-table) {
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 1.2em;
}

.content-page-template main.page-php table {
    width: 100%;
    border-collapse: collapse;
    line-height: 1.5;
}

.content-page-template main.page-php :where(th, td) {
    padding: 0.6em 0.8em;
    border: 1px solid var(--border);
    text-align: start;
    vertical-align: top;
}

.content-page-template main.page-php th {
    background: var(--light-gray);
    font-weight: 600;
}

@media (max-width: 767px) {
    .content-page-template main.page-php {
        padding-top: 20px;
        font-size: 16px;
    }

    .content-page-template main.page-php h1 {
        font-size: 28px;
    }

    .content-page-template main.page-php h2 {
        font-size: 24px;
    }

    .content-page-template main.page-php h3 {
        font-size: 22px;
    }

    .content-page-template main.page-php :is(h4, h5, h6) {
        font-size: 20px;
    }
}
