/* landing page: hero, chart marquees, and the section layout of index.md;
   loaded by the home.html template only */

.dc-hero {
    max-width: 61rem;
    margin: 0 auto;
    padding: 3.2rem 0.8rem 2rem;
    text-align: center;
}

.dc-hero__logo {
    width: 4.8rem;
    height: 4.8rem;
}

.md-typeset .dc-hero__title {
    margin: 0.5rem 0 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--md-default-fg-color);
}

.md-typeset .dc-hero__tagline {
    margin: 0.3rem 0 0;
    font-size: 1rem;
    color: var(--md-default-fg-color--light);
}

.md-typeset .dc-hero__lede {
    max-width: 30rem;
    margin: 0.7rem auto 0;
    font-size: 0.8rem;
    color: var(--md-default-fg-color--light);
}

.dc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

/* --- buttons: slim, 2rem tall --- */

.md-typeset .dc-btn {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.9rem;
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.2rem;
    font-size: 0.725rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--md-default-fg-color);
    transition: border-color 0.15s, filter 0.15s;
}

.md-typeset .dc-btn:hover {
    border-color: var(--md-default-fg-color--lighter);
    color: var(--md-default-fg-color);
}

.md-typeset .dc-btn--primary,
.md-typeset .dc-btn--primary:hover {
    border-color: var(--md-default-fg-color);
    background: var(--md-default-fg-color);
    color: var(--md-default-bg-color);
}

.md-typeset .dc-btn--primary:hover {
    filter: brightness(1.15);
}

/* the install command reuses Material's code block and copy button */
.md-typeset .dc-hero__install pre {
    position: relative;
    margin: 0;
}

.md-typeset .dc-hero__install pre > code {
    display: block;
    height: 2rem;
    padding: 0 2.4rem 0 0.7rem;
    line-height: calc(2rem - 0.1rem);
    font-size: 0.7rem;
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.2rem;
}

.md-typeset .dc-hero__install .md-code__nav {
    top: 0.2rem;
    right: 0.2rem;
    padding: 0.1rem;
}

/* --- marquees: two rows sliding in opposite directions --- */

.dc-gallery {
    display: grid;
    gap: 0.9rem;
    padding: 0.4rem 0 0.6rem;
}

.dc-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.dc-marquee__track {
    display: flex;
    gap: 0.9rem;
    width: max-content;
    animation: dc-slide 75s linear infinite;
}

.dc-marquee__track--reverse {
    animation-direction: reverse;
}

.dc-marquee:hover .dc-marquee__track,
.dc-marquee:focus-within .dc-marquee__track {
    animation-play-state: paused;
}

/* the track holds the tiles twice, so half its width is one full cycle */
@keyframes dc-slide {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dc-marquee__track {
        animation: none;
    }
}

.dc-tile {
    position: relative;
    flex: none;
    overflow: hidden;
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.3rem;
    background: #fff;
    box-shadow: var(--md-shadow-z1);
}

.dc-tile img {
    display: block;
    width: auto;
    height: 7.5rem;
}

.dc-tile__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.3rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    opacity: 0;
    transition: opacity 0.2s;
}

.dc-tile:hover .dc-tile__caption,
.dc-tile:focus-visible .dc-tile__caption {
    opacity: 1;
}

.dc-gallery__note {
    margin: 0.2rem 0.8rem 0;
    font-size: 0.65rem;
    text-align: center;
    color: var(--md-default-fg-color--lighter);
}

.dc-gallery__note a {
    color: var(--md-accent-fg-color);
}

/* --- page content: section headings, cards, and the two-column block --- */

.md-typeset .dc-eyebrow {
    margin-bottom: 0;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--md-default-fg-color--light);
}

.md-typeset .dc-eyebrow + h2 {
    margin: 0.2em 0 0.3em;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--md-default-fg-color);
}

.md-typeset .dc-lede {
    max-width: 34rem;
    margin-top: 0;
    color: var(--md-default-fg-color--light);
}

.md-typeset .dc-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.2rem 0 2.8rem;
}

@media screen and (max-width: 44.984375em) {
    .md-typeset .dc-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 29.984375em) {
    .md-typeset .dc-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

.md-typeset .dc-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 0.9rem 0.8rem;
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.3rem;
    color: var(--md-default-fg-color);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.md-typeset .dc-card:hover {
    text-decoration: none;
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 0 0 0.05rem var(--md-accent-fg-color) inset;
    color: var(--md-default-fg-color);
}

.md-typeset .dc-card svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--md-accent-fg-color);
}

.md-typeset .dc-card h3 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--md-default-fg-color);
}

.md-typeset .dc-card p {
    flex: 1;
    margin: 0;
    font-size: 0.7rem;
    color: var(--md-default-fg-color--light);
}

.md-typeset .dc-card__more {
    font-size: 0.675rem;
    font-weight: 700;
    color: var(--md-accent-fg-color);
}

.md-typeset .dc-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    align-items: start;
    padding-top: 2.4rem;
    border-top: 0.05rem solid var(--md-default-fg-color--lightest);
}

@media screen and (max-width: 59.984375em) {
    .md-typeset .dc-two {
        grid-template-columns: minmax(0, 1fr);
    }
}
