
/* v9.0.8 — Dark theme readability and homepage card fixes */
html[data-theme="dark"] .home-stage{
  min-height: 340px !important;
  height: auto !important;
  overflow: hidden !important;
}
html[data-theme="dark"] .home-stage::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(6,24,19,.78) 0%, rgba(10,31,25,.54) 40%, rgba(10,31,25,.24) 100%);
  pointer-events:none;z-index:0;
}
html[data-theme="dark"] .home-stage > *{position:relative;z-index:1;}
html[data-theme="dark"] .stage-copy{
  padding-bottom: 84px !important;
  max-width: 560px !important;
}
html[data-theme="dark"] .stage-actions{flex-wrap:wrap; row-gap:10px;}
html[data-theme="dark"] .stage-button,
html[data-theme="dark"] .stage-ghost{
  box-shadow:none !important;
}
@media (max-width: 760px){
  html[data-theme="dark"] .home-stage{min-height: 380px !important;}
  html[data-theme="dark"] .stage-copy{padding-bottom:96px !important;}
}

/* Upload picker contrast */
html[data-theme="dark"] .filepick{
  color:#edf7f1 !important;
  border:1px solid #567565 !important;
  background:rgba(26,51,42,.9) !important;
}
html[data-theme="dark"] .filepick input[type=file]{color:#edf7f1 !important;}
html[data-theme="dark"] .filepick ::file-selector-button,
html[data-theme="dark"] .mobile-photo-label ::file-selector-button{
  background:#325543 !important;
  color:#f5fbf7 !important;
  border:1px solid #749681 !important;
  border-radius:10px;
  padding:8px 12px;
}
html[data-theme="dark"] .mobile-photo-label{
  color:#edf7f1 !important;
  background:rgba(26,51,42,.92) !important;
  border:1px solid #567565 !important;
}

/* Metrics cards should not be bright white */
html[data-theme="dark"] .home-metrics a{
  background:linear-gradient(180deg,#243a31,#1b2d27) !important;
  border:1px solid #466557 !important;
  color:#edf7f1 !important;
  box-shadow:0 8px 24px rgba(0,0,0,.18) !important;
}
html[data-theme="dark"] .home-metrics a strong{color:#f7fcf9 !important;}
html[data-theme="dark"] .home-metrics a small,
html[data-theme="dark"] .home-metrics .metric-arrow{color:#bdd5c6 !important;}
html[data-theme="dark"] .home-metrics .metric-icon{
  background:#355645 !important;
  color:#d6f2de !important;
  border:1px solid #61836f !important;
}

/* Discovery / navigation cards */
html[data-theme="dark"] .discovery-head span,
html[data-theme="dark"] .discovery-head .eyebrow{color:#b8d0c2 !important;}
html[data-theme="dark"] .discovery-grid .discovery-card,
html[data-theme="dark"] .highlight-grid .highlight-card,
html[data-theme="dark"] .sidepanel,
html[data-theme="dark"] .action-panel,
html[data-theme="dark"] .pledge-panel{
  background:linear-gradient(180deg,#20342b,#172923) !important;
  border:1px solid #446255 !important;
  color:#edf7f1 !important;
}
html[data-theme="dark"] .discovery-card strong,
html[data-theme="dark"] .highlight-caption strong,
html[data-theme="dark"] .sidepanel h3,
html[data-theme="dark"] .action-panel h3,
html[data-theme="dark"] .pledge-panel h3{color:#f4faf6 !important;}
html[data-theme="dark"] .discovery-card small,
html[data-theme="dark"] .highlight-caption small,
html[data-theme="dark"] .sidepanel p,
html[data-theme="dark"] .sidepanel small,
html[data-theme="dark"] .action-panel p,
html[data-theme="dark"] .pledge-panel p,
html[data-theme="dark"] .sideevent span small,
html[data-theme="dark"] .subtlelink{color:#bdd3c4 !important; opacity:1 !important;}
html[data-theme="dark"] .discovery-card .discovery-symbol,
html[data-theme="dark"] .highlight-help .help-visual,
html[data-theme="dark"] .pledge-panel > span,
html[data-theme="dark"] .action-panel .sectiontitle span{color:#85d7b6 !important;}
html[data-theme="dark"] .discovery-card b,
html[data-theme="dark"] .metric-arrow{color:#d8eadf !important;}

/* Make your move quick links */
html[data-theme="dark"] .action-panel .quick{
  color:#eef8f2 !important;
  border-bottom:1px solid rgba(182,205,192,.35) !important;
}
html[data-theme="dark"] .action-panel .quick span{color:#eef8f2 !important;}
html[data-theme="dark"] .action-panel .quick:hover,
html[data-theme="dark"] .action-panel .quick:focus-visible{
  background:rgba(56,88,74,.32) !important;
  outline:2px solid rgba(188,217,197,.4);
  outline-offset:2px;
}

/* Coming up events */
html[data-theme="dark"] .sideevent{
  background:rgba(39,61,51,.55) !important;
  border:1px solid rgba(84,113,97,.65) !important;
  color:#edf7f1 !important;
}
html[data-theme="dark"] .sideevent b{
  background:#325443 !important;
  color:#f8fbf9 !important;
  border-radius:12px;
  padding:8px 10px;
  min-width:64px;
  text-align:center;
}
html[data-theme="dark"] .sideevent span{color:#edf7f1 !important;}

/* Ensure pale support/ads cards become dark and legible */
html[data-theme="dark"] .home-sidebar-discovery .panel,
html[data-theme="dark"] .home-sidebar-discovery .panel *{
  text-shadow:none !important;
}
html[data-theme="dark"] .home-sidebar-discovery .panel:not(.composer):not(.post):not(.comment){
  background:linear-gradient(180deg,#20342b,#172923) !important;
  border:1px solid #446255 !important;
  color:#edf7f1 !important;
}
html[data-theme="dark"] .home-sidebar-discovery .panel strong,
html[data-theme="dark"] .home-sidebar-discovery .panel h2,
html[data-theme="dark"] .home-sidebar-discovery .panel h3{color:#f4faf6 !important;}
html[data-theme="dark"] .home-sidebar-discovery .panel p,
html[data-theme="dark"] .home-sidebar-discovery .panel small,
html[data-theme="dark"] .home-sidebar-discovery .panel span{color:#bdd3c4 !important;}
