/*
 * ==========================================================
 * Shahidabad RENEW - Martyrs
 * Scoped visual system
 * ==========================================================
 */


body.post-type-archive-shahid,
body.single-shahid,
body.post-type-archive-shahid button,
body.single-shahid button,
body.post-type-archive-shahid input,
body.single-shahid input {
    font-family:
        "Shahidabad IR Sans",
        "Shahidabad Yekan",
        Tahoma,
        Arial,
        sans-serif !important;
}


/* Approved Shahidabad header logo */

body.post-type-archive-shahid .top-nav-logo,
body.single-shahid .top-nav-logo {
    overflow: visible !important;
}

body.post-type-archive-shahid .top-nav-logo::after,
body.single-shahid .top-nav-logo::after {
    content: none !important;
    display: none !important;
}

body.post-type-archive-shahid
.top-nav-logo
img[src*="shahidabad-logo-master-from-psd.png"],
body.single-shahid
.top-nav-logo
img[src*="shahidabad-logo-master-from-psd.png"] {
    display: block !important;
    width: auto !important;
    height: 110px !important;
    max-width: none !important;
    max-height: none !important;
}


.shahidabad-martyrs,
.shahidabad-martyr {
    --sh-green: #0d4d3c;
    --sh-green-deep: #08392f;
    --sh-green-soft: #236452;
    --sh-gold: #f3ba2f;
    --sh-cream: #f7f3ea;
    --sh-text: #172925;
    --sh-muted: #74807c;
    --sh-border: rgba(13,77,60,.11);
    --sh-shadow: 0 14px 42px rgba(7,50,40,.08);

    direction: rtl;
    text-align: right;
    color: var(--sh-text);
    background: #f5f7f6;
}

.shahidabad-martyrs *,
.shahidabad-martyrs *::before,
.shahidabad-martyrs *::after,
.shahidabad-martyr *,
.shahidabad-martyr *::before,
.shahidabad-martyr *::after {
    box-sizing: border-box;
}

.shahidabad-martyrs a,
.shahidabad-martyr a {
    text-decoration: none;
}

.shahid-shell {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}


/* ==========================================================
   Archive hero
   ========================================================== */

.shahid-archive-hero,
.martyr-profile-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 14% 20%,
            rgba(243,186,47,.20),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            #092f27 0%,
            #0d4d3c 58%,
            #286b56 100%
        );
}

.shahid-archive-hero {
    padding: 62px 0 68px;
}

.shahid-archive-hero::after,
.martyr-profile-hero::after {
    content: "";
    position: absolute;
    inset: auto -5% -120px -5%;
    height: 170px;
    border-radius: 50%;
    background: rgba(255,255,255,.025);
}

.shahid-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #f2cc70;
    font-size: 13px;
    font-weight: 800;
}

.shahid-archive-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px,5vw,58px);
    font-weight: 950;
}

.shahid-archive-hero p {
    max-width: 610px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 2;
}


/* ==========================================================
   Archive
   ========================================================== */

.shahid-archive-body {
    padding: 28px 0 58px;
}

.shahid-archive-tools {
    margin-bottom: 20px;
}

.shahid-archive-tools form {
    max-width: 600px;
    padding: 7px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    border: 1px solid var(--sh-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--sh-shadow);
}

.shahid-archive-tools input[type="search"] {
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: var(--sh-text);
    background: transparent;
}

.shahid-archive-tools button {
    min-width: 92px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    background: var(--sh-green);
    font-weight: 800;
}

.shahid-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.shahid-card {
    overflow: hidden;
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--sh-shadow);
}

.shahid-card-image {
    aspect-ratio: 4 / 5;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #d9e1dc,
            #668474
        );
}

.shahid-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.shahid-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.82);
    background:
        radial-gradient(
            circle at 50% 27%,
            #dec9aa 0 12%,
            transparent 13%
        ),
        radial-gradient(
            circle at 50% 72%,
            #345b4d 0 27%,
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #dce5df,
            #738e7f
        );
}

.shahid-card-body {
    padding: 15px;
}

.shahid-card-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.75;
}

.shahid-card-body h2 a {
    color: var(--sh-green-deep);
}

.shahid-card-body p {
    margin: 4px 0;
    color: var(--sh-muted);
    font-size: 12px;
}

.shahid-card-body p strong {
    color: #394945;
}

.shahid-card-link {
    margin-top: 13px;
    min-height: 39px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 9px;
    color: #fff;
    background: var(--sh-green);
    font-size: 12px;
    font-weight: 800;
}

.shahid-empty {
    padding: 55px 20px;
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    text-align: center;
    background: #fff;
    box-shadow: var(--sh-shadow);
}

.shahid-empty strong {
    display: block;
    color: var(--sh-green-deep);
    font-size: 23px;
}

.shahid-empty p {
    margin: 8px 0 0;
    color: var(--sh-muted);
}


/* ==========================================================
   Single profile
   ========================================================== */

.martyr-profile-hero {
    padding: 42px 0 46px;
}

.martyr-profile-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: center;
}

.martyr-main-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,.15);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.martyr-main-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.martyr-profile-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px,5vw,56px);
    font-weight: 950;
}

.martyr-lead {
    max-width: 670px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.82);
    line-height: 2;
}

.martyr-facts {
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 9px;
}

.martyr-facts div {
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
}

.martyr-facts dt {
    color: rgba(255,255,255,.60);
    font-size: 11px;
}

.martyr-facts dd {
    margin: 2px 0 0;
    color: #fff;
    font-weight: 800;
}


/* ==========================================================
   Single content
   ========================================================== */

.martyr-content-section {
    padding: 28px 0 60px;
}

.martyr-content-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 18px;
    align-items: start;
}

.martyr-content-main {
    display: grid;
    gap: 18px;
}

.martyr-panel,
.martyr-side-card {
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--sh-shadow);
}

.martyr-panel {
    padding: 23px;
}

.martyr-panel h2,
.martyr-side-card h2 {
    margin: 0 0 13px;
    color: var(--sh-green-deep);
    font-size: 23px;
    font-weight: 900;
}

.martyr-prose {
    color: #42514d;
    font-size: 15px;
    line-height: 2.15;
}

.martyr-prose p:first-child {
    margin-top: 0;
}

.martyr-will {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #fff
        );
}

.martyr-will::before {
    content: "”";
    position: absolute;
    top: -25px;
    left: 15px;
    color: rgba(243,186,47,.15);
    font-size: 130px;
    font-family: Georgia,serif;
}

.martyr-content-side {
    display: grid;
    gap: 14px;
}

.martyr-side-card {
    padding: 18px;
}

.martyr-side-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 11px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--sh-green);
    background: #e9f3ef;
}

.martyr-side-card p {
    margin: 0;
    color: var(--sh-muted);
    font-size: 13px;
    line-height: 1.9;
}

.martyr-side-card code {
    max-width: 100%;
    margin-top: 11px;
    padding: 8px;
    display: block;
    overflow-wrap: anywhere;
    direction: ltr;
    text-align: left;
    border-radius: 7px;
    color: #30433d;
    background: #f2f5f4;
    font-size: 10px;
}


/* pagination */

.shahid-pagination {
    margin-top: 24px;
}

.shahid-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.shahid-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--sh-green);
    background: #fff;
}

.shahid-pagination .current {
    color: #fff;
    background: var(--sh-green);
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1000px) {

    .shahid-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .martyr-profile-grid {
        grid-template-columns: 270px 1fr;
        gap: 28px;
    }

    .martyr-facts {
        grid-template-columns: repeat(2,1fr);
    }

}


@media (max-width: 760px) {

    body.post-type-archive-shahid
    .top-nav-logo
    img[src*="shahidabad-logo-master-from-psd.png"],
    body.single-shahid
    .top-nav-logo
    img[src*="shahidabad-logo-master-from-psd.png"] {
        height: 90px !important;
    }

    .shahid-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .martyr-profile-grid {
        grid-template-columns: 1fr;
    }

    .martyr-main-photo {
        width: min(300px,100%);
        margin-inline: auto;
    }

    .martyr-content-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 520px) {

    .shahid-shell {
        width: calc(100% - 22px);
    }

    .shahid-archive-hero {
        padding: 42px 0 48px;
    }

    .shahid-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .shahid-card-body {
        padding: 10px;
    }

    .shahid-card-body h2 {
        font-size: 14px;
    }

    .shahid-card-body p {
        display: none;
    }

    .shahid-card-link {
        font-size: 10px;
    }

    .martyr-facts {
        grid-template-columns: 1fr 1fr;
    }

    .martyr-panel {
        padding: 17px;
    }

}

/*
 * ==========================================================
 * MARTYR EXPERIENCE 9A-3
 * Frozen visual prototype implementation
 * ==========================================================
 */


.mx-martyr {
    --mx-green: #075640;
    --mx-green-deep: #033d30;
    --mx-green-soft: #e9f5f0;
    --mx-gold: #f2b72d;
    --mx-red: #bc2f36;
    --mx-text: #172d27;
    --mx-muted: #73817c;
    --mx-border: rgba(7,86,64,.11);
    --mx-shadow: 0 15px 42px rgba(9,62,49,.08);

    background:
        linear-gradient(
            180deg,
            #f8faf9,
            #f3f7f5
        );
}


/* ==========================================================
   HERO
   ========================================================== */

.mx-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 12% 24%,
            rgba(242,183,45,.20),
            transparent 24%
        ),
        linear-gradient(
            125deg,
            #04382d 0%,
            #075640 58%,
            #17705a 100%
        );
}

.mx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .08;
    background:
        repeating-linear-gradient(
            35deg,
            transparent 0 25px,
            rgba(255,255,255,.18) 26px 27px
        );
}

.mx-hero-grid {
    min-height: 410px;
    position: relative;
    z-index: 2;
    padding-top: 32px;
    padding-bottom: 32px;
    display: grid;
    grid-template-columns:
        minmax(260px, 320px)
        minmax(0, 1fr);
    gap: 54px;
    align-items: center;
}

.mx-portrait {
    aspect-ratio: 4 / 5;
    max-height: 355px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,.18);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    box-shadow:
        0 24px 55px rgba(0,0,0,.22);
}

.mx-portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.mx-kicker {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    color: #17392f;
    background: var(--mx-gold);
    font-size: 12px;
    font-weight: 900;
}

.mx-hero-copy h1 {
    margin: 14px 0 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 950;
    line-height: 1.45;
}

.mx-lead {
    margin: 10px 0 0;
    max-width: 680px;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 2;
}

.mx-facts {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mx-facts > span {
    min-width: 115px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 9px;
    background: rgba(0,0,0,.13);
}

.mx-facts small,
.mx-facts b {
    display: block;
}

.mx-facts small {
    color: rgba(255,255,255,.60);
    font-size: 10px;
}

.mx-facts b {
    margin-top: 1px;
    color: #fff;
    font-size: 12px;
}

.mx-hero-note {
    margin: 20px 0 0;
    color: rgba(255,255,255,.70);
    font-size: 13px;
}


/* ==========================================================
   ACTION BAR
   ========================================================== */

.mx-actions-wrap {
    position: relative;
    z-index: 5;
    margin-top: -18px;
}

.mx-actions {
    padding: 11px;
    display: grid;
    grid-template-columns:
        minmax(240px,1.15fr)
        minmax(220px,.85fr)
        minmax(300px,1.2fr);
    gap: 9px;
    border: 1px solid var(--mx-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--mx-shadow);
}

.mx-permanent,
.mx-fatiha-box,
.mx-share-box {
    min-height: 94px;
    padding: 12px;
    border-radius: 12px;
    background: #f8faf9;
}

.mx-permanent {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 11px;
    align-items: center;
}

.mx-qr-placeholder {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px dashed #8aa69c;
    border-radius: 9px;
    color: var(--mx-green);
    background: #fff;
    font-weight: 950;
}

.mx-permanent strong,
.mx-permanent small,
.mx-permanent code {
    display: block;
}

.mx-permanent strong {
    color: var(--mx-green-deep);
}

.mx-permanent small {
    margin-top: 2px;
    color: var(--mx-muted);
    font-size: 10px;
}

.mx-permanent code {
    margin-top: 5px;
    overflow: hidden;
    direction: ltr;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #55716a;
    font-size: 8px;
}

.mx-fatiha-button {
    width: 100%;
    min-height: 70px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #08775a,
            #0d9874
        );
}

.mx-fatiha-button > span {
    font-size: 30px;
}

.mx-fatiha-button strong,
.mx-fatiha-button small {
    display: block;
}

.mx-fatiha-button strong {
    font-size: 15px;
}

.mx-fatiha-button small {
    margin-top: 2px;
    color: rgba(255,255,255,.78);
}

.mx-fatiha-button.is-done {
    background:
        linear-gradient(
            135deg,
            #557c70,
            #678f82
        );
}

.mx-fatiha-button.is-loading {
    opacity: .65;
    cursor: wait;
}

.mx-share-box > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--mx-green-deep);
}

.mx-share-buttons {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 6px;
}

.mx-share {
    min-height: 38px;
    padding: 6px 5px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
}

.mx-share.telegram {
    background: #229ed9;
}

.mx-share.whatsapp {
    background: #20b65a;
}

.mx-share.instagram {
    background:
        linear-gradient(
            135deg,
            #833ab4,
            #e1306c,
            #f77737
        );
}

.mx-share.copy {
    background: #61736d;
}


/* ==========================================================
   STICKY NAV
   ========================================================== */

.mx-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-top: 18px;
    border-top: 1px solid #e8edeb;
    border-bottom: 1px solid #e8edeb;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(9px);
}

body.admin-bar .mx-nav {
    top: 32px;
}

.mx-nav-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mx-nav-inner::-webkit-scrollbar {
    display: none;
}

.mx-nav-inner a {
    flex: 0 0 auto;
    padding: 18px 13px 15px;
    border-bottom: 3px solid transparent;
    color: #566a64;
    font-size: 12px;
    font-weight: 800;
}

.mx-nav-inner a:hover {
    color: var(--mx-green);
    border-bottom-color: var(--mx-green);
}


/* ==========================================================
   CONTENT GRID
   ========================================================== */

.mx-content {
    padding: 25px 0 60px;
}

.mx-content-grid {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        300px;
    gap: 17px;
    align-items: start;
}

.mx-main,
.mx-side {
    display: grid;
    gap: 16px;
}

.mx-panel,
.mx-side-card {
    scroll-margin-top: 90px;
    border: 1px solid var(--mx-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--mx-shadow);
}

.mx-panel {
    padding: 21px;
}

.mx-side-card {
    padding: 17px;
}

.mx-panel-head {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mx-panel-head > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.mx-panel-head h2,
.mx-side-card h2 {
    margin: 0;
    color: var(--mx-green-deep);
    font-size: 21px;
    font-weight: 950;
}

.mx-panel-icon,
.mx-side-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--mx-green);
    background: var(--mx-green-soft);
    font-weight: 900;
}

.mx-side-icon {
    margin-bottom: 10px;
}

.mx-head-note {
    color: #82908b;
    font-size: 10px;
}

.mx-prose {
    color: #40514c;
    line-height: 2.15;
    font-size: 14px;
}

.mx-empty-content {
    padding: 20px;
    border-radius: 12px;
    color: #6d7b77;
    background: #f7faf8;
}

.mx-empty-content strong {
    display: block;
    margin-bottom: 5px;
    color: var(--mx-green-deep);
}

.mx-empty-content p {
    margin: 0;
}

.mx-section-note {
    margin: 11px 0 0;
    color: #8c9793;
    font-size: 10px;
}


/* ==========================================================
   GALLERY
   ========================================================== */

.mx-gallery {
    display: grid;
    grid-template-columns: 1.6fr repeat(3,1fr);
    gap: 8px;
}

.mx-gallery-feature,
.mx-gallery-placeholder {
    min-height: 140px;
    overflow: hidden;
    border-radius: 11px;
}

.mx-gallery-feature img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.mx-gallery-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    color: #769087;
    background:
        linear-gradient(
            145deg,
            #eef5f2,
            #e3ece8
        );
}

.mx-gallery-placeholder span {
    font-size: 28px;
}

.mx-gallery-placeholder small {
    font-size: 9px;
}


/* ==========================================================
   MEDIA
   ========================================================== */

.mx-media-placeholder {
    min-height: 210px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 13px;
    color: #fff;
    background:
        radial-gradient(
            circle at 20% 25%,
            rgba(242,183,45,.30),
            transparent 23%
        ),
        linear-gradient(
            135deg,
            #315f50,
            #073e32
        );
}

.mx-play {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 3px solid rgba(255,255,255,.70);
    border-radius: 50%;
    font-size: 23px;
}

.mx-media-placeholder strong {
    font-size: 18px;
}

.mx-media-placeholder p {
    margin: 5px 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.9;
}


