/* ============================================================
   ideas.css — overlay on top of wc-design.css
   for the "5 ideas for HSCScience" design canvas.
   ============================================================ */

html, body { margin: 0; padding: 0; background: var(--adv-bg, #f9efe1); font-family: 'DM Sans', system-ui, sans-serif; }

/* ─── Artboard shell ──────────────────────────────────────── */
.idea {
  width: 100%; height: 100%;
  background: var(--adv-bg);
  display: grid;
  grid-template-rows: auto 1fr;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--adv-ink);
  overflow: hidden;
}

.idea-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  background: var(--adv-panel);
  border-bottom: 1.5px solid var(--adv-rule);
}
.idea-num {
  font-family: 'Outfit', sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--adv-ink);
  position: relative;
}
.idea-num small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--adv-muted);
  margin-bottom: 4px;
  letter-spacing: 2px;
}
.idea-title {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--adv-ink);
  margin: 0 0 6px;
}
.idea-title em {
  font-style: italic;
  color: var(--adv-rose-deep);
}
.idea-tag {
  font-size: 14.5px;
  color: var(--adv-ink-soft);
  line-height: 1.45;
  max-width: 640px;
  font-weight: 500;
}
.idea-tag strong { color: var(--adv-ink); font-weight: 700; }

.idea-pill-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.idea-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--adv-soft);
  border: 1.5px solid var(--adv-rule);
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--adv-ink-soft);
  white-space: nowrap;
}
.idea-pill.gold { background: var(--adv-gold-soft); color: var(--adv-gold-deep); border-color: var(--adv-gold); }
.idea-pill.rose { background: var(--adv-rose-soft); color: var(--adv-rose-deep); border-color: var(--adv-rose); }
.idea-pill.plum { background: var(--adv-plum-soft); color: var(--adv-plum-deep); border-color: var(--adv-plum); }
.idea-pill.green { background: var(--adv-green-soft); color: var(--adv-green); border-color: var(--adv-green); }
.idea-pill .ic { width: 12px; height: 12px; }

.idea-body {
  padding: 22px 28px 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;
  overflow: hidden;
  min-height: 0;
}
.idea-stage {
  background: var(--adv-panel);
  border: 1.5px solid var(--adv-rule);
  border-radius: var(--adv-r-lg);
  box-shadow: var(--adv-shadow);
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.idea-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.idea-rail h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--adv-muted);
  margin: 0 0 6px;
}
.idea-rail-card {
  background: var(--adv-panel);
  border: 1.5px solid var(--adv-rule);
  border-radius: var(--adv-r);
  padding: 14px 16px;
  box-shadow: var(--adv-shadow);
}
.idea-rail-card.dark {
  background: linear-gradient(135deg, #2d2640, #4e4068);
  color: #fff;
  border-color: transparent;
}
.idea-rail-card.dark h4 { color: var(--adv-gold); }
.idea-rail-card.dark .stat-num { color: #fff; }
.idea-rail-card.dark .stat-lbl { color: rgba(255,255,255,0.65); }
.idea-rail-card .stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--adv-ink);
  line-height: 1;
  margin-bottom: 4px;
}
.idea-rail-card .stat-lbl {
  font-size: 12px;
  color: var(--adv-muted);
  font-weight: 600;
  line-height: 1.35;
}
.idea-rail-card .stat-row {
  display: flex; align-items: baseline; gap: 6px;
}
.idea-rail-card .stat-row strong {
  font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--adv-ink);
}

.idea-pros { display: flex; flex-direction: column; gap: 8px; }
.idea-pros li {
  list-style: none;
  font-size: 13px;
  color: var(--adv-ink-soft);
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
}
.idea-pros li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 14px; height: 14px;
  background: var(--adv-green-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b9b7c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12l5 5L20 6'/></svg>");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.idea-pros li strong { color: var(--adv-ink); font-weight: 700; }

/* ============================================================
   Idea 1 · Syllabus Mastery Map
   ============================================================ */
.sm-wrap {
  display: grid;
  grid-template-columns: 200px 1fr 320px;
  height: 100%;
  min-height: 0;
}
.sm-nav {
  background: var(--adv-soft);
  padding: 18px 12px;
  border-right: 1.5px solid var(--adv-rule);
  overflow: auto;
}
.sm-nav-section {
  margin-bottom: 16px;
}
.sm-nav-title {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--adv-muted);
  padding: 0 8px 8px;
}
.sm-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--adv-ink-soft);
  border-radius: var(--adv-r-sm);
  cursor: pointer;
}
.sm-nav-item.active { background: var(--adv-rose); color: #fff; font-weight: 700; }
.sm-nav-item.active .sm-nav-count { background: rgba(255,255,255,0.18); color: #fff; }
.sm-nav-count {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  background: var(--adv-panel);
  padding: 2px 6px;
  border-radius: 99px;
  color: var(--adv-muted);
  font-weight: 700;
}

.sm-board {
  padding: 18px 22px;
  overflow: auto;
  min-height: 0;
}
.sm-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.sm-board-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--adv-ink);
}
.sm-board-head h2 small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--adv-muted);
  margin-bottom: 4px;
}
.sm-board-stat {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--adv-ink);
  line-height: 1;
}
.sm-board-stat small { font-size: 12px; font-weight: 600; color: var(--adv-muted); letter-spacing: 0.4px; }

