/*
 * Shared success-case fallback stylesheet.
 * Loaded by every active example-board theme so content formatting survives
 * theme CSS replacement or rollback.
 */
.post__view .post_content .case-content {
    box-sizing: border-box;
    max-width: 880px;
    margin: 0 auto;
    padding: 18px 8px 28px;
    color: #3f3f3f;
    font-size: 17px;
    line-height: 1.95;
    letter-spacing: -.015em;
    word-break: keep-all;
    overflow-wrap: break-word;
    counter-reset: case-section;
}
.post__view .post_content .case-content p { margin: 0 0 24px; }
.post__view .post_content .case-content > p:first-child,
.post__view .post_content .case-content .case-notice {
    margin: 0 0 42px;
    padding: 17px 20px;
    border-left: 4px solid #a58e58;
    border-radius: 4px;
    background: #f8f6f1;
    color: #665f54;
    font-size: 14px;
    line-height: 1.75;
}
.post__view .post_content .legacy-case-content > p:first-child {
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.post__view .post_content .case-content h3 {
    position: relative;
    margin: 54px 0 24px;
    padding: 0 0 15px 43px;
    border-bottom: 1px solid #d8c8a5;
    color: #272522;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    counter-increment: case-section;
}
.post__view .post_content .case-content h3:first-of-type { margin-top: 0; }
.post__view .post_content .case-content h3::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #a58e58;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    content: counter(case-section, decimal-leading-zero);
}
.post__view .post_content .case-content ul,
.post__view .post_content .case-content ol {
    margin: 8px 0 29px;
    padding: 8px 24px;
    border: 1px solid #e5dece;
    border-radius: 8px;
    background: #faf9f6;
    list-style: none;
}
.post__view .post_content .case-content ol { counter-reset: case-check; }
.post__view .post_content .case-content li {
    position: relative;
    margin: 0;
    padding: 15px 4px 15px 32px;
    border-bottom: 1px solid #ebe6db;
    line-height: 1.72;
}
.post__view .post_content .case-content li:last-child { border-bottom: 0; }
.post__view .post_content .case-content ul li::before {
    position: absolute;
    top: 15px;
    left: 3px;
    color: #8c7547;
    font-size: 17px;
    font-weight: 700;
    content: '✓';
}
.post__view .post_content .case-content ol li { counter-increment: case-check; }
.post__view .post_content .case-content ol li::before {
    position: absolute;
    top: 14px;
    left: 1px;
    width: 21px;
    height: 21px;
    border: 1px solid #a58e58;
    border-radius: 50%;
    color: #806d45;
    font-size: 12px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    content: counter(case-check);
}
.post__view .post_content .case-content .case-context {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 3px solid #bda46e;
    background: #f8f7f3;
    color: #56514a;
    font-size: 15px;
    line-height: 1.8;
}
.post__view .post_content .case-content .case-result {
    margin: 8px 0 26px;
    padding: 25px 27px;
    border: 1px solid #d9ccb0;
    border-radius: 9px;
    background: linear-gradient(135deg, #fbfaf7 0%, #f4f0e7 100%);
    box-shadow: 0 8px 24px rgba(56,48,34,.07);
}
.post__view .post_content .case-content .case-result p:last-child { margin-bottom: 0; }
.post__view .post_content .case-content .case-responsible {
    margin-top: 42px !important;
    padding-top: 18px !important;
    border-top: 1px solid #e2ded5 !important;
    color: #777 !important;
    font-size: 13px !important;
    text-align: right;
}
.post__view .post_content .case-cta {
    box-sizing: border-box;
    max-width: 880px;
    margin: 52px auto 16px;
    padding: 34px 36px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #28231c 0%, #493d2b 100%);
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    color: #fff;
    text-align: center;
    word-break: keep-all;
}
.post__view .post_content .case-cta p { margin: 0; color: inherit; }
.post__view .post_content .case-cta__eyebrow { color: #e0c98f; font-size: 14px; font-weight: 600; }
.post__view .post_content .case-cta__title { display: block; margin-top: 10px; color: #fff; font-size: 23px; line-height: 1.45; }
.post__view .post_content .case-cta__desc { max-width: 680px; margin: 13px auto 0 !important; color: #e7e1d7 !important; font-size: 15px; line-height: 1.75; }
.post__view .post_content .case-cta__buttons { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.post__view .post_content .case-cta__button { display: flex; min-width: 220px; min-height: 54px; padding: 11px 24px; align-items: center; justify-content: center; border-radius: 5px; font-size: 16px; font-weight: 700; text-decoration: none; }
.post__view .post_content .case-cta__button--call { background: #b89a5c; color: #fff; }
.post__view .post_content .case-cta__button--online { border: 1px solid rgba(255,255,255,.58); color: #fff; }
.post__view .post_content .case-cta__note { margin-top: 16px !important; color: #bdb5aa !important; font-size: 12px; }
@media (max-width: 767px) {
    .post__view .post_content .case-content { padding: 10px 2px 20px; font-size: 16px; line-height: 1.85; word-break: normal; }
    .post__view .post_content .case-content h3 { margin: 44px 0 20px; padding: 0 0 13px 38px; font-size: 20px; }
    .post__view .post_content .case-content h3::before { width: 27px; height: 27px; font-size: 12px; }
    .post__view .post_content .case-content ul,
    .post__view .post_content .case-content ol { padding: 5px 16px; }
    .post__view .post_content .case-content li { padding: 13px 0 13px 28px; }
    .post__view .post_content .case-cta { margin-top: 40px; padding: 27px 18px 22px; }
    .post__view .post_content .case-cta__title { font-size: 20px; }
    .post__view .post_content .case-cta__buttons { display: block; }
    .post__view .post_content .case-cta__button { width: 100%; min-width: 0; min-height: 52px; }
    .post__view .post_content .case-cta__button + .case-cta__button { margin-top: 10px; }
}

/* System dark mode: success-case reading surface and CTA */
@media (prefers-color-scheme: dark) {
    .post__view .post_content {
        background: #16191d;
        color-scheme: dark;
    }
    .post__view .post_content .case-content {
        color: #e4e7eb;
    }
    .post__view .post_content .case-content a:not(.case-cta__button) {
        color: #e3c477;
        text-decoration-color: rgba(227,196,119,.65);
    }
    .post__view .post_content .case-content > p:first-child,
    .post__view .post_content .case-content .case-notice {
        border-left-color: #c8a96b;
        background: #22262c;
        color: #d9dde3;
    }
    .post__view .post_content .legacy-case-content > p:first-child {
        background: transparent;
        color: inherit;
    }
    .post__view .post_content .case-content h3 {
        border-bottom-color: #675a3f;
        color: #f4f1e9;
    }
    .post__view .post_content .case-content h3::before {
        background: #b59654;
        color: #111317;
    }
    .post__view .post_content .case-content ul,
    .post__view .post_content .case-content ol {
        border-color: #3c414a;
        background: #1d2126;
    }
    .post__view .post_content .case-content li {
        border-bottom-color: #323740;
    }
    .post__view .post_content .case-content ul li::before {
        color: #d6b978;
    }
    .post__view .post_content .case-content ol li::before {
        border-color: #c5a765;
        color: #e1c98e;
    }
    .post__view .post_content .case-content .case-context {
        border-left-color: #c5a765;
        background: #20242a;
        color: #d7dbe0;
    }
    .post__view .post_content .case-content .case-result {
        border-color: #6c5b39;
        background: linear-gradient(135deg, #20242a 0%, #292720 100%);
        box-shadow: 0 8px 24px rgba(0,0,0,.28);
    }
    .post__view .post_content .case-content .case-responsible {
        border-top-color: #41464e !important;
        color: #b7bcc4 !important;
    }
    .post__view .post_content .case-cta {
        border: 1px solid #4d4538;
        background: linear-gradient(135deg, #17191d 0%, #2e2921 100%);
        box-shadow: 0 12px 32px rgba(0,0,0,.38);
        color: #f7f7f5;
    }
    .post__view .post_content .case-cta__eyebrow { color: #e5ca87; }
    .post__view .post_content .case-cta__title { color: #fff; }
    .post__view .post_content .case-cta__desc { color: #e2e3e5 !important; }
    .post__view .post_content .case-cta__button--call {
        background: #c4a45f;
        color: #111317;
    }
    .post__view .post_content .case-cta__button--online {
        border-color: #9da4ae;
        color: #fff;
    }
    .post__view .post_content .case-cta__button:focus-visible {
        outline: 3px solid #f2d48e;
        outline-offset: 3px;
    }
    .post__view .post_content .case-cta__note { color: #c5c8ce !important; }
}

/* CTA link hardening: defeat legacy site-wide anchor decoration and colors. */
.post__view .post_content .case-cta a.case-cta__button,
.post__view .post_content .case-cta a.case-cta__button:link,
.post__view .post_content .case-cta a.case-cta__button:visited,
.post__view .post_content .case-cta a.case-cta__button:hover,
.post__view .post_content .case-cta a.case-cta__button:active {
    text-decoration: none !important;
}
.post__view .post_content .case-cta a.case-cta__button *,
.post__view .post_content .case-cta a.case-cta__button strong,
.post__view .post_content .case-cta a.case-cta__button span {
    border-bottom: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
}
.post__view .post_content .case-cta a.case-cta__button--call,
.post__view .post_content .case-cta a.case-cta__button--call:link,
.post__view .post_content .case-cta a.case-cta__button--call:visited,
.post__view .post_content .case-cta a.case-cta__button--call:hover,
.post__view .post_content .case-cta a.case-cta__button--call:active {
    background: #c4a45f !important;
    color: #14110b !important;
}
.post__view .post_content .case-cta a.case-cta__button--online,
.post__view .post_content .case-cta a.case-cta__button--online:link,
.post__view .post_content .case-cta a.case-cta__button--online:visited,
.post__view .post_content .case-cta a.case-cta__button--online:hover,
.post__view .post_content .case-cta a.case-cta__button--online:active {
    border-color: rgba(255,255,255,.78) !important;
    color: #fff !important;
}
.post__view .post_content .case-cta a.case-cta__button--online:hover,
.post__view .post_content .case-cta a.case-cta__button--online:focus-visible {
    background: rgba(255,255,255,.12) !important;
}
