/* SVQ8 LINK SAFETY — COMPACT UI V1 */

.link-safety-page {
    --ls-navy: #0B1D3A;
    --ls-blue: #0077FF;
    --ls-white: #FFFFFF;
    --ls-gray: #E6EBF1;
    --ls-muted: #64748B;

    --ls-green: #16A36A;
    --ls-green-soft: #ECFDF3;

    --ls-yellow: #D99A00;
    --ls-yellow-soft: #FFF8E1;

    --ls-orange: #E76A16;
    --ls-orange-soft: #FFF3E9;

    --ls-red: #D92D20;
    --ls-red-soft: #FFF0EE;

    color: var(--ls-navy);
    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(0, 119, 255, .08),
            transparent 32rem
        ),
        #F7F9FC;
    min-height: 72vh;
    padding: 42px 16px 70px;
}

.link-safety-shell {
    width: min(920px, 100%);
    margin-inline: auto;
}

.link-safety-head {
    margin-bottom: 24px;
    text-align: center;
}

.link-safety-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--ls-blue);
    font-size: .78rem;
    font-weight: 900;
}

.link-safety-head h1 {
    margin: 0;
    color: var(--ls-navy);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.25;
    font-weight: 900;
}

.link-safety-head p {
    max-width: 560px;
    margin: 10px auto 0;
    color: var(--ls-muted);
    font-size: .97rem;
    line-height: 1.8;
}


/* FORM */

.link-safety-form-card {
    background: var(--ls-white);
    border: 1px solid var(--ls-gray);
    border-radius: 22px;
    padding: 18px;
    box-shadow:
        0 18px 42px rgba(11, 29, 58, .055);
}

.link-safety-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--ls-navy);
    font-size: .87rem;
    font-weight: 900;
}

.link-safety-input-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 10px;
}

.link-safety-input-row input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid #D8E1EB;
    border-radius: 13px;
    padding: 0 15px;
    color: var(--ls-navy);
    background: #FBFCFE;
    font-size: .92rem;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.link-safety-input-row input:focus {
    border-color: var(--ls-blue);
    background: var(--ls-white);
    box-shadow:
        0 0 0 4px rgba(0, 119, 255, .10);
}

.link-safety-submit {
    min-width: 132px;
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    padding-inline: 22px;
    color: var(--ls-white);
    background: var(--ls-blue);
    font: inherit;
    font-size: .9rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(0, 119, 255, .18);
}

.link-safety-submit:hover {
    filter: brightness(.96);
}

.link-safety-error {
    margin: 9px 0 0;
    color: var(--ls-red);
    font-size: .83rem;
    font-weight: 800;
}


/* RESULT */

.link-safety-result-card {
    --risk-color: var(--ls-blue);
    --risk-soft: #EFF6FF;

    margin-top: 16px;
    overflow: hidden;
    background: var(--ls-white);
    border: 1px solid var(--ls-gray);
    border-top: 4px solid var(--risk-color);
    border-radius: 22px;
    box-shadow:
        0 18px 42px rgba(11, 29, 58, .055);
}

.link-safety-result-card.risk-low {
    --risk-color: var(--ls-green);
    --risk-soft: var(--ls-green-soft);
}

.link-safety-result-card.risk-caution {
    --risk-color: var(--ls-yellow);
    --risk-soft: var(--ls-yellow-soft);
}

.link-safety-result-card.risk-suspicious {
    --risk-color: var(--ls-orange);
    --risk-soft: var(--ls-orange-soft);
}

.link-safety-result-card.risk-high {
    --risk-color: var(--ls-red);
    --risk-soft: var(--ls-red-soft);
}

.link-safety-result-main {
    display: grid;
    grid-template-columns:
        116px
        minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px 22px 16px;
}

.link-safety-score-column {
    display: grid;
    place-items: center;
}

.link-safety-score-ring {
    width: 98px;
    height: 98px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--risk-color);
    background:
        conic-gradient(
            currentColor
            calc(var(--score) * 1%),
            #E8EDF3 0
        );
}

