/* Stock Profile (moved from inline) */
.single-stock_profile .site-content { display: block !important; flex: none !important; }
.single-stock_profile .content-area { width: 100% !important; max-width: none !important; }
.single-stock_profile .site-main { padding: 0 !important; margin: 0 !important; }

.stock-profile-container { width: 100%; padding: 2rem 0; }
.stock-content { width: 100%; max-width: none; padding: 0 0rem; }
.inv-breadcrumbs { margin: 0 0 6px 0; font-size: 0.9rem; color: #6c757d; }
.inv-breadcrumbs .inv-breadcrumb-link { color: #6c757d; text-decoration: none; }
.inv-breadcrumbs .inv-breadcrumb-link:hover { text-decoration: underline; }
.inv-breadcrumbs .inv-breadcrumb-sep { margin: 0 6px; }
.inv-breadcrumbs .inv-breadcrumb-current { color: #111827; }

.company-desc-paragraph { margin: 0 0 6px 0; }
.company-desc-toggle { margin-left: 8px; border: none; background: none; color: #007bff; cursor: pointer; padding: 0; font-weight: 600; }
.company-desc-toggle:hover { text-decoration: underline; }

.data-stale { color: #dc3545; }

.content-card--related { padding: 1.25rem; margin-top: 1.5rem; }
.card-header--compact { margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e9ecef; }
.card-title--compact { margin: 0; font-size: 1.1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.related-item { display: block; border: 1px solid #e9ecef; border-radius: 8px; padding: 10px; background: #fff; text-decoration: none; color: #111827; }
.related-ticker { font-weight: 700; }
.related-company { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.related-tag { font-size: 11px; border-radius: 999px; padding: 2px 6px; }
.related-tag--sector { background: #f3f4f6; border: 1px solid #e5e7eb; color: #4b5563; }
.related-tag--yield { background: #eafff3; border: 1px solid #bdf0cc; color: #166534; }
.related-tag--years { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; }

.inv-disclaimer { margin: 24px 0; padding: 12px 14px; border: 1px solid #e9ecef; border-radius: 8px; background: #fff8e6; color: #6b7280; font-size: 0.9rem; }
.inv-disclaimer > strong { color: #374151; }

/* Dev debug box */
.dev-debug-summary { cursor: pointer; font-weight: 600; color: #495057; }
.dev-debug-pre { white-space: pre-wrap; word-break: break-word; }

.stock-header-card { background: #fff; border-radius: 12px; padding: 2rem; margin-bottom: 2rem; border: 1px solid #e9ecef; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.stock-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e9ecef; }
.stock-avatar { width: 80px; height: 80px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.5rem; flex-shrink: 0; box-shadow: 0 2px 10px rgba(0,123,255,0.2); }
.stock-avatar.no-logo { background: linear-gradient(135deg, #007bff, #0056b3); }
.stock-avatar.has-logo { background: #fff; padding: 6px; box-sizing: border-box; border: 1px solid #e9ecef; }
.stock-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.stock-main-info { flex: 1; }
.stock-symbol { font-size: 1.75rem; font-weight: 700; color: #212529; margin-bottom: 0.25rem; }
.company-name { font-size: 1.1rem; color: #6c757d; margin-bottom: 0.75rem; font-weight: 500; }
.stock-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.stock-tag { padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.stock-tag.drip-king { background: #ffe7e7; color: #cc0000; }
.stock-tag.drip-aristocrat { background: #f0e7ff; color: #6600cc; }
.stock-tag.drip-champion { background: #e7ffe7; color: #00cc00; }
.stock-tag.drip-contender { background: #fff0e7; color: #cc6600; }
.stock-tag.drip-challenger { background: #dbf8ff; color: #00a3cc; }
.stock-tag.years-tag { background: #e7f3ff; color: #0066cc; }

.company-description { margin-bottom: 1rem; padding: 0.75rem 1rem; background: #f8f9fa; border-radius: 6px; font-size: 0.9rem; line-height: 1.5; color: #555; }
.company-description button { font-size: inherit; line-height: inherit; }
.company-website { color: #007bff; text-decoration: none; font-weight: 500; margin-left: 0.5rem; }
.company-website:hover { text-decoration: underline; }

.stock-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.stock-data-grid > .data-section:last-child:nth-child(odd) { grid-column: 1 / -1; }
.data-section { background: #f8f9fa; border-radius: 8px; padding: 0.85rem 1rem 1rem 1rem; border: 1px solid #e9ecef; }
.section-title { text-align: center; font-size: 1rem; font-weight: 700; color: #212529; text-transform: uppercase; letter-spacing: 0.06em; margin: 0.75rem 0; }
.data-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.3rem 0.75rem; }
.data-row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0.3rem 0.25rem; border-bottom: 1px solid rgba(0,0,0,0.045); }
.data-row:last-child { border-bottom: none; }
.data-label { font-size: 0.78rem; color: #6c757d; font-weight: 500; flex: 1; }
.data-value { font-size: 0.82rem; font-weight: 600; color: #212529; text-align: right; flex: 0 0 auto; min-width: 80px; }
.data-value.price-highlight { color: #007bff; font-size: 0.9rem; font-weight: 600; }
.data-value.dividend-highlight { color: #28a745; font-weight: 700; }
.data-value.streak-highlight { color: #6f42c1; font-weight: 700; }
.data-value.positive { color: #28a745; font-weight: 600; }
.data-value.negative { color: #dc3545; font-weight: 600; }

.content-card { background: #fff; border-radius: 12px; padding: 2rem; margin-bottom: 2rem; border: 1px solid #e9ecef; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.card-header { display: flex; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #e9ecef; }
.card-title { font-size: 1.25rem; font-weight: 600; color: #212529; display: flex; align-items: center; gap: 0.5rem; }
.card-icon { font-size: 1.1rem; }
.data-freshness { text-align: center; padding: 1rem; background: #f8f9fa; border-radius: 8px; margin-top: 2rem; font-size: 0.85rem; color: #6c757d; }

.stock-content h2 { font-size: 1.5rem; font-weight: 600; color: #212529; margin: 1rem 0 1rem 0; }
.stock-content h3 { font-size: 1rem; font-weight: 600; color: #495057; margin: 0.75rem 0 0.75rem 0; }
.stock-content p { color: #6c757d; line-height: 1.6; }

@media (max-width: 768px) {
  .stock-content { padding: 0 0.5rem; }
  .stock-header { flex-direction: column; text-align: center; gap: 1rem; align-items: center; }
  .stock-data-grid { grid-template-columns: 1fr; }
  .data-rows { grid-template-columns: 1fr; }
  .stock-header-card { padding: 0.8rem; }
  .content-card { padding: 1.5rem; }
  .data-row { padding: 0.5rem 0; }
  .data-label, .data-value { font-size: 0.8rem; }
  .stock-tags { justify-content: center; }
  .drip-calc-wrapper { padding: 0.8rem !important; }
}
.drip-calc-wrapper {
  max-width: 100%;
  margin: 40px 0;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  font-family: "Helvetica Neue", sans-serif;
  color: #222;
}

.etf-intro p {
  margin-bottom: 0;
}

.drip-calc-wrapper form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
}

.drip-calc-wrapper label {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  min-width: 0;
}

.drip-calc-wrapper input,
.drip-calc-wrapper select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 6px;
  background: #f9f9f9;
  appearance: none;
}

.drip-calc-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' width='10' height='10' fill='%23666' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70 95L40 55h60z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.drip-calc-wrapper label::after {
  content: attr(data-suffix);
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 14px;
  color: #888;
  pointer-events: none;
}

.drip-calc-wrapper label {
  display: flex;
  flex-direction: column;
}

.drip-calc-wrapper button {
  grid-column: span 2;
  padding: 12px 16px;
  font-size: 16px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.drip-calc-wrapper button:hover {
  background-color: #005bb5;
}

/* Stock Total Return Specific Styles */
.stock-total-return-stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.return-stat {
  padding: 4px 8px;
  background: #f5f5f5;
  border-radius: 4px;
  white-space: nowrap;
}

/* Dividend Payments & Yield Specific Styles */
.dividend-payments-cagrs {
  margin-bottom: 15px;
}

.dividend-cagr-title {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
}

.dividend-cagr-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cagr-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.cagr-pill.positive {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.cagr-pill.negative {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

/* Share Price Specific Styles */
.share-price-cagrs {
  margin-bottom: 15px;
}

.price-cagr-title {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
}

.price-cagr-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#dripChart,
#compoundChart {
  width: 100% !important;
  max-height: 400px;
  height: auto !important;
  display: block;
}

.chart-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 40px;
  position: relative;
  height: 400px; /* standardized chart height */
}

.chart-container > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.chart-heading {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: #222;
  text-align: center;
}

#dripResultsTable {
  margin-top: 40px;
  overflow-x: auto;
}

#dripResultsTable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}

#dripResultsTable th,
#dripResultsTable td {
  padding: 10px 12px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

#dripResultsTable thead {
  background: #f7f9fb;
  font-weight: 600;
}

#dripResultsTable tbody tr:nth-child(odd) {
  background: #fcfcfc;
}

.ideal-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

/* Reset input styles */
.ideal-toggle input[type="checkbox"] {
  all: unset;
}

.ideal-toggle .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.ideal-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ideal-toggle .slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.ideal-toggle .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.ideal-toggle .switch input:checked + .slider {
  background-color: #2563eb;
}

.ideal-toggle .switch input:checked + .slider::before {
  transform: translateX(20px);
}

.ideal-toggle .toggle-label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.ideal-toggle .toggle-label strong {
  font-weight: 600;
  color: #222;
}

.ideal-toggle .toggle-label span {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.tooltip-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooltip-icon {
  font-size: 13px;
  background-color: #2563eb;
  color: white !important;
  border-radius: 50%;
  padding: 0 6px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  line-height: 1.4;
}

.tooltip-text {
  visibility: hidden;
  width: 260px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 10;
  white-space: normal;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#compoundResults p {
  margin: 8px 0;
}

.field-note {
	font-weight: 400
}

@media (max-width: 768px) {
  .drip-calc-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .drip-calc-wrapper label {
    width: 100%;
  }

  #dripChart,
  #compoundChart {
    height: 300px !important;
  }
}

#staticCompoundTable {
  display: none;
}

#compoundResultsTable {
  margin-top: 40px;
  overflow-x: auto;
}

#compoundResultsTable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}

#compoundResultsTable th,
#compoundResultsTable td {
  padding: 10px 12px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

#compoundResultsTable thead {
  background: #f7f9fb;
  font-weight: 600;
}

#compoundResultsTable tbody tr:nth-child(odd) {
  background: #fcfcfc;
}

/* Dividend history */
.dividend-history-wrapper {
  margin: 40px 0;
}

.dividend-history-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.dividend-history-legend {
  display: flex;
  gap: 16px;
  align-items: center;
}

.dividend-history-legend .legend-swatch {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 2px;
}

.dividend-history-cagrs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cagr-pill {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef2ff;
}

.cagr-pill.positive {
  background: #e7f8ee;
  color: #065f46;
}

.cagr-pill.negative {
  background: #fee2e2;
  color: #991b1b;
}

.dividend-history-ranges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.range-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  cursor: pointer;
}

.range-pill.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* Chart/Table Toggle Buttons */
.chart-table-toggle {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.toggle-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.toggle-btn.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* Data Tables */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

#inv-stocks-table {
  margin: 0 0 0 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.data-table thead th {
  background: #f8fafc;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 14px; /* slightly increased header text */
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  min-width: 120px; /* ensure long headers don't squish */
}

.data-table tbody td {
  padding: 8px;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}

.data-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.data-table tbody tr:hover {
  background: #f3f4f6;
}

.data-table .number-cell {
  text-align: right;
  font-feature-settings: 'tnum';
}

.data-table .positive {
  color: #059669;
}

.data-table .negative {
  color: #dc2626;
}

/* Table Column Tooltips */
.data-table thead th {
  position: relative;
}

.column-tooltip {
  display: inline-block;
  margin-left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6b7280;
  color: white;
  font-size: 10px;
  font-weight: normal;
  text-align: center;
  line-height: 14px;
  cursor: help;
  position: relative;
}

.column-tooltip:hover {
  background: #374151;
}

.column-tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  white-space: normal;
  width: 220px;
  z-index: 9999;
  transition: opacity 0.2s;
  pointer-events: none;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
}

/* Adjust tooltip position for right-most columns */
.data-table thead th:nth-last-child(1) .column-tooltip-text,
.data-table thead th:nth-last-child(2) .column-tooltip-text {
  left: auto;
  right: 0;
  transform: none;
}

/* Adjust tooltip position for left-most columns */
.data-table thead th:nth-child(1) .column-tooltip-text,
.data-table thead th:nth-child(2) .column-tooltip-text {
  left: 0;
  transform: none;
}

.column-tooltip:hover .column-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.column-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

/* Methodology Section */
.methodology-section {
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.methodology-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.methodology-toggle:hover {
  background: #2563eb;
  color: #ffffff;
}

.methodology-icon {
  transition: transform 0.2s;
  font-size: 12px;
  color: #ffffff;
}

.methodology-toggle[aria-expanded="true"] .methodology-icon {
  transform: rotate(180deg);
}

.methodology-content {
  padding: 16px 0;
  border-top: 1px solid #f3f4f6;
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.methodology-item {
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}

.methodology-term {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.methodology-definition {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .chart-table-toggle {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .dividend-history-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .column-tooltip-text {
    white-space: normal;
    width: 200px;
  }
}

/* Sortable indicators */
table.sortable thead th[data-dir="asc"]::after {
  content: " \25B2"; /* up triangle */
  font-size: 10px;
  color: #6b7280;
}
table.sortable thead th[data-dir="desc"]::after {
  content: " \25BC"; /* down triangle */
  font-size: 10px;
  color: #6b7280;
}

/* Nicer inline arrows container */
table.sortable thead th {
  position: relative;
  user-select: none;
}

/* Stocks cards layout */
.cards-container[data-view-container="card"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

@media (max-width: 1024px) {
  .cards-container[data-view-container="card"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards-container[data-view-container="card"] {
    grid-template-columns: 1fr;
  }
}

.stock-card .kv-label {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.stock-card .kv-value {
  font-weight: 600;
  color: #111827;
}
table.sortable thead th .th-label {
  /* display: inline-block; */
  margin-right: 6px;
}
table.sortable thead th .sort-arrows {
  display: inline-flex;
  flex-direction: column;
  line-height: 8px;
  vertical-align: middle;
}
table.sortable thead th .sort-arrows::before,
table.sortable thead th .sort-arrows::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  width: 0;
  height: 0;
  margin: 1px 0;
}
table.sortable thead th.sorted[data-dir="asc"] .sort-arrows::before {
  border-bottom: 6px solid #111827; /* filled up */
}
table.sortable thead th.sorted[data-dir="asc"] .sort-arrows::after {
  border-top: 6px solid #d1d5db; /* hollow down */
}
table.sortable thead th.sorted[data-dir="desc"] .sort-arrows::before {
  border-bottom: 6px solid #d1d5db; /* hollow up */
}
table.sortable thead th.sorted[data-dir="desc"] .sort-arrows::after {
  border-top: 6px solid #111827; /* filled down */
}

/* Snowball cards layout */
.snowball-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.snowball-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #f9fafb;
}
.snowball-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.snowball-card-panel {
  border-radius: 10px;
  padding: 12px;
}
.snowball-card-panel.drip { background: #ecfdf5; }
.snowball-card-panel.nodrip { background: #eff6ff; }

.snowball-card-panel > p {
  margin: 0.5em 0;
}

/* Snowball text refinements */
.snowball-heading { margin: 0 0 8px 0; }
.snowball-investment { margin: 4px 0; color: #374151; }
.snowball-drip-fg { color: #065f46; }
.snowball-nodrip-fg { color: #1d4ed8; }
.snowball-notes { margin-top: 12px; color: #374151; }

@media (max-width: 768px) {
  .snowball-cards { grid-template-columns: 1fr; }
  .snowball-card-grid { grid-template-columns: 1fr; }
}

/* Chart Summary Section */
.chart-summary-section {
  margin: 20px 0 25px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  /* border-left: 4px solid #3b82f6; */
  border-radius: 8px;
}

.chart-summary-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.chart-summary-text strong {
  color: #1e40af;
  font-weight: 600;
}

@media (max-width: 768px) {
  .chart-summary-section {
    margin: 15px 0 20px 0;
    padding: 14px 16px;
  }
  
  .chart-summary-text {
    font-size: 14px;
  }
}

