/* Modern polish for kubeWAF documentation */

/* Improve card grid spacing and hover feel */
.grid.cards {
  grid-gap: 0.8rem;
}

.grid.cards > ul > li {
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.grid.cards > ul > li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Make the homepage hero title stand out more */
.md-content h1:first-child {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

/* Subtle improvement to the lead paragraph */
.md-content > h1 + p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 720px;
}

/* Better table styling on homepage */
.md-content table {
  border-radius: 6px;
  overflow: hidden;
}

/* Announcement bar tweaks */
.md-banner {
  font-size: 0.85rem;
}

/* === Header link next to logo (kubewaf.io) === */
.kubewaf-header-link {
  margin-left: 0.45rem;
  font-size: 0.72em;
  font-weight: 400;
  opacity: 0.75;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
  vertical-align: 0.5px;
}

.kubewaf-header-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Make sure it looks good in dark mode too */
[data-md-color-scheme="slate"] .kubewaf-header-link {
  opacity: 0.8;
}