.link-safety-score-inner {
    width: 76px;
    height: 76px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background: var(--ls-white);
    box-shadow:
        inset 0 0 0 1px rgba(11, 29, 58, .04);
}

.link-safety-score-inner strong {
    color: var(--ls-navy);
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 950;
}

.link-safety-score-inner span {
    margin-top: 4px;
    color: var(--ls-muted);
    font-size: .68rem;
    font-weight: 800;
}

.link-safety-result-status {
    display: flex;
    gap: 11px;
    align-items: center;
}

.link-safety-result-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 12px;
    color: var(--risk-color);
    background: var(--risk-soft);
    font-size: 1.18rem;
    font-weight: 950;
}

.link-safety-result-label {
    display: block;
    margin-bottom: 2px;
    color: var(--ls-muted);
    font-size: .72rem;
    font-weight: 900;
}

.link-safety-result-status h2 {
    margin: 0;
    color: var(--ls-navy);
    font-size: 1.42rem;
    line-height: 1.35;
    font-weight: 950;
}

.link-safety-primary-reason {
    margin: 11px 0 0;
    color: #485A71;
    font-size: .92rem;
    line-height: 1.7;
}

.link-safety-url-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: #F8FAFC;
    border: 1px solid #E9EEF4;
    border-radius: 12px;
}

.link-safety-url-box span {
    display: block;
    margin-bottom: 4px;
    color: var(--ls-muted);
    font-size: .68rem;
    font-weight: 900;
}

.link-safety-url-box b {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ls-navy);
    font-size: .78rem;
    line-height: 1.55;
    font-weight: 750;
    text-align: left;
}


/* PROVIDERS */

.link-safety-provider-row {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(190px, 1fr)
        );
    gap: 8px;
    padding: 0 22px 16px;
}

.link-safety-provider-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #E6EBF1;
    border-radius: 13px;
    background: #FBFCFE;
}

.link-safety-provider-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #94A3B8;
}

.link-safety-provider-chip.provider-clean
.link-safety-provider-dot {
    background: var(--ls-green);
}

.link-safety-provider-chip.provider-suspicious
.link-safety-provider-dot {
    background: var(--ls-yellow);
}

.link-safety-provider-chip.provider-malicious
.link-safety-provider-dot {
    background: var(--ls-red);
}

