/* File: public/css/investing/mutualfunds-guide.css */
/* Matches the visual style of RESP/RRSP/RDSP guides – colorful, educational, and clean */

.rb-mutualfunds {
  max-width: 1140px;
  margin: 0 auto;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #212529;
}

/* Mini Nav (chips bar) */
.rb-mf__mini-nav {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e9ecef;
}

.rb-mf__mini-nav .rb-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  background-color: #f1f3f5;
  color: #212529;
  text-decoration: none;
  transition: all 0.2s ease;
}
.rb-mf__mini-nav .rb-chip:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Section wrappers */
.rb-section {
  border-radius: 1rem;
  padding: 2.5rem;
  color: #212529;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}
.rb-section + .rb-section {
  margin-top: 2.5rem;
}

/* Accent color themes */
.rb-accent--teal   { background-color: #e6f7f5; border-left: 5px solid #20c997; }
.rb-accent--indigo { background-color: #edf0ff; border-left: 5px solid #6610f2; }
.rb-accent--mint   { background-color: #e8f9ee; border-left: 5px solid #198754; }
.rb-accent--sun    { background-color: #fff7e6; border-left: 5px solid #ffc107; }
.rb-accent--blue   { background-color: #eaf4ff; border-left: 5px solid #0d6efd; }
.rb-accent--rose   { background-color: #fff0f3; border-left: 5px solid #d63384; }
.rb-accent--sand   { background-color: #f8f5ef; border-left: 5px solid #b59b64; }

/* Section titles */
.rb-section__title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.rb-section__sub {
  font-size: 1rem;
  color: #555;
}

/* Card grid system */
.rb-cardgrid {
  display: grid;
  gap: 1.25rem;
}
.rb-columns-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Card base */
.rb-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
}
.rb-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Callout card */
.rb-callout {
  display: flex;
  align-items: flex-start;
  background-color: #f8f9fa;
  border-left: 5px solid #0d6efd;
}

/* Lists */
.rb-list {
  list-style: none;
  padding-left: 1.2rem;
  margin-bottom: 0;
}
.rb-list li {
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.rb-list--checks li::before {
  content: "✔";
  color: #198754;
  font-weight: bold;
  position: absolute;
  left: -1.1rem;
}
.rb-list--dots li::before {
  content: "•";
  color: #0d6efd;
  font-weight: bold;
  position: absolute;
  left: -0.9rem;
}

/* Definition list (glossary) */
.rb-defs dt {
  font-weight: 600;
  margin-top: 0.75rem;
}
.rb-defs dd {
  margin-left: 1rem;
  font-size: 0.95rem;
  color: #555;
}

/* Utility */
.small.text-muted {
  color: #6c757d !important;
}

@media (max-width: 767px) {
  .rb-section {
    padding: 1.5rem;
  }
  .rb-mf__mini-nav .rb-chip {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
  }
}
