/* =========================================================
   DrMahdi Article Callouts — Shared Frontend + Editor Styles
   ========================================================= */
.dma-callout {
    --dma-accent: #2563eb;
    --dma-accent-rgb: 37, 99, 235;
    --dma-soft: #eff6ff;
    --dma-title: #1d4ed8;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    direction: rtl;
    text-align: right;

    margin: 30px 0;
    padding: 26px 28px 24px;

    color: #263746;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--dma-accent-rgb), .10) 0, transparent 42%),
        linear-gradient(135deg, #ffffff 0%, rgba(var(--dma-accent-rgb), .018) 100%);

    border: 1px solid rgba(var(--dma-accent-rgb), .14);
    border-radius: 18px;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, .055),
        0 2px 7px rgba(15, 23, 42, .028);
}

.dma-callout__accent {
    position: absolute;
    z-index: 0;
    top: 18px;
    right: 0;
    width: 4px;
    height: calc(100% - 36px);
    border-radius: 4px 0 0 4px;
    background: var(--dma-accent);
}

.dma-callout::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: -38px;
    bottom: -52px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(var(--dma-accent-rgb), .055);
    pointer-events: none;
}

.dma-callout__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 13px;
}

.dma-callout__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--dma-accent);
    background: var(--dma-soft);
    border: 1px solid rgba(var(--dma-accent-rgb), .16);
    border-radius: 10px;
}

.dma-callout__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dma-callout__title {
    color: var(--dma-title);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: -.15px;
}

.dma-callout__content {
    position: relative;
    z-index: 1;
    font-size: 16.5px;
    line-height: 2.05;
    color: #334155;
}

.dma-callout__content > :first-child { margin-top: 0; }
.dma-callout__content > :last-child { margin-bottom: 0; }
.dma-callout__content p { margin: 0 0 10px; }

.dma-callout__content strong,
.dma-callout__content b {
    color: var(--dma-title);
    font-weight: 750;
}

.dma-callout__content a {
    color: var(--dma-title);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.dma-callout__content ul,
.dma-callout__content ol {
    margin: 8px 0 4px;
    padding-right: 22px;
    padding-left: 0;
}

.dma-callout__content li { margin-bottom: 5px; }

.dma-callout--important {
    --dma-accent: #2563eb;
    --dma-accent-rgb: 37, 99, 235;
    --dma-soft: #eff6ff;
    --dma-title: #1d4ed8;
}

.dma-callout--warning {
    --dma-accent: #ea580c;
    --dma-accent-rgb: 234, 88, 12;
    --dma-soft: #fff7ed;
    --dma-title: #c2410c;
}

.dma-callout--pharmacist {
    --dma-accent: #059669;
    --dma-accent-rgb: 5, 150, 105;
    --dma-soft: #ecfdf5;
    --dma-title: #047857;
}

.dma-callout--dose {
    --dma-accent: #7c3aed;
    --dma-accent-rgb: 124, 58, 237;
    --dma-soft: #f5f3ff;
    --dma-title: #6d28d9;
}

.dma-callout--summary {
    --dma-accent: #64748b;
    --dma-accent-rgb: 100, 116, 139;
    --dma-soft: #f1f5f9;
    --dma-title: #475569;
}

.dma-callout--interaction {
    --dma-accent: #ca8a04;
    --dma-accent-rgb: 202, 138, 4;
    --dma-soft: #fefce8;
    --dma-title: #a16207;
}

.dma-callout--population {
    --dma-accent: #0891b2;
    --dma-accent-rgb: 8, 145, 178;
    --dma-soft: #ecfeff;
    --dma-title: #0e7490;
}

@media (hover: hover) and (pointer: fine) {
    .dma-callout {
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .dma-callout:hover {
        transform: translateY(-1px);
        border-color: rgba(var(--dma-accent-rgb), .23);
        box-shadow:
            0 13px 34px rgba(15, 23, 42, .07),
            0 3px 8px rgba(15, 23, 42, .035);
    }
}

@media (max-width: 767px) {
    .dma-callout {
        margin: 24px 0;
        padding: 21px 19px 20px;
        border-radius: 15px;
    }

    .dma-callout__accent {
        top: 15px;
        height: calc(100% - 30px);
        width: 3px;
    }

    .dma-callout__header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .dma-callout__icon {
        width: 31px;
        height: 31px;
        border-radius: 9px;
    }

    .dma-callout__icon svg {
        width: 17px;
        height: 17px;
    }

    .dma-callout__title { font-size: 15px; }

    .dma-callout__content {
        font-size: 15.25px;
        line-height: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dma-callout { transition: none !important; }
}