.link-safety-provider-chip b {
    display: block;
    overflow: hidden;
    color: var(--ls-navy);
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.link-safety-provider-chip small {
    display: block;
    margin-top: 1px;
    color: var(--ls-muted);
    font-size: .69rem;
    line-height: 1.4;
    font-weight: 750;
}


/* PRIVACY */

.link-safety-privacy-note {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 0 22px 14px;
    padding: 9px 11px;
    border-radius: 11px;
    color: #166449;
    background: #F0FBF6;
    font-size: .74rem;
    line-height: 1.55;
    font-weight: 750;
}

.link-safety-privacy-note span {
    font-weight: 950;
}


/* DETAILS */

.link-safety-more {
    margin: 0 22px 14px;
    border: 1px solid #E6EBF1;
    border-radius: 13px;
    background: var(--ls-white);
}

.link-safety-more summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 13px;
    color: var(--ls-blue);
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.link-safety-more summary::-webkit-details-marker {
    display: none;
}

.link-safety-more[open] summary {
    border-bottom: 1px solid #E6EBF1;
}

.link-safety-more-content {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.link-safety-detail-block h3 {
    margin: 0 0 8px;
    color: var(--ls-navy);
    font-size: .84rem;
    font-weight: 950;
}

.link-safety-detail-block ul {
    margin: 0;
    padding-inline-start: 18px;
    color: #53657A;
    font-size: .76rem;
    line-height: 1.8;
}

.link-safety-source-detail {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #EFF3F7;
}

.link-safety-source-detail:last-child {
    border-bottom: 0;
}

.link-safety-source-detail b {
    color: var(--ls-navy);
    font-size: .76rem;
}

.link-safety-source-detail span {
    color: var(--ls-muted);
    font-size: .72rem;
    text-align: end;
}

.link-safety-safety-note {
    padding: 11px 12px;
    border-radius: 11px;
    background: #F6F9FD;
}

.link-safety-safety-note strong {
    color: var(--ls-navy);
    font-size: .75rem;
}

.link-safety-safety-note p {
    margin: 3px 0 0;
    color: var(--ls-muted);
    font-size: .72rem;
    line-height: 1.65;
}

.link-safety-disclaimer {
    margin: 0;
    padding: 0 22px 17px;
    color: #8995A5;
    font-size: .67rem;
    line-height: 1.55;
    text-align: center;
}


/* BANNER SLOT
   Empty = hidden.
   Future assets:
   Desktop 1920 × 800
   Mobile 1320 × 1081
*/

.link-safety-banner-slot:empty {
    display: none;
}

.link-safety-banner-slot:not(:empty) {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1920 / 800;
    margin-top: 18px;
    border-radius: 22px;
    background: var(--ls-white);
    border: 1px solid var(--ls-gray);
}

.link-safety-banner-slot img,
.link-safety-banner-slot picture {
    width: 100%;
    height: 100%;
    display: block;
}

.link-safety-banner-slot img {
    object-fit: cover;
}


/* MOBILE */

@media (max-width: 720px) {

    .link-safety-page {
        padding:
            24px
            12px
            46px;
    }

    .link-safety-shell {
        width: 100%;
    }

    .link-safety-head {
        margin-bottom: 17px;
    }

    .link-safety-head h1 {
        font-size: 1.72rem;
    }

    .link-safety-head p {
        margin-top: 7px;
        font-size: .84rem;
        line-height: 1.65;
    }

    .link-safety-form-card {
        padding: 14px;
        border-radius: 18px;
    }

    .link-safety-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .link-safety-input-row input,
    .link-safety-submit {
        min-height: 47px;
        width: 100%;
    }

    .link-safety-submit {
        min-width: 0;
    }

    .link-safety-result-card {
        margin-top: 12px;
        border-radius: 18px;
    }

    .link-safety-result-main {
        grid-template-columns:
            76px
            minmax(0, 1fr);
        gap: 12px;
        padding: 16px 14px 12px;
    }

    .link-safety-score-ring {
        width: 70px;
        height: 70px;
    }

    .link-safety-score-inner {
        width: 54px;
        height: 54px;
    }

    .link-safety-score-inner strong {
        font-size: 1.12rem;
    }

    .link-safety-score-inner span {
        font-size: .58rem;
    }

    .link-safety-result-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .link-safety-result-status {
        gap: 8px;
    }

    .link-safety-result-status h2 {
        font-size: 1.12rem;
    }

    .link-safety-primary-reason {
        margin-top: 8px;
        font-size: .79rem;
        line-height: 1.6;
    }

    .link-safety-url-box {
        margin-top: 9px;
        padding: 8px 10px;
    }

    .link-safety-url-box b {
        font-size: .68rem;
    }

    .link-safety-provider-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 14px 12px;
    }

    .link-safety-provider-chip {
        padding: 8px 10px;
    }

    .link-safety-provider-chip b {
        font-size: .74rem;
    }

    .link-safety-provider-chip small {
        font-size: .65rem;
    }

    .link-safety-privacy-note {
        margin: 0 14px 11px;
        font-size: .68rem;
    }

    .link-safety-more {
        margin: 0 14px 11px;
    }

    .link-safety-disclaimer {
        padding: 0 14px 14px;
        font-size: .62rem;
    }

    .link-safety-source-detail {
        display: block;
    }

    .link-safety-source-detail span {
        display: block;
        margin-top: 2px;
        text-align: start;
    }

    .link-safety-banner-slot:not(:empty) {
        aspect-ratio: 1320 / 1081;
        margin-top: 14px;
        border-radius: 18px;
    }
}


/* WIDE DESKTOP */

@media (min-width: 1200px) {

    .link-safety-shell {
        width: min(980px, 100%);
    }

    .link-safety-page {
        padding-top: 48px;
    }

    .link-safety-result-main {
        grid-template-columns:
            128px
            minmax(0, 1fr);
        padding:
            21px
            26px
            17px;
    }

    .link-safety-provider-row {
        padding-inline:
            26px;
    }

    .link-safety-more,
    .link-safety-privacy-note {
        margin-inline:
            26px;
    }
}


/* ==========================================================
   SVQ8 LINK SAFETY — MOBILE COMPACT V3
   ========================================================== */

@media (max-width: 720px) {

    .link-safety-page {
        padding:
            22px
            12px
            38px;
    }

    .link-safety-head {
        margin-bottom: 14px;
    }

    .link-safety-kicker {
        margin-bottom: 5px;
        font-size: .72rem;
    }

    .link-safety-head h1 {
        font-size: 1.62rem;
    }

    .link-safety-head p {
        max-width: 330px;
        margin-top: 5px;
        font-size: .78rem;
    }


    /* Input */

    .link-safety-form-card {
        padding: 12px;
        border-radius: 17px;
    }

    .link-safety-field label {
        margin-bottom: 7px;
        font-size: .8rem;
    }

    .link-safety-input-row input {
        min-height: 44px;
        font-size: .79rem;
    }

    .link-safety-submit {
        min-height: 44px;
        font-size: .82rem;
    }


    /* Result */

    .link-safety-result-card {
        margin-top: 10px;
        border-radius: 17px;
    }

    .link-safety-result-main {
        grid-template-columns:
            minmax(0, 1fr)
            58px;

        gap: 9px;
        align-items: start;

        padding:
            14px
            13px
            10px;
    }

    .link-safety-result-copy {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .link-safety-score-column {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .link-safety-score-ring {
        width: 56px;
        height: 56px;
    }

    .link-safety-score-inner {
        width: 44px;
        height: 44px;
    }

    .link-safety-score-inner strong {
        font-size: .94rem;
    }

    .link-safety-score-inner span {
        margin-top: 2px;
        font-size: .5rem;
    }

    .link-safety-result-status {
        gap: 7px;
    }

    .link-safety-result-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        font-size: .9rem;
    }

    .link-safety-result-status h2 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .link-safety-result-label {
        font-size: .62rem;
    }

    .link-safety-primary-reason {
        margin-top: 6px;
        font-size: .73rem;
        line-height: 1.55;
    }


    /* Long URL:
       maximum 3 lines on mobile */

    .link-safety-url-box {
        margin-top: 8px;
        padding: 8px 9px;
    }

    .link-safety-url-box span {
        margin-bottom: 3px;
        font-size: .61rem;
    }

    .link-safety-url-box b {
        display: -webkit-box;
        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;

        line-clamp: 3;

        overflow-wrap: anywhere;

        font-size: .65rem;
        line-height: 1.45;
    }


    /* Provider cards */

    .link-safety-provider-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;

        padding:
            0
            13px
            10px;
    }

    .link-safety-provider-chip {
        min-height: 49px;
        gap: 6px;
        padding: 7px 8px;
        border-radius: 11px;
    }

    .link-safety-provider-dot {
        width: 7px;
        height: 7px;
        flex-basis: 7px;
    }

    .link-safety-provider-chip b {
        font-size: .67rem;
    }

    .link-safety-provider-chip small {
        margin-top: 2px;
        font-size: .57rem;
        line-height: 1.35;
    }


    /* Details */

    .link-safety-more {
        margin:
            0
            13px
            9px;

        border-radius: 11px;
    }

    .link-safety-more summary {
        min-height: 39px;
        padding:
            0
            10px;

        font-size: .7rem;
    }

    .link-safety-more-content {
        gap: 11px;
        padding: 11px;
    }

    .link-safety-detail-block h3 {
        font-size: .74rem;
    }

    .link-safety-detail-block ul {
        font-size: .67rem;
    }

    .link-safety-source-detail b {
        font-size: .68rem;
    }

    .link-safety-source-detail span {
        font-size: .63rem;
    }

    .link-safety-safety-note {
        padding: 9px 10px;
    }

    .link-safety-safety-note p {
        font-size: .64rem;
    }


    /* Privacy / disclaimer */

    .link-safety-privacy-note {
        margin:
            0
            13px
            9px;

        padding: 7px 9px;

        font-size: .62rem;
    }

    .link-safety-disclaimer {
        padding:
            0
            13px
            12px;

        font-size: .56rem;
        opacity: .78;
    }
}


/* very small phones */

@media (max-width: 390px) {

    .link-safety-provider-row {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   SVQ8 LINK SAFETY — COVERAGE + MOBILE V4
   ========================================================== */

.link-safety-coverage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 9px;
    border-radius: 9px;
    color: #526277;
    background: #F5F7FA;
    border: 1px solid #E6EBF1;
    font-size: .7rem;
    line-height: 1.4;
    font-weight: 800;
}

.link-safety-coverage.is-complete {
    color: #166449;
    background: #F0FBF6;
    border-color: #D9F2E6;
}

.link-safety-coverage.is-partial {
    color: #9A6700;
    background: #FFF8E1;
    border-color: #F5E5AD;
}

.link-safety-coverage.is-unavailable {
    color: #64748B;
    background: #F1F5F9;
    border-color: #E2E8F0;
}


/*
 * A zero score must not look fully green
 * when one of the primary reputation
 * providers failed.
 */

.link-safety-result-card.risk-low.scan-partial {
    --risk-color: var(--ls-yellow);
    --risk-soft: var(--ls-yellow-soft);
}

.link-safety-result-card.risk-low.scan-incomplete {
    --risk-color: #64748B;
    --risk-soft: #F1F5F9;
}


/* Mobile result compression */

@media (max-width: 720px) {

    .link-safety-result-main {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .link-safety-coverage {
        margin-top: 6px;
        padding: 5px 7px;
        font-size: .59rem;
        border-radius: 8px;
    }

    .link-safety-score-inner .score-coverage-label {
        font-size: .47rem;
        line-height: 1.15;
    }

    .link-safety-provider-row {
        padding-bottom: 8px;
    }

    .link-safety-more {
        margin-bottom: 7px;
    }

    .link-safety-more[open]
    .link-safety-more-content {
        gap: 8px;
        padding: 9px 10px;
    }

    .link-safety-more[open]
    .link-safety-detail-block h3 {
        margin-bottom: 5px;
    }

    .link-safety-more[open]
    .link-safety-detail-block ul {
        line-height: 1.6;
    }

    .link-safety-more[open]
    .link-safety-source-detail {
        padding: 5px 0;
    }

    .link-safety-more[open]
    .link-safety-safety-note {
        padding: 8px 9px;
    }

    .link-safety-more[open]
    .link-safety-safety-note p {
        margin-top: 2px;
        line-height: 1.5;
    }

}


/* ==========================================================
   SVQ8 LINK SAFETY — AI FINAL JUDGMENT
   ========================================================== */

.link-safety-ai-card {
    --ai-color: var(--ls-blue);
    --ai-soft: #EFF6FF;

    margin-top: 16px;
    padding: 18px 20px;
    background: var(--ls-white);
    border: 1px solid var(--ls-gray);
    border-top: 4px solid var(--ai-color);
    border-radius: 22px;
    box-shadow:
        0 18px 42px rgba(11, 29, 58, .055);
}

.link-safety-ai-card.ai-verdict-official_or_likely_legitimate {
    --ai-color: var(--ls-green);
    --ai-soft: var(--ls-green-soft);
}

.link-safety-ai-card.ai-verdict-suspicious {
    --ai-color: var(--ls-orange);
    --ai-soft: var(--ls-orange-soft);
}

.link-safety-ai-card.ai-verdict-likely_phishing,
.link-safety-ai-card.ai-verdict-malicious {
    --ai-color: var(--ls-red);
    --ai-soft: var(--ls-red-soft);
}

.link-safety-ai-card.ai-verdict-inconclusive,
.link-safety-ai-card.ai-status-failed {
    --ai-color: #64748B;
    --ai-soft: #F1F5F9;
}

.link-safety-ai-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    color: var(--ai-color);
    font-size: .72rem;
    line-height: 1.4;
    font-weight: 950;
}

.link-safety-ai-card h2 {
    margin: 0;
    color: var(--ls-navy);
    font-size: 1.28rem;
    line-height: 1.55;
    font-weight: 950;
}

.link-safety-ai-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.link-safety-ai-meta span {
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--ai-color);
    background: var(--ai-soft);
    font-size: .66rem;
    line-height: 1.4;
    font-weight: 900;
}

.link-safety-ai-section {
    margin-top: 15px;
}

.link-safety-ai-section h3 {
    margin: 0 0 7px;
    color: var(--ls-navy);
    font-size: .8rem;
    font-weight: 950;
}

.link-safety-ai-list {
    margin: 0;
    padding-inline-start: 20px;
    color: #485A71;
    font-size: .82rem;
    line-height: 1.72;
}

.link-safety-ai-list li + li {
    margin-top: 4px;
}

.link-safety-ai-official {
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #F8FAFC;
    border: 1px solid #E6EBF1;
}

.link-safety-ai-official span {
    display: block;
    margin-bottom: 3px;
    color: var(--ls-muted);
    font-size: .65rem;
    font-weight: 900;
}

.link-safety-ai-official b {
    display: block;
    direction: ltr;
    text-align: left;
    overflow-wrap: anywhere;
    color: var(--ls-navy);
    font-size: .77rem;
}

.link-safety-ai-advice {
    margin-top: 13px;
    padding: 11px 12px;
    border-radius: 11px;
    background: var(--ai-soft);
}

.link-safety-ai-advice h3 {
    color: var(--ai-color);
}

.link-safety-ai-sources {
    margin-top: 11px;
    border-top: 1px solid #E6EBF1;
    padding-top: 9px;
}

.link-safety-ai-sources summary {
    color: var(--ls-blue);
    cursor: pointer;
    font-size: .7rem;
    font-weight: 900;
}

.link-safety-ai-sources ul {
    margin: 8px 0 0;
    padding-inline-start: 18px;
}

.link-safety-ai-sources li {
    margin-top: 5px;
}

.link-safety-ai-sources a {
    color: #40536B;
    font-size: .68rem;
    overflow-wrap: anywhere;
}

.link-safety-ai-note {
    margin: 11px 0 0;
    color: #94A3B8;
    font-size: .64rem;
    line-height: 1.55;
}

.link-safety-ai-fallback {
    margin: 8px 0 0;
    color: #526277;
    font-size: .8rem;
    line-height: 1.65;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

    .link-safety-ai-card {
        padding: 14px 15px;
        border-radius: 18px;
    }

    .link-safety-ai-card h2 {
        font-size: 1.05rem;
        line-height: 1.55;
    }

    .link-safety-ai-section {
        margin-top: 12px;
    }

    .link-safety-ai-list {
        font-size: .75rem;
        line-height: 1.65;
    }

    .link-safety-ai-official,
    .link-safety-ai-advice {
        margin-top: 10px;
        padding: 9px 10px;
    }

    .link-safety-ai-meta {
        margin-top: 8px;
    }
}


/* ==========================================================
   SVQ8 LINK SAFETY — URL CLAMP V8
   Keep very long scanned URLs compact without changing
   the underlying value.
   ========================================================== */

.link-safety-url-box strong,
.link-safety-url-box [dir="ltr"] {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}


/* Avoid the URL forcing the result card wider. */

.link-safety-url-box,
.link-safety-result-card {
    min-width: 0;
}


/* Same maximum on mobile. */

@media (max-width: 720px) {

    .link-safety-url-box strong,
    .link-safety-url-box [dir="ltr"] {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

}
