/* ==========================================================================
   ChronicSync — Healthcare Tools
   Loaded ONLY on /tools and /tools/{slug} pages (see @section Styles in each
   view) so no other page — including the homepage — pays for this CSS.
   ========================================================================== */

.cs-tool-card {
  display: block;
  height: 100%;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--cs-shadow-sm);
  transition: transform var(--cs-transition), box-shadow var(--cs-transition);
}

.cs-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cs-shadow-md);
}

.cs-tool-card h2 {
  color: var(--cs-heading);
  margin-bottom: 0.5rem;
}

.cs-tool-result {
  background: var(--cs-primary-light);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-md);
  padding: 1.25rem 1.5rem;
}

.cs-tool-result-value {
  font-family: var(--cs-font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--cs-heading);
  margin-bottom: 0.15rem;
}

.cs-tool-result-category {
  font-weight: 700;
  color: var(--cs-primary);
  margin-bottom: 0.5rem;
}

.cs-tool-table th,
.cs-tool-table td {
  padding: 0.5rem 0.75rem;
}

.cs-tool-promotion {
  background: var(--cs-bg-soft);
  padding-block: 3rem;
}

.cs-tool-promotion-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-lg);
  padding: 2rem;
  box-shadow: var(--cs-shadow-sm);
}

.cs-tool-promotion-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.form-check-input.is-invalid {
  border-color: var(--bs-danger, #dc3545);
}

.cs-consent-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--cs-bg-soft);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-md);
  padding: 0.85rem 1.1rem;
  margin-block: 1rem;
  font-size: 0.85rem;
  color: var(--cs-text-muted);
}

.cs-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cs-btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.cs-glossary-list {
  margin: 0;
  max-height: 520px;
  overflow-y: auto;
}

.cs-glossary-item {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--cs-border);
}

.cs-glossary-item:last-child {
  border-bottom: none;
}

.cs-glossary-item dt {
  font-weight: 700;
  color: var(--cs-heading);
}

.cs-tool-card-compact {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
