.entry-content .certificate-guide {
    --cert-ink: #22334c;
    --cert-accent: #234c78;
    --cert-border: #d7e3ee;
    max-width: 960px;
    margin-inline: auto;
    color: var(--cert-ink);
    line-height: 1.65;
}

.entry-content .certificate-guide :is(h2, h3, p, li, strong) {
    color: var(--cert-ink) !important;
}

.entry-content .certificate-guide a {
    color: var(--cert-accent) !important;
    text-underline-offset: .18em;
}

.certificate-guide :is(a, button):focus-visible {
    outline: 3px solid #168072;
    outline-offset: 4px;
}

.entry-content .certificate-guide .certificate-intro {
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid var(--cert-border);
    border-radius: 24px;
    background: linear-gradient(120deg, #e6f5f2, #e8f1fd) !important;
}

.certificate-guide .certificate-intro p:last-child { margin-bottom: 0; }
.certificate-guide .certificate-routes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: .7rem;
    margin: 1.2rem 0 2rem;
    scroll-margin-top: 110px;
}

.entry-content .certificate-guide .certificate-routes a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6em;
    padding: .85em 1em;
    border: 1px solid var(--cert-border);
    border-radius: 14px;
    background: #f2f7fd;
    font-weight: 700;
    text-decoration: none;
}

.entry-content .certificate-guide .certificate-routes a:is(:hover, [aria-current]) {
    background: #deeff4;
    border-color: #7ba8b8;
}

.entry-content .certificate-guide .certificate-section {
    border: 1px solid var(--cert-border);
    border-radius: 22px;
    padding: clamp(16px, 3vw, 28px);
    margin-block: 1rem;
    background: #fff !important;
}

.entry-content .certificate-guide .certificate-section:has(h2:target) {
    border-color: #397b8d;
    box-shadow: 0 0 0 3px #e0eff4;
}

.entry-content .certificate-guide h2 { margin-top: 0; line-height: 1.22; scroll-margin-top: 110px; }
.entry-content .certificate-guide h3 { margin-block: 1.15em .45em; }
.entry-content .certificate-guide li + li { margin-top: .65em; }
.entry-content .certificate-guide :is(p, ul, ol, blockquote):last-child { margin-bottom: 0; }

.entry-content .certificate-guide blockquote {
    margin-inline: 0;
    padding: 1em;
    border: 1px solid #cadfdf;
    border-inline-start: 4px solid #348678;
    border-radius: 14px;
    background: #edf8f5 !important;
}

.entry-content .certificate-guide button.certificate-copy {
    appearance: none;
    padding: .45em .8em;
    border: 1px solid #28567c !important;
    border-radius: .6rem;
    background: #28567c !important;
    color: #fff !important;
    font: inherit;
    font-size: .9em;
    font-weight: 700;
    cursor: pointer;
    margin-top: .7em;
}

.certificate-guide .certificate-copy-status { display: block; margin-top: .3em; font-size: .85em; }
.certificate-guide .certificate-back { display: inline-block; margin-top: .5em; font-weight: 700; }


.entry-content .certificate-guide .certificate-intro {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.certificate-guide .certificate-intro::before {
    content: "";
    position: absolute;
    inset: -95px -55px auto auto;
    width: clamp(180px, 38vw, 380px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 24px solid #81c2b735;
    box-shadow: 0 0 0 20px #ffffff65 inset, 0 0 0 28px #ffffff60;
    transform: translateY(var(--certificate-shift, 0px));
    z-index: -1;
    pointer-events: none;
}

.entry-content .certificate-guide .certificate-reading-progress {
    position: fixed;
    z-index: 100;
    inset: auto 0 0;
    height: 4px;
    background: #cce5e4 !important;
    pointer-events: none;
}

.certificate-guide .certificate-reading-progress::before {
    content: "";
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1a796a, #426dad);
    transform: scaleX(var(--certificate-progress, 0));
    transform-origin: left;
}

@media (prefers-reduced-motion: no-preference) {
    .certificate-guide .certificate-routes a {
        transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    }

    .certificate-guide .certificate-section-enter {
        animation: certificate-section-enter .45s ease-out;
    }

    @keyframes certificate-section-enter {
        from { transform: translateY(8px); box-shadow: 0 9px 24px #22486a14; }
        to { transform: translateY(0); }
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .certificate-guide .certificate-routes a:hover {
        transform: translateY(-3px);
        box-shadow: 0 7px 18px #22486a20;
    }
}
