.ftm-global-header {
    --ftm-header-ink: #17302e;
    --ftm-header-green: #174b47;
    --ftm-header-orange: #ef7622;
    background: #fffef8;
    border-bottom: 2px solid var(--ftm-header-ink);
    box-sizing: border-box;
    font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
    padding: 16px max(18px, env(safe-area-inset-right)) 16px max(18px, env(safe-area-inset-left));
    position: relative;
    z-index: 100;
}

.ftm-global-header-inner {
    align-items: center;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    margin: 0 auto;
    max-width: 1240px;
    min-width: 0;
}

.ftm-global-brand {
    color: var(--ftm-header-orange);
    font-size: 1rem;
    font-weight: 800;
    justify-self: start;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.ftm-global-navigation {
    justify-self: center;
}

.ftm-global-navigation .wp-block-navigation-item__content {
    color: var(--ftm-header-green);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.ftm-global-navigation .wp-block-navigation-item__content:hover,
.ftm-global-navigation .wp-block-navigation-item__content:focus,
.ftm-global-brand:hover,
.ftm-global-brand:focus {
    color: var(--ftm-header-orange);
}

.ftm-global-header-inner > .ftm-account-controls {
    justify-self: end;
    margin: 0;
    min-width: 0;
}

.admin-bar .ftm-global-header {
    z-index: 999;
}

@media (max-width: 900px) {
    .ftm-global-header-inner {
        gap: 14px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ftm-global-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .ftm-global-header {
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .ftm-global-header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .ftm-global-brand {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ftm-global-navigation {
        grid-column: 2;
        grid-row: 1;
    }

    .ftm-global-header-inner > .ftm-account-controls {
        grid-column: 3;
    }

    .ftm-global-navigation .wp-block-navigation__responsive-container-open {
        color: var(--ftm-header-green);
    }

    .ftm-global-navigation .wp-block-navigation__responsive-container.is-menu-open {
        background: #fffef8;
        color: var(--ftm-header-green);
        padding: 28px 24px;
    }

    .ftm-global-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        align-items: flex-start;
        gap: 18px;
    }
}

@media (max-width: 420px) {
    .ftm-global-brand {
        font-size: 0.88rem;
        max-width: 112px;
        white-space: normal;
    }
}

.ftm-global-footer {
    background: #fffef8;
    border-top: 2px solid var(--ftm-header-ink, #17302e);
    color: #5b716d;
    font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
    margin-top: 56px;
    padding: 22px max(18px, env(safe-area-inset-right)) 24px max(18px, env(safe-area-inset-left));
}

.ftm-global-footer-inner {
    gap: 16px 28px;
    margin: 0 auto;
    max-width: 1240px;
}

.ftm-footer-credit {
    font-size: 0.76rem;
    margin: 0;
}

.ftm-footer-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.ftm-footer-navigation a {
    color: #174b47;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.ftm-footer-navigation a:hover,
.ftm-footer-navigation a:focus {
    color: #ef7622;
}

.ftm-footer-disclaimer {
    flex-basis: 100%;
    font-size: 0.72rem;
    margin: 0;
}

.ftm-blog-main {
    color: #17302e;
    font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
    padding: clamp(42px, 7vw, 80px) max(18px, env(safe-area-inset-right)) 24px max(18px, env(safe-area-inset-left));
}

.ftm-blog-heading {
    margin-bottom: 36px;
}

.ftm-blog-heading h1,
.ftm-single-header h1 {
    color: #174b47;
    font-family: Rockwell, "Roboto Slab", Georgia, serif;
    font-size: clamp(2.15rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 14px;
}

.ftm-section-kicker {
    color: #ef7622;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ftm-post-query > ul {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ftm-post-card {
    background: #fffef8;
    border: 1px solid rgba(23, 75, 71, 0.22);
    min-height: 220px;
    padding: clamp(22px, 4vw, 34px);
}

.ftm-post-card .wp-block-post-date {
    color: #5b716d;
    font-size: 0.76rem;
    font-weight: 700;
}

.ftm-post-card .wp-block-post-title {
    font-family: Rockwell, "Roboto Slab", Georgia, serif;
    line-height: 1.08;
    margin: 10px 0 14px;
}

.ftm-post-card .wp-block-post-title a,
.ftm-post-card .wp-block-post-excerpt__more-link,
.ftm-post-navigation a,
.ftm-comments a {
    color: #174b47;
}

.ftm-empty-state {
    background: #fffef8;
    border-left: 3px solid #ef7622;
    padding: 20px;
}

.ftm-single-header,
.ftm-single-main > .wp-block-post-content,
.ftm-comments {
    width: min(840px, 100%);
}

.ftm-single-header {
    margin-bottom: 30px;
}

.ftm-single-main > .wp-block-post-content {
    line-height: 1.72;
}

.ftm-post-navigation {
    border-top: 1px solid rgba(23, 75, 71, 0.22);
    margin-top: 48px;
    padding-top: 20px;
}

.ftm-comments {
    border-top: 2px solid #17302e;
    margin-top: 48px;
    padding-top: 30px;
}

.ftm-comment {
    border-bottom: 1px solid rgba(23, 75, 71, 0.22);
    padding: 18px 0;
}

.ftm-comments input:not([type="checkbox"]),
.ftm-comments textarea {
    border: 1px solid rgba(23, 75, 71, 0.35);
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
}

.ftm-comments .form-submit input {
    background: #174b47;
    border: 1px solid #174b47;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 16px;
}

@media (max-width: 640px) {
    .ftm-global-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .ftm-post-query > ul {
        grid-template-columns: 1fr;
    }

    .ftm-post-card {
        min-height: 0;
    }
}
