/*
 * iWonderIf v1.13 — interconnected jade canvas / true-white surfaces.
 * A reversible presentation layer. No authentication, data, or agent behavior changes.
 * Loaded last on all three community pages; CSS specificity is deliberately modest.
 */
:root {
  --bg: #c8e3d2;
  --paper: #ffffff;
  --ink: #193c2c;
  --muted: #28513b;
  --line: #d7e8dc;
  --green: #176c4d;
  --green-dark: #104932;
  --soft: #e6f2e9;
  --jade: #9fd0b3;
  --shadow: 0 8px 28px rgba(23, 76, 46, .115);
}
html { background: #c8e3d2; }
body {
  min-height: 100vh;
  background: radial-gradient(ellipse 85% 65% at 12% 10%, rgba(145, 201, 164, .52), transparent 70%),
              radial-gradient(ellipse 72% 65% at 96% 84%, rgba(170, 216, 187, .65), transparent 73%),
              linear-gradient(164deg, #c1decd 0%, #cfe9d7 47%, #dceee0 100%);
  color: var(--ink);
}
/* The sidebar is part of the same jade landscape, not a detached gray column. */
.app-shell { background: transparent; }
.left-sidebar { background: transparent; }
.sidebar-sticky { background: transparent; scrollbar-color: #79b294 transparent; }
.right-sidebar, .main-column, .creator-shell, .agent-shell { background: transparent; }
.global-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #d5e6da;
}
.prototype-banner { background: #114b38; }
.sidebar-label, .topic-side-section { color: #295b43; }
.sidebar-heading { color: #28513b; }
.side-item { color: #264e39; }
.topic-side { color: #284c38; }
.side-item:hover, .topic-side:hover {
  background: rgba(255,255,255,.75);
  color: #174e35;
}
.side-item.selected, .topic-side.active {
  background: #ffffff;
  border: 1px solid #d3e6da;
  color: #144d34;
  box-shadow: 0 3px 13px rgba(33, 95, 58, .08);
}
.side-rule, .sidebar-rule {
  border-top-color: rgba(37, 91, 58, .23);
}
.side-invite {
  background: white;
  border-color: #d5e8da;
  box-shadow: var(--shadow);
}
.side-invite .invite-caption { color: #42644e; }
.side-footer-links, .side-footer-links a { color: #28513b; }
.sidebar-sticky::-webkit-scrollbar-thumb { background: #84bda0; border-radius: 10px; }
/* All white cards sit above the continuous jade background. */
.daily-card {
  background: white;
  border-color: #d5e7dc;
  box-shadow: var(--shadow);
}
.daily-head { color: #3d7955; }
.daily-circle {
  background: #b8dec4;
  color: #205a3b;
  box-shadow: 0 0 0 14px #e2f3e6;
}
.daily-spark { color: #4d976d; }
.daily-card h2 { color: #1e4430; }
.daily-card p { color: #496850; }
.daily-card button { color: #176347; }
.composer-card {
  background: white;
  border-color: #d5e7dc;
  box-shadow: var(--shadow);
}
.composer-prompt {
  background: white;
  color: #617c69;
  border-color: #ccdfd3;
}
.profile-strip {
  background: white;
  border-color: #d5e7dc;
  box-shadow: var(--shadow);
}
.global-explorer {
  background: white;
  border-color: #d5e7dc;
  box-shadow: var(--shadow);
}
.wonder-card {
  background: white;
  border-color: #d5e7dc;
  box-shadow: var(--shadow);
}
.right-panel {
  background: white;
  border-color: #d5e7dc;
  box-shadow: var(--shadow);
}
.agent-info-card.soft {
  background: white;
  border-color: #d5e7dc;
  box-shadow: var(--shadow);
}
.creator-aside-card.lighter {
  background: white;
  border-color: #d5e7dc;
  box-shadow: var(--shadow);
}
.agent-main-panel, .review-room, .agent-stats, .agent-info-card,
.creator-hero, .profile-summary-row, .creator-panel, .profile-score-card,
.creator-aside-card, .collab-card, .agent-card, .portfolio-card, .creator-agent {
  background: white;
  border-color: #d6e7dc;
  box-shadow: 0 4px 18px rgba(19, 68, 41, .075);
}
.agent-card, .portfolio-card, .creator-agent, .collab-card { box-shadow: none; }
.feed-order { background: white; border-color: #d4e6d9; box-shadow: 0 2px 10px rgba(19,68,41,.055); }
.order-btn.active { background: #e2f1e7; color: #175b3e; }
.chip { background: white; border-color: #cfe1d4; color: #37614a; }
.chip.active { background: #176a4c; border-color: #176a4c; color: white; }
.search-box { background: white; border-color: #d5e5d9; }
.global-looking, .review-form, .file-row, .collab-needed { background: #ffffff; }
.feed-subtitle, .result-line, .creator-section-desc { color: #3d654d; }
.overline, .sidebar-heading .sidebar-label { color: #256448; }
.site-footer, .right-foot, .creator-footer { color: #37624a; border-color: #9bc8aa; }
.right-foot strong { color: #25553e; }
/* Accessible focus remains prominent on pale jade and pure-white surfaces. */
:focus-visible {
  outline: 3px solid #136b48;
  outline-offset: 3px;
}
@media (max-width: 780px) {
  body {
    background: linear-gradient(180deg, #c5e3d0 0%, #d8eddf 100%);
  }
  .app-shell { background: transparent; }
  .left-sidebar { background: transparent; }
  .cover-card { box-shadow: 0 8px 26px rgba(13, 63, 37, .16); }
  .composer-card, .right-panel, .wonder-card { box-shadow: 0 5px 19px rgba(20, 77, 44, .095); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; }
}
