/* Komponen kartu mitra (V54): daftar
   ul.mt-grid berisi kartu .mt-kartu. Dipakai halaman Mitra Kami dan <k-partner-card>. Markup: partner-card.js.
   Dimuat setelah dasar.css (token --nk-*) dan sebelum CSS halaman, yang boleh menambah jarak di sekitar daftar. */
/* ---------- the card list: 4 per row (Dub's card size in the 1300 column), 16 px apart, at least 140 px tall (a long name grows the row) ---------- */
.mt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.mt-item{min-width:0}
/* Dub's colours, at the user's request (20 Oct 2026): neutral-50 card, neutral-100 under the pointer, eased in .15s.
   Both greys are off the palette on purpose (cek-gaya lists them). */
.mt-kartu{position:relative;display:flex;align-items:center;justify-content:center;height:100%;min-height:140px;padding:40px 24px 24px;box-sizing:border-box;border-radius:12px;background:#FAFAFA;color:var(--nk-ink);text-align:center;text-decoration:none;transition:background-color .15s cubic-bezier(.4,0,.2,1)}   /* --r-lg */
.mt-kartu:hover{background:#F5F5F5}
.mt-kartu--tautan:focus-visible{outline:3px solid var(--nk-forest);outline-offset:2px}
.mt-kartu__nama{font:600 18px/26px var(--nk-font);letter-spacing:-.01em;text-wrap:balance;overflow-wrap:anywhere}
/* logos: fitted inside a 180 × 64 box, so a square mark and a long wordmark carry about the same weight */
.mt-kartu__logo{display:block;width:100%;max-width:180px;height:64px;object-fit:contain}
/* Dub's pills: 8 px from the corner, 24 px tall, a 5 % ink tint, a 12 px icon and 12 px text */
.mt-kartu__tag{position:absolute;top:8px;right:8px;display:flex;gap:4px;max-width:calc(100% - 16px)}
.mt-kartu__pil{display:inline-flex;align-items:center;min-width:0;height:24px;padding:0 6px;box-sizing:border-box;border-radius:8px;background:rgba(36,48,40,.05);color:var(--nk-ink);font:400 12px/16px var(--nk-font);white-space:nowrap}   /* --r-md */
.mt-kartu__pil svg{flex:none;width:12px;height:12px}
.mt-kartu__teks{min-width:0;margin-left:4px;overflow:hidden;text-overflow:ellipsis}
.mt-kartu__pil--buka{flex:none}
/* the arrow pill's label: hidden, shown under the pointer or on focus (Dub slides it open; here the width switches at
   once and only the text fades in, as motion stays on transform and opacity) */
.mt-kartu__kunjungi{max-width:0;overflow:hidden;opacity:0}
.mt-kartu--tautan:hover .mt-kartu__kunjungi,.mt-kartu--tautan:focus-visible .mt-kartu__kunjungi{max-width:none;margin-right:4px;opacity:1}
html.nk-gerak .mt-kartu__kunjungi{transition:opacity .3s cubic-bezier(.32,.72,0,1)}

/* ---------- smaller screens ---------- */
@media (max-width:1100px){
  .mt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .mt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .mt-kartu{min-height:112px;padding:40px 12px 16px}
  .mt-kartu__nama{font-size:16px;line-height:24px}
  .mt-kartu__logo{max-width:85%;height:48px}
}
