/* Theme layout packs — colors come from :root CSS variables (branding). */

.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.theme-preset-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.theme-preset-card:hover:not(:disabled) {
  border-color: var(--color-primary, #1a56db);
}

.theme-preset-card.is-selected,
.theme-preset-card.is-active {
  border-color: var(--color-primary, #1a56db);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #1a56db) 25%, transparent);
}

.theme-preset-card:disabled,
.theme-preset-card--custom:disabled {
  cursor: default;
  opacity: 0.85;
}

.theme-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary, #1a56db) 12%, #fff);
  color: var(--color-primary, #1a56db);
  vertical-align: middle;
}

/* Atlas — corporate density */
[data-theme="atlas"] .site-header {
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary, #0b2c5f);
}

[data-theme="atlas"] .btn-primary {
  border-radius: 0.25rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

[data-theme="atlas"] .landing-hero,
[data-theme="atlas"] .page-header {
  padding-block: 2.5rem;
}

[data-theme="atlas"] .public-nav a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Boodle — consumer / airy CTAs */
[data-theme="boodle"] .btn-primary {
  border-radius: 999px;
  padding-inline: 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}

[data-theme="boodle"] .landing-hero,
[data-theme="boodle"] .page-header {
  padding-block: 3.25rem;
}

[data-theme="boodle"] .public-nav a {
  font-weight: 500;
}

[data-theme="boodle"] .site-header {
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

/* Creditr / custom — defaults from main.css */
[data-theme="creditr"] .btn-primary,
[data-theme="custom"] .btn-primary {
  border-radius: 0.375rem;
}
