/* Responsive frontend styles for OpenSID Village Data Connector */
.opensid-grid {
  display: grid;
  gap: 1.25rem;
  margin-block: 1.5rem;
}
.opensid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.opensid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.opensid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.opensid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
}
.opensid-card__meta {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.opensid-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}
.opensid-card__title a {
  color: #0f172a;
  text-decoration: none;
}
.opensid-card__title a:hover {
  color: #2271b1;
}
.opensid-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
}
.opensid-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.opensid-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
  font-size: 0.925rem;
}
.opensid-table th,
.opensid-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.opensid-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.opensid-apbdes-panel {
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem;
}
.opensid-apbdes-row__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.opensid-apbdes-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.opensid-apbdes-bar span {
  display: block;
  height: 100%;
  background: #2271b1;
}
