/* 0.6.18 light contrast v2 — loaded LAST on purpose.
   Light mode uses a dark olive for text/outlines, while filled CTA controls retain neon lime. */
html[data-theme="light"]{
  --lime-text:#526d0a;
  --lime-text-strong:#456000;
  --lime-fill:#b7ff2a;
  --lime-fill-2:#98df18;
  --kd-lime:var(--lime-text);
  --kd-lime2:var(--lime-text-strong);
  --lime:var(--lime-text);
  --lime2:var(--lime-text-strong);
}

/* Local screen variables that previously hard-coded neon lime. */
html[data-theme="light"] .diary-screen{--diary-lime:var(--lime-text);}
html[data-theme="light"] .search-screen{--search-lime:var(--lime-text);}
html[data-theme="light"] .library-screen,
html[data-theme="light"] .watchlist-screen{--library-lime:var(--lime-text);}
html[data-theme="light"] .register-screen{--register-lime:var(--lime-text);}
html[data-theme="light"] .collections-screen,
html[data-theme="light"] .collection-detail-screen,
html[data-theme="light"] .collection-edit-screen{--collections-lime:var(--lime-text);}

/* Foreground accents: explicit selectors so this cannot be neutralised by legacy vars. */
html[data-theme="light"] .brand-lockup strong,
html[data-theme="light"] .topbar-brand b,
html[data-theme="light"] .home-kicker span,
html[data-theme="light"] .home-section .link,
html[data-theme="light"] .home-resume-copy small,
html[data-theme="light"] .home-resume-arrow,
html[data-theme="light"] .home-metric .metric-icon,
html[data-theme="light"] .home-metric strong,
html[data-theme="light"] .home-layout-toggle b,
html[data-theme="light"] .nav.active:not(.register),
html[data-theme="light"] .search-section-head span,
html[data-theme="light"] .search-feed span,
html[data-theme="light"] .search-result-state .seen,
html[data-theme="light"] .diary-seen-mark,
html[data-theme="light"] .diary-type-tag.is-series,
html[data-theme="light"] .library-resume-next,
html[data-theme="light"] .watchlist-tonight-copy small,
html[data-theme="light"] .watchlist-tonight-card b,
html[data-theme="light"] .watchlist-rating,
html[data-theme="light"] .register-result-status,
html[data-theme="light"] .register-result-status.is-seen,
html[data-theme="light"] .tool-icon,
html[data-theme="light"] .vault-shield,
html[data-theme="light"] .vault-hero h2,
html[data-theme="light"] .data-note strong{
  color:var(--lime-text)!important;
}

html[data-theme="light"] .home-resume-arrow,
html[data-theme="light"] .tool-icon,
html[data-theme="light"] .vault-shield{
  border-color:var(--lime-text)!important;
}

/* Keep filled controls bright because their dark glyph/text already has excellent contrast. */
html[data-theme="light"] .register-icon,
html[data-theme="light"] .diary-tabs button.active,
html[data-theme="light"] .search-tabs button.active,
html[data-theme="light"] .watchlist-tabs button.active,
html[data-theme="light"] .register-tabs button.active,
html[data-theme="light"] .segmented.compact button.active,
html[data-theme="light"] .access-primary{
  background:var(--lime-fill)!important;
  color:#071004!important;
}
html[data-theme="light"] .register-icon{box-shadow:0 0 0 5px var(--bg),0 9px 26px rgba(82,109,10,.16)!important;}

/* Focus/active outlines should remain visible but not fluorescent on paper backgrounds. */
html[data-theme="light"] .search-feed.active,
html[data-theme="light"] .diary-compact-row:focus-visible,
html[data-theme="light"] .search-result-row:focus-visible,
html[data-theme="light"] .library-metric-card:focus-visible{
  outline-color:var(--lime-text)!important;
  border-color:var(--lime-text)!important;
}
