/*
 * 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__host {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding-bottom: .9rem;
    margin-bottom: .4rem;
    border-bottom: 2px solid var(--tt-border);
}

.tt-poster__host[hidden],
.tt-poster__host-logo[hidden] {
    display: none;
}

.tt-poster__host-logo {
    max-width: 60%;
    max-height: 7rem;
    object-fit: contain;
}

.tt-poster__host-name {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.tt-poster__host-name:empty {
    display: none;
}

/* Com a marca de quem pendura no topo, a do TalentoTec passa a assinatura
   e o QR encolhe um pouco para tudo caber na folha. */
.tt-poster--host .tt-poster__brand {
    font-size: 1.1rem;
}

.tt-poster--host .tt-poster__brand img {
    width: 44px;
    height: 44px;
}

.tt-poster--host .tt-poster__qr {
    width: min(46%, 15rem);
}

.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__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: .85rem 0 .25rem;
    font-weight: 600;
    text-align: left;
}

.tt-poster__list i {
    width: 1.2em;
    color: var(--tt-status-freela);
}

.tt-poster__openings {
    list-style: none;
    padding: 0;
    margin: .6rem 0 .25rem;
    display: grid;
    gap: .35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.tt-poster__opening-kind {
    display: inline-block;
    margin-right: .35rem;
    padding: .05rem .5rem;
    border-radius: 999px;
    background: #e6f4ec;
    color: #14663a;
    font-size: .75rem;
    vertical-align: middle;
}

.tt-poster__lede {
    font-size: 1rem;
    color: var(--tt-text-muted);
    max-width: 36ch;
    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;
    }
}
