/* Lucky Lion Article Design System V1. The public renderer is intentionally scoped. */
.ll-article-content {
    --ll-article-accent: var(--ll-brand-red, #b5121b);
    --ll-article-accent-soft: var(--ll-brand-red-soft, #fff1f2);
    --ll-article-surface: var(--ll-bg-card, #ffffff);
    --ll-article-surface-soft: var(--ll-bg-section, #f6f7f8);
    --ll-article-border: var(--ll-border, #e5e7eb);
    --ll-article-radius: 12px;
    --ll-article-width: 960px;
    --ll-article-body-size: 1rem;
    --ll-article-line-height: 1.75;
    --ll-article-block-space: 2.35rem;
    width: 100%;
    max-width: var(--ll-article-width);
    min-width: 0;
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.ll-article-content[data-ll-palette="neutral"] {
    --ll-article-accent: #4b5563;
    --ll-article-accent-soft: #f3f4f6;
}

.ll-article-content[data-ll-palette="carbon"] {
    --ll-article-accent: #1a1a1a;
    --ll-article-accent-soft: #eef0f2;
}

.ll-article-content[data-ll-width="wide"] {
    --ll-article-width: 1120px;
}

.ll-article-content[data-ll-width="compact"] {
    --ll-article-width: 820px;
}

.ll-article-content[data-ll-body-size="large"] {
    --ll-article-body-size: 1.125rem;
}

.ll-article-content[data-ll-body-size="compact"] {
    --ll-article-body-size: .95rem;
}

.ll-article-content[data-ll-line-height="relaxed"] {
    --ll-article-line-height: 1.95;
}

.ll-article-content[data-ll-line-height="compact"] {
    --ll-article-line-height: 1.55;
}

.ll-article-content[data-ll-spacing="standard"] {
    --ll-article-block-space: 1.75rem;
}

.ll-article-content[data-ll-spacing="compact"] {
    --ll-article-block-space: 1.2rem;
}

.ll-article-content[data-ll-radius="rounded"] {
    --ll-article-radius: 18px;
}

.ll-article-content[data-ll-radius="none"] {
    --ll-article-radius: 0;
}

.ll-article-content .ll-article-renderer {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--ll-text-body, #2f343a);
    font-size: var(--ll-article-body-size);
    line-height: var(--ll-article-line-height);
    overflow: visible;
}

.ll-article-content .ll-article-renderer > * {
    max-width: 100%;
}

.ll-article-content .ll-article-renderer p,
.ll-article-content .ll-article-renderer li,
.ll-article-content .ll-article-renderer td,
.ll-article-content .ll-article-renderer th {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.ll-article-content .ll-article-renderer p {
    margin-block: 0 1rem;
}

.ll-article-content .ll-article-renderer p:last-child {
    margin-block-end: 0;
}

.ll-article-content .ll-article-renderer a {
    color: var(--ll-article-accent);
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .15em;
}

.ll-article-content .ll-article-renderer ul,
.ll-article-content .ll-article-renderer ol {
    margin-block: 0 1.2rem;
    padding-inline-start: 1.45rem;
}

.ll-article-content .ll-article-renderer ul li {
    list-style: disc;
}

.ll-article-content .ll-article-renderer ol li {
    list-style: decimal;
}

.ll-article-content .ll-article-renderer > .ll-article-intro,
.ll-article-content .ll-article-renderer > .ll-article-section,
.ll-article-content .ll-article-renderer > .ll-article-figure,
.ll-article-content .ll-article-renderer > .ll-article-quote,
.ll-article-content .ll-article-renderer > .ll-article-highlight,
.ll-article-content .ll-article-renderer > .ll-article-table,
.ll-article-content .ll-article-renderer > .ll-article-stat-grid,
.ll-article-content .ll-article-renderer > .ll-article-cta {
    margin-block-end: var(--ll-article-block-space);
}

.ll-article-content .ll-article-renderer > .ll-article-intro {
    margin-block-start: 0;
    padding-block: 1.35rem;
    padding-inline: 1.5rem 1.65rem;
    border: 1px solid var(--ll-article-border);
    border-inline-start: 4px solid var(--ll-article-accent);
    border-radius: var(--ll-article-radius);
    background: var(--ll-article-accent-soft);
}

.ll-article-content .ll-article-intro p {
    margin: 0;
    color: var(--ll-text-main, #111111);
    font-size: 1.08em;
    font-weight: 600;
}

.ll-article-content .ll-article-section > h2,
.ll-article-content .ll-article-section > h3 {
    margin-block: 0 .85rem;
    color: var(--ll-text-main, #111111);
    font-weight: 700;
    letter-spacing: -.02em;
}

.ll-article-content .ll-article-section > h2 {
    font-size: 2rem;
    line-height: 1.2;
}

.ll-article-content .ll-article-section > h3 {
    font-size: 1.45rem;
    line-height: 1.3;
}

.ll-article-content[data-ll-heading="strong"] .ll-article-section > h2 {
    font-size: 2.25rem;
}

.ll-article-content[data-ll-heading="compact"] .ll-article-section > h2 {
    font-size: 1.7rem;
}

.ll-article-content[data-ll-heading="compact"] .ll-article-section > h3 {
    font-size: 1.3rem;
}

.ll-article-content .ll-article-figure {
    margin-block-start: 0;
    text-align: center;
}

.ll-article-content .ll-article-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: var(--ll-article-radius);
}

.ll-article-content .ll-article-figure figcaption {
    margin-block-start: .7rem;
    color: var(--ll-text-muted, #7a7f87);
    font-size: .9em;
    line-height: 1.5;
    text-align: start;
}

.ll-article-content .ll-article-quote {
    margin-block-start: 0;
    padding-block: 1.15rem;
    padding-inline: 1.35rem;
    border: 1px solid var(--ll-article-border);
    border-inline-start: 4px solid var(--ll-article-accent);
    border-radius: var(--ll-article-radius);
    background: var(--ll-article-surface-soft);
}

.ll-article-content .ll-article-quote p {
    color: var(--ll-text-main, #111111);
    font-size: 1.12em;
    font-weight: 600;
}

.ll-article-content .ll-article-quote cite {
    display: block;
    margin-block-start: .7rem;
    color: var(--ll-text-secondary, #5f6368);
    font-size: .9em;
    font-style: normal;
}

.ll-article-content .ll-article-highlight {
    padding-block: 1.25rem;
    padding-inline: 1.4rem;
    border: 1px solid transparent;
    border-inline-start: 4px solid var(--ll-article-accent);
    border-radius: var(--ll-article-radius);
    background: var(--ll-article-accent-soft);
}

.ll-article-content[data-ll-highlight="neutral_soft"] .ll-article-highlight {
    --ll-article-highlight-bg: var(--ll-bg-section-alt, #f2f4f6);
    background: var(--ll-article-highlight-bg);
}

.ll-article-content[data-ll-highlight="carbon"] .ll-article-highlight {
    border-color: var(--ll-border-dark, rgba(255, 255, 255, .14));
    background: var(--ll-section-dark, #151a1d);
    color: var(--ll-text-inverse-muted, rgba(255, 255, 255, .72));
}

.ll-article-content[data-ll-highlight="carbon"] .ll-article-highlight p,
.ll-article-content[data-ll-highlight="carbon"] .ll-article-highlight strong {
    color: inherit;
}

.ll-article-content .ll-article-table {
    max-width: 100%;
    margin-block-start: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.ll-article-content .ll-article-table table {
    width: 100%;
    min-width: 640px;
    margin: 0;
    border-collapse: collapse;
    border: 1px solid var(--ll-article-border);
    background: var(--ll-article-surface);
}

.ll-article-content .ll-article-table th,
.ll-article-content .ll-article-table td {
    padding-block: .85rem;
    padding-inline: 1rem;
    border: 1px solid var(--ll-article-border);
    text-align: start;
    vertical-align: top;
}

.ll-article-content .ll-article-table th {
    background: var(--ll-article-accent-soft);
    color: var(--ll-text-main, #111111);
    font-weight: 700;
}

.ll-article-content .ll-article-table tbody tr:nth-child(even) {
    background: var(--ll-article-surface-soft);
}

.ll-article-content[data-ll-table="comfortable"] .ll-article-table th,
.ll-article-content[data-ll-table="comfortable"] .ll-article-table td {
    padding-block: 1.1rem;
    padding-inline: 1.2rem;
}

.ll-article-content[data-ll-table="compact"] .ll-article-table th,
.ll-article-content[data-ll-table="compact"] .ll-article-table td {
    padding-block: .6rem;
    padding-inline: .75rem;
}

.ll-article-content .ll-article-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ll-article-content .ll-article-stat-grid > div {
    min-width: 0;
    padding-block: 1.1rem;
    padding-inline: 1rem;
    border: 1px solid var(--ll-article-border);
    border-radius: var(--ll-article-radius);
    background: var(--ll-article-surface);
    box-shadow: 0 4px 14px rgba(17, 17, 17, .05);
}

.ll-article-content .ll-article-stat-grid > div > strong {
    display: block;
    margin-block-end: .35rem;
    color: var(--ll-article-accent);
    font-size: 1.65rem;
    line-height: 1.1;
}

.ll-article-content .ll-article-stat-grid > div > span {
    display: block;
    color: var(--ll-text-secondary, #5f6368);
    font-size: .9em;
    line-height: 1.45;
}

.ll-article-content .ll-article-cta {
    padding-block: 2rem;
    padding-inline: 2.2rem;
    border-radius: var(--ll-article-radius);
    background: var(--ll-section-dark, #151a1d);
    color: var(--ll-text-inverse-muted, rgba(255, 255, 255, .72));
}

.ll-article-content[data-ll-cta="brand_dark"] .ll-article-cta {
    background: var(--ll-footer-bg, #0f1115);
}

.ll-article-content .ll-article-cta > p:first-child {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-block-end: .8rem;
    padding-block: .28rem;
    padding-inline: .68rem;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    color: var(--ll-text-inverse-muted, rgba(255, 255, 255, .78));
    font-size: .75em;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: none;
}

.ll-article-content .ll-article-cta > h2,
.ll-article-content .ll-article-cta > h3 {
    max-width: 28ch;
    margin-block: 0 .7rem;
    color: var(--ll-text-inverse, #ffffff);
    font-size: 1.8rem;
    line-height: 1.2;
}

.ll-article-content .ll-article-cta > p:not(:first-child) {
    max-width: 68ch;
    color: var(--ll-text-inverse-muted, rgba(255, 255, 255, .72));
}

.ll-article-content .ll-article-cta > div:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-block-start: 1.35rem;
}

.ll-article-content .ll-article-cta > div:last-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding-block: .7rem;
    padding-inline: 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .9em;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ll-article-content .ll-article-cta > div:last-child a:first-child {
    border-color: var(--ll-brand-red, #b5121b);
    background: var(--ll-brand-red, #b5121b);
    color: #ffffff;
}

.ll-article-content .ll-article-cta > div:last-child a:first-child:hover {
    background: var(--ll-brand-red-hover, #d61f2c);
    border-color: var(--ll-brand-red-hover, #d61f2c);
}

.ll-article-content .ll-article-cta > div:last-child a:not(:first-child) {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--ll-footer-bg, #0f1115);
}

.ll-article-content .ll-article-cta > div:last-child a:not(:first-child):hover {
    border-color: #f2f4f6;
    background: #f2f4f6;
}

/*
 * Legacy News CTA compatibility.
 *
 * Historical News HTML has no Article DS classes. Its surviving sanitized
 * shape is intentionally matched through the semantic CTA child sequence and
 * exact Lucky Lion WhatsApp target, keeping ordinary rich-text links outside
 * this compatibility surface.
 */
.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) {
    margin-block-start: 2.625rem;
    padding-block: 2rem;
    padding-inline: 2.2rem;
    border-radius: var(--ll-article-radius, 18px);
    background: var(--ll-section-dark, #151a1d);
    color: var(--ll-text-inverse-muted, rgba(255, 255, 255, .72));
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:first-child {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-block-end: .8rem;
    padding-block: .28rem;
    padding-inline: .68rem;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    color: var(--ll-text-inverse-muted, rgba(255, 255, 255, .78));
    font-size: .75em;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > h2 {
    max-width: 28ch;
    margin-block: 0 .7rem;
    color: var(--ll-text-inverse, #ffffff);
    font-size: 1.8rem;
    line-height: 1.2;
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > p {
    max-width: 68ch;
    color: var(--ll-text-inverse-muted, rgba(255, 255, 255, .72));
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-block-start: 1.35rem;
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding-block: .7rem;
    padding-inline: 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .9em;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child > a:first-child {
    border-color: var(--ll-brand-red, #b5121b);
    background: var(--ll-brand-red, #b5121b);
    color: #ffffff;
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child > a:first-child:hover {
    border-color: var(--ll-brand-red-hover, #d61f2c);
    background: var(--ll-brand-red-hover, #d61f2c);
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child > a:not(:first-child) {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--ll-footer-bg, #0f1115);
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child > a:not(:first-child):hover {
    border-color: #f2f4f6;
    background: #f2f4f6;
}

.news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child > a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .72);
    outline-offset: 2px;
}

html[dir="rtl"] .news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:first-child {
    letter-spacing: normal;
}

html[dir="rtl"] .ll-article-content .ll-article-cta > p:first-child {
    letter-spacing: normal;
    text-transform: none;
}

@media screen and (max-width: 900px) {
    .ll-article-content .ll-article-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ll-article-content .ll-article-cta {
        padding-block: 1.6rem;
        padding-inline: 1.6rem;
    }

    .news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) {
        padding-block: 1.6rem;
        padding-inline: 1.6rem;
    }

}

@media screen and (max-width: 640px) {
    .ll-article-content .ll-article-renderer {
        font-size: max(.95rem, var(--ll-article-body-size));
    }

    .ll-article-content .ll-article-renderer > .ll-article-intro,
    .ll-article-content .ll-article-renderer > .ll-article-highlight,
    .ll-article-content .ll-article-renderer > .ll-article-quote {
        padding-block: 1rem;
        padding-inline: 1rem;
    }

    .ll-article-content .ll-article-section > h2,
    .ll-article-content[data-ll-heading="strong"] .ll-article-section > h2 {
        font-size: 1.65rem;
    }

    .ll-article-content .ll-article-section > h3 {
        font-size: 1.25rem;
    }

    .ll-article-content .ll-article-stat-grid {
        grid-template-columns: 1fr;
    }

    .ll-article-content .ll-article-table table {
        min-width: 560px;
    }

    .ll-article-content .ll-article-cta > h2,
    .ll-article-content .ll-article-cta > h3 {
        font-size: 1.5rem;
    }

    .ll-article-content .ll-article-cta > div:last-child {
        align-items: stretch;
        flex-direction: column;
    }

    .ll-article-content .ll-article-cta > div:last-child a {
        width: 100%;
    }

    .news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > h2 {
        font-size: 1.5rem;
    }

    .news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child {
        align-items: stretch;
        flex-direction: column;
    }

    .news_body :is(.rich-text-content > div, .rich-text-content > div > div):has(> div:first-child + h2 + p + div:last-child > a:nth-child(2):last-child[href="https://wa.me/8613070809231"]) > div:last-child > a {
        width: 100%;
    }

}
