/* طبقة مشتركة لإمكانية الوصول والاستقرار البصري */
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #146c94;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: .75rem;
    inset-inline-start: .75rem;
    z-index: 10000;
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: #0f4c5c;
    color: #fff;
    font-weight: 700;
    transform: translateY(-180%);
    transition: transform .18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

[hidden] {
    display: none !important;
}

.site-notification {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    z-index: 9998;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: .85rem 1rem;
    border: 1px solid rgba(15, 76, 92, .18);
    border-radius: .75rem;
    background: #fff;
    color: #16323d;
    box-shadow: 0 12px 32px rgba(16, 45, 56, .16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity .18s ease, transform .18s ease;
}

.site-notification.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-notification[data-type="error"] {
    border-color: #b42318;
}

main,
#main-content {
    scroll-margin-top: 5rem;
}

.table-container,
.vaccine-table-container,
.responsive-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 38rem;
}

button:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
}

.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-notification {
        inset-inline: .75rem;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.medical-safety-note {
    display: block;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid #f0b429;
    border-inline-start: 4px solid #b77900;
    border-radius: .75rem;
    background: #fff8e1;
    color: #3a2a00;
    overflow-wrap: anywhere;
    line-height: 1.85;
}

.medical-safety-note > p { margin: 0; }
.medical-safety-note > p + p { margin-top: .85rem; }
.medical-safety-note a { color: #126b70; text-underline-offset: .2em; }

.medicine-safety-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.15rem;
    border: 1px solid #f0b429;
    border-radius: .75rem;
    background: #fff8e1;
    color: #3a2a00;
}

.medicine-safety-card h4,
.medical-safety-note strong {
    color: #6b4600;
}

.medicine-safety-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #f0b429;
    color: #fff;
}

.medicine-safety-card ul {
    margin-block: .75rem 0;
    padding-inline-start: 1.25rem;
}

.medical-source-note {
    margin-top: 1rem;
    font-size: .9rem;
}

.vaccine-checklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vaccine-checklist .checklist-item {
    padding: 1rem;
    border: 1px solid rgba(20, 108, 148, .16);
    border-radius: .75rem;
    background: var(--card, #fff);
}

.vaccine-checklist .checklist-item > i {
    color: #146c94;
    font-size: 1.35rem;
}

@media (max-width: 720px) {
    .medicine-safety-card {
        grid-template-columns: 1fr;
    }

    .vaccine-checklist {
        grid-template-columns: 1fr;
    }
}

/* Medical editorial status stage 03: no implication of clinician approval. */
.site-shell .medical-review-status {
    margin-block: clamp(14px, 2vw, 22px);
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid #dcc99f;
    border-inline-start: 4px solid #a67824;
    border-radius: 14px;
    background: #fff9ec;
    color: #4a381b;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.site-shell .medical-review-status strong { display: block; color: #493512; }
.site-shell .medical-review-status p { margin: 4px 0 0; font-size: .94rem; }
.site-shell .medical-review-status a { color: #126b70; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
    .site-shell .medical-review-status { margin-block: 12px; padding: 14px; }
}


/* Real AdSense placements: stable, centered, transparent reserves prevent CLS.
   Fluid ads can still resize; keep these units below the initial viewport. */
.site-shell [data-site-ad-shell] {
    display: block;
    box-sizing: border-box;
    position: relative;
    width: min(100%, 880px);
    max-width: 100%;
    min-width: 0;
    margin: clamp(28px, 4vw, 44px) auto;
    padding: 8px 0 12px;
    text-align: center;
    flex: 0 1 100%;
    grid-column: 1 / -1;
    background: transparent;
    border: 0;
    overflow-x: clip;
    isolation: isolate;
}
.site-shell [data-site-ad-shell][hidden] { display: none !important; }
.site-shell [data-site-ad-shell] .site-ad__label {
    display: block;
    margin: 0 0 10px;
    color: #67777b;
    font-size: 0.72rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: .02em;
}
.site-shell [data-site-ad-shell] ins.adsbygoogle {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
}
.site-shell .site-ad--feed { min-height: 204px; }
.site-shell .site-ad--display { min-height: 286px; }
@media (max-width: 600px) {
    .site-shell [data-site-ad-shell] {
        width: 100%;
        margin: 26px auto;
        padding-inline: 0;
    }
    .site-shell .site-ad--feed { min-height: 180px; }
    .site-shell .site-ad--display { min-height: 258px; }
}
@media (max-width: 320px) {
    .site-shell [data-site-ad-shell] { margin-inline: 0; }
}
