/* --- ColabFit Exchange refreshed styling --- */
:root {
  --cf-background: #f4f8ff;
  --cf-surface: #ffffff;
  --cf-surface-alt: #eef5ff;
  --cf-primary: #4890ff;
  --cf-primary-dark: #2f6ed6;
  --cf-primary-light: #dceaff;
  --cf-accent: #7bc4ff;
  --cf-text: #1f3552;
  --cf-muted: #4d6c93;
  --cf-border: #c5daf7;
  /* --cf-card-shadow: 0 20px 40px rgba(72, 144, 255, 0.16);
  --cf-card-shadow-hover: 0 28px 60px rgba(72, 144, 255, 0.24); */
  --cf-glow: 0 0 0 0.25rem rgba(72, 144, 255, 0.25);

  /* Families-style gradient colors */
  --cf-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cf-gradient-alt: linear-gradient(135deg, #4a7ec8 0%, #7b6ab8 100%);
  --cf-families-primary: #667eea;
  --cf-families-accent: #764ba2;

  /* Darker theme variants for header/navigation - based on Dataset Families blue at 25% */
  --cf-header-solid: #5679c4;
  --cf-tab-solid: #384f7f;
  --cf-tab-hover: #4d6caf;
  --cf-btn-solid: #5679c4;
  --cf-btn-solid-hover: #4967a7;
}

body {
  background: var(--cf-background);
  color: var(--cf-text);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a.sidebar-topbar-brand,
.sidebar-brand {
  text-decoration: none;
}

.sidebar-shell {
  display: flex;
  min-height: 100vh;
  background: var(--cf-background);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, #1c2b40 0%, #254770 100%);
  color: #e4edff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 8px 0 16px rgba(12, 22, 45, 0.25);
  transform: translateX(-100%);
  transition: transform 0.1s ease;
  z-index: 1050;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(228, 237, 255, 0.35);
  border-radius: 999px;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1040;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.sidebar-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--cf-header-solid);
  border-bottom: 1px solid rgba(228, 237, 255, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  color: #e4edff;
}

.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--cf-border);
  background: #e4edff;
  color: var(--cf-primary-dark);
  box-shadow: 0 4px 8px rgba(47, 110, 214, 0.15);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle-btn:hover,
.sidebar-toggle-btn:focus {
  background: var(--cf-primary);
  color: #e4edff;
  transform: translateY(-1px);
}

.sidebar-toggle-btn i {
  font-size: 1.1rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
}

.sidebar-brand img {
  width: 36px;
  height: 36px;
}

.sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-close:hover,
.sidebar-close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-link,
.sidebar-sublink,
.sidebar-section summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.9rem;
  font-weight: 500;
  color: rgba(228, 237, 255, 0.9);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.sidebar-link i,
.sidebar-section summary i {
  width: 1.25rem;
  text-align: center;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-section summary:hover,
.sidebar-section summary:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateX(4px);
}

.sidebar-section {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 0.25rem 0.15rem;
}

.sidebar-section summary {
  list-style: none;
  font-weight: 600;
}

.sidebar-section summary::-webkit-details-marker {
  display: none;
}

.sidebar-section .sidebar-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.sidebar-section[open] .sidebar-chevron {
  transform: rotate(90deg);
}

.sidebar-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem 0 0.65rem 2.4rem;
}

.sidebar-sublink {
  color: rgba(228, 237, 255, 0.85);
  font-weight: 400;
  padding: 0.45rem 0.35rem;
  border-radius: 0.65rem;
}

.sidebar-sublink:hover,
.sidebar-sublink:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: rgba(228, 237, 255, 0.7);
  line-height: 1.5;
}

.main-content {
  flex: 1;
  width: 100%;
}

.main-content .container,
.main-content .container-fluid {
  max-width: 1200px;
}

.main-content .content {
  padding-top: 1rem;
  width: 100%;
}