/* ==========================================================
   MEMORY
   ========================================================== */

.mx-memory-panel {
    background:
        linear-gradient(
            145deg,
            #f4fcf9,
            #ffffff 45%
        );
}

.mx-memory-intro {
    margin: -3px 0 16px;
    color: #65756f;
    line-height: 1.9;
}

.mx-memory-form {
    padding: 16px;
    border: 1px solid #dcebe5;
    border-radius: 13px;
    background: #f8fbfa;
}

.mx-memory-form label {
    display: block;
    margin-bottom: 12px;
}

.mx-memory-form label > span {
    display: block;
    margin-bottom: 5px;
    color: #40544d;
    font-size: 11px;
    font-weight: 800;
}

.mx-memory-form input,
.mx-memory-form textarea {
    width: 100%;
    border: 1px solid #d8e3de;
    border-radius: 9px;
    outline: 0;
    color: #263b35;
    background: #fff;
}

.mx-memory-form input {
    height: 44px;
    padding: 0 12px;
}

.mx-memory-form textarea {
    padding: 11px 12px;
    resize: vertical;
    line-height: 1.9;
}

.mx-memory-form input:focus,
.mx-memory-form textarea:focus {
    border-color: #67a896;
    box-shadow: 0 0 0 3px rgba(7,86,64,.07);
}

.mx-memory-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mx-primary-button {
    min-height: 42px;
    padding: 8px 18px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    color: #fff;
    background: var(--mx-green);
    font-weight: 900;
}

.mx-primary-button:disabled {
    opacity: .55;
    cursor: wait;
}

.mx-memory-submit-row small {
    color: #84908c;
}

.mx-form-status {
    min-height: 20px;
    margin-top: 9px;
    font-size: 11px;
}

.mx-form-status.is-success {
    color: #087a55;
}

.mx-form-status.is-error {
    color: #b43434;
}

.mx-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.mx-logged-user {
    margin-bottom: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #4f6860;
    background: #eaf5f1;
}

.mx-memory-list {
    margin-top: 24px;
}

.mx-memory-list > h3 {
    margin: 0 0 12px;
    color: var(--mx-green-deep);
    font-size: 17px;
}

.mx-memory-item {
    padding: 14px 0;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 11px;
    border-bottom: 1px solid #e9eeec;
}

.mx-memory-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #397c68,
            #0c5943
        );
    font-weight: 900;
}

.mx-memory-item header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mx-memory-item time {
    color: #9aa4a0;
    font-size: 9px;
}

.mx-memory-item p {
    margin: 5px 0 0;
    color: #53645e;
    line-height: 1.9;
}

.mx-no-memory {
    padding: 15px;
    border-radius: 9px;
    color: #7d8985;
    text-align: center;
    background: #f6f8f7;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.mx-side-card p {
    margin: 0;
    color: #76827e;
    line-height: 1.9;
    font-size: 12px;
}

.mx-side-card code {
    margin-top: 11px;
    padding: 8px;
    display: block;
    overflow-wrap: anywhere;
    direction: ltr;
    text-align: left;
    border-radius: 7px;
    color: #40544d;
    background: #f2f5f4;
    font-size: 8px;
}

.mx-document-row {
    margin-top: 7px;
    padding: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    border: 1px solid #e8edeb;
    border-radius: 8px;
    color: #395149;
}

.mx-document-row small {
    color: #98a39f;
    font-size: 8px;
}

.mx-event-placeholder {
    padding: 12px;
    border-radius: 9px;
    background: #f7faf8;
}

.mx-event-placeholder strong {
    color: var(--mx-green-deep);
}

.mx-event-placeholder p {
    margin-top: 5px;
}

.mx-map-placeholder {
    min-height: 115px;
    margin-top: 11px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border-radius: 10px;
    color: var(--mx-green);
    background:
        linear-gradient(
            35deg,
            transparent 47%,
            rgba(255,255,255,.9) 48% 51%,
            transparent 52%
        ),
        linear-gradient(
            145deg,
            #dce7e2,
            #b7cec4
        );
}

.mx-map-placeholder span {
    font-size: 25px;
}

.mx-detail-list {
    margin: 0;
}

.mx-detail-list div {
    padding: 8px 0;
    border-bottom: 1px solid #edf1ef;
}

.mx-detail-list div:last-child {
    border-bottom: 0;
}

.mx-detail-list dt {
    color: #88938f;
    font-size: 9px;
}

.mx-detail-list dd {
    margin: 2px 0 0;
    color: #394d46;
    font-weight: 800;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .mx-hero-grid {
        min-height: 360px;
        grid-template-columns: 240px 1fr;
        gap: 28px;
    }

    .mx-portrait {
        max-height: 300px;
    }

    .mx-actions {
        grid-template-columns: 1fr 1fr;
    }

    .mx-share-box {
        grid-column: 1 / -1;
    }

    .mx-content-grid {
        grid-template-columns: 1fr;
    }

    .mx-side {
        grid-template-columns: repeat(2,1fr);
    }

    .mx-gallery {
        grid-template-columns: 1.5fr repeat(2,1fr);
    }

    .mx-gallery-placeholder:last-child {
        display: none;
    }
}


