/*
 * Saanraan public module layer.
 * Owns the initial public screen styles only.
 */

.public-home {
    background: transparent;
    color: var(--sr-text, var(--text-strong, #20242a));
    width: 100%;
    display: grid;
    place-items: center;
    padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

.public-home-hero {
    width: min(56rem, 100%);
    display: grid;
    gap: 1.75rem;
    justify-items: center;
    text-align: center;
}

.public-home-module-links {
    width: min(56rem, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

.public-home-hero > p {
    color: var(--public-ui-muted);
    font-weight: var(--font-weight-normal);
    max-width: 42rem;
}

.public-home-module-card {
    min-height: 13rem;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 1.35rem;
    color: var(--sr-text, var(--text-strong, #20242a));
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    transition: color .18s ease;
}

.public-home-module-card:hover .public-home-module-card-title,
.public-home-module-card:focus-visible .public-home-module-card-title {
    text-decoration: underline;
    text-underline-offset: .12em;
}

.public-home-module-card:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--sr-primary, #243b5a) 24%, transparent);
    outline-offset: 3px;
}

.public-home-module-card-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-home-module-card-title {
    color: var(--sr-text, var(--text-strong, #20242a));
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.02;
    word-break: keep-all;
}

@media (max-width: 767px) {
    .public-home-module-links {
        grid-template-columns: 1fr;
    }

    .public-home-module-card {
        min-height: 9rem;
    }
}
