/* =========================================================
   C.A.S.A. DA IÚNA
   Sistema de Gestão da Biblioteca
   ========================================================= */

.acervo-cadastro-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cadastro-capa {
    margin-top: 20px;
}

.cadastro-link {
    color: var(--verde-escuro);
    text-decoration: underline;
}

.cadastro-capa img {
    max-width: 150px;
    max-height: 210px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .acervo-cadastro-acoes {
        flex-direction: column;
    }
}

.system-body {
    min-height: 100vh;
    background: #f4f6f8;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.system-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 0 28px;

    background: var(--branco);
    border-bottom: 3px solid var(--verde-iuna);
}

.system-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.system-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.system-brand strong {
    color: var(--azul-profundo);
    font-size: 1.05rem;
}

.system-brand span {
    margin-top: 3px;

    color: var(--verde-escuro);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.system-header-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 8px 15px;

    color: var(--azul-iuna);
    border: 1px solid #dce1e5;
    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 700;
}

.system-header-actions a:hover {
    border-color: var(--verde-iuna);
    color: var(--verde-escuro);
}


/* =========================================================
   ESTRUTURA
   ========================================================= */

.system-layout {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}


/* =========================================================
   MENU LATERAL
   ========================================================= */

.system-sidebar {
    background: var(--azul-profundo);
    padding: 24px 14px;
}

.system-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.system-menu a {
    display: block;

    padding: 10px 14px;

    color: rgba(255, 255, 255, 0.78);
    border-radius: 5px;

    font-size: 0.9rem;
    font-weight: 600;

    transition: 0.2s ease;
}

.system-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--branco);
}

.system-menu a.active {
    background: var(--verde-iuna);
    color: var(--branco);
}

