/* Home-only island theme. Keep shared marketplace controls and data hooks. */
.maketi-home-page {
    --maketi-brand-orange: #f45125;
    --maketi-brand-orange-dark: #c4411b;
    --maketi-brand-orange-soft: #fff0e5;
    background: #fff8f0;
    color: #203f3b;
}

.maketi-home-page .doc-header {
    background: #fffaf5;
    box-shadow: 0 4px 20px rgba(32, 63, 59, .05);
}

.maketi-home-page .maketi-app-home {
    background: #fff8f0 !important;
    background-attachment: scroll !important;
    color: #203f3b;
    padding-top: 28px;
}

.maketi-home-page .maketi-app-home-shell {
    background: transparent;
}

.maketi-home-page .maketi-app-home-topbar {
    margin-bottom: 22px;
}

.maketi-home-page .maketi-app-home-search {
    border-color: #e5e9df;
    box-shadow: 0 6px 20px rgba(96, 63, 27, .06);
}

.maketi-home-page .maketi-app-home-search:focus-within {
    outline: 2px solid #16756d;
    outline-offset: 3px;
}

.maketi-home-page .maketi-app-home-search input {
    background: transparent;
    color: #203f3b;
}

.maketi-home-page .maketi-app-home-bell,
.maketi-home-page .maketi-app-bottom-nav a {
    color: #203f3b !important;
}

.maketi-home-page .maketi-app-home-avatar {
    background: #ffead9;
}

.maketi-island-hero {
    align-items: flex-start;
    background-color: #ffedda;
    background-image: linear-gradient(90deg, rgba(255, 248, 240, .6), rgba(255, 248, 240, 0) 65%), url('../img/island/island-header.webp');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 26px;
    display: flex;
    min-height: 300px;
    padding: 34px 42px 78px;
}

.maketi-home-page .maketi-island-hero h1 {
    color: #203f3b;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 900;
    letter-spacing: -.8px;
    line-height: 1.12;
    margin: 0;
    max-width: 560px;
    text-wrap: balance;
}

.maketi-island-hero [lang='fr'],
html:lang(fr) .maketi-island-hero [lang='en'] {
    display: none;
}

html:lang(fr) .maketi-island-hero [lang='fr'] {
    display: inline;
}

.maketi-home-page .maketi-app-category-grid {
    gap: 16px;
    margin: -24px 18px 0;
    position: relative;
}

.maketi-home-page .maketi-app-category-card {
    align-content: center;
    border: 1px solid #efe9df;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(96, 63, 27, .05);
    column-gap: 14px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 144px;
    padding: 24px 20px;
    text-align: left;
}

.maketi-home-page .maketi-app-category-card:focus-visible {
    outline: 3px solid #16756d;
    outline-offset: 3px;
}

.maketi-home-page .maketi-app-category-card:hover {
    border-color: #c5ddd3;
    box-shadow: 0 10px 26px rgba(32, 63, 59, .1);
}

.maketi-home-page .maketi-app-category-card .maketi-app-category-icon {
    align-self: center;
    background: transparent !important;
    grid-column: 1;
    grid-row: 1 / 3;
    height: 76px;
    margin: 0;
    width: 76px;
}

.maketi-home-page .maketi-app-category-card .maketi-app-category-icon img {
    height: 76px;
    width: 76px;
}

.maketi-home-page .maketi-app-category-title {
    align-self: end;
    color: #203f3b;
    font-size: 18px;
    grid-column: 2;
    margin-bottom: 6px;
    overflow: visible;
    white-space: normal;
}

.maketi-home-page .maketi-app-category-subtitle {
    color: #627874;
    font-size: 13px;
    grid-column: 2;
    min-height: 0;
    padding-right: 5px;
}

.maketi-home-page .maketi-app-category-chevron {
    bottom: 12px;
    color: #16756d !important;
    position: absolute;
    right: 14px;
}

.maketi-home-page .maketi-app-category-count {
    background: #e3f2ec;
    color: #16756d;
    right: 10px;
    top: 10px;
}

.maketi-home-page .maketi-app-section-title h2 {
    color: #203f3b;
}

.maketi-home-page .maketi-app-section-title a {
    color: #c4411b !important;
}

.maketi-home-page .maketi-footer {
    background: #fffaf5;
    border-top-color: #efe9df;
}

.maketi-home-page .maketi-app-bottom-nav .is-active,
.maketi-home-page .maketi-app-bottom-nav .is-primary {
    color: #c4411b !important;
}

@media (max-width: 767px) {
    .maketi-home-page .maketi-app-home {
        padding-top: 20px;
    }

    .maketi-home-page .maketi-app-home-container {
        overflow: visible;
    }

    .maketi-home-page .maketi-app-home-topbar {
        margin-bottom: 18px;
    }

    .maketi-island-hero {
        background-position: 58% bottom;
        border-radius: 20px;
        min-height: 242px;
        padding: 24px 22px 80px;
    }

    .maketi-home-page .maketi-island-hero h1 {
        font-size: clamp(26px, 6.6vw, 38px);
        letter-spacing: -.5px;
        max-width: 390px;
    }

    .maketi-home-page .maketi-app-category-grid {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: -20px 0 0;
        width: auto;
    }

    .maketi-home-page .maketi-app-category-card {
        border-radius: 17px;
        column-gap: 8px;
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: 122px;
        padding: 18px 10px;
    }

    .maketi-home-page .maketi-app-category-card .maketi-app-category-icon,
    .maketi-home-page .maketi-app-category-card .maketi-app-category-icon img {
        height: 52px;
        width: 52px;
    }

    .maketi-home-page .maketi-app-category-title {
        font-size: 14px;
    }

    .maketi-home-page .maketi-app-category-subtitle {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }

    .maketi-home-page .maketi-app-section-title h2 {
        font-size: clamp(20px, 5.3vw, 26px);
    }
}

@media (max-width: 360px) {
    .maketi-home-page .maketi-app-category-card {
        column-gap: 6px;
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 18px 8px;
    }

    .maketi-home-page .maketi-app-category-card .maketi-app-category-icon,
    .maketi-home-page .maketi-app-category-card .maketi-app-category-icon img {
        height: 44px;
        width: 44px;
    }

    .maketi-home-page .maketi-app-category-title {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maketi-home-page .maketi-app-category-card {
        transition: none;
    }
}
