/* ------------------------------------------------------------ */
/* Docs section landing - palette                                */
/* ------------------------------------------------------------ */

.docs-section-landing {
    --zato-docs-landing-card-ring: rgba(26, 31, 54, 0.12);
    --zato-docs-landing-card-ring-hover: rgba(26, 31, 54, 0.22);
    --zato-docs-landing-card-lift: rgba(26, 31, 54, 0.08);
    --zato-docs-landing-card-order-background: rgba(26, 31, 54, 0.08);
}

/* ------------------------------------------------------------ */
/* Docs section landing - shared                                 */
/* ------------------------------------------------------------ */

/* The emphasized links - the hero arrow link and the card titles. */

.docs-section-landing-hero-link,
.docs-section-landing-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--zato-docs-link);
}

/* Landing links keep their color, the global visited-link color must not apply here. */

.docs-section-landing-hero-link:visited {
    color: var(--zato-docs-link);
}

.docs-section-landing-card:visited {
    color: var(--zato-docs-text);
}

/* ------------------------------------------------------------ */
/* Docs section landing - lead                                   */
/* ------------------------------------------------------------ */

/* The host page styles paragraphs with stronger selectors and !important,
   so the landing rules have the same weight. */

div.docs-content .docs-section-landing-lead {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px !important;
    color: var(--zato-docs-heading);
}

/* ------------------------------------------------------------ */
/* Docs section landing - hero                                   */
/* ------------------------------------------------------------ */

.docs-section-landing-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--zato-docs-divider);
}

.docs-section-landing-hero-left {
    flex: 1 1 auto;
    margin-bottom: 40px;
}

.docs-section-landing-hero-right {
    flex: 0 0 500px;
    width: 500px;
}

.docs-section-landing-hero-right .shot-block {
    margin: 0;
}

/* The hero code window itself comes from landing-variables.css,
   code-widget.css and typing-animation.css - here only its fit into the
   hero slot: a fixed height so the typing does not grow the layout, and
   a solid background because the slot sits on a light page rather than
   on the dark landing backdrop the translucent default is made for. */
/* The card sizes itself to its lines - the typing script inserts every
   line element up front with fixed line heights, so the height is stable
   from the first frame and needs no reservation. */
.docs-section-landing-hero-right .landing-hero-code {
    width: 28.8rem;
    background: var(--landing-bg-dark-card);
    text-align: left;
}

div.docs-content .docs-section-landing-hero-header {
    margin: 0 0 12px;
    padding: 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--zato-docs-heading);
}

div.docs-content .docs-section-landing-hero-text {
    max-width: 34rem;
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 24px;
    color: var(--zato-docs-text);
}

.docs-section-landing-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* ------------------------------------------------------------ */
/* Docs section landing - hero aside                             */
/* ------------------------------------------------------------ */

/* An optional block a landing may place beside its hero. */

div.docs-content .docs-section-landing-aside-lead {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 24px;
    color: var(--zato-docs-text);
}

div.docs-content .docs-section-landing-aside-note {
    margin: 0;
    padding: 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--zato-docs-text);
    box-shadow: 0 0 0 1px var(--zato-docs-landing-card-ring);
}

/* ------------------------------------------------------------ */
/* Docs section landing - card groups                            */
/* ------------------------------------------------------------ */

div.docs-content .docs-section-landing-group-header {
    margin: 0;
    padding: 32px 0 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--zato-docs-heading);
}

.docs-section-landing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.docs-section-landing-card {
    display: block;
    padding: 20px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 0 0 1px var(--zato-docs-landing-card-ring);
    transition: box-shadow 0.15s;
    transition-delay: 0s;
}

.docs-section-landing-card:hover {
    text-decoration: none;
    box-shadow: 0 0 0 1px var(--zato-docs-landing-card-ring-hover), 0 4px 10px var(--zato-docs-landing-card-lift);
    transition-delay: 0.12s;
}

.docs-section-landing-card-title {
    display: block;
}

/* An optional order number a card may show when its group is a sequence. */

.docs-section-landing-card-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    background: var(--zato-docs-landing-card-order-background);
    color: var(--zato-docs-heading);
}

.docs-section-landing-card-description {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--zato-docs-text);
}

@media (max-width: 1399px) {
    .docs-section-landing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .docs-section-landing-hero {
        flex-direction: column;
    }

    .docs-section-landing-hero-right {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .docs-section-landing-cards {
        grid-template-columns: 1fr;
    }
}
