/* Shared page-shell and footer styling. This file is loaded by the common
   header so authentication and application screens use the same footer. */
.has-application-footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.has-application-footer > main {
    width: 100%;
    flex: 1 0 auto;
}

/* Authentication screens previously occupied the full viewport by themselves.
   Reserve space for the shared footer without making desktop users scroll. */
.has-application-footer .auth-shell {
    min-height: calc(100vh - 92px);
}

.application-feedback {
    width: min(1180px, calc(100% - 40px));
    margin: 18px auto 0;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e3b6ae;
    border-left: 5px solid #a94436;
    border-radius: 9px;
    background: #fff3f1;
    color: #7f2e25;
}

.application-feedback strong,
.application-feedback p {
    display: block;
    margin: 0;
}

.application-feedback p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
}

.application-feedback button {
    padding: 0 3px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.application-feedback form {
    margin: 0;
}

.application-footer {
    flex: 0 0 auto;
    border-top: 1px solid #ffffff17;
    background: var(--navy, #061925);
    color: #ffffffa6;
}

.application-footer__inner {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    padding: 22px clamp(24px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(300px, 1.35fr) minmax(230px, .9fr);
    align-items: center;
    gap: 32px;
}

.application-footer__identity,
.application-footer__legal {
    display: grid;
    gap: 4px;
}

.application-footer__identity strong {
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.application-footer__identity strong span {
    color: var(--lime, #33f1e1);
}

.application-footer small,
.application-footer p {
    margin: 0;
    font-size: 10px;
    line-height: 1.55;
}

.application-footer p {
    text-align: center;
}

.application-footer__legal {
    text-align: right;
}

.application-footer__legal strong {
    font-size: 21px;
    line-height: 1;
    letter-spacing: -.04em;
}

.kinfour-wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.kinfour-wordmark > svg {
    width: 31px;
    height: 31px;
    fill: var(--lime, #33f1e1);
}

.kinfour-wordmark > span {
    display: grid;
    justify-items: start;
    gap: 3px;
}

.kinfour-wordmark__kin {
    color: #fff;
}

.kinfour-wordmark__four {
    color: var(--lime, #33f1e1);
}

.kinfour-wordmark > span > small {
    color: #ffffff9e;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .21em;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .application-footer__inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .application-footer p,
    .application-footer__legal {
        text-align: left;
    }

    .kinfour-wordmark {
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    .has-application-footer .auth-shell {
        min-height: calc(100vh - 164px);
    }
}

@media print {
    .application-feedback,
    .application-footer {
        display: none !important;
    }
}