.system-menu-title {
    display: block;

    margin: 22px 14px 7px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.system-main {
    min-width: 0;
    padding: 36px;
}

.system-page-header {
    max-width: 1200px;
    margin: 0 auto;
}

.system-page-header span {
    display: block;

    margin-bottom: 5px;

    color: var(--verde-escuro);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.system-page-header h1 {
    color: var(--azul-profundo);

    font-size: clamp(1.7rem, 2.5vw, 2.25rem);
    line-height: 1.15;
}

.system-page-header p {
    margin-top: 8px;

    color: var(--texto-claro);
    font-size: 0.95rem;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 800px) {

    .system-header {
        height: 68px;
        padding: 0 16px;
    }

    .system-brand img {
        width: 44px;
        height: 44px;
    }

    .system-brand strong {
        font-size: 0.95rem;
    }

    .system-brand span {
        font-size: 0.61rem;
    }

    .system-layout {
        min-height: calc(100vh - 68px);
        grid-template-columns: 1fr;
    }

    .system-sidebar {
        padding: 8px 12px;

        overflow-x: auto;
    }

    .system-menu {
        min-width: max-content;
        flex-direction: row;
        align-items: center;
    }

    .system-menu-title {
        display: none;
    }

    .system-menu a {
        padding: 9px 12px;
        white-space: nowrap;
    }

    .system-main {
        padding: 24px 18px;
    }
}


@media (max-width: 480px) {

    .system-brand span {
        display: none;
    }

    .system-header-actions a {
        padding: 7px 10px;
        font-size: 0.76rem;
    }

    .system-main {
        padding: 22px 15px;
    }
}

/* =========================================================
   OPERAÇÃO DO PAINEL
   Estilos exclusivos do sistema; a identidade vem de site.css.
   ========================================================= */

.dashboard-section {
    max-width: 1200px;
    margin: 28px auto 0;
    padding: 24px;
    background: var(--branco);
    border: 1px solid #e1e6e9;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(36, 45, 115, 0.05);
}

.dashboard-section-header h2 {
    color: var(--azul-profundo);
    font-size: 1.2rem;
    line-height: 1.35;
}

.dashboard-section-header p {
    margin-top: 6px;
    color: var(--texto-claro);
    font-size: 0.9rem;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.dashboard-action {
    min-width: 0;
    min-height: 76px;
    padding: 14px 18px;
    text-align: left;
    font: inherit;
    color: var(--azul-profundo);
    background: var(--cinza-claro);
    border: 1px dashed #c6ced2;
    border-radius: 6px;
    opacity: 1;
    cursor: not-allowed;
}

.dashboard-action span {
    display: block;
    font-weight: 700;
}

.dashboard-action small {
    display: block;
    margin-top: 4px;
    color: var(--texto-claro);
    font-size: 0.8rem;
}

.dashboard-records {
    list-style: none;
    margin-top: 20px;
}

.dashboard-record {
    padding: 18px 0;
    border-top: 1px solid #e1e6e9;
}

.dashboard-record:last-child {
    padding-bottom: 0;
}

.dashboard-record-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.dashboard-record-fields dt {
    margin-bottom: 4px;
    color: var(--texto-claro);
    font-size: 0.75rem;
    font-weight: 700;
}

.dashboard-record-fields dd {
    color: var(--azul-profundo);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.dashboard-code {
    font-weight: 700;
}

.dashboard-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-badge-alert {
    color: #a83e3e;
    background: #fbeeee;
}

.dashboard-badge-today {
    color: var(--azul-profundo);
    background: #eef0fa;
}

.dashboard-empty {
    padding: 18px;
    border-radius: 6px;
    background: var(--cinza-claro);
    color: var(--texto-claro);
    font-size: 0.95rem;
}

@media (max-width: 1050px) {
    .dashboard-record-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard-section {
        padding: 18px;
        margin-top: 20px;
    }

    .dashboard-actions,
    .dashboard-record-fields {
        grid-template-columns: 1fr;
    }

    .dashboard-record-fields {
        gap: 12px;
    }
}

/* =========================================================
   RESERVAS E FORMULÁRIOS OPERACIONAIS
   ========================================================= */

.system-page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.system-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--verde-escuro);
    color: var(--branco);
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.system-page-header-actions > .system-button {
    flex-shrink: 0;
}

.system-button:hover {
    background: var(--azul-profundo);
}

.system-button-secondary {
    background: var(--branco);
    color: var(--azul-profundo);
    border-color: #c6ced2;
}

.system-button-secondary:hover {
    background: var(--cinza-claro);
}

.dashboard-action-link {
    display: block;
    border-style: solid;
    border-color: var(--verde-escuro);
    background: #edf7ef;
    cursor: pointer;
}

.dashboard-action-link:hover {
    background: #e2f1e6;
}

.system-body a:focus-visible,
.system-body button:focus-visible,
.system-form select:focus-visible,
.system-form textarea:focus-visible,
.system-form input:focus-visible {
    outline: 3px solid var(--azul-iuna);
    outline-offset: 3px;
}

.reserva-fields,
.emprestimo-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reserva-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 5px;
    color: var(--verde-escuro);
    background: #edf7ef;
    font-size: 0.85rem;
    font-weight: 700;
}

.system-messages {
    max-width: 1200px;
    margin: 0 auto 24px;
    list-style: none;
}

.system-message {
    padding: 14px 18px;
    border-left: 4px solid var(--verde-escuro);
    border-radius: 6px;
    background: #edf7ef;
    color: var(--verde-escuro);
    overflow-wrap: anywhere;
}

.system-form {
    margin-top: 24px;
}

.system-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.system-form-field {
    min-width: 0;
}

.system-form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--azul-profundo);
    font-weight: 700;
}

.system-form-field select,
.system-form-field textarea,
.system-form-field input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b7c2c8;
    border-radius: 6px;
    background: var(--branco);
    color: var(--texto);
    font: inherit;
    font-size: 1rem;
}

.system-form-field select:disabled {
    background: var(--cinza-claro);
    color: var(--texto-claro);
}

.system-field-help {
    margin-top: 8px;
    color: var(--texto-claro);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.system-form-errors {
    padding: 16px;
    margin-bottom: 24px;
    background: #fbeeee;
    border-left: 4px solid #a83e3e;
    border-radius: 6px;
    color: #a83e3e;
}

.system-form-errors ul,
.system-form .errorlist {
    padding-left: 20px;
}

.system-form .errorlist {
    margin-top: 8px;
    color: #a83e3e;
    font-size: 0.9rem;
}

.system-form [aria-invalid="true"] {
    border-color: #a83e3e;
}

.system-form-actions,
.record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.dashboard-badge-future {
    color: var(--verde-escuro);
    background: #edf7ef;
}

.retirada-details,
.retirada-feedback {
    margin-top: 20px;
}

.retirada-explanation {
    margin-top: 24px;
    padding: 20px;
    border-left: 4px solid var(--verde-escuro);
    border-radius: 6px;
    background: var(--cinza-claro);
    color: var(--azul-profundo);
}

.retirada-explanation h3 {
    font-size: 1rem;
}

.retirada-explanation ul {
    padding-left: 20px;
    margin: 10px 0;
}

.retirada-explanation p {
    color: var(--texto-claro);
}

@media (max-width: 1050px) {
    .reserva-fields,
    .emprestimo-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .system-page-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .reserva-fields,
    .emprestimo-fields,
    .system-form-grid {
        grid-template-columns: 1fr;
    }

    .system-form-actions,
    .record-actions {
        flex-direction: column;
    }
}

/* =========================================================
   INDICADORES DO PAINEL
   ========================================================= */

.dashboard-stats {
    max-width: 1200px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    margin: 30px auto 0;
}

.stat-card {
    position: relative;
    overflow: hidden;

    min-height: 145px;
    padding: 22px;

    background: var(--branco);
    border: 1px solid #e1e6e9;
    border-radius: 8px;

    box-shadow: 0 5px 18px rgba(36, 45, 115, 0.05);
}

.stat-card-link {
    display: block;
}

.stat-card-link:hover {
    border-color: var(--verde-escuro);
}

.stat-card-link:hover .stat-label {
    text-decoration: underline;
}

.stat-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--verde-iuna);
}

