
/*
 * HEADER
 * Contains the giant PHP and our 3x lead elements
 */
.landing-hdr {
    margin-bottom: 3em;
}

@media (min-width: 901px) {
    .landing-hdr {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1.5em;
    }
}

@media (max-width: 900px) {
    .landing-hdr {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }
}

.landing-hdr-block {
    padding: 1em;
}

.landing-hdr-block + .landing-hdr-block {
    border-top: 1px dashed #4a5568;
}

.landing-hdr-title {
    font-size: larger;
    margin-bottom: 0.25em;
}

.landing-hdr-tagline {
    margin-bottom: 0;
    font-size: 24px;
}

.landing-hdr-content {

}

/*
 * LAST RELEASE HERO CARD
 */

.landing-lrel-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.landing-lrel-card-inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    gap: 1em;
    padding: 1em;
}

.landing-lrel-img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    object-position: center center;
    margin-top: 1em;
    margin-bottom: 1em;
}

.gst-light .landing-lrel-img {
    background: #aaaaaa;
    padding: 1em;
    border-radius: var(--card-radius);
    box-sizing: border-box;
}

@media (max-width: 400px) {
    .landing-lrel-img {
        height: 40px;
        margin-top: 0.25em;
        margin-bottom: 0.25em;
    }
}

.landing-lrel-featuring {
    font-weight: bold;
    margin-bottom: 0.25em;
}

.landing-lrel-latest {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    text-align: center;
}

.landing-lrel-features {
    margin-bottom: 0;
}

.landing-lrel-label {
    display: inline-flex;
    padding: 0.25em 0.75em;
    border-radius: 0.5em;
    font-size: 90%;
}

.landing-lrel-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    width: 100%;
}

/*
 * CARD LAYOUT
 */

.landing-cc-card-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    overflow: hidden;
}

.landing-cc-card-content {
    padding: 1.5em;
    flex: 1 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.landing-cc-card-title {
    font-size: 125%;
    font-weight: 500;
}

.landing-cc-card-body {
    flex: 1 1;
}

/*
 * LAST RELEASE HERO CARD
 */

.landing-lrv {
    overflow: hidden;
    position: relative;
    background: #4F5B93;
    border-radius: var(--card-radius);
    margin: 0 auto 2em;
    width: min(1440px, 100%);
    border: 1px solid #555555;
}

.landing-lrv-animate {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
    .landing-lrv-animate {
        display: none;
    }
}

.landing-lrv-inner-padding {
    position: relative;
}

@media (max-width: 900px) {
    .landing-lrv-inner-padding {
        padding: 1em;
    }

    .landing-lrv-inner {
        display: flex;
        flex-direction: column;
        gap: 2em;
    }
}

@media (min-width: 901px) {
    .landing-lrv-inner-padding {
        padding: 2em;
    }

    .landing-lrv-inner {
        display: grid;
        gap: 2em;
        align-items: center;
        grid-template-columns: 1fr 1fr;
    }
}

.landing-lrv-highlights {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.landing-lrv-highlight {
    background: #44444477;
    color: white;
    border-radius: 0.5em;
    padding: 1em;
    font-size: smaller;
}

.landing-lrv-highlight-title {
    font-weight: 500;
}

/*
 * ECOSYSTEM BANNER
 * Full-width banner intended to promote ecosystem components as a single element
 */

.gst-primary-banner {
    display: flex;
    flex-direction: row;
    gap: 2em;
    align-items: center;
    padding: 0 5em;
    color: var(--primary-container-color);
}

@media (max-width: 700px) {
    .gst-primary-banner {
        flex-direction: column;
        padding: 0;
        gap: 1em;
        text-align: center;
    }
}

.gst-primary-text {
    font-size: 24px;
    line-height: 1.3;
}

/*
 * SECTIONS
 */


.landing-section-header {
    font-size: 18px;
    text-align: center;
    text-decoration: none !important;
    margin: 0;
    padding: 0;
    color: var(--section-title);
    line-height: 1.3;
    font-weight: 500;
}


/*
 * MICRO LABEL
 * Key-Value label intended to be used for versions
 */

.landing-ml {
    font-size: smaller;
    border-radius: 0.75em;
    border: 1px solid #77777755;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.landing-ml-label {
    padding: 0.15em 0.5em;
    background: #00000044;
    border-right: 1px solid #777777;
}

.landing-ml-value {
    padding: 0.15em 0.5em;
}

/*
 * CARD BUTTON
 */

.landing-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;

    /* "Chunk" styling: chunky padding and thick borders */
    padding: 14px 32px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    cursor: pointer;

    /* Colors & Border */
    color: #111111 !important;
    background-color: #ffffff;
    border: 2px solid #111111;
    border-radius: 0.5em;

    /* Smooth transitions for hover/active states */
    transition: all 0.2s ease-in-out;
}

@media (max-width: 600px) {
    .landing-card-btn {
        padding: 4px 16px !important;
    }
}

/* Hover state */
.landing-card-ovh:hover .landing-card-btn,
.landing-card-ovh:active .landing-card-btn,
.landing-card-btn:hover {
    color: #ffffff !important;
    background-color: #222222;
    /* Shifts the button slightly and expands shadow for a "lifting" effect */
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px #000000;
    border-color: transparent;
}

/* Focus state for accessibility */
.landing-card-btn:focus-visible {
    outline: 4px solid #818cf8;
}

#foundation-sponsor-carousel {
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}
