/* ===== Gallery card grid ===== */
.fdars-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0 2.5rem;
}
@media (max-width: 900px) {
  .fdars-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .fdars-gallery { grid-template-columns: 1fr; }
}

.fdars-gallery-item {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.2s, transform 0.15s;
}
.fdars-gallery-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.fdars-gallery-title {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--md-typeset-a-color);
  border-top: 1px solid var(--md-default-fg-color--lightest);
}
.fdars-gallery-item:hover .fdars-gallery-title {
  text-decoration: underline;
}

.fdars-gallery-desc {
  padding: 0 1rem 0.75rem;
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
}

/* ===== Section headings ===== */
.fdars-section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid;
}
.fdars-section-desc {
  color: var(--md-default-fg-color--light);
  margin-bottom: 0.5rem;
}

/* Section colors */
.fdars-learn       { border-color: #0d6efd; }
.fdars-represent   { border-color: #198754; }
.fdars-align       { border-color: #fd7e14; }
.fdars-regression  { border-color: #dc3545; }
.fdars-monitoring  { border-color: #6610f2; }
.fdars-analyze     { border-color: #6f42c1; }

/* ===== Method tag badges ===== */
.fdars-tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-right: 0.3em;
}
.fdars-tag-learn      { background: #0d6efd22; color: #0d6efd; }
.fdars-tag-represent  { background: #19875422; color: #198754; }
.fdars-tag-align      { background: #fd7e1422; color: #fd7e14; }
.fdars-tag-regression { background: #dc354522; color: #dc3545; }
.fdars-tag-analyze    { background: #6f42c122; color: #6f42c1; }
