
/* ============================================================
   DUSUNNAH — SHARED APP CTA
   Canonical design: Timetable App CTA
   ============================================================ */

.dus-shared-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    min-width: 0;
    overflow: hidden;

    border: 1px solid #e4e0dc;
    border-radius: 16px;

    background: #f7f5f1;

    box-shadow:
        0 1px 2px rgba(17,17,17,.025),
        0 10px 32px rgba(17,17,17,.035);
}

.dus-shared-app__media {
    position: relative;
    min-width: 0;
    min-height: 410px;
    overflow: hidden;
    background: #ded9d1;
}

.dus-shared-app__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    object-position: center;
}

.dus-shared-app__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-width: 0;
    padding: clamp(38px, 4.2vw, 62px);
}

.dus-shared-app__kicker {
    margin: 0 0 17px;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;

    color: var(--acc, #a6533d);
}

.dus-shared-app__title {
    max-width: 660px;
    margin: 0;

    font-size: clamp(29px, 2.55vw, 40px);
    line-height: 1.07;
    font-weight: 800;
    letter-spacing: -.038em;

    color: var(--ink, #171717);
}

.dus-shared-app__text {
    max-width: 650px;
    margin: 22px 0 0;

    font-size: 15.5px;
    line-height: 1.65;

    color: var(--body, #444);
}

.dus-shared-app__text p {
    margin: 0;
}

.dus-shared-app__close {
    margin-top: 14px !important;
    font-weight: 650;
    color: var(--ink, #171717);
}

.dus-shared-app__stores {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.dus-shared-app__stores a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    transition: transform .18s ease;
}

.dus-shared-app__stores a:hover {
    transform: translateY(-2px);
}

.dus-shared-app__stores a:focus-visible {
    outline: 2px solid var(--acc, #a6533d);
    outline-offset: 4px;
    border-radius: 8px;
}

.dus-shared-app__stores img {
    display: block;
    width: auto;
    max-width: none;
}

.dus-shared-app__stores a:first-child img {
    height: 46px;
}

.dus-shared-app__stores a:last-child img {
    height: 68px;
    margin: -11px -13px;
}

/* Homepage: narrower adjacent donation panel. */

.dus-shared-app--home {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    height: 100%;
}

.dus-shared-app--home .dus-shared-app__content {
    padding: clamp(22px, 2.5vw, 34px);
}

.dus-shared-app--home .dus-shared-app__title {
    font-size: clamp(23px, 2vw, 30px);
    line-height: 1.12;
}

.dus-shared-app--home .dus-shared-app__text {
    font-size: 14px;
    line-height: 1.55;
    margin-top: 16px;
}

.dus-shared-app--home .dus-shared-app__stores {
    margin-top: 20px;
}

/* About page: editorial content width. */

.dus-shared-app--about {
    margin: 36px 0 44px;
}

.dus-shared-app--about .dus-shared-app__content {
    padding: clamp(26px, 3.5vw, 46px);
}

.dus-shared-app--about .dus-shared-app__title {
    font-size: clamp(25px, 2.3vw, 36px);
}

/* Tablet */

@media (max-width: 980px) {

    .dus-shared-app {
        grid-template-columns: minmax(0, 1fr);
    }

    .dus-shared-app__media {
        min-height: 330px;
        aspect-ratio: 16 / 8;
    }

    .dus-shared-app__media img {
        min-height: 330px;
    }

    .dus-shared-app__content {
        padding: 38px 34px 42px;
    }

    .dus-shared-app--home {
        height: auto;
    }

    .dus-shared-app--home .dus-shared-app__media {
        min-height: 210px;
        aspect-ratio: 16 / 7;
    }

    .dus-shared-app--home .dus-shared-app__media img {
        min-height: 210px;
    }
}

/* Mobile */

@media (max-width: 600px) {

    .dus-shared-app {
        display: block;
        width: 100%;
        min-height: 0;
        border-radius: 18px;
    }

    .dus-shared-app__media,
    .dus-shared-app--home .dus-shared-app__media {
        width: 100%;
        height: 230px;
        min-height: 0;
        aspect-ratio: auto;
    }

    .dus-shared-app__media img,
    .dus-shared-app--home .dus-shared-app__media img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }

    .dus-shared-app__content,
    .dus-shared-app--home .dus-shared-app__content,
    .dus-shared-app--about .dus-shared-app__content {
        display: block;
        padding: 27px 21px 29px;
    }

    .dus-shared-app__kicker {
        margin: 0 0 12px;
        font-size: 9px;
        letter-spacing: .17em;
    }

    .dus-shared-app__title,
    .dus-shared-app--home .dus-shared-app__title,
    .dus-shared-app--about .dus-shared-app__title {
        max-width: 15ch;
        margin: 0;
        font-size: 27px;
        line-height: 1.04;
        letter-spacing: -.04em;
    }

    .dus-shared-app__text,
    .dus-shared-app--home .dus-shared-app__text {
        max-width: none;
        margin: 16px 0 0;
        font-size: 14.5px;
        line-height: 1.58;
    }

    .dus-shared-app__stores,
    .dus-shared-app--home .dus-shared-app__stores {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 23px;
    }

    .dus-shared-app__stores a {
        display: flex;
        min-width: 0;
        flex: 0 1 auto;
    }

    .dus-shared-app__stores a:first-child img {
        height: 42px;
    }

    .dus-shared-app__stores a:last-child img {
        height: 62px;
        margin: -10px -12px;
    }
}


/* ============================================================
   DUSUNNAH — RUN 193 VISUAL REFINEMENT
   Shared App CTA — Homepage and About Us
   ============================================================ */

/* Consistent store artwork */

.dus-shared-app__stores {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dus-shared-app__stores a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: visible;
}

.dus-shared-app__stores a:first-child img {
    display: block;
    width: auto;
    height: 44px;
    max-width: 100%;
    margin: 0;
}

.dus-shared-app__stores a:last-child img {
    display: block;
    width: auto;
    height: 44px;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
}

/* Homepage — compact editorial composition */

.dus-home .dus-home-cta-grid > .dus-shared-app--home {
    min-width: 0;
    grid-template-columns: minmax(0, .40fr) minmax(0, .60fr);
}

.dus-home .dus-shared-app--home .dus-shared-app__content {
    padding: clamp(18px, 2vw, 28px);
}

.dus-home .dus-shared-app--home .dus-shared-app__kicker {
    margin-bottom: 13px;
    font-size: 9px;
}

.dus-home .dus-shared-app--home .dus-shared-app__title {
    max-width: none;
    font-size: clamp(20px, 1.65vw, 25px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.dus-home .dus-shared-app--home .dus-shared-app__text {
    max-width: none;
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.55;
}

.dus-home .dus-shared-app--home .dus-shared-app__close {
    margin-top: 11px !important;
}

.dus-home .dus-shared-app--home .dus-shared-app__stores {
    margin-top: 18px;
    gap: 8px;
}

.dus-home .dus-shared-app--home .dus-shared-app__stores img {
    height: 36px;
}

/* About Us — balanced typography and proportions */

#main-content .dus-about .dus-shared-app--about {
    grid-template-columns: minmax(0, .44fr) minmax(0, .56fr);
}

#main-content .dus-about .dus-shared-app--about
.dus-shared-app__content {
    padding: clamp(25px, 3vw, 42px);
}

#main-content .dus-about .dus-shared-app--about
.dus-shared-app__title {
    max-width: none;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.14;
}

#main-content .dus-about .dus-shared-app--about
.dus-shared-app__text {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.6;
}

#main-content .dus-about .dus-shared-app--about
.dus-shared-app__stores {
    margin-top: 24px;
}

/* Tablet */

@media (max-width: 980px) {

    .dus-home .dus-home-cta-grid > .dus-shared-app--home,
    #main-content .dus-about .dus-shared-app--about {
        grid-template-columns: minmax(0, 1fr);
    }

    .dus-shared-app__media {
        min-height: 0;
        height: 260px;
    }

    .dus-shared-app__media img {
        min-height: 0;
        height: 100%;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__title {
        font-size: 27px;
    }

    #main-content .dus-about .dus-shared-app--about
    .dus-shared-app__title {
        font-size: 29px;
    }
}

/* Mobile */

@media (max-width: 600px) {

    .dus-shared-app__media,
    .dus-shared-app--home .dus-shared-app__media {
        height: 220px;
        min-height: 0;
    }

    .dus-shared-app__content,
    .dus-home .dus-shared-app--home .dus-shared-app__content,
    #main-content .dus-about .dus-shared-app--about
    .dus-shared-app__content {
        padding: 25px 21px 28px;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__title,
    #main-content .dus-about .dus-shared-app--about
    .dus-shared-app__title {
        max-width: none;
        font-size: 25px;
        line-height: 1.12;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__text,
    #main-content .dus-about .dus-shared-app--about
    .dus-shared-app__text {
        font-size: 14px;
        line-height: 1.6;
    }

    .dus-shared-app__stores,
    .dus-home .dus-shared-app--home .dus-shared-app__stores {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .dus-shared-app__stores a:first-child img,
    .dus-shared-app__stores a:last-child img,
    .dus-home .dus-shared-app--home
    .dus-shared-app__stores img {
        width: auto;
        height: 40px;
        max-width: 100%;
        margin: 0;
    }
}


/* ============================================================
   DUSUNNAH — RUN 199 HOMEPAGE REFINEMENT
   Match New Masjid Appeal typography.
   Compact App CTA approximately 30%.
   Homepage only.
   ============================================================ */

/* Allow App CTA to be shorter than adjacent appeal card. */

.dus-home .dus-home-cta-grid > .dus-shared-app--home {
    align-self: center;
    height: auto;
    min-height: 0;
    grid-template-columns:
        minmax(0, .40fr)
        minmax(0, .60fr);
}

/* Compact image presentation. */

.dus-home .dus-shared-app--home .dus-shared-app__media {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.dus-home .dus-shared-app--home .dus-shared-app__media img {
    min-height: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Match appeal card content spacing. */

.dus-home .dus-shared-app--home .dus-shared-app__content {
    padding: 22px 26px;
    justify-content: center;
}

/* Match appeal kicker typography. */

.dus-home .dus-shared-app--home .dus-shared-app__kicker {
    margin: 0 0 9px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Match appeal heading typography. */

.dus-home .dus-shared-app--home .dus-shared-app__title {
    max-width: none;
    margin: 0;
    font-size: clamp(26px, 2.5vw, 34px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.025em;
}

/* Match appeal paragraph typography. */

.dus-home .dus-shared-app--home .dus-shared-app__text {
    max-width: 48ch;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.65;
}

.dus-home .dus-shared-app--home .dus-shared-app__close {
    margin-top: 8px !important;
    font-weight: 600;
}

/* Compact badge spacing. */

.dus-home .dus-shared-app--home .dus-shared-app__stores {
    margin-top: 15px;
    gap: 10px;
}

.dus-home .dus-shared-app--home
.dus-shared-app__stores img {
    width: auto;
    height: 36px;
    max-width: 100%;
    margin: 0;
}

/* Tablet: preserve stacked composition. */

@media (max-width: 980px) {

    .dus-home .dus-home-cta-grid > .dus-shared-app--home {
        grid-template-columns: minmax(0, 1fr);
        align-self: center;
        height: auto;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__media {
        height: 180px;
        min-height: 0;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__media img {
        height: 100%;
        min-height: 0;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__content {
        padding: 22px 24px;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__title {
        font-size: 28px;
    }
}

/* Mobile: compact but readable. */

@media (max-width: 600px) {

    .dus-home .dus-home-cta-grid > .dus-shared-app--home {
        display: block;
        width: 100%;
        height: auto;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__media {
        height: 155px;
        min-height: 0;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__media img {
        height: 100%;
        min-height: 0;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__content {
        padding: 22px 21px 24px;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__kicker {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__title {
        font-size: 26px;
        line-height: 1.2;
        letter-spacing: -.025em;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__text {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.6;
    }

    .dus-home .dus-shared-app--home .dus-shared-app__stores {
        margin-top: 16px;
        gap: 10px;
    }

    .dus-home .dus-shared-app--home
    .dus-shared-app__stores img {
        height: 40px;
        width: auto;
        max-width: 100%;
        margin: 0;
    }
}

