/*
 * YOUTH-ID EU footer + landing disclaimer.
 */

.project-footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    color: var(--muted);
}

.project-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.project-footer-main p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

.project-footer-main img {
    max-width: 220px;
    max-height: 74px;
    object-fit: contain;
}

.project-footer-copy {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: color-mix(in srgb, var(--muted) 82%, #000);
}

.project-footer-app {
    margin-top: auto;
    padding: 24px 40px;
}

.project-footer-auth {
    width: min(920px, calc(100% - 32px));
    margin: auto auto 24px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(143, 83, 39, .08);
}

/*
 * Sticky-bottom layout for short pages.
 * The footer is NOT fixed; it simply sits at the viewport bottom when content is short.
 */
.auth-page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-page-shell .auth-main {
    flex: 1 0 auto;
}

.shell {
    min-height: 100vh;
}

.shell-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.shell-main .content {
    flex: 1 0 auto;
}

/*
 * Landing page layout restoration.
 */
.landing-main {
    min-height: calc(100vh - 92px);
}

.landing-main .hero {
    display: grid !important;
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    width: min(1440px, calc(100% - 96px));
    margin: 0 auto;
    padding: clamp(58px, 8vh, 96px) 0;
}

.landing-main .hero-copy {
    max-width: 680px;
    min-width: 0;
}

.landing-main .hero-copy h1 {
    max-width: 720px;
}

.landing-main .hero-actions {
    margin-bottom: 0;
}

.landing-main .hero-card {
    width: 100%;
    min-width: 0;
    align-self: center;
}

.landing-main .hero-card .post-card {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
}

.landing-disclaimer-box {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    max-width: 760px;
    padding: 18px 20px;
    border: 1px solid rgba(244, 139, 37, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 8px 24px rgba(143, 83, 39, .10);
}

.landing-disclaimer-box p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

.landing-disclaimer-box img {
    max-width: 210px;
    max-height: 74px;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .landing-main .hero {
        grid-template-columns: 1fr;
        width: min(760px, calc(100% - 48px));
        gap: 32px;
    }

    .landing-main .hero-card .post-card {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .project-footer-main,
    .landing-disclaimer-box {
        grid-template-columns: 1fr;
    }

    .project-footer-main img,
    .landing-disclaimer-box img {
        max-width: 190px;
    }

    .project-footer-app {
        padding: 22px 18px;
    }
}

@media (max-width: 560px) {
    .project-footer-auth {
        width: calc(100% - 24px);
        padding: 16px;
    }

    .landing-main .hero {
        width: calc(100% - 32px);
        padding: 42px 0;
    }

    .landing-disclaimer-box {
        padding: 16px;
    }

    .project-footer-main p,
    .landing-disclaimer-box p {
        font-size: 11px;
    }
}
