.book-title a {
    color: var(--blue);
    text-decoration: none;
    display: block;
}
.book-cover a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ── JOIN COMMUNITY MODAL ── */
.jm-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(23, 33, 59, .65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

.jm-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.jm-panel {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(24px);
    transition: transform .35s var(--ease);
    box-shadow: 0 32px 80px rgba(23, 33, 59, .22);
}

.jm-overlay.open .jm-panel {
    transform: translateY(0);
}

.jm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--faded20);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    transition: all .2s;
}

.jm-close:hover {
    background: var(--cream-deep);
    color: var(--blue);
}

/* PDF pill tag */
.jm-pill-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.jm-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cream-deep);
    border: 1px solid var(--faded20);
    border-radius: 9999px;
    padding: 6px 14px 6px 10px;
}

.jm-pill svg {
    width: 14px;
    height: 14px;
    color: var(--muted);
    flex-shrink: 0;
}

.jm-pill-text {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--blue);
    letter-spacing: .02em;
}

/* Form header */
.jm-title {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(20px, 2.8vw, 26px);
    font-weight: 500;
    color: var(--blue);
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: center;
}

.jm-sub {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
    letter-spacing: -.01em;
    text-align: center;
}

/* Fields */
.jm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.jm-lbl {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    color: var(--blue);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.jm-req {
    color: var(--sky);
}

.jm-in {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 300;
    color: var(--blue);
    background: var(--cream);
    border: 1.5px solid var(--faded20);
    border-radius: 10px;
    padding: 11px 14px;
    outline: none;
    transition: border-color .2s;
    width: 100%;
}

.jm-in:focus {
    border-color: var(--sky);
    background: var(--white);
}

.jm-in::placeholder {
    color: var(--faded40);
}

.jm-check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
}

.jm-check {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: var(--blue);
    margin-top: 3px;
    cursor: pointer;
}

.jm-check-lbl {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.65;
    letter-spacing: .01em;
}

.jm-submit {
    width: 100%;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    background: var(--blue);
    border: none;
    border-radius: 9999px;
    height: 50px;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.jm-submit:hover {
    background: var(--blue-depth);
    transform: scale(.99);
}

/* Thank-you state */
.jm-thankyou {
    display: none;
    text-align: center;
    padding: 16px 0;
}

.jm-thankyou.show {
    display: block;
}

.jm-form.hide {
    display: none;
}

#jm-header.hide {
    display: none;
}

.jm-ty-icon {
    width: 56px;
    height: 56px;
    background: rgba(106, 145, 240, .1);
    border: 1.5px solid rgba(106, 145, 240, .25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.jm-ty-icon svg {
    width: 26px;
    height: 26px;
    color: var(--sky);
}

.jm-ty-h {
    font-family: 'Clash Display', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--blue);
    letter-spacing: -.03em;
    margin-bottom: 10px;
}

.jm-ty-p {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.jm-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    background: var(--blue);
    text-decoration: none;
    padding: 0 32px;
    height: 50px;
    border-radius: 9999px;
    transition: background .2s;
}

.jm-download:hover {
    background: var(--blue-depth);
}

.jm-download svg {
    width: 16px;
    height: 16px;
}

.toolkit-box {
    max-width: 760px;
    margin: 0 auto 34px;
    padding: 18px 22px;
    border: 1px solid var(--faded20);
    border-radius: 20px;
    background: var(--cream);
    text-align: left;
}

.toolkit-label {
    margin: 0 0 13px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--blue);
}

.toolkit-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.toolkit-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.toolkit-item span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    border-radius: 999px;
    background: rgba(106, 145, 240, .14);
    color: var(--sky);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
}

.toolkit-item p {
    margin: 0;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--blue-depth);
}

.privacy-note {
    margin: 17px 0 0;
    text-align: center;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.4;
    color: var(--faded40);
}

.jm-in.wpcf7-not-valid, .cm-in.wpcf7-not-valid, .cta-input.wpcf7-not-valid, .cf-in.wpcf7-not-valid {
    border-color: #DF1E2E;
}
span.wpcf7-not-valid-tip {
    display: none;
    font-weight: 600;
    font-size: 12px;
    line-height: 26px;
    color: #DF1E2E;
    font-family: "Montserrat", sans-serif;
    margin-top: 2px;
}
.wpcf7 form .wpcf7-response-output {
    padding: 0 !important;
    border: none !important;
    display: block;
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    color: #DF1E2E;
    font-family: "Montserrat", sans-serif;
    max-width: unset;
    margin: 14px auto 0 !important;
    width: 100%;
}
.wpcf7 form.sent .wpcf7-response-output {
    color: #46b450 !important;
}
.jm-panel .wpcf7 form .wpcf7-response-output, .cm-panel .wpcf7 form .wpcf7-response-output {
    text-align: center;
}
.jm-check-row .wpcf7-list-item {
    margin: 0;
}
.jm-check-row label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 0px;
    cursor: pointer;
}
.jm-check-row label span.wpcf7-list-item-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.65;
    letter-spacing: .01em;
}
.jm-check-row label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: var(--blue);
    margin-top: 3px;
    cursor: pointer;
}
.form-btn {
    position: relative;
}
span.wpcf7-spinner {
    position: absolute;
    margin: 0;
    right: 10px;
    top: 12px;
}
/* .page-template-home .nav-links a.current-menu-item {
    color: var(--white);
}
.nav-links a.current-menu-item {
    color: var(--blue);
} */
@media(max-width:768px) {
    a.nav-cta.mob-overlay-cta {
        height: auto;
    }
}
@media(max-width:600px) {
    .jm-overlay {
        align-items: flex-start;
        padding: 60px 20px 30px;
    }
    .jm-panel {
        padding: 58px 20px 28px;
        max-height: 87vh;
    }
    .toolkit-box {
        margin: 0 auto 25px;
        padding: 18px 15px;
    }

    .toolkit-label {
        letter-spacing: .10em;
    }

    .toolkit-list {
        grid-template-columns: repeat(1, 1fr);
    }
}