.sm-legend {
  display: flex;
  gap: 12px;
  margin: 12px 0 18px;
  font-size: 11.5px;
  color: var(--adv-ink-soft);
  font-weight: 600;
}
.sm-legend-sw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sm-legend-sw i {
  display: block;
  width: 12px; height: 12px;
  border-radius: 3px;
  border: 1.5px solid rgba(0,0,0,0.06);
}
.sw-untouched i { background: #e5dccb; }
.sw-shaky i     { background: #c47b8a; }
.sw-learning i  { background: #d6a85f; }
.sw-mastered i  { background: #6b9b7c; }
.sw-perfect i   { background: #2d3142; }

.sm-module {
  margin-bottom: 22px;
}
.sm-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sm-module-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--adv-ink);
}
.sm-module-title em {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--adv-muted);
  font-style: normal;
  margin-left: 8px;
}
.sm-module-bar {
  display: flex;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--adv-rule-soft);
  width: 160px;
}
.sm-module-bar i { display: block; height: 100%; }

.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
}
.sm-dot {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  position: relative;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.04);
}
.sm-dot.untouched { background: #e5dccb; color: #8a7a5e; }
.sm-dot.shaky     { background: #c47b8a; }
.sm-dot.learning  { background: #d6a85f; color: #3d2700; }
.sm-dot.mastered  { background: #6b9b7c; }
.sm-dot.perfect   { background: #2d3142; color: var(--adv-gold); }
.sm-dot.selected {
  outline: 3px solid var(--adv-gold);
  outline-offset: 2px;
  z-index: 2;
}

.sm-detail {
  background: var(--adv-soft);
  border-left: 1.5px solid var(--adv-rule);
  padding: 22px 22px;
  overflow: auto;
  min-height: 0;
}
.sm-detail-eye {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--adv-rose-deep);
  margin-bottom: 8px;
}
.sm-detail-id {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: var(--adv-muted);
  margin-bottom: 8px;
  font-weight: 700;
}
.sm-detail-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--adv-ink);
  line-height: 1.4;
  padding-left: 12px;
  border-left: 3px solid var(--adv-rose);
  margin-bottom: 18px;
}
.sm-detail-mastery {
  background: var(--adv-panel);
  border-radius: var(--adv-r-sm);
  padding: 14px 16px;
  border: 1.5px solid var(--adv-rule);
  margin-bottom: 14px;
}
.sm-detail-mast-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--adv-ink-soft); font-weight: 600;
  margin-bottom: 6px;
}
.sm-detail-mast-bar {
  height: 6px; border-radius: 99px; background: var(--adv-rule-soft); overflow: hidden;
}
.sm-detail-mast-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--adv-gold), var(--adv-rose)); border-radius: 99px; }

.sm-attempts { margin-bottom: 14px; }
.sm-attempts h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--adv-muted);
  margin: 0 0 8px;
}
.sm-attempt {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px; align-items: center;
  padding: 7px 10px;
  background: var(--adv-panel);
  border-radius: var(--adv-r-sm);
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--adv-ink-soft);
}
.sm-attempt-mark {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}
.sm-attempt-mark.ok { background: var(--adv-green); }
.sm-attempt-mark.no { background: var(--adv-rose); }
.sm-attempt-mark .ic { width: 9px; height: 9px; }
.sm-attempt-q {
  font-size: 12px; color: var(--adv-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sm-attempt-date { font-family: 'DM Mono', monospace; font-size: 10.5px; color: var(--adv-muted); }

.sm-detail-ctas {
  display: flex; flex-direction: column; gap: 8px;
}
.sm-cta {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--adv-panel);
  border: 1.5px solid var(--adv-rule);
  border-radius: var(--adv-r-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--adv-ink);
  text-align: left;
  cursor: pointer;
}
.sm-cta.primary {
  background: var(--adv-rose);
  color: #fff;
  border-color: var(--adv-rose-deep);
  box-shadow: 0 2px 0 var(--adv-rose-deep);
}
.sm-cta.primary .ic { color: #fff; }
.sm-cta .ic { width: 14px; height: 14px; color: var(--adv-rose); }
.sm-cta small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--adv-ink-soft);
  margin-top: 2px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0;
}
.sm-cta.primary small { color: rgba(255,255,255,0.85); }
