:root{--yellow:#f4b000;--ink:#121212;--muted:#595959;--paper:#f9f9f9}*{box-sizing:border-box}body{margin:0;color:var(--ink);background-color:#faf9f6;background-image:linear-gradient(#1212120b 1px,transparent 1px),linear-gradient(90deg,#1212120b 1px,transparent 1px);background-size:36px 36px;font-family:Montserrat,Arial,sans-serif}.topbar{background:var(--ink);border-bottom:4px solid var(--yellow);color:#fff;padding:19px max(24px,calc((100vw - 1100px)/2));display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{color:#fff;font-weight:900;font-size:27px;text-decoration:none}.brand span{color:var(--yellow)}.topbar>span{font-size:10px;font-weight:800;letter-spacing:1px}.shell{max-width:1100px;margin:38px auto;padding:0 22px 60px}h1{font-size:clamp(22px,4vw,34px);font-weight:900;text-transform:uppercase;margin:0 0 8px}h2{font-size:18px;margin:0 0 16px;text-transform:uppercase}.muted{color:var(--muted);line-height:1.6}.panel{background:white;border:2px solid var(--ink);border-radius:12px;box-shadow:6px 6px 0 var(--yellow);padding:28px;margin:28px 0}.narrow{max-width:520px;margin:35px auto}.field{display:block;margin:16px 0;font-weight:800;text-transform:uppercase;font-size:11px}input,select{display:block;width:100%;border:2px solid #222;border-radius:6px;padding:13px;margin-top:7px;font:500 14px Montserrat,Arial,sans-serif;background:white}input[type=checkbox]{width:auto;display:inline-block}.btn{background:var(--yellow);color:var(--ink);border:2px solid var(--ink);border-radius:6px;padding:12px 17px;cursor:pointer;display:inline-block;font:800 12px Montserrat,Arial,sans-serif;text-decoration:none;text-transform:uppercase}.btn-dark{background:var(--ink);color:var(--yellow)}.btn-small{padding:8px 10px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px}.tile{background:#fff;border:2px solid #121212;border-radius:10px;box-shadow:4px 4px 0 #121212;padding:21px;min-height:124px}.tile h2{font-size:15px;line-height:1.4}.logo{max-width:120px;max-height:65px;object-fit:contain}.client-head{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.pill{font-weight:800;font-size:10px;background:#fff2c2;border:1px solid #121212;border-radius:5px;padding:5px 7px}.message{padding:12px;border-radius:5px;background:#fff3bd;border:1px solid #ab7f00;margin:18px 0}.error{background:#ffe1e1;border-color:#b42323}table{border-collapse:collapse;width:100%;font-size:12px}td,th{text-align:left;border-bottom:1px solid #ddd;padding:10px;overflow-wrap:anywhere}th{text-transform:uppercase}.overflow{overflow-x:auto}@media(max-width:600px){.topbar{padding:16px}.topbar>span{font-size:9px;text-align:right}.panel{padding:18px}.shell{margin:24px auto}}

/* Cabeçalho corrigido - seletores isolados do restante do layout; o estilo crítico também está no bootstrap.php */
.guia-portal-header{background:#121212;color:#fff;border-bottom:3px solid #f4b000;padding:12px 20px}
.guia-portal-header__inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.guia-portal-header__brand{display:flex;align-items:center;gap:18px;min-width:0}
.guia-portal-header__logo{display:flex;align-items:center;width:126px;max-width:126px;height:55px;overflow:hidden;flex:none}
.guia-portal-header__logo img{display:block;width:126px;max-width:126px;height:55px;max-height:55px;object-fit:contain;filter:brightness(0) invert(1)}
.guia-portal-header__info{display:flex;flex-direction:column;gap:3px;font-size:10px;font-weight:600;line-height:1.4;color:#f6f6f6;overflow-wrap:anywhere}
.guia-portal-header__info strong{font-size:12px;color:#fff}
.guia-portal-header__nav{display:flex;align-items:center;justify-content:flex-end;margin-left:auto;gap:10px;flex-wrap:wrap}
.guia-portal-header__nav a{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:8px 12px;background:#f4b000;color:#121212;border:2px solid #f4b000;border-radius:5px;text-decoration:none;text-transform:uppercase;font-size:10px;font-weight:800;text-align:center}
.guia-portal-header__nav a:hover{background:#fff;border-color:#fff}
@media(max-width:750px){.guia-portal-header{padding:12px 15px}.guia-portal-header__inner{align-items:flex-start}.guia-portal-header__brand{gap:10px;width:100%}.guia-portal-header__logo,.guia-portal-header__logo img{width:100px;max-width:100px;height:46px;max-height:46px}.guia-portal-header__info{font-size:9px}.guia-portal-header__info strong{font-size:10px}.guia-portal-header__nav{width:100%;margin-left:0;justify-content:flex-start}}
@media(max-width:410px){.guia-portal-header__brand{flex-direction:column;align-items:flex-start}.guia-portal-header__nav a{flex:1}}

/* Acervo: nomes longos ficam dentro dos cards, sem alterar a identidade visual. */
.grid>.tile{min-width:0;display:flex;flex-direction:column;gap:10px;overflow-wrap:anywhere;word-break:break-word}
.grid>.tile h2{min-width:0;margin:0;overflow-wrap:anywhere;word-break:break-word}
.grid>.tile>.actions{margin-top:auto;align-items:stretch}
.grid>.tile>.actions .btn{max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){.grid{grid-template-columns:minmax(0,1fr)}}

/* Bloco de identificação do cliente: logo maior e título mais próximo do subtítulo. */
.client-head {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.client-head > .logo {
    display: block;
    flex: 0 0 auto;
    width: 185px;
    max-width: min(185px, 100%);
    height: 100px;
    max-height: 100px;
    object-fit: contain;
}
.client-head > div {
    display: flex;
    flex: 1 1 260px;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.client-head > div > .muted {
    margin: 0;
    line-height: 1.2;
}
.client-head > div > h2 {
    margin: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .client-head {
        gap: 12px;
    }
    .client-head > .logo {
        width: 155px;
        max-width: min(155px, 100%);
        height: 82px;
        max-height: 82px;
    }
    .client-head > div {
        flex-basis: 190px;
    }
}

/* ===== ACERVO EM LISTA — somente o Mapa Estratégico ===== */
.acervo-panel{padding:24px 26px}
.acervo-header h2{margin:0 0 4px}
.acervo-header>.muted{margin:0 0 16px;font-size:13px}
.acervo-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 16px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.acervo-breadcrumbs a{color:#121212;text-underline-offset:3px}
.acervo-current{font-weight:800}
.acervo-search-label{display:block;font-weight:800;font-size:11px;text-transform:uppercase;margin-bottom:6px}
.acervo-search{display:block;width:100%;margin:0 0 14px;min-height:43px;border:1.5px solid #121212;border-radius:6px;padding:10px 12px;font:500 13px Montserrat,Arial,sans-serif;background:#fff;outline-offset:3px}
.acervo-list{border:2px solid #121212;border-radius:9px;background:#fff;overflow:hidden}
.acervo-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:15px 16px;border-bottom:1px solid #e5e5e5;color:#121212;text-decoration:none;background:#fff}
.acervo-row:last-child{border-bottom:0}
.acervo-row-folder{cursor:pointer;transition:background-color .15s ease}
.acervo-row-folder:hover,.acervo-row-folder:focus-visible{background:#fff9e8}
.acervo-row:focus-visible{outline:3px solid #b98600;outline-offset:-3px}
.acervo-icon{flex:0 0 28px;width:28px;text-align:center;font-size:23px;line-height:1.2}
.acervo-row-details{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.acervo-row-details strong{font-size:12px;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
.acervo-row-details small{font-size:11px;color:#666;line-height:1.35}
.acervo-row-open{flex:0 0 auto;margin-left:auto;font-size:11px;font-weight:800;text-transform:uppercase;white-space:nowrap}
.acervo-row-open span{font-size:18px;vertical-align:middle;margin-left:5px}
.acervo-row-actions{display:flex;flex:0 0 auto;align-items:center;gap:7px;margin-left:auto}
.acervo-row-actions .btn{font-size:10px;padding:8px 10px;white-space:nowrap}
.acervo-restriction{max-width:190px;font-size:10px;line-height:1.4;color:#555}
.acervo-empty{font-size:12px;margin:16px 0 4px}
.acervo-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}
.acervo-pagination .muted{font-size:11px;margin:0}
.acervo-loading{margin:14px 0 0;padding:9px 12px;border-radius:6px;background:#fff2c2;border:1px solid #b98600;font-size:12px;font-weight:700}
.acervo-opening{opacity:.65;cursor:progress}
.acervo-panel [hidden]{display:none!important}
@media(max-width:600px){
  .acervo-panel{padding:17px 15px}
  .acervo-row{padding:13px 10px;gap:9px;flex-wrap:wrap}
  .acervo-icon{flex-basis:24px;width:24px;font-size:20px}
  .acervo-row-details{flex:1 1 calc(100% - 40px)}
  .acervo-row-open{margin-left:33px;white-space:normal}
  .acervo-row-actions{margin:2px 0 0 33px;flex-wrap:wrap}
  .acervo-row-actions .btn{min-height:36px}
  .acervo-restriction{margin-left:33px;max-width:none}
}

/* GUIA | Acervo em lista: layout compacto, links sem estilo padrao e adaptacao mobile */
.acervo-panel .acervo-header{margin-bottom:18px}
.acervo-panel .acervo-header h2{font-size:18px;line-height:1.3;margin:0 0 6px}
.acervo-panel .acervo-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:10px 12px;border-radius:7px;background:#f5f5f5;font-size:12px;line-height:1.5}
.acervo-panel .acervo-breadcrumbs a{color:#121212!important;text-decoration:none!important;font-weight:600}
.acervo-panel .acervo-breadcrumbs a:hover{text-decoration:underline!important}
.acervo-panel .acervo-search-label{margin:0 0 7px;display:block;font-size:11px;font-weight:800;text-transform:uppercase}
.acervo-panel input.acervo-search{box-sizing:border-box;width:100%;min-height:46px;margin:0 0 18px;padding:12px 14px;border:1.5px solid #121212;border-radius:7px;background:#fff;font-size:13px}
.acervo-panel .acervo-list{display:block;overflow:hidden;border:1.5px solid #121212;border-radius:10px;background:#fff}
.acervo-panel .acervo-row{box-sizing:border-box;display:flex;align-items:center;gap:14px;width:100%;min-width:0;min-height:70px;margin:0;padding:12px 16px;border:0;border-bottom:1px solid #e9e9e9;border-radius:0;background:#fff;color:#121212!important;text-decoration:none!important;box-shadow:none!important;white-space:normal;transition:background-color .15s ease}
.acervo-panel .acervo-row:last-child{border-bottom:0}
.acervo-panel a.acervo-row-folder:link,.acervo-panel a.acervo-row-folder:visited,.acervo-panel a.acervo-row-folder:hover,.acervo-panel a.acervo-row-folder:active{color:#121212!important;text-decoration:none!important}
.acervo-panel .acervo-row-folder:hover,.acervo-panel .acervo-row-folder:focus-visible{background:#fff8e4}
.acervo-panel .acervo-row:nth-child(even){background:#fcfcfb}
.acervo-panel .acervo-icon{display:flex;flex:0 0 42px;align-items:center;justify-content:center;width:42px;height:42px;border-radius:9px;background:#fff4d3;color:#a97500;font-size:22px;line-height:1}
.acervo-panel .acervo-row-file .acervo-icon{background:#f2f2f2;color:#444}
.acervo-panel .acervo-row-details{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0;max-width:100%}
.acervo-panel .acervo-row-details strong{display:block;min-width:0;color:#121212!important;font-size:12px;line-height:1.45;font-weight:800;overflow-wrap:anywhere;word-break:normal;text-decoration:none!important}
.acervo-panel .acervo-row-details small{display:block;color:#777;font-size:11px;line-height:1.4}
.acervo-panel .acervo-row-open{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:auto;color:#121212;font-size:11px;font-weight:800;text-transform:uppercase;text-decoration:none!important;white-space:nowrap}
.acervo-panel .acervo-row-open span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;background:#f4b000;font-size:22px;line-height:1}
.acervo-panel .acervo-row-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.acervo-panel .acervo-row-actions a.btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:35px;margin:0;padding:8px 11px;border:1.5px solid #121212;border-radius:5px;background:#f4b000;color:#121212!important;font-size:10px;line-height:1.2;font-weight:800;text-decoration:none!important;white-space:nowrap;box-shadow:none}
.acervo-panel .acervo-row-actions a.btn-dark{background:#121212;color:#f4b000!important}
.acervo-panel .acervo-row-actions a.btn:hover{filter:brightness(.92)}
.acervo-panel .acervo-restriction{font-size:11px;color:#555}
.acervo-panel .acervo-row[hidden],.acervo-panel .acervo-empty[hidden],.acervo-panel .acervo-loading[hidden]{display:none!important}
@media(max-width:650px){
 .acervo-panel{padding:17px 14px}
 .acervo-panel .acervo-row{gap:10px;min-height:62px;padding:12px 11px;flex-wrap:wrap}
 .acervo-panel .acervo-icon{flex-basis:36px;width:36px;height:36px;font-size:19px}
 .acervo-panel .acervo-row-details{flex:1 1 calc(100% - 50px)}
 .acervo-panel .acervo-row-open{margin-left:46px;width:calc(100% - 46px);justify-content:space-between;padding:0 0 0 0}
 .acervo-panel .acervo-row-actions{margin:4px 0 0 46px;width:calc(100% - 46px);justify-content:flex-start;flex-wrap:wrap}
 .acervo-panel .acervo-row-actions a.btn{min-height:38px}
 .acervo-panel .acervo-restriction{margin:4px 0 0 46px}
}
