/*
 * Lotus Gemology native homepage
 * Exact-layout draft based on the approved 2026-10-02 SPPB homepage.
 * This file is intentionally self-contained and does not depend on SPPB CSS.
 */

.lotus-home-shell {
    --home-bg: #3b3b3e;
    --home-bg-books: #1b1d1e;
    --home-bg-research: #313133;

    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--home-bg);
}

.lotus-home,
.lotus-home * {
    box-sizing: border-box;
}

.lotus-home {
    width: 100%;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    font-weight: 300;
}

.lotus-home img {
    display: block;
    max-width: 100%;
    height: auto;
}

.lotus-home-section {
    margin: 0;
}

/* =========================================================
   Shared section headings
   ========================================================= */

.lotus-home-heading {
    width: 100%;
}

.lotus-home-heading--action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 10px;
    align-items: end;
}

.lotus-home-heading-title,
.lotus-home-heading-title > a {
    min-width: 0;
    display: block;
}

.lotus-home-heading h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 18px !important;
    font-weight: 300;
    line-height: 1.3;
}

.lotus-home-heading:not(.lotus-home-heading--primary) .lotus-home-heading-title h2::after {
    content: "";
    display: block;
    width: 100%;
    padding-top: 1rem;
    border-bottom: 1px solid #D894CC;
}

.lotus-home-heading--primary h2 {
    font-size: 2rem !important;
    font-weight: 300;
}

.lotus-home-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    min-height: 32px;
    padding: 5px 12px;
    background: #D894CC;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.lotus-home-action > span {
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
}

.lotus-home-action:hover,
.lotus-home-action:focus {
    background: rgb(227, 156, 214);
}

/* =========================================================
   Showcase
   ========================================================= */

.lotus-home-showcase {
    display: grid;
    grid-template-columns: 35% 65%;
    width: 100%;
    overflow: hidden;
}

.lotus-home-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    min-width: 0;
}

.lotus-home-tab {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0 10px 18px;
    border: 0;
    border-radius: 0;
    color: #8F8F8F;
    background: #232627;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    text-align: right;
    cursor: pointer;
}

