/* Community Market night palette. Kept separate from the marketplace layout. */
:root[data-theme="dark"]{color-scheme:dark;--blue:#60c7a0;--ink:#edf5f1;--muted:#afc2b9;--line:#354a43;--bg:#101b18;--card:#1b2a25;--green:#56d79b;--amber:#ffca69}
:root[data-theme="dark"] body,:root[data-theme="dark"] .layout{background:var(--bg);color:var(--ink)}
:root[data-theme="dark"] .top,:root[data-theme="dark"] .side,:root[data-theme="dark"] .card,:root[data-theme="dark"] .modal,:root[data-theme="dark"] .panel,:root[data-theme="dark"] .dropdown,:root[data-theme="dark"] .nav,:root[data-theme="dark"] .sheet{background:var(--card);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea,:root[data-theme="dark"] .search input{background:#14231e;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] input:focus,:root[data-theme="dark"] textarea:focus{background:#182c24;border-color:#56d79b}
:root[data-theme="dark"] .iconbtn,:root[data-theme="dark"] .header-profile,:root[data-theme="dark"] .btn.ghost,:root[data-theme="dark"] .nav a:hover{background:#2a4036;color:#eaf8f0}
:root[data-theme="dark"] .muted,:root[data-theme="dark"] small{color:var(--muted)}
:root[data-theme="dark"] a{color:inherit}
:root[data-theme="dark"] .btn.primary,:root[data-theme="dark"] .avatar{background:#23865a;color:white}
:root[data-theme="dark"] .badge,:root[data-theme="dark"] .pill{border-color:var(--line)}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .top,:root[data-theme="dark"] .side{box-shadow:none}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 11px;border:1px solid var(--line);border-radius:22px;background:var(--card);color:var(--ink);font-weight:700;white-space:nowrap}
.theme-toggle:focus-visible{outline:3px solid #4ac18a;outline-offset:2px}
@media(max-width:600px){.theme-toggle{min-width:42px;padding:0 9px}.theme-toggle .theme-word{display:none}}


/* Dark mode contrast corrections: home hero, conversation cards and mobile nav. */
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .home-hero,
:root[data-theme="dark"] .community-hero{
  background:linear-gradient(130deg,#214e3d,#142c25)!important;
  color:#f2fff8!important;border:1px solid #3e715b;
}
:root[data-theme="dark"] .hero h1,
:root[data-theme="dark"] .hero h2,
:root[data-theme="dark"] .hero p{color:#f2fff8!important;opacity:1}
:root[data-theme="dark"] .hero .btn,
:root[data-theme="dark"] .hero .btn.light,
:root[data-theme="dark"] .hero a.btn{background:#3aaf77!important;color:#081b13!important;font-weight:800}
:root[data-theme="dark"] .hero .btn:hover{background:#68d99e!important}
:root[data-theme="dark"] .mobilebar,
:root[data-theme="dark"] .mobile-menu summary,
:root[data-theme="dark"] .mobile-menu nav{background:#1b2a25!important;color:#eaf8f0!important;border-color:#354a43}
:root[data-theme="dark"] .mobilebar a,
:root[data-theme="dark"] .mobile-menu a{color:#d6e9df!important}
:root[data-theme="dark"] .mobilebar a.active,
:root[data-theme="dark"] .mobile-menu a.active{color:#75e0ac!important}
:root[data-theme="dark"] .forum-mode{background:#101b18!important;color:#edf5f1!important}
:root[data-theme="dark"] .forum-board,
:root[data-theme="dark"] .forum-thread,
:root[data-theme="dark"] .forum-search,
:root[data-theme="dark"] .message,
:root[data-theme="dark"] .mobile-menu a,
:root[data-theme="dark"] .venue-map-label{background:#1b2a25!important;color:#edf5f1!important;border-color:#354a43}
:root[data-theme="dark"] .message.mine{background:#254536!important}
:root[data-theme="dark"] .forum-board .board-copy>span,
:root[data-theme="dark"] .forum-thread .muted{color:#afc2b9!important}
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .board-count{background:#294a3a!important;color:#c1f5d9!important}
:root[data-theme="dark"] .product .pic,
:root[data-theme="dark"] .detail-image,
:root[data-theme="dark"] .feedpost .photo{background:#25382f!important;color:#d6e9df}
:root[data-theme="dark"] .btn.ghost,
:root[data-theme="dark"] .text-link{color:#b4f1d0!important}
:root[data-theme="dark"] .btn:focus-visible,
:root[data-theme="dark"] a:focus-visible{outline-color:#77e7b1}


/* Selected charcoal-green palette for the dark home feature panels. */
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .home-hero,
:root[data-theme="dark"] .community-hero{
  background:#26342f!important;
  color:#f2fff8!important;
  border:1px solid #415b4e;
}
:root[data-theme="dark"] .hero h1,
:root[data-theme="dark"] .hero h2,
:root[data-theme="dark"] .hero p{
  color:#f2fff8!important;
}
:root[data-theme="dark"] .hero p{color:#c8ded2!important}
:root[data-theme="dark"] .hero .btn,
:root[data-theme="dark"] .hero .btn.light,
:root[data-theme="dark"] .hero a.btn{
  background:#36a978!important;
  color:#092318!important;
}

/* Match each surface to its text; shared by mobile and desktop pages. */
:root[data-theme="dark"] .titlebar,
:root[data-theme="dark"] .forum-hero,
:root[data-theme="dark"] .discussion-hero{
  background:#26342f;color:#edf5f1;border:1px solid #415b4e;
}
:root[data-theme="dark"] .titlebar h1,
:root[data-theme="dark"] .forum-hero h1,
:root[data-theme="dark"] .discussion-hero h1{color:#edf5f1}
:root[data-theme="dark"] .titlebar .page-intro,
:root[data-theme="dark"] .forum-hero p,
:root[data-theme="dark"] .discussion-hero p{color:#c8ded2;opacity:1;text-shadow:none}
:root[data-theme="dark"] .hero-community .forum-icon{fill:none;stroke:#75e0ac}
:root[data-theme="dark"] .form label,
:root[data-theme="dark"] .side h4,
:root[data-theme="dark"] .venue-review-form label{color:#d6e9df}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{color:#afc2b9;opacity:1}
:root[data-theme="dark"] .price,
:root[data-theme="dark"] .thread-board,
:root[data-theme="dark"] .discussion-board{color:#75e0ac}
:root[data-theme="dark"] .thread-excerpt{color:#afc2b9}
:root[data-theme="dark"] .venue-photo-empty,
:root[data-theme="dark"] .venue-photo-tile,
:root[data-theme="dark"] .venue-photo-more,
:root[data-theme="dark"] .venue-price-panel details,
:root[data-theme="dark"] .venue-reviews-panel,
:root[data-theme="dark"] .discussion-options,
:root[data-theme="dark"] .forum-suggestions,
:root[data-theme="dark"] .forum-board-menu a{
  background:#1b2a25;color:#edf5f1;border-color:#415b4e;
}
:root[data-theme="dark"] .forum-suggestion{color:#edf5f1}
:root[data-theme="dark"] .forum-suggestion span{color:#afc2b9}
:root[data-theme="dark"] .forum-suggestion:hover,
:root[data-theme="dark"] .forum-suggestion:focus{background:#2a4036}
:root[data-theme="dark"] .tab{background:#2a4036;color:#edf5f1;border-color:#6b887a}
:root[data-theme="dark"] .tab.on,
:root[data-theme="dark"] .forum-board-menu a[aria-current="page"]{background:#006641;color:#fff;border-color:#75e0ac}
:root[data-theme="dark"] .mobilebar a.active,
:root[data-theme="dark"] .nav a.active,
:root[data-theme="dark"] .mobile-menu a.active{background:#294a3a!important;color:#f2fff8!important}
:root[data-theme="dark"] .mobilebar a.active:after{background:#75e0ac}
:root[data-theme="dark"] .forum-page .forum-start,
:root[data-theme="dark"] .forum-page .forum-submit{color:#fff}
:root[data-theme="dark"] .forum-post footer a,
:root[data-theme="dark"] .forum-post footer button{color:#d6e9df}
:root[data-theme="dark"] .account-tiles h2{color:#75e0ac}

/* Keep short navigation labels readable at phone widths. */
@media(max-width:760px){.mobilebar a{font-size:12px;font-weight:750;text-transform:none}.mobilebar a.active:after{background:#006641}}

