/* Community Profile report module
   - entry point card shown on the Report Studio page
   - layout of the Community Profiles page itself
   Complements report-studio-redesign.css. */

/* Link card in the Quick Start Templates grid. Deliberately NOT
   .template-card: report-studio-redesign.js binds a click handler to that
   class which would intercept the navigation. Rules mirror .template-card. */
.cp-template-card,
.cp-template-card:visited {
  background: #2c3e50;
  color: white;
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
}

.cp-template-card:hover,
.cp-template-card:focus {
  transform: translateY(-2px);
  background: #24313f;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: white;
  text-decoration: none;
}

/* Always-visible selection section on the Community Profiles page */
.cp-selection-section {
  background: #e9ecef;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.cp-selection-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.cp-selection-section > p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.cp-municipality-select {
  max-width: 420px;
  margin-bottom: 1.5rem;
}

/* Dataset selection: one full-width row of three checkbox-group columns */
.cp-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .cp-topic-grid {
    grid-template-columns: 1fr;
  }
}

.cp-topic-grid .topic-card h4 {
  margin-bottom: 0.75rem;
}

.cp-topic-grid .checkbox label {
  font-weight: normal;
  color: #2c3e50;
}

.cp-topic-grid .shiny-options-group .checkbox {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}
