/* Embed mode (?embed=1) — compact heroes, full pill nav, scrollable in iframes */

html[data-embed="1"],
html[data-embed="1"] body {
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    min-height: 100%;
}

html[data-embed="1"] .egyptian-site {
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

html[data-embed="1"] .v-hero-abdu,
html[data-embed="1"] .v-hero-khaled,
html[data-embed="1"] .v-hero-andalus {
    min-height: auto !important;
    padding-top: 32px !important;
    padding-bottom: 40px !important;
}

html[data-embed="1"] .egyptian-site[data-variant="abdulmaaboud"] .eg-hero,
html[data-embed="1"] .egyptian-site[data-variant="khaledsakr"] .eg-hero {
    min-height: auto !important;
}

html[data-embed="1"] .v-hero-mag {
    padding-top: 24px !important;
    padding-bottom: 36px !important;
}

html[data-embed="1"] .v-mag-photo-card img {
    aspect-ratio: 16 / 11;
    max-height: 260px;
}

html[data-embed="1"] .v-mag-cards {
    margin-top: 24px;
    padding-top: 20px;
}

/* Keep sticky pill nav — same as full preview */
html[data-embed="1"] .eg-nav-wrap {
    position: sticky !important;
    top: 0;
    z-index: 200;
    padding: 10px 12px 0;
}

html[data-embed="1"] .eg-nav {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto !important;
    grid-template-areas: "brand links actions" !important;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-pill, 999px) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--nav-shadow) !important;
}

html[data-embed="1"] .eg-nav-links {
    display: flex !important;
    grid-area: links;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html[data-embed="1"] .eg-nav-links::-webkit-scrollbar {
    display: none;
}

html[data-embed="1"] .eg-nav-toggle {
    display: none !important;
}

html[data-embed="1"] .eg-nav-actions .eg-nav-login,
html[data-embed="1"] .eg-nav-actions .eg-nav-register span {
    display: none;
}

html[data-embed="1"] .eg-section {
    padding: 40px 16px;
}

html[data-embed="1"] .eg-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

html[data-embed="1"] .v-khaled-honor-scroll {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 16px;
}

html[data-embed="1"] .v-khaled-honor-card img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
}

html[data-embed="1"] .wa-float,
html[data-embed="1"] .whatsapp-float,
html[data-embed="1"] a[href*="wa.me"],
html[data-embed="1"] a[href*="whatsapp"] {
    display: none !important;
}

@media (max-width: 900px) {
    html[data-embed="1"] .eg-nav {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "brand actions"
            "links links" !important;
        border-radius: 20px !important;
        padding: 10px 12px;
        gap: 8px;
    }

    html[data-embed="1"] .eg-nav-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