@media (min-width: 992px) {
  body.sidebar-open .sidebar-main {
    margin-left: 280px;
  }

  .sidebar-overlay {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  body.sidebar-open.sidebar-locked {
    overflow: auto;
  }
}

@media (max-width: 991.98px) {
  body.sidebar-open.sidebar-locked {
    overflow: hidden;
  }

  .sidebar {
    width: min(85vw, 320px);
  }
}

.sidebar-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.sidebar-topbar-brand:hover,
.sidebar-topbar-brand:focus {
  color: #ffffff;
  text-decoration: none;
}

.sidebar-topbar-brand img {
  width: 34px;
  height: 34px;
}

.sidebar-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-nav {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin-left: auto;
  height: 100%;
}

.topbar-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem 0.5rem 0 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background: var(--cf-tab-solid);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: -1px;
}

.topbar-nav-btn:hover,
.topbar-nav-btn:focus {
  color: #ffffff;
  background: var(--cf-tab-hover);
  border-color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

/* Google Custom Search in topbar */
.topbar-search {
  display: flex;
  align-items: center;
  max-width: 200px;
  width: 200px;
  flex-shrink: 0;
  align-self: center;
}

.topbar-search-input {
  flex: 1;
  height: 36px;
  padding: 0 8px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-right: none;
  border-radius: 0.4rem 0 0 0.4rem;
  color: #e4edff;
  outline: none;
  min-width: 0;
}

.topbar-search-input::placeholder {
  color: rgba(228, 237, 255, 0.5);
}

.topbar-search-input:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.topbar-search-btn {
  height: 36px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 0.4rem 0.4rem 0;
  color: #e4edff;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-search-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Results panel */
.gcse-results-panel {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 1.5rem;
  z-index: 99;
}

.gcse-results-inner {
  max-width: 900px;
  margin: 0 auto;
}

.gcse-results-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  padding: 0;
}

.gcse-results-close:hover {
  color: #333;
}

a {
  color: var(--cf-primary);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--cf-primary-dark);
}

.navbar.bg-dark {
  background: linear-gradient(135deg, #1c2b40, #254770) !important;
  box-shadow: 0 4px 12px rgba(6, 24, 44, 0.2);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;
}

.btn,
.form-control,
.form-select,
.input-group-text,
.badge {
  border-radius: 0.85rem;
}

.btn {
  transition: transform 0.2s ease;
  box-shadow: none;
  /* box-shadow: 0 12px 24px rgba(72, 144, 255, 0.18); */
}

.btn:focus,
.btn:active,
.btn:hover {
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--cf-btn-solid) !important;
  border-color: var(--cf-btn-solid) !important;
}

.btn-primary:hover {
  background-color: var(--cf-btn-solid-hover) !important;
  border-color: var(--cf-btn-solid-hover) !important;
}

.btn-outline-primary {
  color: var(--cf-primary);
  border-color: var(--cf-primary);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--cf-primary-light);
  color: var(--cf-primary-dark);
}

.form-control,
.form-select {
  border-color: var(--cf-border);
  background-color: #ffffff;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cf-primary);
  box-shadow: var(--cf-glow);
}

.badge.bg-primary {
  background-color: var(--cf-primary) !important;
}

.card.tighter-card {
  border-radius: 1.15rem !important;
  border: 1px solid var(--cf-border) !important;
  background: var(--cf-surface) !important;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow none;
}

