/* Ask It Simply Study Guide. Palette matches assets/dark.css: bg #07060B / #17141F, text #F2EDFC, purple #7A3FE0 #A77BFF #C9B2FF, green #7EE2B8, gold #FFD84D. */
.study, .study * { box-sizing: border-box; max-width: 100%; }
.study { min-width: 0; }
.study a { color: #C9B2FF; }
.study a:focus-visible, .study button:focus-visible, .study select:focus-visible {
  outline: 3px solid #FFD84D; outline-offset: 2px;
}
.sg-disc {
  margin: 0 0 16px; padding: 12px 14px;
  background: #17141F; color: #F2EDFC;
  border-left: 6px solid #FFD84D; border-radius: 14px;
}
.sg-disc a { color: #FFD84D; font-weight: 700; }
.sg-actions, .sg-modes, .sg-chips, .sg-dots, .sg-cats {
  display: flex; flex-wrap: wrap; gap: 10px; min-width: 0;
}
.sg-btn, .sg-mode, .sg-choice, .sg-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  padding: 10px 16px; border-radius: 14px;
  border: 2px solid #2F2747; background: #1B1728; color: #F2EDFC;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  text-align: center; white-space: normal;
}
.sg-btn.primary, .sg-mode.primary { background: #7A3FE0; border-color: #C9B2FF; color: #fff; }
.sg-btn.good { background: #00592C; border-color: #7EE2B8; color: #fff; }
.sg-btn.miss { background: #17141F; border-color: #A77BFF; color: #F2EDFC; }
.sg-btn:disabled, .sg-choice:disabled { opacity: .6; cursor: not-allowed; }
.sg-mode { flex: 1 1 140px; flex-direction: column; align-items: flex-start; gap: 2px; }
.sg-mode small { font-weight: 600; color: #D3CBE6; }
.sg-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; align-items: start;
}
@media (min-width: 760px) {
  .sg-grid.cards { grid-template-columns: 1fr 1fr; }
}
.sg-cat {
  display: block; text-decoration: none; color: inherit;
  background: #17141F; border: 1px solid #2F2747; border-radius: 18px;
  padding: 16px 18px; min-width: 0;
}
.sg-cat h2 { margin: 0 0 6px; font-size: 1.15rem; color: #F2EDFC; }
.sg-cat p, .sg-meta { margin: 0; color: #D3CBE6; font-size: 1rem; }
.sg-prog {
  margin-top: 10px; height: 10px; background: #1E1932; border-radius: 999px; overflow: hidden;
}
.sg-prog > i { display: block; height: 100%; width: 0; background: #7A3FE0; border-radius: 999px; }
.sg-notes h2 { margin: 1.4em 0 .4em; font-size: 1.2rem; color: #F2EDFC; }
.sg-notes p { margin: 0 0 .8em; color: #F2EDFC; line-height: 1.5; }
.sg-sources { margin-top: 28px; padding-top: 16px; border-top: 1px solid #2F2747; }
.sg-sources h2 { margin: 0 0 8px; }
.sg-sources li { margin: 6px 0; overflow-wrap: anywhere; }
.sg-flip {
  width: 100%; min-height: 200px; margin: 12px 0;
  background: #17141F; border: 2px solid #7A3FE0; border-radius: 20px;
  padding: 22px 18px; color: #F2EDFC; font-size: 1.15rem; line-height: 1.45;
  text-align: left; cursor: pointer;
}
.sg-flip .k { display: block; font-size: .85rem; font-weight: 800; color: #FFD84D; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.sg-slide {
  width: 100%; min-height: 220px; margin: 12px 0;
  background: #17141F; border: 1px solid #2F2747; border-radius: 20px;
  padding: 22px 18px;
}
.sg-slide h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 5vw, 1.8rem); color: #F2EDFC; }
.sg-slide p { margin: 0; color: #F2EDFC; font-size: 1.1rem; line-height: 1.45; }
.sg-dots { justify-content: center; gap: 6px; margin: 8px 0; }
.sg-dots button { width: 12px; height: 12px; min-width: 12px; min-height: 12px; padding: 0; border-radius: 50%; background: #2F2747; border: 0; }
.sg-dots button[aria-current="true"] { background: #FFD84D; }
.sg-timer {
  position: sticky; top: 0; z-index: 4;
  margin: 0 0 14px; padding: 10px 14px;
  background: #17141F; color: #F2EDFC; border: 1px solid #2F2747; border-radius: 14px;
  font-weight: 800;
}
.sg-timer.warn { border-color: #FFD84D; color: #FFD84D; }
.sg-choice { width: 100%; justify-content: flex-start; text-align: left; }
.sg-choice.right { background: #00592C; border-color: #7EE2B8; color: #fff; }
.sg-choice.wrong { background: #2A1630; border-color: #A77BFF; }
.sg-why { margin: 12px 0; padding: 12px 14px; background: #1B1728; border-radius: 14px; color: #F2EDFC; }
.sg-score { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; color: #7EE2B8; margin: 8px 0; }
.sg-table { width: 100%; border-collapse: collapse; }
.sg-table th, .sg-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #2F2747; vertical-align: top; overflow-wrap: anywhere; }
.sg-test {
  margin: 0 0 16px; padding: 14px 16px;
  background: #FFD84D; color: #17141F; font-weight: 800;
  border-radius: 14px;
}
.sg-muted { color: #D3CBE6; }
.sg-status { margin: 8px 0 0; font-weight: 700; color: #7EE2B8; }
.sg-list { list-style: none; padding: 0; margin: 12px 0; }
.sg-list li { margin: 0 0 10px; padding: 12px 14px; background: #17141F; border-radius: 14px; }
.sg-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; }
.sg-check input { width: 22px; height: 22px; flex: none; }
noscript.sg-noscript { display: block; margin: 16px 0; padding: 12px 14px; background: #1B1728; border-radius: 14px; }

.sg-plan-block { margin: 0 0 18px; overflow-wrap: anywhere; }
.sg-plan-block h2 { font-size: 1.15rem; margin: 16px 0 8px; }
.sg-plan-block p { margin: 0 0 10px; }

.sg-disclaimer {
  margin: 12px 0;
  padding: 14px 16px;
  background: #1B1728;
  border: 2px solid #FFD84D;
  border-radius: 14px;
  font-weight: 800;
  color: #F2EDFC;
  overflow-wrap: anywhere;
}
.sg-coming {
  display: inline-block;
  margin: 4px 0 0 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2F2747;
  color: #C9B2FF;
  font-size: 0.85rem;
  font-weight: 700;
}
.sg-plan-block h3 { font-size: 1.05rem; margin: 14px 0 8px; }
