/* TOTOBOARD v3.4.0: only the homepage guarantee cards. */
.tb-v2-home .tb-home-guarantees-v340 { margin-bottom: 26px; }
.tb-v2-home .tb-home-guarantees-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; }
.tb-v2-home .tb-home-guarantees-heading .tb-v2-textlink { white-space:nowrap; }
.tb-v2-home .tb-home-guarantees-grid {
  display:grid;
  grid-template-columns:repeat(var(--tb-home-guarantee-cols,4),minmax(0,1fr));
  gap:16px;
  width:100%;
  align-items:stretch;
}
.tb-v2-home .tb-home-guarantee-card {
  display:flex; flex-direction:column; min-width:0; overflow:hidden;
  border:1px solid rgba(197,155,82,.48); border-radius:12px;
  background:#071d32; color:#f5efe3; text-decoration:none;
  box-shadow:0 7px 20px rgba(14,35,57,.10);
  transition:transform .20s ease,box-shadow .20s ease,border-color .20s ease;
}
.tb-v2-home .tb-home-guarantee-card:hover {
  transform:translateY(-3px); border-color:#dbb56c;
  box-shadow:0 15px 30px rgba(8,26,45,.22);
}
.tb-v2-home .tb-home-guarantee-card:focus-visible { outline:3px solid #d3a85b; outline-offset:3px; }
.tb-v2-home .tb-home-guarantee-image {
  display:flex; align-items:center; justify-content:center; position:relative;
  width:100%; aspect-ratio:1.6/1; background:#0b1e33;
  overflow:hidden;
}
.tb-v2-home .tb-home-guarantee-image img {
  display:block; width:100%; height:100%; object-fit:contain;
  object-position:center; max-width:none; max-height:none;
}
.tb-v2-home .tb-home-guarantee-noimage {
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  width:100%; height:100%; background:radial-gradient(circle at 65% 30%,#173957,#071d32 75%); color:#e8bf74;
}
.tb-v2-home .tb-home-guarantee-noimage b { font:800 clamp(26px,4vw,42px)/1 Georgia,serif; }
.tb-v2-home .tb-home-guarantee-noimage small { margin-top:9px; font-size:9px; letter-spacing:.2em; }
.tb-v2-home .tb-home-guarantee-caption {
  display:flex; align-items:center; gap:7px; min-width:0;
  padding:13px 14px; min-height:50px; box-sizing:border-box;
  border-top:1px solid rgba(220,174,100,.32);
}
.tb-v2-home .tb-home-guarantee-caption strong {
  display:block; color:#faf4eb; font-size:15px; line-height:1.35; font-weight:800;
  min-width:0; overflow-wrap:anywhere;
}
.tb-v2-home .tb-home-guarantee-ad {
  display:inline-flex; align-items:center; flex:none;
  font-size:10px; line-height:1.4; font-weight:700; color:#edc77e;
  border:1px solid rgba(222,181,106,.46); border-radius:4px; padding:2px 5px;
}
.tb-v2-home .tb-home-guarantees-empty {
  padding:22px; border-radius:12px; border:1px solid #dce5ee;
  background:#f5f8fb; color:#49627a; font-size:14px;
}
.tb-v2-home .tb-home-guarantees-empty a { color:#102f4e; font-weight:800; }
@media (max-width:1099px) {
  .tb-v2-home .tb-home-guarantees-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .tb-v2-home .tb-home-guarantees-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .tb-v2-home .tb-home-guarantee-caption { padding:10px; min-height:43px; }
  .tb-v2-home .tb-home-guarantee-caption strong { font-size:13px; }
  .tb-v2-home .tb-home-guarantee-ad { font-size:9px; }
  .tb-v2-home .tb-home-guarantees-heading { align-items:flex-start; }
}
@media (max-width:380px) {
  .tb-v2-home .tb-home-guarantees-heading { flex-direction:column; gap:8px; }
  .tb-v2-home .tb-home-guarantees-grid { gap:8px; }
  .tb-v2-home .tb-home-guarantee-caption { padding:9px; flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) {
  .tb-v2-home .tb-home-guarantee-card { transition:none; }
  .tb-v2-home .tb-home-guarantee-card:hover { transform:none; }
}


/* TOTOBOARD v3.4.1 — compact 6-column homepage guarantee cards.
   Scope: homepage guarantee cards only. The PHP inline custom property specifying
   the number of published companies is intentionally ignored on desktop. */
@media (min-width: 1100px) {
  .tb-v2-home .tb-home-guarantees-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  .tb-v2-home .tb-home-guarantee-card { border-radius: 9px; }
  .tb-v2-home .tb-home-guarantee-caption {
    padding: 9px 9px;
    min-height: 44px;
    gap: 5px;
    flex-wrap: wrap;
    align-content: center;
  }
  .tb-v2-home .tb-home-guarantee-caption strong {
    font-size: 12px;
    line-height: 1.35;
  }
  .tb-v2-home .tb-home-guarantee-ad {
    font-size: 9px;
    padding: 1px 4px;
  }
}
@media (min-width: 901px) and (max-width: 1099px) {
  .tb-v2-home .tb-home-guarantees-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .tb-v2-home .tb-home-guarantees-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .tb-v2-home .tb-home-guarantees-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
