/*
 * Cartaz institucional.
 *
 * A folha é A4 em proporção e imprime pelo diálogo do navegador — sem PDF,
 * sem biblioteca, sem servidor a gerar nada. Quem imprime é uma secretaria
 * de curso num computador qualquer, e a coisa tem de sair certa à primeira.
 */

.tt-poster-page__intro {
    max-width: 46rem;
    margin-bottom: 1.5rem;
}

.tt-poster-form {
    margin-top: 1rem;
}

.tt-poster {
    width: min(100%, 42rem);
    aspect-ratio: 1 / 1.414;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    background: #fff;
    color: var(--tt-navy);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .1);
}

.tt-poster__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.tt-poster__brand strong {
    color: var(--tt-accent);
    font-weight: 800;
}

.tt-poster__kicker {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--tt-status-freela);
    margin: .5rem 0 0;
}

.tt-poster__headline {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: .5rem 0 0;
    text-wrap: balance;
}

.tt-poster__lede {
    font-size: 1rem;
    color: var(--tt-text-muted);
    max-width: 30ch;
    margin: .25rem 0 1rem;
}

.tt-poster__qr {
    width: min(58%, 19rem);
    height: auto;
}

.tt-poster__scan {
    font-weight: 700;
    margin: .5rem 0 0;
}

.tt-poster__url {
    font-size: .9rem;
    color: var(--tt-text-muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.tt-poster__footer {
    font-size: .75rem;
    color: var(--tt-text-muted);
    margin: auto 0 0;
}

.tt-poster-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.5rem;
}

/* Na impressão fica só o cartaz: nem cabeçalho, nem rodapé, nem formulário. */
@media print {
    body > *:not(main),
    .tt-poster-page__intro,
    .tt-poster-page__actions,
    .tt-impersonation-bar {
        display: none !important;
    }

    .tt-poster {
        width: 100%;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        page-break-inside: avoid;
    }

    @page {
        size: A4;
        margin: 12mm;
    }
}
