/* Security Tiles – Full Page Styles */
:root {
  --stf-gap: 1rem;
  --stf-radius: 18px;
  --stf-shadow: 0 10px 30px rgba(0,0,0,.18);
  --stf-accent: #0066cc;
}

.stf-search { margin-bottom: 1rem; }
.stf-search-input { width: 100%; padding: .75rem 1rem; border: 1px solid #e2e8f0; border-radius: 12px; }

.stf-tiles-grid {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax(220px, 1fr) );
  gap: var(--stf-gap);
}
.stf-tiles-grid[style*="--stf-columns"] {
  grid-template-columns: repeat(var(--stf-columns), minmax(0, 1fr));
}

/* FULL-IMAGE TILE (no icon, title overlay) */
.stf-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;            /* adjust if needed */
  border-radius: var(--stf-radius);
  overflow: hidden;
  box-shadow: var(--stf-shadow);
  text-decoration: none;
  color: #fff;
  background-image: var(--stf-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0b1220;       /* fallback color */
  transition: transform .12s ease, box-shadow .12s ease;
}
.stf-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06) 20%, rgba(0,0,0,.55) 100%);
  z-index: 1; pointer-events: none;
}
.stf-tile:hover, .stf-tile:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 42px rgba(0,0,0,.24);
  outline: none;
}

.stf-tile-title {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  color: #fff;
}

/* Archive cards (optional polish) */
.stf-archive-grid { display:grid; gap:1rem; }
.stf-archive-card {
  background:#fff; border-radius:16px; box-shadow:0 8px 22px rgba(0,0,0,.08);
  padding:1rem; text-decoration:none; color:inherit; display:block;
}
.stf-archive-card h2{ margin:.25rem 0 .5rem; font-size:1.1rem; }
.stf-archive-card .meta{ color:#475569; font-size:.9rem; }

@media (max-width: 640px){
  .stf-tiles-grid{ gap:.75rem; }
  .stf-tile{ aspect-ratio: 16 / 10; }
}