.stat-label {
    display: block;

    color: var(--texto-claro);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;

    margin: 7px 0 2px;

    color: var(--azul-profundo);

    font-size: 2.15rem;
    line-height: 1.1;
}

.stat-card small {
    color: var(--texto-claro);
    font-size: 0.8rem;
}

.stat-card-alert::before {
    background: #c94b4b;
}

.stat-card-alert strong {
    color: #a83e3e;
}


@media (max-width: 900px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 520px) {

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    .stat-card {
        min-height: auto;
        padding: 18px 20px;
    }

    .stat-card strong {
        font-size: 1.8rem;
    }
}

/* =========================================================
   ACERVO
   ========================================================= */

.acervo-filtros {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-top: 24px;
    padding: 20px;
    background: var(--cinza-claro);
    border-radius: 8px;
}

.acervo-filtros > div {
    min-width: 0;
}

.acervo-filtros label {
    display: block;
    margin-bottom: 7px;
    color: var(--azul-profundo);
    font-size: 0.82rem;
    font-weight: 700;
}

.acervo-filtros input,
.acervo-filtros select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid #b7c2c8;
    border-radius: 6px;
    background: var(--branco);
    color: var(--texto);
    font: inherit;
}

.acervo-filtros input:focus-visible,
.acervo-filtros select:focus-visible {
    outline: 3px solid var(--azul-iuna);
    outline-offset: 2px;
}

.acervo-filtros-acoes {
    display: flex;
    align-items: center;
    gap: 14px;
}

.acervo-filtros-acoes a {
    color: var(--azul-iuna);
    font-size: 0.86rem;
    font-weight: 700;
}

.acervo-filtros-acoes a:hover {
    text-decoration: underline;
}

.acervo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.acervo-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--branco);
    border: 1px solid #e1e6e9;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(36, 45, 115, 0.05);
}

.acervo-capa {
    height: 230px;
    background: #eef0f3;
}

.acervo-capa img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acervo-sem-capa {
    width: 100%;
    height: 100%;
    min-height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        linear-gradient(
            145deg,
            var(--azul-profundo),
            var(--azul-iuna)
        );
}

.acervo-sem-capa span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.acervo-card-conteudo {
    min-width: 0;
    padding: 20px;
}

