/* Use one content column throughout the mathematics learning flow. */
.ri-shell[data-rich-kind="mbaMath"] {
  --ri-content-width:100%;
  --ri-content-edge:24px;
  --ri-card-padding:20px;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-header {
  padding:12px var(--ri-content-edge);
}
.ri-shell[data-rich-kind="mbaMath"] .ri-progress-wrap {
  padding:12px var(--ri-content-edge) 0;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-main {
  padding:20px 24px 24px;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-main > * {
  width:100%;
  max-width:var(--ri-content-width);
  margin-inline:auto;
  min-width:0;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-main > .ri-eyebrow { margin-bottom:8px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-main > h2 { margin-bottom:12px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-main > .ri-description { margin-bottom:18px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-banner {
  display:flex;
  align-items:center;
  gap:18px;
  padding:22px 24px;
  margin-bottom:18px;
  border:1px solid color-mix(in srgb,var(--ri-accent) 35%,var(--ri-border));
  border-left:4px solid var(--ri-accent);
  border-radius:16px;
  background:linear-gradient(110deg,var(--ri-accent-soft),var(--ri-paper));
}
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-mark {
  display:grid;
  place-items:center;
  width:58px;
  height:64px;
  flex:0 0 58px;
  border-radius:13px;
  background:var(--ri-accent);
  color:var(--ri-paper);
}
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-mark svg { width:34px; height:34px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-heading { min-width:0; }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-heading .ri-eyebrow { margin:0 0 8px; font-size:11px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-source {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin:0;
  color:var(--ri-ink);
  font-size:20px;
  font-weight:750;
  letter-spacing:0;
  line-height:1.4;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-number {
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:5px 12px;
  border:1px solid color-mix(in srgb,var(--ri-accent) 35%,var(--ri-border));
  border-radius:9px;
  background:var(--ri-paper);
  color:var(--ri-accent);
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-concept-topics { gap:14px; }
.ri-shell[data-rich-kind="mbaMath"] :is(.ri-concept-topics > div,.ri-concept-outcome,.ri-worked-step,.ri-example,.ri-question) {
  padding:var(--ri-card-padding);
  border-radius:14px;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-question {
  margin-top:14px;
  border:1px solid var(--ri-border);
  background:var(--ri-paper);
}
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-figure {
  margin-block:14px;
  padding:var(--ri-card-padding);
  border:1px solid var(--ri-border);
  border-radius:14px;
  background:var(--ri-paper);
  text-align:center;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-figure img {
  display:block;
  width:var(--ri-exam-image-width,300px);
  max-width:100%;
  height:auto;
  margin-inline:auto;
  border-radius:4px;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-figure figcaption { margin-top:10px; color:var(--ri-muted); font-size:11px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-table-wrap {
  margin-block:14px;
  padding:var(--ri-card-padding);
  border:1px solid var(--ri-border);
  border-radius:14px;
  background:var(--ri-paper);
  overflow-x:auto;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-table { width:100%; border-collapse:collapse; font-size:13px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-table caption { padding-bottom:12px; color:var(--ri-muted); text-align:left; font-size:12px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-table :is(th,td) { padding:10px 12px; border:1px solid var(--ri-border); text-align:center; white-space:nowrap; }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-table th { font-weight:650; background:var(--ri-accent-soft); }
.ri-shell[data-rich-kind="mbaMath"] .ri-exam-table-note { display:none; }
.ri-shell[data-rich-kind="mbaMath"] .ri-question h3 {
  margin:0 0 16px;
  font-size:15px;
  line-height:1.85;
  white-space:pre-line;
  overflow-wrap:anywhere;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-options {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(148px,1fr));
  gap:10px;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-options-long { grid-template-columns:minmax(0,1fr); }
.ri-shell[data-rich-kind="mbaMath"] .ri-option {
  width:100%;
  min-width:0;
  min-height:50px;
  padding:12px;
  align-items:flex-start;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-option > span { margin-top:1px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-option > b { align-self:center; }
.ri-shell[data-rich-kind="mbaMath"] .ri-question-actions { margin-top:16px; gap:10px; }
.ri-shell[data-rich-kind="mbaMath"] :is(.ri-hint,.ri-feedback) { margin-top:16px; padding:16px; }
.ri-shell[data-rich-kind="mbaMath"] :is(.ri-hint,.ri-feedback) p {
  font-size:13px;
  line-height:1.9;
  white-space:pre-line;
  overflow-wrap:anywhere;
}
.ri-shell[data-rich-kind="mbaMath"] .ri-reference { margin-top:20px; padding:12px 16px; }
.ri-shell[data-rich-kind="mbaMath"] .ri-footer {
  padding-left:var(--ri-content-edge);
  padding-right:max(260px,var(--ri-content-edge));
}
@media (max-width:900px) {
  .ri-shell[data-rich-kind="mbaMath"] .ri-footer { padding-right:max(200px,var(--ri-content-edge)); }
}
@media (max-width:700px) {
  .ri-shell[data-rich-kind="mbaMath"] .ri-exam-table-note { display:block; margin-block:-4px 14px; color:var(--ri-muted); font-size:11px; }
  .ri-shell[data-rich-kind="mbaMath"] { --ri-content-edge:16px; --ri-card-padding:14px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-header { padding-block:10px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-progress-wrap { padding-top:10px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-main { padding:16px 16px 20px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-main > h2 { margin-bottom:10px; font-size:21px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-main > .ri-description { margin-bottom:14px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-exam-banner { gap:12px; padding:16px 14px; margin-bottom:14px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-exam-mark { width:42px; height:52px; flex-basis:42px; border-radius:10px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-exam-mark svg { width:28px; height:28px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-exam-heading .ri-eyebrow { font-size:10px; margin-bottom:7px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-exam-source { gap:8px; font-size:18px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-exam-number { min-height:28px; padding:4px 9px; font-size:12px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-concept-topics { gap:10px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-options-long { grid-template-columns:minmax(0,1fr); }
  .ri-shell[data-rich-kind="mbaMath"] .ri-question h3 { font-size:13px; margin-bottom:12px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-option { padding:10px; gap:8px; }
  .ri-shell[data-rich-kind="mbaMath"] :is(.ri-hint,.ri-feedback) { padding:12px; }
  .ri-shell[data-rich-kind="mbaMath"] .ri-footer { padding:10px 16px 58px; }
}
