/* ============ Design tokens ============ */
:root{
  --brand-900:#0C2856;
  --brand-800:#143C7D;
  --focus:#99B8FF;
  --ink-700:#5B6473;
  --ink-900:#292B2C;
  --card-border: rgba(12,40,86,.08);
  --shadow-1: 0 8px 24px rgba(0,0,0,.08);
  --shadow-2: 0 14px 32px rgba(12,40,86,.18);
}

/* ============ Navbar ============ */
.navbar-custom{
  background-color: var(--brand-900);
  padding-block: .4rem;
  position: sticky; top:0; z-index:1030;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.navbar-custom .container-fluid{
  max-width: 1200px; margin:0 auto; padding-inline:12px;
  display:flex; align-items:center; justify-content:space-between;
}
.navbar-custom img.logo-esquerda{
  height: 40px; width:auto; object-fit:contain; display:block;
}
.navbar-custom h2{
  font-family:'Jost',sans-serif;
  font-weight:700; letter-spacing:.2px; color:#fff;
  font-size: clamp(18px, 2.2vw, 24px);
}
.navbar-custom img{
  border:none !important; border-radius:0 !important;
  background:transparent !important; box-shadow:none !important;
}

/* ============ Imagens genéricas ============ */
img{ max-width:100%; height:auto; display:block; }

/* ============ Badges / Ícones ============ */
.mlk-type{
  display:inline-block; padding:6px 12px; border-radius:999px;
  background:#EAF2FF; color:var(--brand-900);
  font-weight:600; font-size:.85rem;
}

.lockapp{ color:#B3261E; } .openapp{ color:#1E7D32; }

.mlk-header{
  display: flex;
  align-items: center;
  justify-content: center !important;
  gap: .5rem;
}

/* ============ Card ============ */
.card{
  width:100% !important; height:auto; position:relative;
  background:#fff; color:var(--ink-900);
  border:1px solid var(--card-border); border-radius:8px;
  box-shadow: var(--shadow-1);
  display:flex; flex-direction:column; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: rgba(12,40,86,.18); }
.card:focus-within{ outline:3px solid var(--focus); outline-offset:3px; }

.card-body{ display:flex; flex-direction:column; gap:.5rem; padding:10px; }

/* Título / descrição */
.card-name{
  font:600 1.125rem/1.3 'Jost',sans-serif;
  color:var(--brand-900); text-align:center; margin:.25rem 10px 0;
}
.card-description{
  color:var(--ink-700); font-size:.95rem; line-height:1.4; margin:.25rem 10px .5rem !important;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* Botão primário */
.mlk-btn-azul{
  background:var(--brand-900); color:#fff !important; font-weight:600;
  padding:10px 18px; border-radius:8px; transition: background-color .2s ease, box-shadow .2s ease, transform .05s ease;
}
.mlk-btn-azul:hover{ background:var(--brand-800); box-shadow:0 2px 0 rgba(0,0,0,.08); }
.mlk-btn-azul:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
.mlk-btn-azul:active{ transform: translateY(1px); }

/* Layout dos cards */
.row-cards{ display:flex; justify-content:center; }
.row-cards.row-cols-xxl-3 > *,
.row-cards.row-cols-xl-3  > *{ display:flex; }
.col-card{ max-width:450px; }

/* Oculta rodapé “Atualizado em” */
.card-footer{ display:none !important; }

/* Miniaturas */
.mlk-logo{ width:100%; display:flex; justify-content:center; }
.mlk-logo > img{ height:150px; width:233px; }

/* Filtros e lead */
.container .lead{ color:#4A5568; font-size:1.05rem; margin-bottom:.5rem; }
.container .row.mb-4.g-2{
  background:#fff; border:1px solid var(--card-border); border-radius:10px;
  padding:12px; box-shadow:0 4px 16px rgba(12,40,86,.06);
}

/* Controles */
.form-control, .form-select, .btn{ min-height:42px; }
.form-control:focus, .form-select:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
}

/* Mobile */
@media (max-width: 576px){
  .mlk-btn-azul{ width:100%; }
  .mlk-logo img{ height:110px; width:auto; }
}