:root {
    --brand: #583736;
    --brand-2: #8a5350;
    --accent: #b2a7a7;
    --ink: #2b2422;
    --muted: #5f5757;
    --line: #e3d9d8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Sora", "Montserrat", Arial, sans-serif;
    color: var(--ink);
    background: #f2ecec;
    margin: 0;
    line-height: 1.5;
}

.p-wrap {
    max-width: 820px;
    margin: 0 auto 40px;
    background: #fff;
    padding: 28px 34px;
    box-shadow: 0 12px 40px rgba(43, 24, 23, 0.12);
}

/* Barra de ações (somente tela) */
.p-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.p-btn {
    background: linear-gradient(130deg, var(--brand), var(--brand-2));
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.3rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.p-btn.sec {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--line);
}

/* Capa */
.p-cover {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--brand);
}

.p-cover img {
    width: 240px;
    max-width: 70%;
}

.p-tagline {
    color: var(--muted);
    font-size: 1.02rem;
    margin: 6px 0 0;
}

.p-cover .p-quick {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--brand);
    font-weight: 600;
}

h2.p-h {
    color: var(--brand);
    border-left: 5px solid var(--accent);
    padding-left: 10px;
    margin: 22px 0 10px;
    font-size: 1.2rem;
}

.p-lead {
    color: var(--muted);
    margin: 0 0 8px;
}

.p-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.p-grid3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.p-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.p-card h3 {
    margin: 0.1rem 0 0.2rem;
    color: var(--brand);
    font-size: 0.98rem;
}

.p-card p {
    margin: 0.2rem 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.p-media {
    width: 100%;
    height: 108px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.p-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-2);
    background: rgba(138, 83, 80, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 2px;
}

.p-tags {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 4px;
}

.p-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.p-chips span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.78rem;
    color: var(--ink);
}

ul.p-areas {
    columns: 2;
    column-gap: 26px;
    font-size: 0.84rem;
    color: var(--muted);
    margin: 0;
    padding-left: 18px;
}

ul.p-areas li {
    break-inside: avoid;
    margin-bottom: 2px;
}

.p-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: center;
}

.p-logos img {
    width: 100%;
    height: 42px;
    object-fit: contain;
    filter: grayscale(1);
}

.p-contact {
    margin-top: 22px;
    border-top: 3px solid var(--brand);
    padding-top: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.p-contact strong {
    color: var(--brand);
}

/* ===== Impressão ===== */
@page {
    size: A4;
    margin: 13mm;
}

@media print {
    body {
        background: #fff;
    }

    .p-toolbar {
        display: none;
    }

    .p-wrap {
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .p-card,
    .p-cover,
    .p-contact,
    .p-logos {
        break-inside: avoid;
    }

    h2.p-h {
        break-after: avoid;
    }

    .p-media {
        height: 96px;
    }

    /* Garante impressão das cores/imagens de fundo */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
