.bmt-rich-content{font-size:inherit;line-height:1.7;color:inherit;overflow-wrap:anywhere}
.bmt-rich-content>:first-child{margin-top:0}
.bmt-rich-content>:last-child{margin-bottom:0}
.bmt-rich-content p{margin:0 0 13px}
.bmt-rich-content h2,.bmt-rich-content h3,.bmt-rich-content h4{font-family:Manrope,Inter,Arial,sans-serif;color:#102f4c;line-height:1.3;margin:20px 0 9px}
.bmt-rich-content h2{font-size:1.42em}.bmt-rich-content h3{font-size:1.2em}.bmt-rich-content h4{font-size:1.05em}
.bmt-rich-content ul,.bmt-rich-content ol{margin:0 0 14px;padding-left:24px}
.bmt-rich-content li{margin:5px 0}
.bmt-rich-content blockquote{margin:14px 0;padding:11px 15px;border-left:3px solid #218b7b;background:#f1f8f7;border-radius:0 8px 8px 0}
.bmt-rich-content a{color:#17796f;text-decoration:underline;text-underline-offset:2px}
.bmt-rich-content img{display:block;max-width:100%;height:auto;margin:14px auto;border-radius:9px;object-fit:contain}
.bmt-rich-content hr{border:0;border-top:1px solid #dce5ea;margin:20px 0}
.bmt-rich-content table{width:100%;border-collapse:collapse;margin:16px 0;font-size:.95em}
.bmt-rich-content th,.bmt-rich-content td{border:1px solid #d8e3e9;padding:9px 11px;text-align:left;vertical-align:top}
.bmt-rich-content th{background:#eff5f7;font-weight:600;color:#15334d}
.bmt-rich-content code{background:#eff4f6;padding:2px 5px;border-radius:4px;font-size:.94em}
.bmt-rich-content pre{background:#eff4f6;padding:12px 14px;border-radius:8px;overflow:auto;white-space:pre-wrap}
.student-lesson-content.bmt-rich-content{font-size:15px;line-height:1.75;color:#46617a}
.practice-question-rich{font-size:22px;font-weight:600;line-height:1.45;color:#102f4c;margin:18px 0 20px}
.practice-question-rich p{margin-bottom:10px}
.practice-review-question{font-size:17px;font-weight:600;color:#17324d}
.practice-explanation.bmt-rich-content{font-size:14px;font-weight:500}
.assignment-instructions.bmt-rich-content,.assignment-marking .bmt-rich-content{font-size:15px}
.student-announcement .bmt-rich-content{margin-top:6px;color:inherit}
.admin-field.has-rich-editor .tox-tinymce{border:1px solid #cbd8e0;border-radius:10px;box-shadow:none}
.richtext-load-note{display:block;margin-top:7px}
@media(max-width:700px){.practice-question-rich{font-size:19px}.bmt-rich-content table{display:block;overflow-x:auto;white-space:nowrap}}

.exam-instructions{margin:16px 0 18px;padding:14px 18px;background:#fff;border:1px solid #dce7ec;border-radius:12px;color:#486178;box-shadow:0 8px 20px rgba(16,47,76,.04)}
.exam-instructions>strong{display:block;color:#102f4c;margin-bottom:7px;font-weight:600}

/* Bright Mind Math Tools v4.0: formulas are safe source markers displayed as native MathML. */
.bmt-rich-content code.bmt-math,code.bmt-math{
  display:inline-block;vertical-align:middle;max-width:100%;overflow-x:auto;
  margin:0 .12em;padding:0 .16em;border:0;border-radius:4px;
  background:transparent;color:inherit;font-family:"Cambria Math","STIX Two Math",serif;
  font-size:1em;line-height:1.5;white-space:nowrap
}
.bmt-rich-content code.bmt-math[data-bmt-display="block"],code.bmt-math[data-bmt-display="block"]{
  display:block;white-space:normal;overflow-x:auto;margin:13px 0;text-align:center
}
.bmt-rich-content code.bmt-math math,code.bmt-math math{
  font-size:1.13em;font-family:"Cambria Math","STIX Two Math",serif
}
.bmt-math-backdrop{
  position:fixed;z-index:2147483640;inset:0;padding:20px;
  background:rgba(8,30,50,.62);display:flex;align-items:center;justify-content:center
}
.bmt-math-dialog{
  width:min(720px,100%);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);
  overflow:auto;background:#fff;border-radius:15px;box-shadow:0 24px 70px rgba(2,20,37,.28);
  font-family:Inter,Arial,sans-serif;font-size:14px;color:#17334d
}
.bmt-math-dialog-header{
  position:sticky;top:0;z-index:1;background:#fff;border-bottom:1px solid #dce6ee;
  padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px
}
.bmt-math-dialog-header strong{font-size:17px;font-weight:650}
.bmt-math-close{display:grid;place-items:center;cursor:pointer;width:34px;height:34px;border:1px solid #dfebf2;border-radius:8px;background:#f7fafb;color:#466277;font-size:23px}
.bmt-math-dialog-body{padding:17px 20px 19px}
.bmt-math-help{font-size:12.5px;line-height:1.6;color:#5a7085;margin:0 0 12px}
.bmt-math-label{display:block;font-size:12px;font-weight:700;color:#244459;margin:14px 0 7px}
.bmt-math-search,.bmt-math-text{
  box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #c8d8e5;
  border-radius:9px;background:#fff;color:#16324b;font-size:14px;
  font-family:Inter,Arial,sans-serif
}
.bmt-math-text{min-height:72px;resize:vertical;font-family:ui-monospace,Consolas,monospace;line-height:1.6}
.bmt-math-symbol-tabs,.bmt-math-template-grid{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}
.bmt-math-tab,.bmt-math-template{
  cursor:pointer;border:1px solid #d1dfe9;border-radius:8px;background:#f7fafc;
  color:#2f526d;padding:8px 10px;font-size:12px;font-weight:600
}
.bmt-math-tab.active{background:#e8f6f3;color:#156d68;border-color:#7dc4b6}
.bmt-math-symbol-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:7px;max-height:290px;overflow:auto}
.bmt-math-symbol{
  cursor:pointer;display:grid;place-items:center;min-height:43px;border:1px solid #d6e2ea;
  background:#fff;color:#163954;border-radius:8px;font-family:"Cambria Math",serif;font-size:23px
}
.bmt-math-symbol:hover,.bmt-math-template:hover{border-color:#83b7d0;background:#f0f8fd}
.bmt-math-mode-row{display:flex;gap:15px;flex-wrap:wrap;margin:12px 0}
.bmt-math-mode-row label{display:inline-flex;align-items:center;gap:7px;font-size:13px;cursor:pointer}
.bmt-math-mode-row input{width:auto!important;min-height:0!important}
.bmt-math-preview{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  min-height:94px;max-height:190px;overflow:auto;text-align:center;padding:15px;
  border:1px dashed #a5c5d8;border-radius:10px;background:#f6fbfe;
  font-size:22px;font-family:"Cambria Math","STIX Two Math",serif;color:#133452
}
.bmt-math-preview math{max-width:100%;font-family:"Cambria Math","STIX Two Math",serif}
.bmt-math-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}
.bmt-math-cancel,.bmt-math-insert{cursor:pointer;padding:11px 16px;border-radius:9px;font-size:13px;font-weight:650}
.bmt-math-cancel{border:1px solid #d0dfe9;color:#29445a;background:#fff}
.bmt-math-insert{border:1px solid #176b84;color:#fff;background:#146d87}
.bmt-math-insert:disabled{cursor:not-allowed;opacity:.5}
.bmt-math-dialog button:focus-visible,.bmt-math-dialog textarea:focus-visible,.bmt-math-dialog input:focus-visible{outline:2px solid #197fa2;outline-offset:2px}
.question-option-controls .bmt-option-symbol-button{
  display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:42px;
  font-family:"Cambria Math",serif;font-size:20px;cursor:pointer;
  border:1px solid #bdd4e0;border-radius:9px;background:#edf7fc;color:#1b627c
}
@media(max-width:700px){
  .bmt-math-backdrop{padding:9px;align-items:center}
  .bmt-math-dialog{max-height:calc(100dvh - 18px)}
  .bmt-math-dialog-body{padding:13px}
  .bmt-math-template-grid{gap:5px}
  .bmt-math-template{font-size:11px;padding:7px 8px}
  .bmt-math-preview{font-size:18px}
  .question-option-controls .bmt-option-symbol-button{height:36px}
}