.card.tighter-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.card.tighter-card .card-header {
  background: linear-gradient(135deg, rgba(72, 144, 255, 0.12), rgba(123, 196, 255, 0.18)) !important;
  border-bottom: none !important;
  color: var(--cf-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card.tighter-card .card-body {
  background: var(--cf-surface) !important;
}

.card.tighter-card .card-title {
  color: var(--cf-primary-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--cf-primary-light);
  color: var(--cf-primary-dark);
  font-weight: 600;
}

.search-results-heading {
  color: var(--cf-primary-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  /* text-transform: uppercase; */
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.search-results-heading::before {
  content: "\f002";
  font-family: "FontAwesome";
  font-size: 1.1em;
  color: var(--cf-primary);
}

.search-results-message {
  color: var(--cf-muted);
  font-weight: 600;
}

.search-result-card {
  margin: 0 0 1.75rem 0;
  border-radius: .25rem;
  border: 1px solid var(--cf-border);
  background: var(--cf-surface);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.25s ease;
}

#search-results .search-result-card {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#search-results .search-result-card + .search-result-card {
  margin-top: 1.75rem;
}

#search-results .search-result-card:last-child {
  margin-bottom: 0;
}

.search-result-card:hover {
  transform: translateY(-2px);
}

.search-result-card .card-header,
.search-result-card .card-header:hover,
.search-result-card .card-header:focus-within {
  padding: 0;
  background-color: rgba(102, 126, 234, 0.10) !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(197, 218, 247, 0.6);
}

.search-result-card .card-header a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  color: var(--cf-primary-dark);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: transparent !important;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.search-result-card .card-body {
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--cf-surface);
}

.search-result-card-alt .card-header {
  background-color: rgba(102, 126, 234, 0.10) !important;
  background-image: none !important;
}

.search-result-card-alt .card-body {
  background: var(--cf-surface-alt);
}

.search-result-meta-title {
  color: var(--cf-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.search-result-meta-value {
  color: var(--cf-text);
  font-weight: 600;
}

.search-result-card .btn-link {
  color: var(--cf-primary);
  font-weight: 600;
  text-decoration: none;
}

.search-result-card .btn-link:hover,
.search-result-card .btn-link:focus {
  color: var(--cf-primary-dark);
  text-decoration: underline;
}

.search-result-card .text-muted {
  color: rgba(79, 108, 147, 0.85) !important;
}

.search-result-card .row {
  --bs-gutter-x: 1.25rem;
  margin-left: 0;
  margin-right: 0;
}

footer {
  color: #ddd;
  background: #222;
}

footer li {
  color: #ccc;
}

footer a {
  color: #777;
}

footer a:link {
  color: #777;
}

footer a:visited {
  color: #777;
}

footer a:hover {
  color: #fff;
}

.new-periodic-table > tbody > tr > td {
  padding: 0 !important;
  height: 56px;
  border: 1px solid rgb(200, 200, 200);
}

.new-periodic-table td a {
  width: 100%;
  height: 100%;
  padding: 8px;
  display: block;
  min-height: 56px !important;
  cursor: pointer;

  text-decoration: none;
  transition: background-color 200ms linear;
}

.new-periodic-table td a:hover {
  background-color: rgba(255, 255, 0, 0.4) !important;
  color: #000 !important;
}

.new-periodic-table td a.pt-active {
  background-color: rgba(255, 255, 0, 0.4) !important;
  color: #000 !important;
}

.new-periodic-table .fewitems {
  opacity: 0.3;
}

/*
#621d4b dark magenta
#9e206c light magenta
#2f6164 dark cyan
#4f99b0 blue
#66c2d7 light blue
*/

.new-periodic-table a.c1 {
  background-color: #621d4b;
  color: #fff;
}

.new-periodic-table a.c2 {
  background-color: #9e206c;
  color: #fff;
}

.new-periodic-table a.c3 {
  background-color: #4f99b0;
  color: #fff;
}

.new-periodic-table a.c4 {
  background-color: #2f6164;
  color: #fff;
}

/* ── Periodic Table Component (pt-*) ───────────────────────────────────────── */

/* Category color classes (pc1–pc10) */
.pt-cell a.pc1  { background-color: #621d4b; color: #fff; }
.pt-cell a.pc2  { background-color: #9e206c; color: #fff; }
.pt-cell a.pc3  { background-color: #c44090; color: #fff; }
.pt-cell a.pc4  { background-color: #7a30a0; color: #fff; }
.pt-cell a.pc5  { background-color: #1d7090; color: #fff; }
.pt-cell a.pc6  { background-color: #2f6164; color: #fff; }
.pt-cell a.pc7  { background-color: #2a7a60; color: #fff; }
.pt-cell a.pc8  { background-color: #1a6a80; color: #fff; }
.pt-cell a.pc9  { background-color: #3a5080; color: #fff; }
.pt-cell a.pc10 { background-color: #3a4fa0; color: #fff; }

/* Category legend strip */
.pt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.pt-legend-item {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.72em;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.pt-wrapper {
  width: 100%;
}

.pt-grid {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 2px;
  width: 100%;
}

.pt-cell {
  aspect-ratio: 1;
  min-width: 0;
}

.pt-cell a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: filter 120ms linear, opacity 150ms linear;
  line-height: 1.1;
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.12);
  border-bottom: 2px solid rgba(0,0,0,0.22);
}

.pt-cell a:hover {
  filter: brightness(1.25) saturate(1.1);
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: -2px;
}

.pt-cell a.pt-active {
  filter: brightness(1.35) saturate(1.2);
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.pt-num {
  font-size: 0.5em;
  opacity: 0.75;
  align-self: flex-start;
  padding-left: 0.2em;
  line-height: 1.3;
}

.pt-sym {
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1;
}

.pt-name {
  font-size: 0.38em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 95%;
  opacity: 0.82;
}

.pt-cell.pt-dimmed a {
  opacity: 0.15;
}

.pt-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55em;
  color: #888;
  border: 1px dashed #ccc;
  aspect-ratio: 1;
  border-radius: 3px;
}

.pt-separator {
  height: 6px;
}

/* Bohr model viewer */
.pt-bohr-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--cf-surface, #f8f9fa);
  border: 1px solid var(--cf-border, #dee2e6);
  border-radius: 6px;
  min-height: 100px;
}

.pt-bohr-canvas {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
}

.pt-bohr-section.pt-compact {
  padding: 0.5rem 0.75rem;
  gap: 1rem;
}

.pt-bohr-section.pt-compact .pt-bohr-canvas {
  width: 90px;
  height: 90px;
}

.pt-bohr-section.pt-compact .pt-bohr-hint {
  display: none;
}

.pt-bohr-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--cf-border, #dee2e6);
}

.pt-bohr-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pt-bohr-name {
  font-weight: 700;
  font-size: 1.1em;
}

.pt-bohr-cat {
  display: inline-block;
  font-size: 0.78em;
  color: #fff;
  padding: 1px 7px;
  border-radius: 10px;
  align-self: flex-start;
}

.pt-bohr-hint {
  font-size: 0.85em;
  color: #888;
  font-style: italic;
}

.pt-bohr-mass,
.pt-bohr-shells {
  font-size: 0.85em;
  color: #555;
}

.pt-bohr-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--cf-border, #dee2e6);
  min-width: 160px;
}

.pt-bohr-stat-count,
.pt-bohr-stat-ratio {
  font-size: 0.85em;
  color: #555;
  line-height: 1.4;
}

.pt-bohr-stat-count strong,
.pt-bohr-stat-ratio strong {
  display: block;
  font-size: 1.1em;
  color: #1d7090;
  font-weight: 600;
}

/* Responsive: compact list on very small screens */
@media (max-width: 900px) {
  .pt-name { display: none; }
}

@media (max-width: 600px) {
  .pt-grid { gap: 1px; }
  .pt-num { display: none; }
  .pt-sym { font-size: 0.7em; }
  .pt-bohr-section { flex-direction: column; align-items: flex-start; }
}

/* About page tabs */
.about-tabs-container {
  margin: 0 0 2rem 0;
  padding: 0;
  width: 100%;
}

.about-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cf-border);
  padding: 0;
  background: linear-gradient(180deg, rgba(28, 43, 64, 0.05) 0%, rgba(37, 71, 112, 0.05) 100%);
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 0.5rem 0.5rem 0 0.5rem;
  width: 100%;
}

.about-tab {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--cf-text);
  text-decoration: none;
  text-align: center;
  border-radius: 0.5rem 0.5rem 0 0;
  background: transparent;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.about-tab:hover {
  color: var(--cf-primary-dark);
  background: rgba(72, 144, 255, 0.05);
  text-decoration: none;
}

.about-tab.active {
  color: var(--cf-primary-dark);
  background: var(--cf-surface);
  border-bottom-color: var(--cf-primary);
  font-weight: 600;
}

/* Families-style utility classes */
.cf-gradient-header {
  background: var(--cf-gradient-alt);
  color: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.cf-gradient-header h1 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cf-card {
  background: var(--cf-surface);
  border-radius: 10px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.cf-btn-pill {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  border: 2px solid var(--cf-families-primary);
  background: transparent;
  color: var(--cf-families-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cf-btn-pill:hover {
  background: var(--cf-families-primary);
  color: white;
  text-decoration: none;
}

.cf-btn-pill.active,
.cf-btn-pill-filled {
  background: var(--cf-gradient-primary);
  border-color: var(--cf-families-primary);
  color: white;
}

.cf-btn-pill.active:hover,
.cf-btn-pill-filled:hover {
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.cf-section-title {
  color: var(--cf-families-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