.lotus-home-tab:nth-child(2) { background: #1E2122; }
.lotus-home-tab:nth-child(3) { background: #1B1D1E; }
.lotus-home-tab:nth-child(4) { background: #17191A; }
.lotus-home-tab:nth-child(5) { background: #181818; }
.lotus-home-tab:nth-child(6) { background: #121212; }

.lotus-home-tab.is-active,
.lotus-home-tab:hover,
.lotus-home-tab:focus-visible {
    color: #fff;
}

.lotus-home-tab.is-active {
    font-weight: 400;
}

.lotus-home-tab.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 8px;
    background: url("/images/_css-images/active-line.png") right center / auto 8px no-repeat;
}

.lotus-home-panels,
.lotus-home-panel,
.lotus-home-panel > a {
    min-width: 0;
    height: 100%;
}

.lotus-home-panel[hidden] {
    display: none;
}

.lotus-home-panel {
    overflow: hidden;
}

.lotus-home-panel > a {
    display: block;
}

.lotus-home-panel img {
    width: 100%;
    transform: scale(1.078);
    transform-origin: center center;
    position: relative;
    bottom: -9px;
}

/* =========================================================
   About
   ========================================================= */

.lotus-home-section--about-title {
    padding: 28px 0 14px;
}

.lotus-home-section--about-copy {
    padding: 14px 0 20px;
}

.lotus-home-about-grid {
    display: grid;
    grid-template-columns: 75.56% 24.44%;
    align-items: start;
}

.lotus-home-about-text {
    padding-right: 2rem;
    color: #999999;
}

main.siteBody .lotus-home-about-text p {
    margin: 0 0 1rem;
    color: #999999 !important;
    line-height: 1.55;
}

.lotus-home-about-text p:last-child {
    margin-bottom: 0;
}

.lotus-home-about-image {
    display: flex;
    justify-content: center;
}

.lotus-home-about-image img {
    width: 224px;
    max-width: 100%;
}

/* =========================================================
   Reusable feature-card grids
   ========================================================= */

.lotus-home-section--services {
    padding: 30px 0 1px;
}

.lotus-home-feature-grid {
    display: grid;
    gap: 0;
}

.lotus-home-feature-grid--services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lotus-home-feature-grid--books,
.lotus-home-feature-grid--research {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lotus-home-feature-card {
    min-width: 0;
    padding: 1.4rem;
    text-align: center;
}

.lotus-home-feature-image {
    display: block;
    text-decoration: none;
}

.lotus-home-feature-card img {
    margin: 0 auto;
}

.lotus-home-feature-grid--services .lotus-home-feature-image {
    height: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lotus-home-feature-grid--services img {
    width: 250px;
    height: 165px;
    object-fit: cover;
}

.lotus-home-feature-copy h3 {
    margin: 0;
    padding: 1rem;
    font-family: "Oswald", sans-serif;
    font-size: 18px !important;
    font-weight: 300;
    line-height: 1.35;
}

.lotus-home-feature-copy h3 a {
    text-decoration: none;
}

.lotus-home-feature-copy h3 span {
    font-weight: 300;
}

.lotus-home-feature-copy p {
    margin: 0;
}

/* =========================================================
   Reusable article grids
   ========================================================= */

.lotus-home-section--article-heading {
    padding: 12px 0 18px;
}

.lotus-home-section--lecture-heading {
    padding-top: 24px;
    padding-bottom: 15px;
}

.lotus-home-section--popular-heading {
    padding-top: 24px;
    padding-bottom: 18px;
}

.lotus-home-section--article-grid {
    padding: 20px 0 75px;
}

.lotus-home-section--lecture-grid {
    padding: 16px 0 75px;
}

.lotus-home-section--popular-grid {
    padding: 59px 0 75px;
}

.lotus-home-article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.lotus-home-article-card {
    min-width: 0;
    padding: 0 12px 3rem;
}

.lotus-home-article-image {
    display: block;
    height: 165px;
    overflow: hidden;
}

.lotus-home-article-image img {
    width: 100%;
    height: 165px;
    object-fit: cover;
}

.lotus-home-article-info h3 {
    margin: 0;
    padding: 1rem 0 .45rem;
    font-family: "Oswald", sans-serif;
    font-size: 20px !important;
    font-weight: 300;
    line-height: 1.25;
}

.lotus-home-article-info h3 a {
    text-decoration: none;
}

.lotus-home-article-author {
    color: #888;
    font-size: 1rem;
    line-height: 1.35;
}

/* =========================================================
   Books
   ========================================================= */

.lotus-home-section--books {
    padding: 75px 1.4rem 14px;
    background: var(--home-bg-books);
}

.lotus-home-feature-grid--books .lotus-home-feature-image {
    display: block;
}

.lotus-home-feature-grid--books img,
.lotus-home-feature-grid--research img {
    width: 80%;
    max-width: 100%;
    height: auto;
}

.lotus-home-feature-grid--books .lotus-home-feature-copy {
    min-height: 7.9rem;
}

/* =========================================================
   Research tools
   ========================================================= */

.lotus-home-section--research {
    padding: 44px 1.4rem 31px;
    background: var(--home-bg-research);
}

.lotus-home-feature-grid--research .lotus-home-feature-card {
    padding: 1.4rem;
}

.lotus-home-feature-grid--research .lotus-home-feature-image {
    display: block;
}

.lotus-home-feature-grid--research img {
    box-sizing: border-box;
    border: 16px solid #1E2122;
}

.lotus-home-feature-grid--research .lotus-home-feature-copy h3 {
    margin-bottom: 2rem;
    padding: 1rem 0 0;
    font-size: 17px !important;
}

.lotus-home-feature-grid--research .lotus-home-feature-copy p {
    padding-top: 1rem;
    color: #BABABA;
    font-size: 1.5rem;
    line-height: 1.3;
}

/* =========================================================
   Memberships
   ========================================================= */

.lotus-home-section--memberships {
    padding: 31px 0;
    background: var(--home-bg);
    border-bottom: 1px solid #D894CC;
}

.lotus-home-membership-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    padding-top: 40px;
}

.lotus-home-membership-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}

.lotus-home-membership-logo img {
    width: auto;
    max-height: 64px;
}

/* =========================================================
   Newsletter
   ========================================================= */

.lotus-home-newsletter {
    padding: 19px 0 34px;
}

.lotus-home-newsletter-row {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    flex-wrap: wrap;
}

.lotus-home-newsletter h3 {
    margin: 0;
    padding: 0;
    color: #f9f9f9;
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 42px;
    text-align: center;
}

/* =========================================================
   Responsive behavior copied from the approved SPPB layout
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {
    .lotus-home-article-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lotus-home-about-grid {
        grid-template-columns: 83.333333% 16.666667%;
    }

    .lotus-home-feature-card {
        padding: 0;
    }

    .lotus-home-tab.is-active::after {
        background-image: none;
    }
}

@media (max-width: 767px) {
    .lotus-home-shell {
        width: calc(100% - 1rem);
        margin: 0 auto;
        padding: 0 6px;
    }

    .lotus-home-showcase {
        display: block;
    }

    .lotus-home-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .lotus-home-tab {
        height: 68px;
        margin: 2px;
        padding: 1.7rem 10px 0;
        border-bottom: 6px solid #595959;
        border-radius: 12px 12px 0 0;
        align-items: flex-start;
    }

    .lotus-home-tab.is-active::after {
        bottom: -3px;
    }

    .lotus-home-panel img {
        transform: none;
        bottom: 0;
    }

    .lotus-home-section--about-title,
    .lotus-home-section--about-copy,
    .lotus-home-section--services,
    .lotus-home-section--article-heading,
    .lotus-home-section--article-grid,
    .lotus-home-section--lecture-grid,
    .lotus-home-section--popular-grid,
    .lotus-home-section--books,
    .lotus-home-section--research,
    .lotus-home-section--memberships {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .lotus-home-about-grid,
    .lotus-home-feature-grid--services,
    .lotus-home-feature-grid--books,
    .lotus-home-feature-grid--research,
    .lotus-home-article-grid,
    .lotus-home-membership-grid {
        grid-template-columns: 1fr;
    }

    .lotus-home-section--books,
    .lotus-home-section--research {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

    .lotus-home-about-text {
        padding-right: 0;
    }

    .lotus-home-about-image {
        margin-top: 1.5rem;
    }

    .lotus-home-article-card {
        padding-left: 0;
        padding-right: 0;
    }

    .lotus-home-article-image {
        height: auto;
    }

    .lotus-home-article-image img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 360px;
        margin: 0 auto;
        object-fit: contain;
    }

    .lotus-home-feature-grid--books img,
    .lotus-home-feature-grid--research img {
        width: auto;
        max-width: 260px;
        height: auto;
        max-height: 320px;
        margin: 0 auto;
        object-fit: contain;
    }

    .lotus-home-heading--action {
        grid-template-columns: minmax(0, 1fr) max-content;
    }

    .lotus-home-membership-logo {
        padding: 1rem;
    }

}

/* Native homepage — remove generic article-page canvas */
body.com_lotushome main.siteBody {
    background: transparent;
    padding: 0;
    margin-top: 0;
}
