@font-face {
  font-family: "Compagnon";
  src: url("./fonts/Compagnon-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Compagnon";
  src: url("./fonts/Compagnon-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Compagnon";
  src: url("./fonts/Compagnon-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Compagnon";
  src: url("./fonts/Compagnon-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Compagnon";
  src: url("./fonts/Compagnon-Roman.woff2") format("woff2");
}

/* Headings, cards, tags, labels */
h1,
h2,
h3,
.card,
.filter-label,
/* .tag-container,
.tag, */
.card-text {
  font-family: "Compagnon", monospace;
}

/* Body text / panel description */
body,
.panel-description {
  font-family: Arial, sans-serif;
}

body {
  margin: 40px;
  background: #f7f7f7;
}

h1 {
  margin-bottom: 30px;
}

h1 {
  font-size: 2.5rem;
  line-height: 2.4rem;
  font-weight: 700;
}
h2 {
  font-size: 1.6rem;
  line-height: 2rem;
  font-weight: 700;
}

.cluster {
  margin-bottom: 50px;
}

.cluster h2 {
  margin-bottom: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.card,
.contribute-card {
  /* width: 130px;
  height: 60px; */
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.card-text {
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* limit to n lines */
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.3;
  max-width: 100%;
}

.card:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 350px;

  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);

  padding: 20px;
  overflow-y: auto;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 1000;
}

.side-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#close-panel {
  cursor: pointer;
  font-size: 22px;
}

#panel-values {
  margin: 10px 0;
}
.panel-section {
  margin: 12px 0;
  font-size: 0.9rem;
}

.panel-description {
  line-height: 1.4rem;
  margin-bottom: 12px;
}

.panel .tag {
  margin-bottom: 6px;
}

.panel-smallness {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 10px;
  color: #555;
}

.tag {
  display: inline-block;
  background: #eee;
  padding: 4px 8px;
  margin: 3px;
  border-radius: 6px;
  /* font-size: 12px; */
}

.tag,
.card-tag {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
}

.filters {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

/* keep labels aligned on desktop */
.filter-label {
  /* width: 140px; */
  white-space: nowrap;
  /* font-weight: 800; */
  font-size: 0.95rem;
  line-height: 1.3rem;
  font-weight: 500;
  /* opacity: 0.7; */
}

/* tags layout */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 📱 Mobile behavior */
@media (max-width: 600px) {
  .filter-row {
    flex-direction: column; /* stack */
    align-items: flex-start; /* left align */
    gap: 6px;
  }

  .filter-label {
    width: auto; /* remove fixed width */
  }

  .filter-tag {
    padding: 6px 10px;
  }

  .grid {
    grid-template-columns: 1fr; /* single column on small screens */
    gap: 12px;
  }

  .card-text {
    font-size: 0.9rem;
  }

  .filter-label {
    font-size: 0.85rem;
  }
}

.filter-tag {
  padding: 6px 10px;
  border-radius: 20px;
  background: #eee;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  opacity: 0.8;
}

.filter-tag.active {
  color: white;
}

/* Style it differently to stand out */
.contribute-card {
  background: #fff; /* white background */
  border: 1px dashed #888; /* dashed outline to indicate action */
  color: #333;
  /* font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease; */
}

.contribute-card:hover {
  background: #f0f0f0;
  border-color: #555;
}

.clickable-title {
  cursor: pointer;
  display: inline-block;
  margin-top: 0;
}

.title-arrow {
  margin-left: 6px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.clickable-title:hover .title-arrow {
  transform: translateX(4px);
}

.panel-footer {
  margin-top: 40px;
  font-size: 0.7rem;     
  opacity: 0.6;         
  line-height: 1.4;
}