/* Service pages keep their copy in the WordPress page editor. */
.jp-page--service .jp-service-hero {
    padding-bottom: clamp(48px, 6vw, 80px);
}

.jp-service-breadcrumbs {
    margin-top: 30px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.74);
}

.jp-service-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jp-service-breadcrumbs li {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.jp-service-breadcrumbs li + li::before {
    content: "/";
    color: rgba(255, 255, 255, 0.4);
}

.jp-service-breadcrumbs a {
    color: #b5edff;
    text-underline-offset: 4px;
}

.jp-service-breadcrumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.jp-service-breadcrumbs [aria-current="page"] {
    overflow-wrap: anywhere;
}

.jp-page--service .jp-service-hero__copy {
    max-width: 960px;
    padding-top: clamp(26px, 4vw, 46px);
}

.jp-page--service .jp-service-hero__copy h1 {
    max-width: 24ch;
    font-size: clamp(2.25rem, 4.3vw, 3.8rem);
    line-height: 1.12;
    overflow-wrap: break-word;
}

.jp-page--service .jp-service-hero__copy .jp-page__lead {
    max-width: 76ch;
    margin-bottom: 0;
}

.jp-page--service .jp-service-body {
    padding: clamp(36px, 6vw, 76px) 0 32px;
}

.jp-service-content {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 52px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05);
    overflow-wrap: break-word;
}

.jp-service-content h2 {
    margin-top: 1.8em;
    font-size: clamp(1.6rem, 2.5vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    scroll-margin-top: 24px;
}

.jp-service-content h3 {
    margin-top: 1.5em;
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.jp-service-content p {
    padding-bottom: 0;
}

.jp-service-content ul,
.jp-service-content ol {
    padding-left: 1.4em;
    line-height: 1.8;
}

.jp-service-content ul { list-style-type: disc; }
.jp-service-content ol { list-style-type: decimal; }

.jp-service-content li {
    padding-left: 0.15em;
}

.jp-service-content li::marker {
    color: #0b718e;
    font-weight: 700;
}

.jp-service-content a:not(.jp-button) {
    color: #096d8e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jp-service-content a:not(.jp-button):hover {
    color: #034b64;
}

.jp-service-content :where(section, .wp-block-group) > :first-child {
    margin-top: 0;
}

.jp-service-content > :where(section, .wp-block-group) + :where(section, .wp-block-group) {
    margin-top: clamp(32px, 4vw, 48px);
}

.jp-service-faq {
    padding-top: 28px;
    border-top: 1px solid #e3ebf2;
}

.jp-service-faq h2 {
    margin-top: 0;
}

.jp-service-faq details,
.jp-service-content details.wp-block-details {
    margin: 14px 0 0;
    padding: 18px 20px;
    border: 1px solid #dfeaf0;
    border-radius: 16px;
    background: #f6fafe;
}

.jp-service-faq summary,
.jp-service-content details.wp-block-details summary {
    color: #10243a;
    font-weight: 800;
    line-height: 1.5;
    cursor: pointer;
}

.jp-service-faq details[open] summary,
.jp-service-content details.wp-block-details[open] summary {
    margin-bottom: 12px;
}

.jp-service-faq details > :last-child,
.jp-service-content details.wp-block-details > :last-child {
    margin-bottom: 0;
}

.jp-service-content .jp-service-cta {
    margin-top: clamp(32px, 4vw, 48px);
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid #d4e9ee;
    border-radius: 24px;
    background: linear-gradient(135deg, #edfaf7, #eef7fd);
}

.jp-service-content .jp-service-cta h2 {
    margin-top: 0;
    font-size: clamp(1.5rem, 2.3vw, 1.95rem);
}

.jp-service-content .jp-service-cta p {
    margin-bottom: 22px;
}

.jp-service-content .jp-button {
    color: #021220;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    max-width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
}

.jp-service-links {
    padding-top: 24px;
    border-top: 1px solid #e3ebf2;
}

.jp-service-links h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.jp-service-links ul {
    margin-bottom: 0;
}

.jp-service-contact .jp-contact__cards {
    margin-top: 0;
}

.jp-page--service :where(a, summary):focus-visible {
    outline: 3px solid #0b83a7;
    outline-offset: 4px;
    border-radius: 4px;
}

.jp-service-hero :where(a, button):focus-visible,
.jp-page--service .jp-contact :where(a, button):focus-visible {
    outline-color: #7dd3fc;
}

@media (max-width: 700px) {
    .jp-service-breadcrumbs {
        font-size: 0.82rem;
    }

    .jp-service-content {
        padding: 24px 20px;
        border-radius: 20px;
        font-size: 1rem;
        line-height: 1.85;
    }

    .jp-service-content .jp-service-cta {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .jp-service-content .jp-service-cta .jp-button {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }
}