@media (max-width: 700px) {

    body.admin-bar .mx-nav {
        top: 46px;
    }

    .mx-hero-grid {
        padding-top: 23px;
        padding-bottom: 29px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mx-portrait {
        width: min(265px,80%);
        max-height: none;
        margin-inline: auto;
    }

    .mx-hero-copy {
        text-align: center;
    }

    .mx-hero-copy h1 {
        margin-inline: auto;
        font-size: 31px;
    }

    .mx-facts {
        justify-content: center;
    }

    .mx-actions-wrap {
        margin-top: -10px;
    }

    .mx-actions {
        grid-template-columns: 1fr;
    }

    .mx-share-box {
        grid-column: auto;
    }

    .mx-share-buttons {
        grid-template-columns: repeat(2,1fr);
    }

    .mx-panel {
        padding: 15px;
    }

    .mx-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .mx-gallery-feature {
        grid-row: span 2;
    }

    .mx-side {
        grid-template-columns: 1fr;
    }

    .mx-media-placeholder {
        min-height: 170px;
        padding: 16px;
    }
}


@media (max-width: 480px) {

    .mx-hero-copy h1 {
        font-size: 27px;
    }

    .mx-facts > span {
        min-width: 105px;
    }

    .mx-nav-inner a {
        padding-inline: 10px;
        font-size: 11px;
    }

    .mx-memory-submit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mx-primary-button {
        width: 100%;
    }

    .mx-gallery {
        grid-template-columns: 1fr 1fr;
    }

}

/*
 * ==========================================================
 * MARTYR PROFILE V2
 * ==========================================================
 */


/* ----------------------------------------------------------
   Action bar
   ---------------------------------------------------------- */

.mx-martyr[data-martyr-profile-v2="1"]
.mx-actions {
    grid-template-columns:
        minmax(280px,.9fr)
        minmax(0,1.5fr);
}


/* ----------------------------------------------------------
   Share
   ---------------------------------------------------------- */

.mx-martyr[data-martyr-profile-v2="1"]
.mx-share-buttons {
    grid-template-columns:
        repeat(3,1fr);
}


.mx-share.eitaa {
    background:
        linear-gradient(
            135deg,
            #df7916,
            #efa52f
        );
}


.mx-share.print {
    background:
        #263b35;
}


/* ----------------------------------------------------------
   Spiritual gift
   ---------------------------------------------------------- */

.mx-spiritual-wrap {
    padding:
        16px 0 3px;
}


.mx-spiritual-head {
    margin-bottom:
        9px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;
}


.mx-spiritual-head > span {
    color:
        var(--mx-green-deep);

    font-size:
        15px;

    font-weight:
        950;
}


.mx-spiritual-head small {
    color:
        #83908b;

    font-size:
        10px;
}


.mx-spiritual-grid {
    padding:
        9px;

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        8px;

    border:
        1px solid rgba(7,86,64,.08);

    border-radius:
        17px;

    background:
        #eaf7f3;
}


.mx-spiritual-card {
    min-height:
        145px;

    padding:
        13px 10px;

    border:
        0;

    border-radius:
        12px;

    cursor:
        pointer;

    display:
        grid;

    place-items:
        center;

    align-content:
        center;

    gap:
        4px;

    color:
        #1f6657;

    background:
        rgba(255,255,255,.48);

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


.mx-spiritual-card:hover {
    transform:
        translateY(-2px);

    background:
        #fff;

    box-shadow:
        0 12px 27px
        rgba(6,72,54,.08);
}


.mx-spiritual-card strong {
    font-size:
        15px;
}


.mx-spiritual-card b {
    color:
        #548e82;

    font-size:
        26px;

    font-weight:
        950;
}


.mx-spiritual-unit {
    color:
        #698f86;

    font-size:
        10px;
}


.mx-spiritual-plus {
    width:
        45px;

    height:
        45px;

    margin-top:
        6px;

    display:
        grid;

    place-items:
        center;

    border:
        2px solid #83d6c6;

    border-radius:
        12px;

    color:
        #12ae93;

    background:
        #fff;

    font-size:
        30px;

    font-weight:
        500;
}


.mx-spiritual-card.is-loading {
    opacity:
        .55;

    cursor:
        wait;
}


.mx-spiritual-card.is-success
.mx-spiritual-plus {
    color:
        #fff;

    border-color:
        #0c9475;

    background:
        #0c9475;
}


/* ----------------------------------------------------------
   Personal / martyrdom info
   ---------------------------------------------------------- */

.mx-profile-information {
    padding:
        15px 0 2px;
}


.mx-profile-information-grid {
    display:
        grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:
        12px;
}


.mx-info-card {
    overflow:
        hidden;

    border:
        1px solid var(--mx-border);

    border-radius:
        16px;

    background:
        #fff;

    box-shadow:
        var(--mx-shadow);
}


.mx-info-card > header {
    min-height:
        62px;

    padding:
        13px 17px;

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    border-bottom:
        1px solid #e8eeeb;
}


.mx-info-card > header h2 {
    margin:
        0;

    color:
        var(--mx-green-deep);

    font-size:
        19px;

    font-weight:
        950;
}


.mx-info-card-martyrdom
> header h2 {
    color:
        #a62c32;
}


.mx-info-symbol {
    width:
        38px;

    height:
        38px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    color:
        var(--mx-green);

    background:
        #eaf5f1;

    font-size:
        17px;
}


.mx-info-card-martyrdom
.mx-info-symbol {
    color:
        #a52d34;

    background:
        #fbefef;
}


.mx-info-card dl {
    margin:
        0;

    padding:
        0 17px 7px;
}


.mx-info-card dl > div {
    min-height:
        50px;

    padding:
        10px 0;

    display:
        grid;

    grid-template-columns:
        minmax(145px,.7fr)
        minmax(0,1fr);

    align-items:
        center;

    gap:
        12px;

    border-bottom:
        1px solid #e8edeb;
}


.mx-info-card dl > div:last-child {
    border-bottom:
        0;
}


.mx-info-card dt {
    color:
        #66766f;

    font-size:
        12px;
}


.mx-info-card dd {
    margin:
        0;

    color:
        #a6541d;

    font-size:
        13px;

    font-weight:
        850;
}


.mx-value-pending {
    color:
        #a6afab;

    font-size:
        10px;

    font-weight:
        500;
}


/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width:760px) {

    .mx-martyr[data-martyr-profile-v2="1"]
    .mx-actions {
        grid-template-columns:
            1fr;
    }


    .mx-profile-information-grid {
        grid-template-columns:
            1fr;
    }


    .mx-spiritual-head {
        align-items:
            flex-start;

        flex-direction:
            column;
    }
}


@media (max-width:520px) {

    .mx-spiritual-grid {
        gap:
            5px;
    }


    .mx-spiritual-card {
        min-height:
            128px;

        padding-inline:
            5px;
    }


    .mx-spiritual-card strong {
        font-size:
            12px;
    }


    .mx-spiritual-card b {
        font-size:
            21px;
    }


    .mx-spiritual-plus {
        width:
            38px;

        height:
            38px;

        font-size:
            25px;
    }


    .mx-martyr[data-martyr-profile-v2="1"]
    .mx-share-buttons {
        grid-template-columns:
            repeat(2,1fr);
    }


    .mx-info-card dl > div {
        grid-template-columns:
            1fr 1fr;
    }
}


/* ==========================================================
   PRINT / SAVE AS PDF
   ========================================================== */

@media print {

    @page {
        size:
            A4;

        margin:
            12mm;
    }


    html,
    body {
        background:
            #fff !important;
    }


    body.single-shahid
    #wpadminbar,

    body.single-shahid
    .mx-nav,

    body.single-shahid
    .mx-share-box,

    body.single-shahid
    .mx-memory-panel,

    body.single-shahid
    footer {
        display:
            none !important;
    }


    body.single-shahid
    .mx-martyr {
        background:
            #fff !important;
    }


    body.single-shahid
    .mx-hero {
        color:
            #111 !important;

        background:
            #fff !important;

        border-bottom:
            2px solid #184d3d;
    }


    body.single-shahid
    .mx-hero::before {
        display:
            none !important;
    }


    body.single-shahid
    .mx-hero-copy h1,

    body.single-shahid
    .mx-hero-note,

    body.single-shahid
    .mx-lead {
        color:
            #111 !important;
    }


    body.single-shahid
    .mx-kicker {
        color:
            #111 !important;

        background:
            #eee !important;
    }


    body.single-shahid
    .mx-facts > span {
        border:
            1px solid #bbb !important;

        background:
            #fff !important;
    }


    body.single-shahid
    .mx-facts small,

    body.single-shahid
    .mx-facts b {
        color:
            #111 !important;
    }


    body.single-shahid
    .mx-actions-wrap {
        margin-top:
            8px !important;
    }


    body.single-shahid
    .mx-actions {
        display:
            block !important;

        border:
            1px solid #ccc !important;

        box-shadow:
            none !important;
    }


    body.single-shahid
    .mx-permanent {
        background:
            #fff !important;
    }


    body.single-shahid
    .mx-spiritual-wrap,

    body.single-shahid
    .mx-profile-information,

    body.single-shahid
    .mx-content {
        padding-top:
            8px !important;
    }


    body.single-shahid
    .mx-spiritual-grid {
        border:
            1px solid #ccc !important;

        background:
            #fff !important;
    }


    body.single-shahid
    .mx-spiritual-card {
        min-height:
            90px !important;

        background:
            #fff !important;
    }


    body.single-shahid
    .mx-spiritual-plus {
        display:
            none !important;
    }


    body.single-shahid
    .mx-content-grid {
        display:
            block !important;
    }


    body.single-shahid
    .mx-panel,

    body.single-shahid
    .mx-side-card,

    body.single-shahid
    .mx-info-card {
        box-shadow:
            none !important;

        break-inside:
            avoid;

        page-break-inside:
            avoid;
    }


    body.single-shahid
    .mx-side {
        margin-top:
            12px;

        grid-template-columns:
            repeat(2,1fr);
    }


    body.single-shahid
    a {
        color:
            #111 !important;
    }
}

/*
 * ==========================================================
 * MARTYR UX COMPRESSION 9A-3D2A
 *
 * Native Essential-Addons-inspired interaction patterns:
 * tabs / disclosure / compact media hub.
 * ==========================================================
 */


/* ==========================================================
   GLOBAL RHYTHM
   ========================================================== */

.mx-martyr[data-ux-compression="9A-3D2A"] {
    --mx-compact-gap: 12px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-hero-grid {
    min-height: 320px;
    padding-top: 22px;
    padding-bottom: 22px;
    grid-template-columns:
        minmax(195px, 245px)
        minmax(0, 1fr);
    gap: 38px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-portrait {
    max-height: 270px;
    border-radius: 18px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-hero-copy h1 {
    margin-top: 10px;
    font-size: clamp(
        30px,
        3.55vw,
        47px
    );
    line-height: 1.35;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-hero-note {
    margin-top: 12px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-facts {
    margin-top: 14px;
}


/* ==========================================================
   ACTION / SHARE
   ========================================================== */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-actions-wrap {
    margin-top: -14px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-actions {
    padding: 8px;
    gap: 7px;
    border-radius: 15px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-permanent,

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-share-box {
    min-height: 72px;
    padding: 9px 11px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-permanent {
    grid-template-columns: 46px 1fr;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-qr-placeholder {
    width: 46px;
    height: 46px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-share-box > strong {
    margin-bottom: 5px;
    font-size: 11px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-share-buttons {
    grid-template-columns:
        repeat(6, minmax(0,1fr));
    gap: 5px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-share {
    min-height: 31px;
    padding: 4px 3px;
    border-radius: 7px;
    font-size: 9px;
}


/* ==========================================================
   SPIRITUAL COUNTER BAR
   ========================================================== */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-wrap {
    padding-top: 11px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-head {
    margin-bottom: 6px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-grid {
    padding: 6px;
    gap: 5px;
    border-radius: 14px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-card {
    min-height: 92px;
    padding: 8px 8px;
    grid-template-columns:
        1fr auto;
    grid-template-rows:
        auto auto;
    place-items: initial;
    align-items: center;
    gap: 0 10px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-card strong {
    grid-column: 1;
    grid-row: 1;
    font-size: 12px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-card b {
    grid-column: 1;
    grid-row: 2;
    font-size: 22px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-unit {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-inline-start: 38px;
    font-size: 9px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-plus {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 35px;
    height: 35px;
    margin: 0;
    align-self: center;
    font-size: 24px;
}


/* ==========================================================
   MODERN TABS
   ========================================================== */

.mx-modern-tabs {
    width: fit-content;
    max-width: 100%;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid
        rgba(7,86,64,.10);
    border-radius: 11px;
    background: #edf5f2;
}


.mx-modern-tab {
    min-height: 35px;
    padding: 6px 15px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: #587068;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 850;
    transition:
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}


.mx-modern-tab:hover {
    color: var(--mx-green);
}


.mx-modern-tab.is-active {
    color: #fff;
    background: var(--mx-green);
    box-shadow:
        0 6px 16px
        rgba(7,86,64,.16);
}


/* ==========================================================
   PROFILE TABS
   ========================================================== */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-profile-information {
    padding-top: 11px;
}


.mx-profile-tabs {
    margin-bottom: 7px;
}


.mx-ux-ready
.mx-profile-information-grid {
    display: block;
}


.mx-ux-ready
.mx-profile-information-grid
> .mx-info-card {
    display: none;
}


.mx-ux-ready
.mx-profile-information-grid
> .mx-info-card.is-active {
    display: block;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-card > header {
    min-height: 50px;
    padding: 9px 14px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-symbol {
    width: 32px;
    height: 32px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-card > header h2 {
    font-size: 16px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-card dl {
    padding: 0 14px 5px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0,1fr));
    column-gap: 25px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-card dl > div {
    min-height: 42px;
    padding: 7px 0;
    grid-template-columns:
        minmax(105px,.75fr)
        minmax(0,1fr);
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-card dt {
    font-size: 10px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-card dd {
    font-size: 11px;
}


/* ==========================================================
   INTERNAL NAV
   ========================================================== */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-nav {
    margin-top: 11px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-nav-inner {
    min-height: 45px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-nav-inner a {
    padding: 12px 10px 10px;
    font-size: 10px;
}


/* ==========================================================
   CONTENT DENSITY
   ========================================================== */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-content {
    padding: 15px 0 38px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-content-grid {
    grid-template-columns:
        minmax(0,1fr)
        250px;
    gap: 12px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-main,

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-side {
    gap: 11px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-panel {
    padding: 15px;
    border-radius: 14px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-panel-head {
    margin-bottom: 10px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-panel-head h2,

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-side-card h2 {
    font-size: 17px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-panel-icon,

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-side-icon {
    width: 32px;
    height: 32px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-prose {
    font-size: 13px;
    line-height: 2;
}


/* ==========================================================
   LONG BIOGRAPHY
   ========================================================== */

.mx-ux-ready
.mx-biography-prose {
    position: relative;
    transition:
        max-height .28s ease;
}


.mx-ux-ready
.mx-biography-prose.is-collapsed {
    max-height: 300px;
    overflow: hidden;
}


.mx-ux-ready
.mx-biography-prose.is-collapsed::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 75px;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0),
            #fff
        );
}


.mx-ux-ready
.mx-biography-prose.is-expanded {
    max-height: none;
}


.mx-biography-toggle {
    min-height: 34px;
    margin-top: 8px;
    padding: 5px 13px;
    border: 1px solid #d8e7e1;
    border-radius: 8px;
    cursor: pointer;
    color: var(--mx-green);
    background: #f4faf7;
    font-family: inherit;
    font-size: 10px;
    font-weight: 850;
}


/* ==========================================================
   MEDIA HUB
   ========================================================== */

.mx-media-hub {
    display: grid;
    gap: 7px;
}


.mx-media-tabs {
    margin-inline-start: auto;
}


.mx-ux-ready
.mx-media-tab-panel {
    display: none;
}


.mx-ux-ready
.mx-media-tab-panel.is-active {
    display: block;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-gallery {
    gap: 6px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-gallery-feature,

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-gallery-placeholder {
    min-height: 118px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-gallery-feature img {
    min-height: 118px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-media-placeholder {
    min-height: 145px;
    padding: 17px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-play {
    width: 52px;
    height: 52px;
    font-size: 18px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-media-placeholder strong {
    font-size: 15px;
}


/* ==========================================================
   MEMORY DISCLOSURE
   ========================================================== */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-memory-panel {
    padding-bottom: 14px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-memory-intro {
    margin-bottom: 9px;
    font-size: 11px;
}


.mx-memory-disclosure {
    width: 100%;
    min-height: 54px;
    margin-bottom: 9px;
    padding: 8px 12px;
    border: 1px solid #d9e9e3;
    border-radius: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    color: #355a4f;
    background:
        linear-gradient(
            135deg,
            #eef8f4,
            #f9fcfb
        );
    font-family: inherit;
}


.mx-memory-disclosure-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--mx-green);
    font-size: 20px;
    transition:
        transform .2s ease;
}


.mx-memory-disclosure strong,

.mx-memory-disclosure small {
    display: block;
}


.mx-memory-disclosure strong {
    font-size: 12px;
}


.mx-memory-disclosure small {
    margin-top: 2px;
    color: #83928c;
    font-size: 9px;
}


.mx-memory-disclosure.is-open
.mx-memory-disclosure-icon {
    transform: rotate(45deg);
}


.mx-ux-ready
.mx-memory-form-collapsible {
    display: none;
}


.mx-ux-ready
.mx-memory-form-collapsible.is-open {
    display: block;
    animation:
        mxMemoryOpen .2s ease;
}


@keyframes mxMemoryOpen {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-memory-list {
    margin-top: 13px;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

/*
 * Permanent-page information already exists in the action bar.
 * Hide only the duplicate first sidebar card.
 */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-side
> .mx-side-card:first-child {
    display: none;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-side-card {
    padding: 12px;
    border-radius: 13px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-side-card p {
    font-size: 10px;
    line-height: 1.75;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-document-row {
    margin-top: 5px;
    padding: 7px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-event-placeholder {
    padding: 9px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-map-placeholder {
    min-height: 88px;
    margin-top: 8px;
}


/* ==========================================================
   DESKTOP SIDEBAR STICKINESS
   ========================================================== */

@media (min-width: 901px) {

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-side {
        position: sticky;
        top: 66px;
        align-self: start;
    }


    body.admin-bar
    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-side {
        top: 98px;
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-hero-grid {
        min-height: 300px;
        grid-template-columns:
            205px
            minmax(0,1fr);
        gap: 25px;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-content-grid {
        grid-template-columns: 1fr;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-side {
        grid-template-columns:
            repeat(3,1fr);
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-info-card dl {
        grid-template-columns:
            1fr;
    }
}


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

@media (max-width: 700px) {

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-hero-grid {
        min-height: 0;
        padding-top: 18px;
        padding-bottom: 22px;
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-portrait {
        width: min(215px,68%);
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-hero-copy h1 {
        font-size: 28px;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-share-buttons {
        grid-template-columns:
            repeat(3,1fr);
    }


    .mx-spiritual-head small {
        display: none;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-card {
        min-height: 105px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        place-items: center;
        text-align: center;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-card strong,

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-card b,

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-unit,

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-plus {
        grid-column: auto;
        grid-row: auto;
        margin: 0;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-plus {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-side {
        grid-template-columns: 1fr;
    }


    .mx-modern-tabs {
        width: 100%;
    }


    .mx-modern-tab {
        flex: 1 1 0;
        padding-inline: 8px;
    }
}


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

@media (max-width: 480px) {

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-share-buttons {
        grid-template-columns:
            repeat(2,1fr);
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-card {
        min-height: 100px;
        padding-inline: 3px;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-card strong {
        font-size: 10px;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-spiritual-card b {
        font-size: 18px;
    }
}


/* ==========================================================
   PRINT
   ========================================================== */

@media print {

    .mx-ux-ready
    .mx-profile-information-grid
    > .mx-info-card {
        display: block !important;
        margin-bottom: 8px;
    }


    .mx-profile-tabs,
    .mx-media-tabs,
    .mx-memory-disclosure,
    .mx-biography-toggle {
        display: none !important;
    }


    .mx-ux-ready
    .mx-media-tab-panel {
        display: block !important;
    }


    .mx-ux-ready
    .mx-biography-prose.is-collapsed {
        max-height: none !important;
        overflow: visible !important;
    }


    .mx-ux-ready
    .mx-biography-prose.is-collapsed::after {
        display: none !important;
    }
}

/*
 * ==========================================================
 * MARTYR FINAL POLISH 9A-3D2B
 * ==========================================================
 */


/* ----------------------------------------------------------
   HERO: reduce dead vertical space
   ---------------------------------------------------------- */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-hero-grid {
    min-height: 286px;
    padding-top: 18px;
    padding-bottom: 18px;
    grid-template-columns:
        minmax(180px, 220px)
        minmax(0,1fr);
    gap: 34px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-portrait {
    max-height: 235px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-hero-copy h1 {
    font-size:
        clamp(29px,3.25vw,43px);
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-hero-note {
    margin-top: 8px;
    font-size: 11px;
}


/* ----------------------------------------------------------
   ACTION BAR
   ---------------------------------------------------------- */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-actions-wrap {
    margin-top: -11px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-actions {
    box-shadow:
        0 13px 35px
        rgba(22,66,53,.08);
}


/* ----------------------------------------------------------
   SPIRITUAL BAR
   ---------------------------------------------------------- */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-card {
    min-height: 78px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-card b {
    font-size: 20px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-spiritual-plus {
    width: 32px;
    height: 32px;
    font-size: 22px;
}


/* ----------------------------------------------------------
   PROFILE TABS: tabs themselves become the heading
   ---------------------------------------------------------- */

.mx-profile-tabs {
    margin-inline-start: auto;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}


.mx-ux-ready
.mx-profile-information-grid
> .mx-info-card
> header {
    display: none;
}


.mx-ux-ready
.mx-profile-information-grid
> .mx-info-card.is-active {
    border-top-right-radius: 4px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-card dl {
    padding-top: 7px;
    padding-bottom: 7px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-info-card dl > div {
    min-height: 38px;
}


/* ----------------------------------------------------------
   INTERNAL NAV
   ---------------------------------------------------------- */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-nav-inner a {
    color: #53665f;
    font-size: 10.5px;
    font-weight: 700;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-nav-inner a:hover {
    color: var(--mx-green);
    background: #f1f7f4;
}


/* ----------------------------------------------------------
   MEDIA HUB
   Tab name already identifies the panel.
   ---------------------------------------------------------- */

.mx-media-tabs {
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}


.mx-ux-ready
.mx-media-hub
.mx-media-tab-panel
> .mx-panel-head {
    display: none;
}


.mx-ux-ready
.mx-media-hub
.mx-media-tab-panel {
    padding-top: 11px;
}


.mx-ux-ready
.mx-media-hub
#gallery
.mx-gallery {
    grid-template-columns:
        minmax(180px,1.25fr)
        repeat(
            3,
            minmax(100px,.72fr)
        );
    align-items: stretch;
}


.mx-ux-ready
.mx-media-hub
#gallery
.mx-gallery-feature,

.mx-ux-ready
.mx-media-hub
#gallery
.mx-gallery-placeholder {
    height: 225px;
    min-height: 0;
}


.mx-ux-ready
.mx-media-hub
#gallery
.mx-gallery-feature img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
}


/* ----------------------------------------------------------
   MEMORY
   ---------------------------------------------------------- */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-memory-intro {
    margin-bottom: 6px;
}


.mx-memory-disclosure {
    min-height: 47px;
    margin-bottom: 6px;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-memory-list {
    margin-top: 9px;
}


/* ----------------------------------------------------------
   SIDEBAR
   ---------------------------------------------------------- */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-side-card {
    box-shadow:
        0 10px 25px
        rgba(29,75,61,.055);
}


/* ----------------------------------------------------------
   ACCESSIBILITY
   ---------------------------------------------------------- */

.mx-modern-tab:focus-visible,

.mx-share:focus-visible,

.mx-spiritual-card:focus-visible,

.mx-memory-disclosure:focus-visible,

.mx-biography-toggle:focus-visible {
    outline:
        3px solid rgba(240,179,49,.72);
    outline-offset: 3px;
}


.mx-modern-tab,
.mx-share,
.mx-spiritual-card,
.mx-memory-disclosure,
.mx-biography-toggle {
    -webkit-tap-highlight-color:
        transparent;
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width:900px) {

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-hero-grid {
        min-height: 270px;
        grid-template-columns:
            190px
            minmax(0,1fr);
        gap: 23px;
    }


    .mx-ux-ready
    .mx-media-hub
    #gallery
    .mx-gallery {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .mx-ux-ready
    .mx-media-hub
    #gallery
    .mx-gallery-feature,

    .mx-ux-ready
    .mx-media-hub
    #gallery
    .mx-gallery-placeholder {
        height: 195px;
    }
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width:700px) {

    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-hero-grid {
        padding-top: 15px;
        padding-bottom: 18px;
    }


    .mx-martyr[data-ux-compression="9A-3D2A"]
    .mx-portrait {
        max-height: 205px;
    }


    .mx-profile-tabs,
    .mx-media-tabs {
        margin-inline-start: 0;
    }


    .mx-ux-ready
    .mx-media-hub
    #gallery
    .mx-gallery-feature,

    .mx-ux-ready
    .mx-media-hub
    #gallery
    .mx-gallery-placeholder {
        height: 170px;
    }
}


/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media (
    prefers-reduced-motion: reduce
) {

    .mx-martyr *,
    .mx-martyr *::before,
    .mx-martyr *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/*
 * ==========================================================
 * MARTYR RTL TAB FIX 9A-3D2C
 * ==========================================================
 *
 * RTL-first positioning for profile and media tabs.
 */


/* ----------------------------------------------------------
   PROFILE TABS
   ---------------------------------------------------------- */

.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-profile-information {
    direction: rtl;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-profile-tabs {
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    border-bottom-right-radius: 4px;
}


.mx-ux-ready
.mx-profile-information-grid
> .mx-info-card.is-active {
    border-top-right-radius: 4px;
    border-top-left-radius: 14px;
}


/* ----------------------------------------------------------
   MEDIA TABS
   ---------------------------------------------------------- */

.mx-media-hub {
    direction: rtl;
}


.mx-martyr[data-ux-compression="9A-3D2A"]
.mx-media-tabs {
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    border-bottom-right-radius: 4px;
}


/* ----------------------------------------------------------
   TAB INTERNAL DIRECTION
   ---------------------------------------------------------- */

.mx-modern-tabs {
    direction: rtl;
}


.mx-modern-tab {
    text-align: center;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width:700px) {

    .mx-profile-tabs,
    .mx-media-tabs {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

}


/*
 * ==========================================================
 * MARTYR LOCAL QR 9A-3E
 * Local qrcodejs renderer, ECC H, print-safe quiet zone.
 * ==========================================================
 */

.mx-permanent {
    grid-template-columns: 72px minmax(0, 1fr);
}

.mx-qr-local {
    width: 72px;
    height: 72px;
    padding: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(7,86,64,.14);
    border-radius: 10px;
    background: #fff;
}

.mx-qr-code {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
}

.mx-qr-code canvas,
.mx-qr-code img {
    width: 56px !important;
    height: 56px !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    image-rendering: pixelated;
}

.mx-qr-download {
    margin-top: 6px;
    padding: 4px 9px;
    border: 1px solid rgba(7,86,64,.18);
    border-radius: 999px;
    cursor: pointer;
    color: var(--mx-green-deep);
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}

.mx-qr-download:hover,
.mx-qr-download:focus-visible {
    border-color: var(--mx-green);
    outline: 0;
    background: var(--mx-green-soft);
}

@media print {
    .mx-qr-download {
        display: none !important;
    }

    .mx-qr-local {
        border-color: #000 !important;
        background: #fff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .mx-qr-code canvas,
    .mx-qr-code img {
        image-rendering: pixelated;
    }
}

/* ==========================================================
   9A-4D0 QUICK VISUAL CORRECTION
   Memorial editorial polish
   ========================================================== */


/* ----------------------------------------------------------
   PAGE RHYTHM
   ---------------------------------------------------------- */

body.single-shahid .mx-martyr {
    --mx-polish-border: #e3ece7;
    --mx-polish-muted: #6c7d76;
    --mx-polish-text: #183b31;
    --mx-polish-surface: #ffffff;
}


body.single-shahid
.mx-martyr
.mx-content {
    padding-top: 18px;
    padding-bottom: 30px;
}


/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */

body.single-shahid
.mx-martyr
.mx-hero-grid {
    min-height: 238px;
    padding-top: 16px;
    padding-bottom: 16px;

    grid-template-columns:
        minmax(165px,190px)
        minmax(0,1fr);

    gap: 30px;
}


body.single-shahid
.mx-martyr
.mx-portrait {
    width: 100%;
    max-height: 215px;

    aspect-ratio: 4 / 5;

    border-width: 3px;
    border-radius: 17px;

    box-shadow:
        0 14px 34px
        rgba(0,0,0,.16);
}


body.single-shahid
.mx-martyr
.mx-portrait img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center top !important;
}


body.single-shahid
.mx-martyr
.mx-hero-copy h1 {
    margin-top: 10px;

    font-size:
        clamp(30px,3.1vw,42px);

    line-height: 1.55;
}


body.single-shahid
.mx-martyr
.mx-hero-note {
    max-width: 650px;

    font-size: 12px;
    line-height: 1.9;
}


body.single-shahid
.mx-martyr
.mx-kicker {
    padding: 5px 11px;
    font-size: 11px;
}


/* ----------------------------------------------------------
   ACTIONS / QR
   ---------------------------------------------------------- */

body.single-shahid
.mx-martyr
.mx-actions-wrap {
    margin-top: -8px;
}


body.single-shahid
.mx-martyr
.mx-actions {
    border:
        1px solid
        var(--mx-polish-border);

    border-radius: 17px;

    box-shadow:
        0 10px 30px
        rgba(26,65,53,.06);
}


body.single-shahid
.mx-martyr
.mx-share-box {
    opacity: .94;
}


body.single-shahid
.mx-martyr
.mx-share {
    min-height: 38px;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 800;
}


/* ----------------------------------------------------------
   SPIRITUAL BAR
   ---------------------------------------------------------- */

body.single-shahid
.mx-martyr
.mx-spiritual-grid {
    overflow: hidden;

    border:
        1px solid
        #cde7dc;

    border-radius: 15px;

    background: #fff;
}


body.single-shahid
.mx-martyr
.mx-spiritual-card {
    min-height: 72px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f4faf7
        );
}


body.single-shahid
.mx-martyr
.mx-spiritual-card strong {
    color: #385d50;

    font-size: 11px;
}


body.single-shahid
.mx-martyr
.mx-spiritual-card b {
    color: #0b6b50;

    font-size: 21px;
}


/* ----------------------------------------------------------
   PROFILE INFORMATION
   ---------------------------------------------------------- */

body.single-shahid
.mx-martyr
.mx-profile-information {
    padding-top: 15px;
}


body.single-shahid
.mx-martyr
.mx-profile-information-grid {
    border-radius: 15px;
}


body.single-shahid
.mx-martyr
.mx-info-card {
    overflow: hidden;

    border:
        1px solid
        var(--mx-polish-border);

    border-radius: 15px;

    background:
        var(--mx-polish-surface);

    box-shadow:
        0 8px 24px
        rgba(24,66,52,.045);
}


body.single-shahid
.mx-martyr
.mx-info-card dl {
    padding:
        5px 16px 8px;
}


body.single-shahid
.mx-martyr
.mx-info-card dl > div {
    min-height: 44px;

    display: grid;

    grid-template-columns:
        minmax(105px,130px)
        minmax(0,1fr);

    align-items: center;

    gap: 16px;

    padding:
        8px 2px;

    border-bottom:
        1px solid #edf2ef;
}


body.single-shahid
.mx-martyr
.mx-info-card dl > div:last-child {
    border-bottom: 0;
}


body.single-shahid
.mx-martyr
.mx-info-card dt {
    color: #819089;

    font-size: 11px;
}


body.single-shahid
.mx-martyr
.mx-info-card dd {
    color:
        var(--mx-polish-text);

    font-size: 13px;
    font-weight: 850;
}


/* ----------------------------------------------------------
   TABS / INTERNAL NAV
   ---------------------------------------------------------- */

body.single-shahid
.mx-martyr
.mx-modern-tab {
    min-height: 38px;

    padding-inline:
        14px;

    font-size: 12px;
    font-weight: 850;
}


body.single-shahid
.mx-martyr
.mx-nav-inner a {
    padding:
        9px 11px;

    font-size: 12px;
    font-weight: 750;
}


/* ----------------------------------------------------------
   MAIN CONTENT
   ---------------------------------------------------------- */

body.single-shahid
.mx-martyr
.mx-content-grid {
    grid-template-columns:
        minmax(0,1fr)
        minmax(225px,260px);

    gap: 16px;
}


body.single-shahid
.mx-martyr
.mx-panel,
body.single-shahid
.mx-martyr
.mx-side-card {
    border:
        1px solid
        var(--mx-polish-border);

    border-radius: 16px;

    box-shadow:
        0 8px 25px
        rgba(26,65,53,.045);
}


body.single-shahid
.mx-martyr
.mx-panel-head h2,
body.single-shahid
.mx-martyr
.mx-side-card h2 {
    font-size: 18px;
}


body.single-shahid
.mx-martyr
.mx-prose {
    color: #344b43;

    font-size: 14px;
    line-height: 2.15;
}


body.single-shahid
.mx-martyr
.mx-empty-content {
    border:
        1px dashed #dbe5df;

    color: #77867f;

    background: #fafcfb;
}


/* ----------------------------------------------------------
   GALLERY
   NO STRETCH / NO DEFORMATION
   ---------------------------------------------------------- */

body.single-shahid
.mx-martyr
.mx-gallery {
    gap: 9px;
}


body.single-shahid
.mx-martyr
.mx-gallery-feature,
body.single-shahid
.mx-martyr
.mx-gallery-placeholder {
    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: 4 / 3;

    border-radius: 13px;
}


body.single-shahid
.mx-martyr
.mx-gallery-feature {
    position: relative;

    overflow: hidden;

    background: #eef3f0;
}


body.single-shahid
.mx-martyr
.mx-gallery-feature img {
    position: absolute;

    inset: 0;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    object-fit: cover !important;
    object-position: center top !important;
}


/* ----------------------------------------------------------
   SIDEBAR
   ---------------------------------------------------------- */

body.single-shahid
.mx-martyr
.mx-side-card {
    padding: 15px;
}


body.single-shahid
.mx-martyr
.mx-side-card + .mx-side-card {
    margin-top: 10px;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width:900px) {

    body.single-shahid
    .mx-martyr
    .mx-content-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width:700px) {

    body.single-shahid
    .mx-martyr
    .mx-hero-grid {
        min-height: 0;

        grid-template-columns: 1fr;

        gap: 12px;

        padding-top: 15px;
        padding-bottom: 19px;
    }


    body.single-shahid
    .mx-martyr
    .mx-portrait {
        width: min(190px,62%);
        max-height: none;

        margin-inline: auto;
    }


    body.single-shahid
    .mx-martyr
    .mx-hero-copy {
        text-align: center;
    }


    body.single-shahid
    .mx-martyr
    .mx-hero-copy h1 {
        font-size: 27px;
    }


    body.single-shahid
    .mx-martyr
    .mx-info-card dl > div {
        grid-template-columns:
            105px minmax(0,1fr);

        gap: 10px;
    }


    body.single-shahid
    .mx-martyr
    .mx-modern-tab {
        padding-inline: 10px;
        font-size: 11px;
    }

}

/* ==========================================================
   9A-4D1B MEMORIAL EDITORIAL EXPERIENCE
   Structural single-martyr redesign
   ========================================================== */

body.single-shahid {
    background: #f6f7f4;
}

body.single-shahid .mx-editorial[data-editorial="9A-4D1B"] {
    --me-green: #0b5c45;
    --me-green-deep: #073f31;
    --me-green-soft: #edf6f2;
    --me-ink: #20332d;
    --me-muted: #718079;
    --me-line: #dfe7e2;
    --me-warm: #f8f5ed;
    --me-gold: #c9932c;
    --me-white: #ffffff;
    direction: rtl;
    color: var(--me-ink);
    background: #f6f7f4;
}

body.single-shahid .mx-editorial[data-editorial="9A-4D1B"] *,
body.single-shahid .mx-editorial[data-editorial="9A-4D1B"] *::before,
body.single-shahid .mx-editorial[data-editorial="9A-4D1B"] *::after {
    box-sizing: border-box;
}

/* Remove the generic theme footer on martyr profiles. */
body.single-shahid footer,
body.single-shahid #footer,
body.single-shahid .footer-widgets,
body.single-shahid .site-footer {
    display: none !important;
}

/* ==========================================================
   HERO
   ========================================================== */

body.single-shahid .mx-editorial .me-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.075), transparent 28%),
        linear-gradient(135deg, #0d6249 0%, #074b39 56%, #063c30 100%);
}

body.single-shahid .mx-editorial .me-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,.028) 49%, rgba(255,255,255,.028) 51%, transparent 52%);
    background-size: 34px 34px;
}

body.single-shahid .mx-editorial .me-hero-grid {
    position: relative;
    z-index: 1;
    min-height: 330px;
    padding-top: 34px;
    padding-bottom: 34px;
    display: grid;
    grid-template-columns: minmax(190px, 225px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

body.single-shahid .mx-editorial .me-portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.78);
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

body.single-shahid .mx-editorial .me-portrait img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    object-position: center top !important;
}

body.single-shahid .mx-editorial .me-portrait-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.72);
}

body.single-shahid .mx-editorial .me-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.single-shahid .mx-editorial .me-badge {
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 11px;
    font-weight: 800;
}

body.single-shahid .mx-editorial .me-badge-primary {
    border-color: rgba(245,192,71,.44);
    color: #423008;
    background: #efb93c;
}

body.single-shahid .mx-editorial .me-hero-copy h1 {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 53px);
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -.4px;
}

body.single-shahid .mx-editorial .me-lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 2;
}

body.single-shahid .mx-editorial .me-hero-facts {
    max-width: 880px;
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}

body.single-shahid .mx-editorial .me-hero-facts > div {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(1,31,23,.18);
    backdrop-filter: blur(5px);
}

body.single-shahid .mx-editorial .me-hero-facts span,
body.single-shahid .mx-editorial .me-hero-facts strong {
    display: block;
}

body.single-shahid .mx-editorial .me-hero-facts span {
    color: rgba(255,255,255,.58);
    font-size: 10px;
}

body.single-shahid .mx-editorial .me-hero-facts strong {
    margin-top: 4px;
    color: #fff;
    font-size: 12px;
    line-height: 1.75;
    font-weight: 850;
}

/* ==========================================================
   COMPACT TOOLBAR / QR
   ========================================================== */

body.single-shahid .mx-editorial .me-toolbar-wrap {
    position: relative;
    z-index: 6;
    margin-top: -20px;
}

body.single-shahid .mx-editorial .me-toolbar {
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.45fr);
    gap: 10px;
    border: 1px solid var(--me-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(17,62,49,.09);
}

body.single-shahid .mx-editorial .me-permanent {
    min-height: 92px !important;
    padding: 7px 10px !important;
    display: grid !important;
    grid-template-columns: 84px minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    border-radius: 12px !important;
    background: #f8faf8 !important;
}

body.single-shahid .mx-editorial .me-qr {
    width: 84px !important;
    height: 84px !important;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 0 !important;
    border-radius: 9px !important;
    background: #fff !important;
}

body.single-shahid .mx-editorial .me-qr canvas,
body.single-shahid .mx-editorial .me-qr img {
    width: 84px !important;
    height: 84px !important;
    display: block !important;
}

body.single-shahid .mx-editorial .me-permanent-copy strong,
body.single-shahid .mx-editorial .me-permanent-copy small,
body.single-shahid .mx-editorial .me-permanent-copy code {
    display: block;
}

body.single-shahid .mx-editorial .me-permanent-copy strong {
    color: var(--me-green-deep);
    font-size: 13px;
}

body.single-shahid .mx-editorial .me-permanent-copy small {
    margin-top: 3px;
    color: var(--me-muted);
    font-size: 9px;
}

body.single-shahid .mx-editorial .me-permanent-copy code {
    max-width: 100%;
    margin-top: 6px;
    overflow: hidden;
    direction: ltr;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #71837c;
    font-size: 8px;
}

body.single-shahid .mx-editorial .me-tools {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 7px;
    align-items: stretch;
}

body.single-shahid .mx-editorial .me-tool {
    min-height: 44px !important;
    padding: 7px 4px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #e1e8e4 !important;
    border-radius: 10px !important;
    color: #31544a !important;
    background: #fff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

body.single-shahid .mx-editorial .me-tool:hover {
    transform: translateY(-1px);
    border-color: #c7dbd3 !important;
    color: var(--me-green-deep) !important;
    background: var(--me-green-soft) !important;
}

/* ==========================================================
   SHARED SECTION TYPOGRAPHY
   ========================================================== */

body.single-shahid .mx-editorial .me-body {
    padding: 10px 0 54px;
}

body.single-shahid .mx-editorial .me-reading-shell {
    max-width: 1120px;
}

body.single-shahid .mx-editorial .me-section {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--me-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20,60,48,.045);
}

body.single-shahid .mx-editorial .me-section-head {
    margin-bottom: 18px;
}

body.single-shahid .mx-editorial .me-section-head-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

body.single-shahid .mx-editorial .me-section-head-inline p {
    max-width: 460px;
    margin: 0;
    color: var(--me-muted);
    font-size: 11px;
    line-height: 1.85;
}

body.single-shahid .mx-editorial .me-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--me-gold);
    font-size: 10px;
    font-weight: 900;
}

body.single-shahid .mx-editorial .me-section-head h2 {
    margin: 0;
    color: var(--me-green-deep);
    font-size: clamp(21px, 2.3vw, 28px);
    line-height: 1.55;
    font-weight: 950;
}

/* ==========================================================
   SPIRITUAL PARTICIPATION
   ========================================================== */

body.single-shahid .mx-editorial .me-spiritual {
    padding: 20px 0 5px !important;
}

body.single-shahid .mx-editorial .me-spiritual .shahid-shell {
    max-width: 1120px;
    padding: 21px 24px 24px;
    border: 1px solid var(--me-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20,60,48,.045);
}

body.single-shahid .mx-editorial .me-spiritual-grid {
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 9px !important;
    border: 0 !important;
    background: transparent !important;
}

body.single-shahid .mx-editorial .me-spiritual-card {
    position: relative;
    min-height: 116px !important;
    padding: 15px 16px !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 3px 12px !important;
    align-items: center !important;
    text-align: right !important;
    border: 1px solid #d9e9e2 !important;
    border-radius: 14px !important;
    color: var(--me-ink) !important;
    background: linear-gradient(145deg, #fbfdfc, #eef7f3) !important;
    box-shadow: none !important;
}

body.single-shahid .mx-editorial .me-spiritual-card:hover {
    transform: translateY(-2px);
    border-color: #bad8cc !important;
    box-shadow: 0 8px 20px rgba(11,92,69,.08) !important;
}

body.single-shahid .mx-editorial .me-spiritual-icon {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--me-green);
    font-size: 10px;
    font-weight: 900;
}

body.single-shahid .mx-editorial .me-spiritual-card strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: var(--me-green-deep) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

body.single-shahid .mx-editorial .me-spiritual-count-row {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex;
    gap: 6px;
    align-items: baseline;
}

body.single-shahid .mx-editorial .me-spiritual-card b {
    color: var(--me-green) !important;
    font-size: 22px !important;
    font-weight: 950 !important;
}

body.single-shahid .mx-editorial .me-spiritual-card .mx-spiritual-unit {
    margin: 0 !important;
    color: var(--me-muted) !important;
    font-size: 9px !important;
}

body.single-shahid .mx-editorial .me-spiritual-card .mx-spiritual-plus {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
    width: 30px !important;
    height: 30px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #8bcdbc !important;
    border-radius: 9px !important;
    color: var(--me-green) !important;
    background: #fff !important;
    font-size: 20px !important;
}

/* ==========================================================
   FACT GRID
   ========================================================== */

body.single-shahid .mx-editorial .me-fact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--me-line);
    border-radius: 14px;
    background: var(--me-line);
}

body.single-shahid .mx-editorial .me-fact {
    min-height: 82px;
    padding: 14px 15px;
    background: #fff;
}

body.single-shahid .mx-editorial .me-fact-wide {
    grid-column: span 2;
}

body.single-shahid .mx-editorial .me-fact span,
body.single-shahid .mx-editorial .me-fact strong {
    display: block;
}

body.single-shahid .mx-editorial .me-fact span {
    color: #88958f;
    font-size: 10px;
}

body.single-shahid .mx-editorial .me-fact strong {
    margin-top: 6px;
    color: var(--me-ink);
    font-size: 13px;
    line-height: 1.8;
    font-weight: 900;
}

/* ==========================================================
   TIMELINE
   ========================================================== */

body.single-shahid .mx-editorial .me-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    list-style: none;
}

body.single-shahid .mx-editorial .me-timeline::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 5%;
    left: 5%;
    height: 2px;
    background: #d8e5df;
}

body.single-shahid .mx-editorial .me-timeline li {
    position: relative;
    z-index: 1;
}

body.single-shahid .mx-editorial .me-timeline-marker {
    width: 13px;
    height: 13px;
    margin: 11px auto 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--me-gold);
    box-shadow: 0 0 0 2px #d7c08c;
}

body.single-shahid .mx-editorial .me-timeline-card {
    min-height: 138px;
    padding: 14px;
    border: 1px solid var(--me-line);
    border-radius: 13px;
    background: #fbfcfb;
}

body.single-shahid .mx-editorial .me-timeline-year {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--me-gold);
    font-size: 12px;
    font-weight: 950;
}

body.single-shahid .mx-editorial .me-timeline-card h3 {
    margin: 0;
    color: var(--me-green-deep);
    font-size: 14px;
}

body.single-shahid .mx-editorial .me-timeline-card p {
    margin: 7px 0 0;
    color: var(--me-muted);
    font-size: 10.5px;
    line-height: 1.9;
}

/* ==========================================================
   BIOGRAPHY / PROSE
   ========================================================== */

body.single-shahid .mx-editorial .me-biography.mx-panel {
    padding: 30px 34px !important;
}

body.single-shahid .mx-editorial .me-prose,
body.single-shahid .mx-editorial .me-prose p {
    color: #354942 !important;
    font-size: 15px !important;
    line-height: 2.2 !important;
}

body.single-shahid .mx-editorial .me-prose {
    max-width: 780px;
    margin-inline: auto;
}

body.single-shahid .mx-editorial .me-quiet-note {
    padding: 15px 18px;
    border-right: 3px solid #cdbb8f;
    border-radius: 10px;
    color: #77847e;
    background: #fbfaf6;
    font-size: 12px;
    line-height: 1.95;
}

body.single-shahid .mx-editorial .me-will {
    background: linear-gradient(145deg, #fffdf8, #fff);
}

/* ==========================================================
   GALLERY — ORIGINAL ASPECT, NO STRETCH
   ========================================================== */

body.single-shahid .mx-editorial .me-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 11px;
}

body.single-shahid .mx-editorial .me-gallery-item {
    min-height: 220px;
    padding: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--me-line);
    border-radius: 14px;
    background: #f3f5f3;
}

body.single-shahid .mx-editorial .me-gallery-feature {
    grid-column: span 2;
    min-height: 360px;
}

body.single-shahid .mx-editorial .me-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-height: 440px !important;
    display: block;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 9px;
}

/* ==========================================================
   DOCUMENTS / GRAVE
   ========================================================== */

body.single-shahid .mx-editorial .me-document-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}

body.single-shahid .mx-editorial .me-document-list a {
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--me-line);
    border-radius: 11px;
    color: var(--me-ink);
    background: #fafbfa;
    text-decoration: none;
}

body.single-shahid .mx-editorial .me-document-list span {
    color: var(--me-green);
    font-size: 10px;
}

body.single-shahid .mx-editorial .me-grave-card {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #d9e8e1;
    border-radius: 14px;
    background: linear-gradient(135deg, #f1f8f5, #fff);
}

body.single-shahid .mx-editorial .me-grave-pin {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--me-green);
    font-size: 22px;
}

body.single-shahid .mx-editorial .me-grave-card strong {
    color: var(--me-green-deep);
    font-size: 14px;
}

body.single-shahid .mx-editorial .me-grave-card p {
    margin: 5px 0 0;
    color: var(--me-muted);
    font-size: 10px;
    line-height: 1.8;
}

/* ==========================================================
   MEMORIES
   ========================================================== */

body.single-shahid .mx-editorial .me-memory-intro {
    margin: -7px 0 14px !important;
    color: var(--me-muted);
    font-size: 11px !important;
}

body.single-shahid .mx-editorial .me-memory-form {
    padding: 16px;
    border: 1px solid #dfeae5;
    border-radius: 14px;
    background: #f8fbf9;
}

body.single-shahid .mx-editorial .me-memory-list {
    margin-top: 18px !important;
}

body.single-shahid .mx-editorial .mx-memory-item {
    padding: 14px 0 !important;
    border-top: 1px solid #edf1ef;
}

/* ==========================================================
   PRODUCT FOOTER
   ========================================================== */

body.single-shahid .mx-editorial .me-product-footer {
    margin-top: 10px;
    padding: 28px 0;
    color: rgba(255,255,255,.76);
    background: #16241f;
}

body.single-shahid .mx-editorial .me-product-footer .shahid-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body.single-shahid .mx-editorial .me-product-footer strong {
    color: #fff;
    font-size: 17px;
}

body.single-shahid .mx-editorial .me-product-footer span {
    font-size: 11px;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 980px) {
    body.single-shahid .mx-editorial .me-hero-grid {
        grid-template-columns: 185px minmax(0,1fr);
        gap: 28px;
    }

    body.single-shahid .mx-editorial .me-hero-facts {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    body.single-shahid .mx-editorial .me-toolbar {
        grid-template-columns: 1fr;
    }

    body.single-shahid .mx-editorial .me-timeline {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    body.single-shahid .mx-editorial .me-timeline::before {
        display: none;
    }

    body.single-shahid .mx-editorial .me-fact-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

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

@media (max-width: 700px) {
    body.single-shahid .mx-editorial .me-hero-grid {
        min-height: 0;
        padding-top: 22px;
        padding-bottom: 34px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.single-shahid .mx-editorial .me-portrait {
        width: min(190px, 64vw);
        margin-inline: auto;
    }

    body.single-shahid .mx-editorial .me-hero-copy {
        text-align: center;
    }

    body.single-shahid .mx-editorial .me-badges {
        justify-content: center;
    }

    body.single-shahid .mx-editorial .me-hero-copy h1 {
        font-size: 30px;
    }

    body.single-shahid .mx-editorial .me-hero-facts {
        grid-template-columns: 1fr 1fr;
        margin-top: 18px;
        text-align: right;
    }

    body.single-shahid .mx-editorial .me-toolbar-wrap {
        margin-top: -13px;
    }

    body.single-shahid .mx-editorial .me-toolbar {
        padding: 8px;
        border-radius: 14px;
    }

    body.single-shahid .mx-editorial .me-permanent {
        grid-template-columns: 72px minmax(0,1fr) !important;
    }

    body.single-shahid .mx-editorial .me-qr,
    body.single-shahid .mx-editorial .me-qr canvas,
    body.single-shahid .mx-editorial .me-qr img {
        width: 72px !important;
        height: 72px !important;
    }

    body.single-shahid .mx-editorial .me-tools {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    body.single-shahid .mx-editorial .me-section-head-inline {
        display: block;
    }

    body.single-shahid .mx-editorial .me-section-head-inline p {
        margin-top: 7px;
    }

    body.single-shahid .mx-editorial .me-spiritual .shahid-shell {
        padding: 18px 15px;
        border-radius: 15px;
    }

    body.single-shahid .mx-editorial .me-spiritual-grid {
        grid-template-columns: 1fr !important;
    }

    body.single-shahid .mx-editorial .me-spiritual-card {
        min-height: 88px !important;
    }

    body.single-shahid .mx-editorial .me-section {
        padding: 18px 15px;
        border-radius: 15px;
    }

    body.single-shahid .mx-editorial .me-fact-grid,
    body.single-shahid .mx-editorial .me-timeline,
    body.single-shahid .mx-editorial .me-gallery-grid,
    body.single-shahid .mx-editorial .me-document-list {
        grid-template-columns: 1fr;
    }

    body.single-shahid .mx-editorial .me-fact-wide,
    body.single-shahid .mx-editorial .me-gallery-feature {
        grid-column: auto;
    }

    body.single-shahid .mx-editorial .me-gallery-feature {
        min-height: 300px;
    }

    body.single-shahid .mx-editorial .me-biography.mx-panel {
        padding: 22px 16px !important;
    }

    body.single-shahid .mx-editorial .me-product-footer .shahid-shell {
        display: block;
        text-align: center;
    }

    body.single-shahid .mx-editorial .me-product-footer span {
        display: block;
        margin-top: 4px;
    }
}

/* ==========================================================
   PRINT
   ========================================================== */

@media print {
    body.single-shahid .mx-editorial .me-toolbar-wrap,
    body.single-shahid .mx-editorial .me-spiritual,
    body.single-shahid .mx-editorial .me-memories,
    body.single-shahid .mx-editorial .me-product-footer {
        display: none !important;
    }

    body.single-shahid .mx-editorial .me-hero {
        color: #111 !important;
        background: #fff !important;
        border-bottom: 2px solid #174b3a;
    }

    body.single-shahid .mx-editorial .me-hero-copy h1,
    body.single-shahid .mx-editorial .me-hero-facts strong,
    body.single-shahid .mx-editorial .me-badge {
        color: #111 !important;
    }

    body.single-shahid .mx-editorial .me-hero-facts > div,
    body.single-shahid .mx-editorial .me-badge {
        border: 1px solid #ccc !important;
        background: #fff !important;
    }

    body.single-shahid .mx-editorial .me-section {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ==========================================================
   9A-4D1C EDITORIAL SCOPE COMPATIBILITY

   The custom Shahidabad martyr header does not consistently
   emit WordPress body classes. Keep all styling scoped to the
   actual memorial root instead of body.single-shahid.
   ========================================================== */

body:has(.mx-editorial[data-editorial="9A-4D1B"]) {
    background: #f6f7f4 !important;
}

body:has(.mx-editorial[data-editorial="9A-4D1B"]) footer,
body:has(.mx-editorial[data-editorial="9A-4D1B"]) #footer,
body:has(.mx-editorial[data-editorial="9A-4D1B"]) .footer-widgets,
body:has(.mx-editorial[data-editorial="9A-4D1B"]) .site-footer {
    display: none !important;
}

/* ==========================================================
   9A-4D1B MEMORIAL EDITORIAL EXPERIENCE
   Structural single-martyr redesign
   ========================================================== */

body.single-shahid {
    background: #f6f7f4;
}

.mx-editorial[data-editorial="9A-4D1B"] {
    --me-green: #0b5c45;
    --me-green-deep: #073f31;
    --me-green-soft: #edf6f2;
    --me-ink: #20332d;
    --me-muted: #718079;
    --me-line: #dfe7e2;
    --me-warm: #f8f5ed;
    --me-gold: #c9932c;
    --me-white: #ffffff;
    direction: rtl;
    color: var(--me-ink);
    background: #f6f7f4;
}

.mx-editorial[data-editorial="9A-4D1B"] *,
.mx-editorial[data-editorial="9A-4D1B"] *::before,
.mx-editorial[data-editorial="9A-4D1B"] *::after {
    box-sizing: border-box;
}

/* Remove the generic theme footer on martyr profiles. */
body.single-shahid footer,
body.single-shahid #footer,
body.single-shahid .footer-widgets,
body.single-shahid .site-footer {
    display: none !important;
}

/* ==========================================================
   HERO
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.075), transparent 28%),
        linear-gradient(135deg, #0d6249 0%, #074b39 56%, #063c30 100%);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,.028) 49%, rgba(255,255,255,.028) 51%, transparent 52%);
    background-size: 34px 34px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-hero-grid {
    position: relative;
    z-index: 1;
    min-height: 330px;
    padding-top: 34px;
    padding-bottom: 34px;
    display: grid;
    grid-template-columns: minmax(190px, 225px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.78);
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-portrait img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    object-position: center top !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-portrait-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.72);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-badge {
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 11px;
    font-weight: 800;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-badge-primary {
    border-color: rgba(245,192,71,.44);
    color: #423008;
    background: #efb93c;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-hero-copy h1 {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 53px);
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -.4px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 2;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts {
    max-width: 880px;
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts > div {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(1,31,23,.18);
    backdrop-filter: blur(5px);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts span,
.mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts strong {
    display: block;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts span {
    color: rgba(255,255,255,.58);
    font-size: 10px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts strong {
    margin-top: 4px;
    color: #fff;
    font-size: 12px;
    line-height: 1.75;
    font-weight: 850;
}

/* ==========================================================
   COMPACT TOOLBAR / QR
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-toolbar-wrap {
    position: relative;
    z-index: 6;
    margin-top: -20px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-toolbar {
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.45fr);
    gap: 10px;
    border: 1px solid var(--me-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(17,62,49,.09);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-permanent {
    min-height: 92px !important;
    padding: 7px 10px !important;
    display: grid !important;
    grid-template-columns: 84px minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    border-radius: 12px !important;
    background: #f8faf8 !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-qr {
    width: 84px !important;
    height: 84px !important;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 0 !important;
    border-radius: 9px !important;
    background: #fff !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-qr canvas,
.mx-editorial[data-editorial="9A-4D1B"] .me-qr img {
    width: 84px !important;
    height: 84px !important;
    display: block !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-permanent-copy strong,
.mx-editorial[data-editorial="9A-4D1B"] .me-permanent-copy small,
.mx-editorial[data-editorial="9A-4D1B"] .me-permanent-copy code {
    display: block;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-permanent-copy strong {
    color: var(--me-green-deep);
    font-size: 13px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-permanent-copy small {
    margin-top: 3px;
    color: var(--me-muted);
    font-size: 9px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-permanent-copy code {
    max-width: 100%;
    margin-top: 6px;
    overflow: hidden;
    direction: ltr;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #71837c;
    font-size: 8px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-tools {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 7px;
    align-items: stretch;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-tool {
    min-height: 44px !important;
    padding: 7px 4px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #e1e8e4 !important;
    border-radius: 10px !important;
    color: #31544a !important;
    background: #fff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-tool:hover {
    transform: translateY(-1px);
    border-color: #c7dbd3 !important;
    color: var(--me-green-deep) !important;
    background: var(--me-green-soft) !important;
}

/* ==========================================================
   SHARED SECTION TYPOGRAPHY
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-body {
    padding: 10px 0 54px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-reading-shell {
    max-width: 1120px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-section {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--me-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20,60,48,.045);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-section-head {
    margin-bottom: 18px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-section-head-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-section-head-inline p {
    max-width: 460px;
    margin: 0;
    color: var(--me-muted);
    font-size: 11px;
    line-height: 1.85;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--me-gold);
    font-size: 10px;
    font-weight: 900;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-section-head h2 {
    margin: 0;
    color: var(--me-green-deep);
    font-size: clamp(21px, 2.3vw, 28px);
    line-height: 1.55;
    font-weight: 950;
}

/* ==========================================================
   SPIRITUAL PARTICIPATION
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual {
    padding: 20px 0 5px !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual .shahid-shell {
    max-width: 1120px;
    padding: 21px 24px 24px;
    border: 1px solid var(--me-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20,60,48,.045);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-grid {
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 9px !important;
    border: 0 !important;
    background: transparent !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-card {
    position: relative;
    min-height: 116px !important;
    padding: 15px 16px !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 3px 12px !important;
    align-items: center !important;
    text-align: right !important;
    border: 1px solid #d9e9e2 !important;
    border-radius: 14px !important;
    color: var(--me-ink) !important;
    background: linear-gradient(145deg, #fbfdfc, #eef7f3) !important;
    box-shadow: none !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-card:hover {
    transform: translateY(-2px);
    border-color: #bad8cc !important;
    box-shadow: 0 8px 20px rgba(11,92,69,.08) !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-icon {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--me-green);
    font-size: 10px;
    font-weight: 900;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-card strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: var(--me-green-deep) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-count-row {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-card b {
    color: var(--me-green) !important;
    font-size: 22px !important;
    font-weight: 950 !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-card .mx-spiritual-unit {
    margin: 0 !important;
    color: var(--me-muted) !important;
    font-size: 9px !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-card .mx-spiritual-plus {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
    width: 30px !important;
    height: 30px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #8bcdbc !important;
    border-radius: 9px !important;
    color: var(--me-green) !important;
    background: #fff !important;
    font-size: 20px !important;
}

/* ==========================================================
   FACT GRID
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-fact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--me-line);
    border-radius: 14px;
    background: var(--me-line);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-fact {
    min-height: 82px;
    padding: 14px 15px;
    background: #fff;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-fact-wide {
    grid-column: span 2;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-fact span,
.mx-editorial[data-editorial="9A-4D1B"] .me-fact strong {
    display: block;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-fact span {
    color: #88958f;
    font-size: 10px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-fact strong {
    margin-top: 6px;
    color: var(--me-ink);
    font-size: 13px;
    line-height: 1.8;
    font-weight: 900;
}

/* ==========================================================
   TIMELINE
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    list-style: none;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-timeline::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 5%;
    left: 5%;
    height: 2px;
    background: #d8e5df;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-timeline li {
    position: relative;
    z-index: 1;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-timeline-marker {
    width: 13px;
    height: 13px;
    margin: 11px auto 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--me-gold);
    box-shadow: 0 0 0 2px #d7c08c;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-timeline-card {
    min-height: 138px;
    padding: 14px;
    border: 1px solid var(--me-line);
    border-radius: 13px;
    background: #fbfcfb;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-timeline-year {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--me-gold);
    font-size: 12px;
    font-weight: 950;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-timeline-card h3 {
    margin: 0;
    color: var(--me-green-deep);
    font-size: 14px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-timeline-card p {
    margin: 7px 0 0;
    color: var(--me-muted);
    font-size: 10.5px;
    line-height: 1.9;
}

/* ==========================================================
   BIOGRAPHY / PROSE
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-biography.mx-panel {
    padding: 30px 34px !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-prose,
.mx-editorial[data-editorial="9A-4D1B"] .me-prose p {
    color: #354942 !important;
    font-size: 15px !important;
    line-height: 2.2 !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-prose {
    max-width: 780px;
    margin-inline: auto;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-quiet-note {
    padding: 15px 18px;
    border-right: 3px solid #cdbb8f;
    border-radius: 10px;
    color: #77847e;
    background: #fbfaf6;
    font-size: 12px;
    line-height: 1.95;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-will {
    background: linear-gradient(145deg, #fffdf8, #fff);
}

/* ==========================================================
   GALLERY — ORIGINAL ASPECT, NO STRETCH
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 11px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-gallery-item {
    min-height: 220px;
    padding: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--me-line);
    border-radius: 14px;
    background: #f3f5f3;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-gallery-feature {
    grid-column: span 2;
    min-height: 360px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-height: 440px !important;
    display: block;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 9px;
}

/* ==========================================================
   DOCUMENTS / GRAVE
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-document-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-document-list a {
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--me-line);
    border-radius: 11px;
    color: var(--me-ink);
    background: #fafbfa;
    text-decoration: none;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-document-list span {
    color: var(--me-green);
    font-size: 10px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-grave-card {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #d9e8e1;
    border-radius: 14px;
    background: linear-gradient(135deg, #f1f8f5, #fff);
}

.mx-editorial[data-editorial="9A-4D1B"] .me-grave-pin {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--me-green);
    font-size: 22px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-grave-card strong {
    color: var(--me-green-deep);
    font-size: 14px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-grave-card p {
    margin: 5px 0 0;
    color: var(--me-muted);
    font-size: 10px;
    line-height: 1.8;
}

/* ==========================================================
   MEMORIES
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-memory-intro {
    margin: -7px 0 14px !important;
    color: var(--me-muted);
    font-size: 11px !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-memory-form {
    padding: 16px;
    border: 1px solid #dfeae5;
    border-radius: 14px;
    background: #f8fbf9;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-memory-list {
    margin-top: 18px !important;
}

.mx-editorial[data-editorial="9A-4D1B"] .mx-memory-item {
    padding: 14px 0 !important;
    border-top: 1px solid #edf1ef;
}

/* ==========================================================
   PRODUCT FOOTER
   ========================================================== */

.mx-editorial[data-editorial="9A-4D1B"] .me-product-footer {
    margin-top: 10px;
    padding: 28px 0;
    color: rgba(255,255,255,.76);
    background: #16241f;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-product-footer .shahid-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-product-footer strong {
    color: #fff;
    font-size: 17px;
}

.mx-editorial[data-editorial="9A-4D1B"] .me-product-footer span {
    font-size: 11px;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 980px) {
    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-grid {
        grid-template-columns: 185px minmax(0,1fr);
        gap: 28px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-toolbar {
        grid-template-columns: 1fr;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-timeline {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-timeline::before {
        display: none;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-fact-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

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

@media (max-width: 700px) {
    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-grid {
        min-height: 0;
        padding-top: 22px;
        padding-bottom: 34px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-portrait {
        width: min(190px, 64vw);
        margin-inline: auto;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-copy {
        text-align: center;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-badges {
        justify-content: center;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-copy h1 {
        font-size: 30px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts {
        grid-template-columns: 1fr 1fr;
        margin-top: 18px;
        text-align: right;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-toolbar-wrap {
        margin-top: -13px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-toolbar {
        padding: 8px;
        border-radius: 14px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-permanent {
        grid-template-columns: 72px minmax(0,1fr) !important;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-qr,
    .mx-editorial[data-editorial="9A-4D1B"] .me-qr canvas,
    .mx-editorial[data-editorial="9A-4D1B"] .me-qr img {
        width: 72px !important;
        height: 72px !important;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-tools {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-section-head-inline {
        display: block;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-section-head-inline p {
        margin-top: 7px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-spiritual .shahid-shell {
        padding: 18px 15px;
        border-radius: 15px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-grid {
        grid-template-columns: 1fr !important;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-spiritual-card {
        min-height: 88px !important;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-section {
        padding: 18px 15px;
        border-radius: 15px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-fact-grid,
    .mx-editorial[data-editorial="9A-4D1B"] .me-timeline,
    .mx-editorial[data-editorial="9A-4D1B"] .me-gallery-grid,
    .mx-editorial[data-editorial="9A-4D1B"] .me-document-list {
        grid-template-columns: 1fr;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-fact-wide,
    .mx-editorial[data-editorial="9A-4D1B"] .me-gallery-feature {
        grid-column: auto;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-gallery-feature {
        min-height: 300px;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-biography.mx-panel {
        padding: 22px 16px !important;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-product-footer .shahid-shell {
        display: block;
        text-align: center;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-product-footer span {
        display: block;
        margin-top: 4px;
    }
}

/* ==========================================================
   PRINT
   ========================================================== */

@media print {
    .mx-editorial[data-editorial="9A-4D1B"] .me-toolbar-wrap,
    .mx-editorial[data-editorial="9A-4D1B"] .me-spiritual,
    .mx-editorial[data-editorial="9A-4D1B"] .me-memories,
    .mx-editorial[data-editorial="9A-4D1B"] .me-product-footer {
        display: none !important;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-hero {
        color: #111 !important;
        background: #fff !important;
        border-bottom: 2px solid #174b3a;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-copy h1,
    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts strong,
    .mx-editorial[data-editorial="9A-4D1B"] .me-badge {
        color: #111 !important;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-hero-facts > div,
    .mx-editorial[data-editorial="9A-4D1B"] .me-badge {
        border: 1px solid #ccc !important;
        background: #fff !important;
    }

    .mx-editorial[data-editorial="9A-4D1B"] .me-section {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ==========================================================
   BEGIN 9A-4D4X-ARCHIVE-V2-R1
   Archive /shahidan — Prototype v2 structural visual pass.
   Operational scope in R1: real WordPress search + real loop.
   ========================================================== */

body.post-type-archive-shahid .shahidabad-archive-v2 {
    --shv2-green: #103f33;
    --shv2-green-2: #1d5b49;
    --shv2-ink: #172e28;
    --shv2-muted: #596963;
    --shv2-paper: #f6f5f0;
    --shv2-surface: #fffefa;
    --shv2-line: #dbe1d9;
    --shv2-soft: #eaf0e9;
    --shv2-gold: #a37935;
    --shv2-red: #ac372d;
    --shv2-radius: 18px;

    min-height: 100vh;
    color: var(--shv2-ink);
    background: var(--shv2-paper);
}

body.post-type-archive-shahid .shahidabad-archive-v2 .shahid-shell {
    width: min(1180px, calc(100% - 44px));
}

/* hero */

.shahidabad-archive-v2 .shv2-archive-hero {
    padding: 34px 0 29px;
    color: var(--shv2-ink);
    background: var(--shv2-paper);
}

.shahidabad-archive-v2 .shv2-archive-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr .8fr;
    align-items: center;
    gap: 35px;
}

.shahidabad-archive-v2 .shv2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--shv2-green);
    font-size: 12px;
    font-weight: 850;
}

.shahidabad-archive-v2 .shv2-eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    display: block;
    background: var(--shv2-gold);
}

.shahidabad-archive-v2 .shv2-archive-copy h1 {
    margin: 10px 0 0;
    color: var(--shv2-ink);
    font-size: clamp(34px, 4.1vw, 48px);
    line-height: 1.45;
    font-weight: 950;
    letter-spacing: -.02em;
}

.shahidabad-archive-v2 .shv2-tagline {
    margin: 3px 0 0;
    color: var(--shv2-green-2);
    font-size: 17px;
    font-weight: 750;
}

.shahidabad-archive-v2 .shv2-archive-intro {
    max-width: 600px;
    margin: 10px 0 0;
    color: var(--shv2-muted);
    font-size: 13px;
    line-height: 2;
}

.shahidabad-archive-v2 .shv2-archive-montage {
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 14px;
    overflow: visible;
    position: relative;
}

.shahidabad-archive-v2 .shv2-montage-frame {
    width: 143px;
    height: 173px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #c7b374;
    border-radius: 75px 75px 8px 8px;
    background: #e8eddf;
    box-shadow: 0 10px 24px rgba(26, 59, 48, .06);
}

.shahidabad-archive-v2 .shv2-montage-frame:first-child {
    height: 155px;
    transform: rotate(6deg);
}

.shahidabad-archive-v2 .shv2-montage-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 65px 65px 4px 4px;
    background: #194b38;
}

.shahidabad-archive-v2 .shv2-montage-father img {
    object-position: center bottom;
}

/* body / search */

.shahidabad-archive-v2 .shv2-archive-body {
    padding: 0 0 58px;
}

.shahidabad-archive-v2 .shv2-search-panel {
    padding: 23px;
    border: 1px solid var(--shv2-line);
    border-top: 3px solid #2b5f48;
    border-radius: var(--shv2-radius);
    background: var(--shv2-surface);
    box-shadow: 0 9px 28px rgba(16, 63, 51, .035);
}

.shahidabad-archive-v2 .shv2-search-form {
    display: grid;
    gap: 8px;
}

.shahidabad-archive-v2 .shv2-field-label {
    color: var(--shv2-ink);
    font-size: 12px;
    font-weight: 850;
}

.shahidabad-archive-v2 .shv2-search-input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid #cdd7d1;
    border-radius: 11px;
    background: #fff;
}

.shahidabad-archive-v2 .shv2-search-icon {
    padding-inline: 14px 4px;
    color: var(--shv2-green);
    font-size: 24px;
    line-height: 1;
}

.shahidabad-archive-v2 .shv2-search-input-wrap input[type="search"] {
    min-width: 0;
    height: 50px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: var(--shv2-ink);
    background: transparent;
    font-size: 13px;
}

.shahidabad-archive-v2 .shv2-search-input-wrap button {
    align-self: stretch;
    min-width: 94px;
    padding: 0 18px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: var(--shv2-green);
    font-size: 12px;
    font-weight: 850;
}

.shahidabad-archive-v2 .shv2-search-note {
    margin: 10px 0 0;
    color: var(--shv2-muted);
    font-size: 10px;
    line-height: 1.9;
}

/* result heading */

.shahidabad-archive-v2 .shv2-results-header {
    margin: 25px 0 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.shahidabad-archive-v2 .shv2-results-header h2 {
    margin: 0;
    color: var(--shv2-ink);
    font-size: 24px;
    font-weight: 950;
}

.shahidabad-archive-v2 .shv2-result-count {
    color: var(--shv2-muted);
    font-size: 11px;
}

/* results */

.shahidabad-archive-v2 .shv2-archive-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.shahidabad-archive-v2 .shv2-martyr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.shahidabad-archive-v2 .shv2-martyr-card {
    overflow: hidden;
    border: 1px solid var(--shv2-line);
    border-radius: 16px;
    background: var(--shv2-surface);
    box-shadow: 0 9px 26px rgba(16, 63, 51, .035);
}

.shahidabad-archive-v2 .shv2-portrait-box {
    position: relative;
    aspect-ratio: 1.22;
    max-height: 246px;
    padding: 10px;
    overflow: hidden;
    background: #edf1ea;
}

.shahidabad-archive-v2 .shv2-portrait-front {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 7px;
    background: #e0e9d7;
}

.shahidabad-archive-v2 .shv2-portrait-front.is-father {
    background: #194834;
}

.shahidabad-archive-v2 .shv2-portrait-front img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.shahidabad-archive-v2 .shv2-type-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    max-width: calc(100% - 22px);
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--shv2-green);
    background: rgba(255, 254, 250, .91);
    box-shadow: 0 2px 10px rgba(20, 62, 50, .05);
    font-size: 9px;
    font-weight: 850;
}

.shahidabad-archive-v2 .shv2-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--shv2-muted);
    background: var(--shv2-soft);
    font-size: 12px;
}

.shahidabad-archive-v2 .shv2-martyr-body {
    padding: 16px 18px 15px;
}

.shahidabad-archive-v2 .shv2-martyr-body h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.7;
}

.shahidabad-archive-v2 .shv2-martyr-body h3 a {
    color: var(--shv2-ink);
}

.shahidabad-archive-v2 .shv2-card-meta {
    min-height: 23px;
    margin: 2px 0 0;
    color: var(--shv2-muted);
    font-size: 11px;
    line-height: 1.8;
}

.shahidabad-archive-v2 .shv2-card-actions {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--shv2-line);
}

.shahidabad-archive-v2 .shv2-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--shv2-green);
    font-size: 11px;
    font-weight: 900;
}

.shahidabad-archive-v2 .shv2-card-link:hover,
.shahidabad-archive-v2 .shv2-card-link:focus-visible {
    color: var(--shv2-gold);
}

/* aside */

.shahidabad-archive-v2 .shv2-return-aside {
    padding-inline-start: 27px;
    border-inline-start: 1px solid var(--shv2-line);
}

.shahidabad-archive-v2 .shv2-return-aside article {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--shv2-line);
}

.shahidabad-archive-v2 .shv2-return-aside article:last-child {
    border-bottom: 0;
}

.shahidabad-archive-v2 .shv2-aside-icon {
    display: block;
    color: var(--shv2-gold);
    font-size: 20px;
}

.shahidabad-archive-v2 .shv2-return-aside h3 {
    margin: 9px 0;
    color: var(--shv2-ink);
    font-size: 17px;
    line-height: 1.8;
    font-weight: 900;
}

.shahidabad-archive-v2 .shv2-return-aside p {
    margin: 0;
    color: var(--shv2-muted);
    font-size: 12px;
    line-height: 2;
}

/* empty */

.shahidabad-archive-v2 .shv2-empty {
    grid-column: 1 / -1;
    padding: 36px 24px;
    border: 1px solid var(--shv2-line);
    border-radius: 16px;
    text-align: center;
    background: var(--shv2-surface);
}

.shahidabad-archive-v2 .shv2-empty-icon {
    color: var(--shv2-gold);
    font-size: 32px;
}

.shahidabad-archive-v2 .shv2-empty h3 {
    margin: 10px 0 5px;
    color: var(--shv2-ink);
    font-size: 18px;
}

.shahidabad-archive-v2 .shv2-empty p {
    margin: 0;
    color: var(--shv2-muted);
    font-size: 12px;
}

.shahidabad-archive-v2 .shv2-reset-link {
    margin-top: 15px;
    display: inline-flex;
    color: var(--shv2-green);
    font-size: 12px;
    font-weight: 900;
}

/* pagination */

.shahidabad-archive-v2 .shv2-pagination {
    margin-top: 25px;
}

/* responsive */

@media (max-width: 1000px) {
    .shahidabad-archive-v2 .shv2-archive-results {
        grid-template-columns: 1fr 235px;
    }

    .shahidabad-archive-v2 .shv2-return-aside {
        padding-inline-start: 20px;
    }
}

@media (max-width: 900px) {
    .shahidabad-archive-v2 .shv2-archive-hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shahidabad-archive-v2 .shv2-archive-copy h1 {
        font-size: 35px;
    }

    .shahidabad-archive-v2 .shv2-archive-montage {
        height: 155px;
        justify-content: flex-start;
    }

    .shahidabad-archive-v2 .shv2-montage-frame {
        width: 110px;
        height: 150px;
    }

    .shahidabad-archive-v2 .shv2-montage-frame:first-child {
        height: 135px;
    }

    .shahidabad-archive-v2 .shv2-archive-results {
        grid-template-columns: 1fr;
    }

    .shahidabad-archive-v2 .shv2-return-aside {
        margin-top: 12px;
        padding-inline-start: 0;
        border-inline-start: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 600px) {
    body.post-type-archive-shahid .shahidabad-archive-v2 .shahid-shell {
        width: calc(100% - 32px);
    }

    .shahidabad-archive-v2 .shv2-archive-hero {
        padding: 26px 0 22px;
    }

    .shahidabad-archive-v2 .shv2-archive-copy h1 {
        font-size: 30px;
    }

    .shahidabad-archive-v2 .shv2-archive-intro {
        font-size: 12px;
    }

    .shahidabad-archive-v2 .shv2-search-panel {
        padding: 16px;
    }

    .shahidabad-archive-v2 .shv2-search-input-wrap {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .shahidabad-archive-v2 .shv2-search-input-wrap button {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    .shahidabad-archive-v2 .shv2-results-header {
        align-items: center;
    }

    .shahidabad-archive-v2 .shv2-results-header h2 {
        font-size: 21px;
    }

    .shahidabad-archive-v2 .shv2-martyr-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shahidabad-archive-v2 .shv2-portrait-box {
        max-height: none;
    }

    .shahidabad-archive-v2 .shv2-return-aside {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================
   END 9A-4D4X-ARCHIVE-V2-R1
   ========================================================== */

/* ==========================================================
   BEGIN 9A-4D4X-A1-ARCHIVE-HERO-V2-R1
   Desktop archive hero only — prototype v2 reconciliation.
   ========================================================== */

@media (min-width: 901px) {

    /*
     * Hero gets its own prototype-width shell.
     * Search/cards/sidebar are intentionally untouched in A1.
     */
    body.post-type-archive-shahid
    .shahidabad-archive-v2
    .shv2-archive-hero
    > .shahid-shell.shv2-archive-hero-grid {
        width: min(1180px, calc(100vw - 64px)) !important;
        max-width: 1180px !important;
        margin-inline: auto !important;
    }

    .shahidabad-archive-v2 .shv2-archive-hero {
        min-height: 258px !important;
        padding: 38px 0 30px !important;
    }

    .shahidabad-archive-v2 .shv2-archive-hero-grid {
        direction: rtl !important;
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.18fr)
            minmax(320px, .82fr) !important;
        gap: 64px !important;
        align-items: center !important;
    }

    /* ---------------- Hero copy ---------------- */

    .shahidabad-archive-v2 .shv2-archive-copy {
        width: 100% !important;
        max-width: 565px !important;
        justify-self: start !important;
        text-align: right !important;
    }

    .shahidabad-archive-v2 .shv2-eyebrow {
        margin: 0 0 7px !important;
        font-size: 12px !important;
        line-height: 1.8 !important;
    }

    .shahidabad-archive-v2 .shv2-archive-copy h1 {
        max-width: 545px !important;
        margin: 4px 0 3px !important;
        font-size: 46px !important;
        line-height: 1.43 !important;
        letter-spacing: -.025em !important;
    }

    .shahidabad-archive-v2 .shv2-tagline {
        margin: 2px 0 0 !important;
        font-size: 17px !important;
        line-height: 1.9 !important;
    }

    .shahidabad-archive-v2 .shv2-archive-intro {
        max-width: 575px !important;
        margin: 8px 0 0 !important;
        font-size: 13px !important;
        line-height: 2 !important;
    }

    /* ---------------- Portrait montage ---------------- */

    .shahidabad-archive-v2 .shv2-archive-montage {
        direction: ltr !important;
        height: 192px !important;
        display: flex !important;
        align-items: end !important;
        justify-content: center !important;
        gap: 15px !important;
        overflow: visible !important;
    }

    /*
     * DOM order is father first, second martyr second.
     * Prototype v2 shows father physically on the LEFT,
     * larger and straight; second portrait to his RIGHT,
     * slightly smaller and tilted.
     */
    .shahidabad-archive-v2
    .shv2-archive-montage
    .shv2-montage-frame:first-child {
        width: 148px !important;
        height: 181px !important;
        transform: none !important;
        z-index: 2 !important;
    }

    .shahidabad-archive-v2
    .shv2-archive-montage
    .shv2-montage-frame:nth-child(2) {
        width: 132px !important;
        height: 163px !important;
        transform: rotate(5deg) translateY(1px) !important;
        transform-origin: center bottom !important;
        z-index: 1 !important;
    }

    .shahidabad-archive-v2
    .shv2-archive-montage
    .shv2-montage-frame img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center bottom !important;
    }
}

/* ==========================================================
   END 9A-4D4X-A1-ARCHIVE-HERO-V2-R1
   ========================================================== */

/* ==========================================================
   BEGIN 9A-4D4X-A1R1-ARCHIVE-HERO-V2-SOURCE-EXACT
   Values taken directly from Prototype v2 source CSS.
   Desktop hero only.
   ========================================================== */

@media (min-width: 901px) {

    body.post-type-archive-shahid
    .shahidabad-archive-v2
    .shv2-archive-hero {
        min-height: 0 !important;
        padding: 34px 0 29px !important;
        background: #f6f5f0 !important;
    }

    body.post-type-archive-shahid
    .shahidabad-archive-v2
    .shv2-archive-hero
    > .shahid-shell.shv2-archive-hero-grid {
        width: min(1192px, calc(100% - 80px)) !important;
        max-width: 1192px !important;
        margin-inline: auto !important;

        direction: rtl !important;
        display: grid !important;
        grid-template-columns: 1.35fr .8fr !important;
        align-items: center !important;
        gap: 35px !important;
    }

    .shahidabad-archive-v2 .shv2-archive-copy {
        width: auto !important;
        max-width: none !important;
        justify-self: stretch !important;
        text-align: right !important;
    }

    .shahidabad-archive-v2 .shv2-eyebrow {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;

        color: #1d5b49 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: normal !important;
        letter-spacing: .05px !important;
    }

    .shahidabad-archive-v2 .shv2-eyebrow::before {
        content: "" !important;
        display: block !important;
        width: 19px !important;
        height: 1px !important;
        flex: 0 0 19px !important;
        background: #a37935 !important;
    }

    .shahidabad-archive-v2 .shv2-archive-copy h1 {
        max-width: none !important;
        margin: 10px 0 !important;

        color: #172e28 !important;
        font-size: 42px !important;
        line-height: normal !important;
        letter-spacing: normal !important;
    }

    .shahidabad-archive-v2 .shv2-tagline {
        margin: 3px 0 0 !important;
        color: #1d5b49 !important;
        font-size: 17px !important;
        line-height: normal !important;
    }

    .shahidabad-archive-v2 .shv2-archive-intro {
        max-width: 600px !important;
        margin: 10px 0 0 !important;

        color: #596963 !important;
        font-size: 13px !important;
        line-height: normal !important;
    }

    .shahidabad-archive-v2 .shv2-archive-montage {
        position: relative !important;

        height: 190px !important;

        direction: ltr !important;
        display: flex !important;
        justify-content: center !important;
        align-items: end !important;
        gap: 14px !important;

        overflow: hidden !important;
    }

    .shahidabad-archive-v2
    .shv2-archive-montage
    .shv2-montage-frame {
        width: 143px !important;
        height: 173px !important;

        padding: 5px !important;

        border: 1px solid #c7b374 !important;
        border-radius: 75px 75px 8px 8px !important;

        overflow: hidden !important;
        background: #e8eddf !important;
    }

    /*
     * WordPress DOM adaptation:
     * father is item 1 but must look like prototype's
     * larger straight item.
     */
    .shahidabad-archive-v2
    .shv2-archive-montage
    .shv2-montage-frame:first-child {
        width: 143px !important;
        height: 173px !important;
        transform: none !important;
        z-index: 2 !important;
    }

    /*
     * Second portrait receives prototype's smaller,
     * slightly rotated treatment.
     */
    .shahidabad-archive-v2
    .shv2-archive-montage
    .shv2-montage-frame:nth-child(2) {
        width: 143px !important;
        height: 155px !important;
        transform: rotate(6deg) !important;
        transform-origin: center bottom !important;
        z-index: 1 !important;
    }

    .shahidabad-archive-v2
    .shv2-archive-montage
    .shv2-montage-frame img {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
        object-position: center bottom !important;

        border-radius: 65px 65px 4px 4px !important;
        background: #194b38 !important;
    }
}

/* ==========================================================
   END 9A-4D4X-A1R1-ARCHIVE-HERO-V2-SOURCE-EXACT
   ========================================================== */

/* ==========================================================
   BEGIN 9A-4D4X-A2-ARCHIVE-SEARCH-CONTROLS-R1
   Archive search / sort / veteran filter only.
   Hero A1/A1R1, cards, sidebar and single martyr remain untouched.
   ========================================================== */

.shahidabad-archive-v2 .shv2-search-panel-a2 {
    margin: 0;
    padding: 23px;
    border: 1px solid var(--shv2-line);
    border-top: 3px solid #2b5f48;
    border-radius: 16px;
    background: var(--shv2-surface);
}

.shahidabad-archive-v2 .shv2-search-form-a2 {
    display: block;
}

.shahidabad-archive-v2 .shv2-a2-search-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 13px;
    align-items: end;
}

.shahidabad-archive-v2 .shv2-a2-search-field,
.shahidabad-archive-v2 .shv2-a2-sort-field {
    min-width: 0;
}

.shahidabad-archive-v2 .shv2-a2-search-input-wrap {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 42px;
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid #cdd7d1;
    border-radius: 10px;
    background: #fff;
}

.shahidabad-archive-v2 .shv2-a2-search-input-wrap input {
    min-width: 0;
    height: 50px;
    border: 0;
    outline: 0;
    padding: 0 4px;
    background: transparent;
    color: var(--shv2-ink);
    font-size: 13px;
}

.shahidabad-archive-v2 .shv2-search-icon,
.shahidabad-archive-v2 .shv2-a2-clear-search {
    width: 42px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--shv2-green);
}

.shahidabad-archive-v2 .shv2-a2-clear-search {
    border: 0;
    cursor: pointer;
    background: transparent;
    color: var(--shv2-muted);
}

.shahidabad-archive-v2 .shv2-a2-clear-search[hidden] {
    display: none;
}

.shahidabad-archive-v2 .shv2-search-icon svg,
.shahidabad-archive-v2 .shv2-a2-clear-search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shahidabad-archive-v2 .shv2-a2-sort-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 11px;
    border: 1px solid #cdd7d1;
    border-radius: 10px;
    color: var(--shv2-ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.shahidabad-archive-v2 .shv2-a2-filter-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--shv2-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shahidabad-archive-v2 .shv2-a2-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shahidabad-archive-v2 .shv2-a2-pill {
    min-height: 38px;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdd7d1;
    border-radius: 9px;
    color: var(--shv2-ink);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.shahidabad-archive-v2 .shv2-a2-pill.is-active {
    border-color: var(--shv2-green);
    color: #fff;
    background: var(--shv2-green);
}

.shahidabad-archive-v2 .shv2-a2-search-status {
    color: var(--shv2-muted);
    font-size: 11px;
}

@media (max-width: 760px) {
    .shahidabad-archive-v2 .shv2-search-panel-a2 {
        padding: 17px;
    }

    .shahidabad-archive-v2 .shv2-a2-search-line {
        grid-template-columns: 1fr;
    }

    .shahidabad-archive-v2 .shv2-a2-filter-line {
        align-items: stretch;
        flex-direction: column;
    }

    .shahidabad-archive-v2 .shv2-a2-search-status {
        line-height: 1.9;
    }
}

/* ==========================================================
   END 9A-4D4X-A2-ARCHIVE-SEARCH-CONTROLS-R1
   ========================================================== */

/* ==========================================================
   BEGIN 9A-4D4X-A2R1-ARCHIVE-SEARCH-VISUAL-FIX
   Visual correction after screenshot review.
   Search panel only.
   ========================================================== */

.shahidabad-archive-v2 .shv2-a2-search-status {
    display: none !important;
}

.shahidabad-archive-v2 .shv2-a2-filter-line {
    justify-content: flex-start !important;
}

.shahidabad-archive-v2 .shv2-a2-pill {
    border-color: #cdd7d1 !important;
    color: #172e28 !important;
    background: #ffffff !important;
}

.shahidabad-archive-v2 .shv2-a2-pill.is-active,
.shahidabad-archive-v2 .shv2-a2-pill[aria-current="page"] {
    border-color: #103f33 !important;
    color: #ffffff !important;
    background: #103f33 !important;
}

.shahidabad-archive-v2 .shv2-a2-pill:hover,
.shahidabad-archive-v2 .shv2-a2-pill:focus-visible {
    border-color: #1d5b49 !important;
}

.shahidabad-archive-v2 .shv2-a2-pill.is-active:hover,
.shahidabad-archive-v2 .shv2-a2-pill.is-active:focus-visible,
.shahidabad-archive-v2 .shv2-a2-pill[aria-current="page"]:hover,
.shahidabad-archive-v2 .shv2-a2-pill[aria-current="page"]:focus-visible {
    color: #ffffff !important;
    background: #103f33 !important;
}

/* ==========================================================
   END 9A-4D4X-A2R1-ARCHIVE-SEARCH-VISUAL-FIX
   ========================================================== */

/* ==========================================================
   BEGIN 9A-4D4X-A3R1R1-ARCHIVE-CARDS-SIDEBAR
   Prototype v2 cards + sidebar only.
   A1/A1R1 Hero and A2 Search are locked and untouched.
   ========================================================== */

.shahidabad-archive-v2 .shv2-results-header {
    margin: 25px 0 18px;
}

.shahidabad-archive-v2 .shv2-results-header h2 {
    font-size: 22px;
}

.shahidabad-archive-v2 .shv2-result-count {
    color: var(--shv2-muted);
    font-size: 11px;
}

.shahidabad-archive-v2 .shv2-archive-results {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 28px;
    align-items: start;
}

.shahidabad-archive-v2 .shv2-martyr-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.shahidabad-archive-v2 .shv2-martyr-card {
    min-width: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--shv2-line);
    border-radius: 15px;
    background: var(--shv2-surface);
    box-shadow: 0 8px 25px rgba(16,63,51,.035);
    transition: transform .2s ease, box-shadow .2s ease;
}

.shahidabad-archive-v2 .shv2-martyr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(21,62,48,.065);
}

.shahidabad-archive-v2 .shv2-martyr-card[hidden] {
    display: none !important;
}

.shahidabad-archive-v2 .shv2-portrait-box {
    position: relative;
    margin: 10px 10px 0;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1.22;
    max-height: 246px;
    border-radius: 9px;
    background: #264f3e;
    perspective: 900px;
}

.shahidabad-archive-v2 .shv2-portrait-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .38s ease;
}

.shahidabad-archive-v2 .shv2-martyr-card.is-flipped .shv2-portrait-inner {
    transform: rotateY(180deg);
}

.shahidabad-archive-v2 .shv2-portrait-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 9px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.shahidabad-archive-v2 .shv2-portrait-front {
    display: block;
    background: #e0e9d7;
}

.shahidabad-archive-v2 .shv2-portrait-front.is-father {
    background: #194834;
}

.shahidabad-archive-v2 .shv2-portrait-front img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.shahidabad-archive-v2 .shv2-portrait-back {
    padding: 22px;
    transform: rotateY(180deg);
    color: #f7f3e4;
    background: var(--shv2-green);
}

.shahidabad-archive-v2 .shv2-portrait-back h3 {
    margin: 0 0 11px;
    font-size: 18px;
}

.shahidabad-archive-v2 .shv2-portrait-back dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
}

.shahidabad-archive-v2 .shv2-portrait-back dt {
    color: #cddcc7;
    font-size: 10px;
}

.shahidabad-archive-v2 .shv2-portrait-back dd {
    margin: 3px 0 0;
    color: #fff;
    font-size: 12px;
}

.shahidabad-archive-v2 .shv2-portrait-back p {
    margin: 12px 0 0;
    color: #dfe8dc;
    font-size: 12px;
    line-height: 1.9;
}

.shahidabad-archive-v2 .shv2-bookmark {
    position: absolute;
    z-index: 4;
    top: 10px;
    left: 10px;
    width: 39px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: var(--shv2-green);
    background: rgba(255,254,244,.92);
}

.shahidabad-archive-v2 .shv2-bookmark[aria-pressed="true"] {
    color: #5e4d26;
    background: #fff5d8;
}

.shahidabad-archive-v2 .shv2-bookmark[aria-pressed="true"] svg {
    fill: #b69b54;
}

.shahidabad-archive-v2 .shv2-type-badge {
    position: absolute;
    z-index: 3;
    top: 11px;
    right: 11px;
    max-width: calc(100% - 22px);
    padding: 3px 9px;
    border-radius: 5px;
    color: var(--shv2-green);
    background: rgba(255,254,245,.92);
    font-size: 11px;
    font-weight: 850;
}

.shahidabad-archive-v2 .shv2-martyr-body {
    padding: 16px;
}

.shahidabad-archive-v2 .shv2-martyr-body h3 {
    margin: 0;
    min-height: 31px;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.7;
}

.shahidabad-archive-v2 .shv2-martyr-body h3 a {
    color: var(--shv2-ink);
}

.shahidabad-archive-v2 .shv2-card-meta {
    min-height: 23px;
    margin: 2px 0 0;
    color: var(--shv2-muted);
    font-size: 12px;
    line-height: 1.8;
}

.shahidabad-archive-v2 .shv2-card-actions {
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid var(--shv2-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.shahidabad-archive-v2 .shv2-card-link,
.shahidabad-archive-v2 .shv2-aside-link {
    min-height: 40px;
    padding: 7px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    color: var(--shv2-green);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.shahidabad-archive-v2 .shv2-card-link-secondary {
    color: var(--shv2-muted);
    font-size: 11px;
    font-weight: 450;
}

.shahidabad-archive-v2 .shv2-bookmark svg,
.shahidabad-archive-v2 .shv2-card-link svg,
.shahidabad-archive-v2 .shv2-aside-icon svg,
.shahidabad-archive-v2 .shv2-aside-link svg,
.shahidabad-archive-v2 .shv2-empty-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shahidabad-archive-v2 .shv2-return-aside {
    padding-inline-start: 27px;
    border-inline-start: 1px solid var(--shv2-line);
}

.shahidabad-archive-v2 .shv2-return-aside article {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--shv2-line);
}

.shahidabad-archive-v2 .shv2-return-aside article:last-child {
    border-bottom: 0;
}

.shahidabad-archive-v2 .shv2-aside-icon {
    display: block;
    color: var(--shv2-gold);
}

.shahidabad-archive-v2 .shv2-aside-icon svg {
    width: 21px;
    height: 21px;
}

.shahidabad-archive-v2 .shv2-return-aside h3 {
    margin: 9px 0;
    color: var(--shv2-ink);
    font-size: 17px;
    line-height: 1.8;
    font-weight: 900;
}

.shahidabad-archive-v2 .shv2-return-aside p {
    margin: 0 0 9px;
    color: var(--shv2-muted);
    font-size: 13px;
    line-height: 2;
}

.shahidabad-archive-v2 .shv2-aside-link[aria-pressed="true"] {
    color: #725a20;
}

@media (max-width: 1000px) {
    .shahidabad-archive-v2 .shv2-archive-results {
        grid-template-columns: minmax(0,1fr) 235px;
    }

    .shahidabad-archive-v2 .shv2-return-aside {
        padding-inline-start: 20px;
    }
}

@media (max-width: 900px) {
    .shahidabad-archive-v2 .shv2-archive-results {
        grid-template-columns: 1fr;
    }

    .shahidabad-archive-v2 .shv2-return-aside {
        margin-top: 12px;
        padding-inline-start: 0;
        border-inline-start: 0;
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 24px;
    }
}

@media (max-width: 650px) {
    .shahidabad-archive-v2 .shv2-martyr-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    .shahidabad-archive-v2 .shv2-portrait-box {
        margin: 6px 6px 0;
        aspect-ratio: .85;
        max-height: none;
    }

    .shahidabad-archive-v2 .shv2-bookmark {
        top: 4px;
        left: 4px;
        width: 31px;
        height: 34px;
    }

    .shahidabad-archive-v2 .shv2-bookmark svg {
        width: 17px;
        height: 17px;
    }

    .shahidabad-archive-v2 .shv2-type-badge {
        top: auto;
        right: 7px;
        bottom: 7px;
        padding: 2px 4px;
        font-size: 8px;
    }

    .shahidabad-archive-v2 .shv2-martyr-body {
        padding: 11px;
    }

    .shahidabad-archive-v2 .shv2-martyr-body h3 {
        min-height: 42px;
        font-size: 13px;
        line-height: 1.75;
    }

    .shahidabad-archive-v2 .shv2-card-meta {
        font-size: 10px;
    }

    .shahidabad-archive-v2 .shv2-card-actions {
        margin-top: 9px;
        padding-top: 5px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .shahidabad-archive-v2 .shv2-card-link {
        min-height: 36px;
        justify-content: space-between;
        font-size: 11px;
    }

    .shahidabad-archive-v2 .shv2-card-link-secondary {
        min-height: 30px;
        justify-content: center;
        border-top: 1px solid var(--shv2-line);
        font-size: 9px;
    }

    .shahidabad-archive-v2 .shv2-portrait-back {
        padding: 11px;
    }

    .shahidabad-archive-v2 .shv2-portrait-back h3 {
        font-size: 12px;
    }

    .shahidabad-archive-v2 .shv2-portrait-back dl {
        display: block;
        margin: 7px 0;
    }

    .shahidabad-archive-v2 .shv2-portrait-back dt {
        font-size: 8px;
    }

    .shahidabad-archive-v2 .shv2-portrait-back dd {
        font-size: 10px;
    }

    .shahidabad-archive-v2 .shv2-portrait-back dl > div {
        margin-top: 4px;
    }

    .shahidabad-archive-v2 .shv2-return-aside {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .shahidabad-archive-v2 .shv2-return-aside article {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .shahidabad-archive-v2 .shv2-return-aside h3 {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shahidabad-archive-v2 .shv2-martyr-card,
    .shahidabad-archive-v2 .shv2-portrait-inner {
        transition: none !important;
    }

    .shahidabad-archive-v2 .shv2-martyr-card:hover {
        transform: none;
    }
}

/* ==========================================================
   END 9A-4D4X-A3R1R1-ARCHIVE-CARDS-SIDEBAR
   ========================================================== */

/* ==========================================================
   BEGIN 9A-4D4X-A3R2-FULL-CARD-FLIP
   User-directed adaptation:
   flip the COMPLETE archive card, not only the portrait area.
   Hero / Search / Sidebar data / Single remain untouched.
   ========================================================== */

.shahidabad-archive-v2 .shv2-fullflip-card {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: transparent !important;
    box-shadow: none !important;
    perspective: 1200px;
}

.shahidabad-archive-v2 .shv2-fullflip-card:hover {
    transform: translateY(-3px);
    box-shadow: none !important;
}

.shahidabad-archive-v2 .shv2-card-flip-inner {
    position: relative;
    display: grid;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform .46s cubic-bezier(.2,.7,.2,1);
}

.shahidabad-archive-v2
.shv2-fullflip-card.is-flipped
.shv2-card-flip-inner {
    transform: rotateY(180deg);
}

.shahidabad-archive-v2 .shv2-card-face {
    grid-area: 1 / 1;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--shv2-line);
    border-radius: 15px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 8px 25px rgba(16,63,51,.035);
}

.shahidabad-archive-v2 .shv2-card-front {
    position: relative;
    transform: rotateY(0deg);
    background: var(--shv2-surface);
}

.shahidabad-archive-v2 .shv2-card-back {
    position: relative;
    min-height: 100%;
    padding: 23px 21px 18px;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    color: #f7f3e4;
    background:
        radial-gradient(
            circle at 20% 18%,
            rgba(255,255,255,.055),
            transparent 34%
        ),
        var(--shv2-green);
}

.shahidabad-archive-v2 .shv2-card-back-content {
    display: grid;
    gap: 12px;
}

.shahidabad-archive-v2 .shv2-card-back-kicker {
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 7px;
    color: #f3e7c8;
    background: rgba(255,255,255,.055);
    font-size: 10px;
    font-weight: 800;
}

.shahidabad-archive-v2 .shv2-card-back h3 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.75;
}

.shahidabad-archive-v2 .shv2-card-back-facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin: 0;
}

.shahidabad-archive-v2 .shv2-card-back-facts > div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    background: rgba(255,255,255,.055);
}

.shahidabad-archive-v2 .shv2-card-back-facts dt {
    color: #cddcc7;
    font-size: 10px;
}

.shahidabad-archive-v2 .shv2-card-back-facts dd {
    margin: 3px 0 0;
    color: #fff;
    font-size: 12px;
    line-height: 1.8;
}

.shahidabad-archive-v2 .shv2-card-back-note {
    margin: 0;
    color: #dfe8dc;
    font-size: 11px;
    line-height: 1.95;
}

.shahidabad-archive-v2 .shv2-card-back-actions {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shahidabad-archive-v2 .shv2-card-back-primary,
.shahidabad-archive-v2 .shv2-card-back-return {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    padding: 7px 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}

.shahidabad-archive-v2 .shv2-card-back-primary {
    font-weight: 800;
}

.shahidabad-archive-v2 .shv2-card-back-return {
    color: #dfe8dc;
}

.shahidabad-archive-v2 .shv2-card-back-actions svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 760px) {
    .shahidabad-archive-v2 .shv2-card-back {
        padding: 17px 15px 14px;
        gap: 14px;
    }

    .shahidabad-archive-v2 .shv2-card-back h3 {
        font-size: 16px;
    }

    .shahidabad-archive-v2 .shv2-card-back-facts {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .shahidabad-archive-v2 .shv2-card-back-facts > div {
        padding: 7px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shahidabad-archive-v2 .shv2-card-flip-inner {
        transition: none !important;
    }
}

/* ==========================================================
   END 9A-4D4X-A3R2-FULL-CARD-FLIP
   ========================================================== */

/* ==========================================================
   BEGIN 9A-4D4X-A3R3-FULL-CARD-BACK-FACE
   Full-card flip back-face rendering correction only.
   ========================================================== */

.shahidabad-archive-v2 .shv2-card-flip-inner {
    isolation: isolate !important;
}

.shahidabad-archive-v2 .shv2-card-front {
    z-index: 2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: rotateY(0deg) translateZ(1px) !important;
}

.shahidabad-archive-v2 .shv2-card-back {
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    mix-blend-mode: normal !important;

    color: #f7f3e4 !important;
    background-color: #103f33 !important;
    background-image:
        radial-gradient(
            circle at 20% 18%,
            rgba(255,255,255,.06),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #174f40 0%,
            #103f33 58%,
            #0b342a 100%
        ) !important;

    transform: rotateY(180deg) translateZ(1px) !important;
}

.shahidabad-archive-v2
.shv2-fullflip-card.is-flipped
.shv2-card-front {
    z-index: 1 !important;
    pointer-events: none !important;
}

.shahidabad-archive-v2
.shv2-fullflip-card.is-flipped
.shv2-card-back {
    z-index: 3 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background-color: #103f33 !important;
}

.shahidabad-archive-v2 .shv2-card-back h3,
.shahidabad-archive-v2 .shv2-card-back dd,
.shahidabad-archive-v2 .shv2-card-back-primary {
    color: #ffffff !important;
}

.shahidabad-archive-v2 .shv2-card-back-kicker {
    color: #f3e7c8 !important;
}

.shahidabad-archive-v2 .shv2-card-back-facts dt {
    color: #cddcc7 !important;
}

.shahidabad-archive-v2 .shv2-card-back-note,
.shahidabad-archive-v2 .shv2-card-back-return {
    color: #dfe8dc !important;
}

/* ==========================================================
   END 9A-4D4X-A3R3-FULL-CARD-BACK-FACE
   ========================================================== */

/* ==========================================================
   BEGIN 9A-4D4X-A3R4-FULL-CARD-NO-MIRROR
   Robust full-card flip:
   faces rotate independently so the front face can never
   appear mirrored when the card is flipped.
   ========================================================== */

.shahidabad-archive-v2 .shv2-card-flip-inner {
    transform: none !important;
    transform-style: preserve-3d !important;
    perspective: 1200px !important;
}

.shahidabad-archive-v2
.shv2-fullflip-card.is-flipped
.shv2-card-flip-inner {
    transform: none !important;
}

.shahidabad-archive-v2 .shv2-card-face {
    grid-area: 1 / 1 !important;
    transform-origin: center center !important;

    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;

    transition:
        transform .46s cubic-bezier(.2,.7,.2,1),
        opacity .18s ease !important;
}

.shahidabad-archive-v2 .shv2-card-front {
    z-index: 2 !important;

    opacity: 1 !important;
    visibility: visible !important;

    transform:
        perspective(1200px)
        rotateY(0deg)
        translateZ(0) !important;
}

.shahidabad-archive-v2 .shv2-card-back {
    z-index: 1 !important;

    opacity: 0 !important;
    visibility: hidden !important;

    transform:
        perspective(1200px)
        rotateY(180deg)
        translateZ(0) !important;

    color: #f7f3e4 !important;
    background-color: #103f33 !important;
    background-image:
        radial-gradient(
            circle at 20% 18%,
            rgba(255,255,255,.06),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #174f40 0%,
            #103f33 58%,
            #0b342a 100%
        ) !important;
}

.shahidabad-archive-v2
.shv2-fullflip-card.is-flipped
.shv2-card-front {
    z-index: 1 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform:
        perspective(1200px)
        rotateY(-180deg)
        translateZ(0) !important;
}

.shahidabad-archive-v2
.shv2-fullflip-card.is-flipped
.shv2-card-back {
    z-index: 3 !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform:
        perspective(1200px)
        rotateY(0deg)
        translateZ(0) !important;
}

.shahidabad-archive-v2
.shv2-fullflip-card.is-flipped
.shv2-card-front img {
    opacity: 0 !important;
}

.shahidabad-archive-v2
.shv2-fullflip-card:not(.is-flipped)
.shv2-card-front img {
    opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
    .shahidabad-archive-v2 .shv2-card-face {
        transition: none !important;
    }
}

/* ==========================================================
   END 9A-4D4X-A3R4-FULL-CARD-NO-MIRROR
   ========================================================== */

/* ==========================================================
   BEGIN V6-ARCHIVE-PORTRAIT-CENTER-R1
   Archive cards: real portrait/PNG is centered on a neutral
   card surface. Placeholder styling remains unchanged.
   ========================================================== */
.shahidabad-archive-v2 .shv2-portrait-box {
    background: transparent !important;
}

.shahidabad-archive-v2 .shv2-portrait-front.has-portrait-image,
.shahidabad-archive-v2 .shv2-portrait-front.is-father {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.shahidabad-archive-v2 .shv2-portrait-front.has-portrait-image img,
.shahidabad-archive-v2 .shv2-portrait-front.is-father img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
}
/* ==========================================================
   END V6-ARCHIVE-PORTRAIT-CENTER-R1
   ========================================================== */
/* ==========================================================
   BEGIN V6-ARCHIVE-CARD-META-FULLBLEED-R1
   - portrait block is flush with card edges
   - real portrait PNG uses full width / natural height
   - role + save chips live beside father/meta information
   ========================================================== */
#shahidabad-martyrs .shv2-portrait-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#shahidabad-martyrs .shv2-portrait-box.has-real-portrait {
    aspect-ratio: auto !important;
    max-height: none !important;
    background: transparent !important;
}

#shahidabad-martyrs .shv2-portrait-box.has-real-portrait .shv2-portrait-front {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

#shahidabad-martyrs .shv2-portrait-box.has-real-portrait .shv2-portrait-front img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
}

#shahidabad-martyrs .shv2-portrait-box.has-placeholder {
    margin: 0 !important;
    border-radius: 0 !important;
}

#shahidabad-martyrs .shv2-card-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-top: 3px !important;
    direction: rtl;
}

#shahidabad-martyrs .shv2-card-meta-row .shv2-card-meta {
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
}

#shahidabad-martyrs .shv2-card-chips {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-inline-start: auto !important;
    white-space: nowrap;
}

#shahidabad-martyrs .shv2-type-chip,
#shahidabad-martyrs .shv2-save-chip {
    min-height: 27px !important;
    padding: 4px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 999px !important;
    font: inherit !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#shahidabad-martyrs .shv2-type-chip {
    border: 1px solid rgba(4,72,56,.12) !important;
    color: var(--shv2-green) !important;
    background: rgba(4,72,56,.065) !important;
}

#shahidabad-martyrs .shv2-save-chip {
    border: 1px solid rgba(4,72,56,.14) !important;
    cursor: pointer !important;
    color: var(--shv2-green) !important;
    background: #fffefa !important;
}

#shahidabad-martyrs .shv2-save-chip svg {
    width: 13px !important;
    height: 13px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

#shahidabad-martyrs .shv2-save-chip[aria-pressed="true"] {
    color: #5e4d26 !important;
    border-color: rgba(182,155,84,.32) !important;
    background: #fff5d8 !important;
}

#shahidabad-martyrs .shv2-save-chip[aria-pressed="true"] svg {
    fill: #b69b54 !important;
}

@media (max-width: 520px) {
    #shahidabad-martyrs .shv2-card-meta-row {
        gap: 8px !important;
    }

    #shahidabad-martyrs .shv2-card-chips {
        gap: 5px !important;
    }

    #shahidabad-martyrs .shv2-type-chip,
    #shahidabad-martyrs .shv2-save-chip {
        padding-inline: 7px !important;
        font-size: 8.5px !important;
    }
}
/* ==========================================================
   END V6-ARCHIVE-CARD-META-FULLBLEED-R1
   ========================================================== */