/* MoneyVersations Community — visual refresh layer
   Intentionally presentation-only: does not alter layout logic or functionality. */
:root {
  color-scheme: light;
  --navy: #0b1733;
  --navy-soft: #14264a;
  --green: #17845d;
  --green-light: #e8f5ee;
  --gold: #d5ad55;
  --ink: #1c2940;
  --muted: #68758a;
  --line: #e6eaf0;
  --surface: #ffffff;
  --page: #f5f7fa;
  --mv-brand-border: #e5eaf1;
  --mv-card-shadow: 0 8px 26px rgba(11, 23, 51, .045);
  --mv-card-radius: 18px;
}
html { background: var(--page); }
body {
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #d9f0e4; color: var(--navy); }
a { text-underline-offset: 3px; }
.site-header {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 3px 18px rgba(11, 23, 51, .08);
}
.brand-mark {
  background: rgba(255,255,255,.045);
  border-color: rgba(213,173,85,.72);
}
.header-nav a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23,132,93,.35);
  outline-offset: 2px;
}
/* Shared cards and content surfaces */
.auth-card, .dashboard-card, .profile-card, .profile-section,
.post-composer, .feed-post, .empty-feed, .saved-post-card,
.dashboard-saved-card, .coming-soon, .mv-notification-dropdown,
.mv-account-dropdown, .mv-menu-panel, .profile-summary {
  border-color: var(--mv-brand-border);
  box-shadow: var(--mv-card-shadow);
}
.auth-card, .dashboard-card, .profile-card, .profile-section,
.post-composer, .feed-post, .empty-feed, .saved-post-card,
.dashboard-saved-card, .coming-soon {
  background-color: var(--surface);
  border-radius: var(--mv-card-radius);
}
/* Typography hierarchy */
.page-main h1, .page-main h2, .page-main h3,
.feed-heading h1, .feed-list-heading h2,
.auth-card h1, .dashboard-card h1,
.profile-card h1, .profile-section h2 {
  color: var(--navy);
  letter-spacing: -.025em;
}
.muted, .feed-heading .muted, .post-author-handle,
.composer-user small, .field-hint, .small-note,
.saved-post-meta { color: var(--muted); }
/* Buttons: one consistent primary and secondary language */
.button-primary, .nav-join {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 3px 8px rgba(23,132,93,.12);
}
.button-primary:hover, .nav-join:hover {
  background: #116b4b;
  border-color: #116b4b;
}
.button-secondary {
  background: #fff;
  border-color: #dbe3ec;
  color: var(--navy);
}
.button-secondary:hover {
  background: #f7f9fc;
  border-color: #cbd5e1;
}
/* Inputs stay calm and readable */
.auth-card input, .dashboard-card input, .profile-card input,
.profile-card textarea, .post-composer textarea,
.mv-inline-edit textarea, .mv-reply-form textarea,
.mv-report-form select, .mv-report-form textarea {
  border-color: #dbe3ec;
  background-color: #fff;
  color: var(--ink);
}
.auth-card input:focus, .dashboard-card input:focus,
.profile-card input:focus, .profile-card textarea:focus,
.post-composer textarea:focus, .mv-inline-edit textarea:focus,
.mv-reply-form textarea:focus {
  border-color: #64ad8d;
  box-shadow: 0 0 0 3px rgba(23,132,93,.10);
  outline: none;
}
/* Feed controls: restrained green active state */
.mv-feed-tab.is-active, .mv-feed-tab[aria-selected="true"] {
  color: var(--green);
  border-color: var(--green);
}
.mv-text-action, .auth-switch a, .dashboard-links a,
.profile-meta a { color: var(--green); }
.mv-text-action:hover, .auth-switch a:hover,
.dashboard-links a:hover, .profile-meta a:hover { color: #116b4b; }
/* Small brand accents only — gold is not used for ordinary actions */
.stage-label { color: #f0d99b; }
@media (max-width: 640px) {
  .site-header { box-shadow: 0 2px 12px rgba(11,23,51,.07); }
  .auth-card, .dashboard-card, .profile-card, .profile-section,
  .post-composer, .feed-post, .empty-feed, .saved-post-card,
  .dashboard-saved-card, .coming-soon { border-radius: 15px; }
}


/* MoneyVersations approved MV conversation icon — shared header only. */
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.site-header .brand-icon {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
}
.site-header .brand-copy {
  display: block;
  min-width: 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.12;
}
.site-header .brand-copy small {
  display: block;
  margin-top: 4px;
  color: rgba(231,238,250,.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .site-header .brand-copy { font-size: 15px; }
  .site-header .brand-copy small { font-size: 9px; letter-spacing: .16em; }
}
