/*
 * GitHub Repo Files — styles publics.
 *
 * Toutes les règles sont scopées sous `.grf-root` pour éviter les collisions
 * avec les styles du thème WordPress actif.
 */

.grf-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
}

.grf-root .grf-empty,
.grf-root .grf-error {
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff8e1;
  color: #6b4f00;
  border: 1px solid #f4c95d;
  margin: 8px 0;
}
.grf-root .grf-error {
  background: #fdecea;
  color: #5f2120;
  border-color: #f5b5b1;
}

.grf-root .grf-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.grf-root .grf-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.grf-root .grf-card:hover {
  border-color: #c5d3e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.grf-root .grf-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f1f1f;
  word-break: break-word;
}
.grf-root .grf-card-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.grf-root .grf-card-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  flex: 1 1 auto;
}

.grf-root .grf-card-link {
  margin: 0;
  font-size: 13px;
}
.grf-root .grf-card-link a {
  color: #2271b1;
  text-decoration: none;
  font-weight: 500;
}
.grf-root .grf-card-link a:hover,
.grf-root .grf-card-link a:focus {
  color: #135e96;
  text-decoration: underline;
}

.grf-root .grf-source {
  margin: 18px 0 0;
  font-size: 12px;
  color: #777;
  text-align: right;
}
.grf-root .grf-source a {
  color: #777;
  text-decoration: underline;
}
.grf-root .grf-source a:hover {
  color: #444;
}

@media (max-width: 600px) {
  .grf-root .grf-cards {
    grid-template-columns: 1fr;
  }
}