.acervo-codigo {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--verde-escuro);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.acervo-card h3 {
    color: var(--azul-profundo);
    font-size: 1.15rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.acervo-card-conteudo > p {
    margin-top: 8px;
    color: var(--texto-claro);
    font-size: 0.86rem;
    line-height: 1.45;
}

.acervo-card-conteudo > p strong {
    color: var(--texto);
}

.acervo-indicadores {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.acervo-indicador {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 700;
}

.acervo-indicador-total {
    background: #eef0fa;
    color: var(--azul-profundo);
}

.acervo-indicador-disponivel {
    background: #edf7ef;
    color: var(--verde-escuro);
}

.acervo-indicador-reservado {
    background: #eef0fa;
    color: var(--azul-profundo);
}

.acervo-indicador-emprestado {
    background: #fff5df;
    color: #8a5a00;
}

.acervo-indicador-indisponivel {
    background: #fbeeee;
    color: #a83e3e;
}

.acervo-grid > .dashboard-empty {
    grid-column: 1 / -1;
}

.acervo-card-conteudo {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.acervo-indicadores {
    margin-bottom: 16px;
}

.acervo-detalhes-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 7px 12px;

    border: 1px solid var(--azul-iuna);
    border-radius: 6px;

    color: var(--azul-iuna);
    background: var(--branco);

    font-size: 0.82rem;
    font-weight: 700;
}

.acervo-detalhes-link:hover {
    color: var(--branco);
    background: var(--azul-profundo);
    border-color: var(--azul-profundo);
}

/* =========================================================
   DETALHE DO LIVRO
   ========================================================= */

.livro-detalhe {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.livro-detalhe-capa {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 9px;
    background: #eef0f3;
}

.livro-detalhe-capa img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.livro-detalhe-sem-capa {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        var(--azul-profundo),
        var(--azul-iuna)
    );
}

.livro-detalhe-sem-capa span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.livro-detalhe-conteudo {
    min-width: 0;
}

.livro-detalhe-conteudo h2 {
    margin-top: 4px;
    color: var(--azul-profundo);
    font-size: 1.65rem;
    line-height: 1.2;
}

.livro-detalhe-subtitulo {
    margin-top: 7px;
    color: var(--texto-claro);
    font-size: 1rem;
}

.livro-detalhe-dados {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin-top: 24px;
}

.livro-detalhe-dados dt {
    margin-bottom: 4px;
    color: var(--texto-claro);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.livro-detalhe-dados dd {
    color: var(--texto);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.livro-detalhe-sinopse {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e1e6e9;
}

.livro-detalhe-sinopse h3 {
    color: var(--azul-profundo);
    font-size: 1rem;
}

.livro-detalhe-sinopse p {
    margin-top: 8px;
    color: var(--texto-claro);
    line-height: 1.65;
}


/* =========================================================
   EXEMPLARES DO LIVRO
   ========================================================= */

.exemplares-lista {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.exemplar-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e1e6e9;
    border-radius: 8px;
    background: var(--cinza-claro);
}

.exemplar-card-cabecalho {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.exemplar-card-cabecalho > div {
    min-width: 0;
}

.exemplar-card-cabecalho > div > span {
    display: block;
    margin-bottom: 3px;
    color: var(--texto-claro);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.exemplar-card-cabecalho strong {
    color: var(--azul-profundo);
    font-size: 1.05rem;
}

.exemplar-situacao {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 700;
}

.exemplar-situacao-disponivel {
    color: var(--verde-escuro);
    background: #e5f5e9;
}

.exemplar-situacao-reservado {
    color: var(--azul-profundo);
    background: #e8ebfa;
}

.exemplar-situacao-emprestado {
    color: #8a5a00;
    background: #fff1cf;
}

.exemplar-situacao-indisponivel {
    color: #a83e3e;
    background: #fbe5e5;
}

.exemplar-dados {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dce2e5;
}

.exemplar-dados dt {
    margin-bottom: 3px;
    color: var(--texto-claro);
    font-size: 0.72rem;
    font-weight: 700;
}

.exemplar-dados dd {
    color: var(--texto);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.exemplar-observacoes {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dce2e5;
}

.exemplar-observacoes strong {
    color: var(--azul-profundo);
    font-size: 0.8rem;
}

.exemplar-observacoes p {
    margin-top: 5px;
    color: var(--texto-claro);
    font-size: 0.85rem;
    line-height: 1.5;
}


/* =========================================================
   DETALHE DO LIVRO — RESPONSIVO
   ========================================================= */

@media (max-width: 800px) {

    .livro-detalhe {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 22px;
    }

    .livro-detalhe-dados {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .exemplares-lista {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 520px) {

    .livro-detalhe {
        grid-template-columns: 1fr;
    }

    .livro-detalhe-capa {
        width: min(210px, 100%);
        margin: 0 auto;
    }

    .exemplar-card-cabecalho {
        flex-direction: column;
    }

    .exemplar-dados {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ACERVO — RESPONSIVO
   ========================================================= */

@media (max-width: 1180px) {

    .acervo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 980px) {

    .acervo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {

    .acervo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {

    .acervo-filtros {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .acervo-filtros-acoes {
        flex-wrap: wrap;
    }
}


@media (max-width: 520px) {

    .acervo-card {
        grid-template-columns: 1fr;
    }

    .acervo-capa,
    .acervo-sem-capa {
        height: 260px;
        min-height: 260px;
    }

    .acervo-card-conteudo {
        padding: 16px;
    }

    .acervo-card h3 {
        font-size: 1rem;
    }

    .acervo-filtros {
        padding: 16px;
    }

    .acervo-filtros-acoes {
        align-items: stretch;
        flex-direction: column;
    }

    .acervo-filtros-acoes .system-button {
        width: 100%;
    }
}
