/* ── Manual de Identidade ── */

.id-card {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    background: #fff;
    overflow: hidden;
    transition: transform var(--ds-transition), box-shadow var(--ds-transition);
}
.id-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ds-shadow-hover);
}
.id-card .id-card-banner {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.id-card .id-card-banner img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}
.id-card .id-card-body {
    padding: 1.5rem;
}
.id-card .id-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.id-card .id-card-body p {
    color: var(--ds-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.banner-fiesp { background: #E30613; }
.banner-sesi { background: #E84910; }
.banner-senai { background: #004c97; }

/* ── Pagina interna de instituicao ── */
.manual-section {
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}
.manual-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.manual-section h2 i {
    color: var(--ds-primary);
}

.manual-pdf-preview {
    background: var(--ds-surface-alt);
    border: 1px solid var(--ds-line);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
}
.manual-pdf-preview i {
    font-size: 3.5rem;
    color: var(--ds-primary);
    display: block;
    margin-bottom: 1rem;
}
.manual-pdf-preview .pdf-title {
    font-family: var(--ds-font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ds-dark);
    margin-bottom: 0.25rem;
}
.manual-pdf-preview .pdf-meta {
    font-size: 0.8rem;
    color: var(--ds-muted);
    margin-bottom: 1.25rem;
}

/* ── Grid de logos ── */
.logo-grid-item {
    border: 1px solid var(--ds-line);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--ds-transition);
}
.logo-grid-item:hover {
    box-shadow: var(--ds-shadow-hover);
}
.logo-preview {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}
.logo-preview img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}
.logo-preview.bg-light { background: #fff; }
.logo-preview.bg-dark-preview { background: var(--ds-dark); }
.logo-preview.bg-checker {
    background-image:
        linear-gradient(45deg, #eee 25%, transparent 25%),
        linear-gradient(-45deg, #eee 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eee 75%),
        linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}
.logo-grid-info {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--ds-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}
.logo-grid-info .logo-name {
    font-family: var(--ds-font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ds-dark);
}
.logo-grid-info .logo-format {
    font-size: 0.7rem;
    color: var(--ds-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.logo-grid-info .btn-download-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-slate);
    border: 1px solid var(--ds-line);
    background: transparent;
    font-size: 0.9rem;
    transition: all var(--ds-transition);
    cursor: pointer;
}
.logo-grid-info .btn-download-logo:hover {
    background: var(--ds-primary);
    border-color: var(--ds-primary);
    color: #fff;
}

/* ── Instituicao badge ── */
.inst-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--ds-radius-pill);
    font-family: var(--ds-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.inst-badge-fiesp {
    background: rgba(var(--ds-primary-rgb), 0.08);
    color: var(--ds-primary);
}
.inst-badge-sesi {
    background: rgba(var(--ds-sesi-rgb), 0.08);
    color: var(--ds-sesi);
}
.inst-badge-senai {
    background: rgba(var(--ds-senai-rgb), 0.08);
    color: var(--ds-senai);
}

/* ── Paleta de Cores ── */
.color-swatch {
    border: 1px solid var(--ds-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}
.color-swatch-block {
    height: 90px;
}
.color-swatch-info {
    padding: 0.85rem 1rem;
}
.color-swatch-name {
    font-family: var(--ds-font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ds-dark);
    margin-bottom: 0.15rem;
}
.color-swatch-label {
    font-size: 0.7rem;
    color: var(--ds-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.color-swatch-values {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.color-swatch-values span {
    font-size: 0.72rem;
    color: var(--ds-slate);
    font-family: var(--ds-font-mono);
    line-height: 1.5;
}
.color-swatch-values strong {
    font-weight: 700;
    color: var(--ds-dark);
}
.hex-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.btn-copy-hex {
    background: none;
    border: 1px solid var(--ds-line);
    border-radius: 4px;
    padding: 1px 4px;
    cursor: pointer;
    color: var(--ds-muted);
    font-size: 0.7rem;
    line-height: 1;
    transition: all var(--ds-transition);
    display: inline-flex;
    align-items: center;
}
.btn-copy-hex:hover {
    background: var(--ds-primary);
    border-color: var(--ds-primary);
    color: #fff;
}
.btn-copy-hex.copied {
    background: var(--ds-success);
    border-color: var(--ds-success);
    color: #fff;
}
