/* License Medical: one font, one look. Added 2026-10-09. Loaded after all other CSS. Remove the <link> to lm-type.css to undo. */
:root{
  --lm-font:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --lm-ink:#13213a; --lm-text:#334155; --lm-line:#dbe3f0; --lm-blue:#005EB8;
  --lm-ok:#15803d; --lm-ok-bg:#eaf7ee; --lm-bad:#b42318; --lm-bad-bg:#fdecea;
}

/* 1. One font everywhere (icon fonts excluded) */
body, body *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not([class*="icon"]):not([class*="glyphicon"]):not([class^="ion"]):not([class*=" ion-"]):not([class^="md-"]):not([class*=" md-"]){
  font-family:var(--lm-font) !important;
}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,h4,h5,h6{letter-spacing:-0.01em !important;text-wrap:balance}
button,.btn,input[type=submit],input[type=button],a.button{letter-spacing:0 !important}
button:not([class*="lic-faq"]),input[type=submit],input[type=button]{font-size:max(15px,1em)}

/* 2. Question & answer screen */
.questions,.questions_desc,.quiz_des{font-size:17px !important;line-height:1.65 !important;color:var(--lm-ink) !important;text-align:justify !important;hyphens:auto;-webkit-hyphens:auto}
.questions *,.questions_desc *,.quiz_des *{font-size:inherit !important;line-height:inherit !important;text-align:justify !important}
.questions p{margin:0 0 .7em}
.questions_desc{max-height:none !important;overflow:visible !important;background:#f7f9fc !important;border:1px solid var(--lm-line);border-radius:12px;padding:18px 20px !important}
.questions_desc u,.quiz_des u{text-decoration:none;font-weight:700}
.questions_desc p:empty,.quiz_des p:empty{display:none}
.questions_desc img,.questions img{max-width:100%;height:auto}

.answer-list{counter-reset:opt;padding:0 !important;border:0 !important;background:none !important}
.answer-list li{list-style:none;margin:0 0 8px !important;border:0 !important;padding:0 !important;background:none !important}
.answer-list label{display:flex !important;align-items:center;gap:12px;width:100%;margin:0 !important;padding:12px 14px !important;border:1px solid var(--lm-line) !important;border-radius:10px;background:#fff;font-size:17px !important;line-height:1.4 !important;font-weight:400 !important;color:var(--lm-ink) !important;cursor:pointer;text-align:left !important}
.answer-list label *{font-size:inherit !important}
.answer-list label::before{counter-increment:opt;content:counter(opt,upper-alpha);flex:none;width:28px;height:28px;border-radius:50%;border:1.5px solid #B8C9DD;display:grid;place-items:center;font-size:14px;font-weight:700;color:var(--lm-text);font-family:var(--lm-font)}
.answer-list .icon_radio{display:none !important}
.answer-list label:hover{border-color:var(--lm-blue) !important}
.answer-list input:checked + label{border-color:var(--lm-blue) !important;background:#E8F1FA}
.answer-list input:checked + label::before{background:var(--lm-blue);border-color:var(--lm-blue);color:#fff}
.answer-list label:has(.icon-val){border-color:var(--lm-ok) !important;background:var(--lm-ok-bg)}
.answer-list label:has(.icon-val)::before{background:var(--lm-ok);border-color:var(--lm-ok);color:#fff}
.answer-list label:has(.icon-err){border-color:var(--lm-bad) !important;background:var(--lm-bad-bg)}
.answer-list label:has(.icon-err)::before{background:var(--lm-bad);border-color:var(--lm-bad);color:#fff}
.answer-list .icon-val,.answer-list .icon-err{margin-left:auto}

/* 3. Phones: no sideways scrolling, no justified gaps */
@media (max-width:900px){
  .lic-hero,.lic-sce-grid,.lic-mrcp-grid,.lic-why-grid,.lic-steps-grid{grid-template-columns:minmax(0,1fr) !important}
  .lic-card{min-width:0 !important}
}
@media (max-width:600px){
  html,body{overflow-x:hidden}
  p,li{text-align:left}
}

/* 4. Strong override for question pages (the old theme forces Lato with ID-level selectors) */
:is(html,#lm-a) :is(body,#lm-b) :is(.question-content,#lm-c),
:is(html,#lm-a) :is(body,#lm-b) :is(.question-content,#lm-c) :not(i):not(.fa):not([class*="fa-"]):not([class*="icon"]):not([class^="md-"]):not([class*=" md-"]):not([class*="glyphicon"]){
  font-family:var(--lm-font) !important;
}
/* question stem: cancel pasted sizes/alignment so every question looks the same */
:is(html,#lm-a) :is(body,#lm-b) .question-content > div:not(#div_question_nav):not(.answer):not(.margin_top):not(.col-md-12),
:is(html,#lm-a) :is(body,#lm-b) .question-content > div:not(#div_question_nav):not(.answer):not(.margin_top):not(.col-md-12) *{
  font-size:17px !important;line-height:1.65 !important;text-align:justify !important;hyphens:auto;-webkit-hyphens:auto;color:var(--lm-ink);
}
:is(html,#lm-a) :is(body,#lm-b) .question-content > div:not(#div_question_nav):not(.answer):not(.margin_top):not(.col-md-12) :is(b,strong){font-weight:700}
:is(html,#lm-a) :is(body,#lm-b) .question-content .questions_desc *{font-size:inherit !important;line-height:inherit !important}

/* 5. Icon fonts: keep icons working inside question areas (old theme forced Lato on them, showing empty boxes) */
:is(html,#lm-a) :is(body,#lm-b) :is(#lm-c,.fa){font-family:FontAwesome !important}
:is(html,#lm-a) :is(body,#lm-b) :is(#lm-c,[class^="md-"],[class*=" md-"]){font-family:md-font !important}
:is(html,#lm-a) :is(body,#lm-b) :is(#lm-c,.glyphicon){font-family:"Glyphicons Halflings" !important}

/* 6. Right/wrong marking wins over the "selected" style */
.answer-list li label:has(.icon-val){border-color:var(--lm-ok) !important;background:var(--lm-ok-bg) !important}
.answer-list li label:has(.icon-val)::before{background:var(--lm-ok) !important;border-color:var(--lm-ok) !important;color:#fff !important}
.answer-list li label:has(.icon-err){border-color:var(--lm-bad) !important;background:var(--lm-bad-bg) !important}
.answer-list li label:has(.icon-err)::before{background:var(--lm-bad) !important;border-color:var(--lm-bad) !important;color:#fff !important}
.answer-list .icon-val{color:var(--lm-ok) !important} .answer-list .icon-err{color:var(--lm-bad) !important}

/* 7. Course app pages (study, quiz, results): match the new design. Added 2026-10-10 */
:is(html,#lm-a) :is(body,#lm-b) .top-nav{display:none !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section{background:#E8F1FA !important;padding-top:32px !important;padding-bottom:48px !important;margin-top:0 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section .question-content-wrap{background:#fff !important;border:1px solid #DCE6F7 !important;border-radius:16px !important;box-shadow:0 1px 2px rgba(20,45,110,.06),0 12px 28px -18px rgba(20,60,150,.35) !important;padding:12px 8px !important;margin-top:0 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section :is(h1,h2){color:#0B0E14 !important;font-weight:700 !important;letter-spacing:-0.015em !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section h1{font-size:clamp(26px,3.4vw,36px) !important;line-height:1.2 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section h2{font-size:clamp(24px,3vw,30px) !important;line-height:1.2 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section :is(h3,h4){color:#0B0E14 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section :is(.title-sb,.title-sb span,.time-count,.time-count span){color:#005EB8 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section :is(a,span,p,td,th,label,div){border-color:#E4EAF3}
:is(html,#lm-a) :is(body,#lm-b) :is(.learn-section,.question-content) :is(.btn_bg,.btn-success,.anscheck,.mc-btn,.btn-primary,input[type=submit]){background:#005EB8 !important;border:1px solid #005EB8 !important;color:#fff !important;border-radius:10px !important;font-weight:600 !important;padding:10px 18px !important;box-shadow:none !important;text-shadow:none !important}
:is(html,#lm-a) :is(body,#lm-b) :is(.learn-section,.question-content) :is(.btn_bg,.btn-success,.anscheck,.mc-btn,.btn-primary):hover{filter:brightness(.94)}
:is(html,#lm-a) :is(body,#lm-b) :is(.learn-section,.question-content) .btn-outline-secondary{background:#fff !important;border:1px solid #B8D0EA !important;color:#005EB8 !important;border-radius:10px !important;font-weight:600 !important}
:is(html,#lm-a) :is(body,#lm-b) :is(.learn-section,.question-content) .btn-outline-secondary.btn-block{background:#E8F1FA !important}
:is(html,#lm-a) :is(body,#lm-b) :is(.learn-section,.question-content) :is(.btn,.btn *,button,button *){color:inherit}
:is(html,#lm-a) :is(body,#lm-b) .learn-section :is(select,input[type=text],input[type=number],textarea){border:1px solid #B8D0EA !important;border-radius:10px !important;padding:6px 8px;background:#fff;color:#0B0E14}
:is(html,#lm-a) :is(body,#lm-b) .learn-section .select2-container .select2-selection{border:1px solid #B8D0EA !important;border-radius:10px !important;min-height:42px}
:is(html,#lm-a) :is(body,#lm-b) .learn-section .select2-selection__choice{background:#E8F1FA !important;border:1px solid #B8D0EA !important;color:#005EB8 !important;border-radius:99px !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section table{border-color:#E4EAF3 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section .progress{background:#E6ECF5 !important;border-radius:99px !important;box-shadow:none !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section .progress-bar{background:#005EB8 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section .title-ct{margin:0 0 16px !important;min-height:0 !important}
:is(html,#lm-a) :is(body,#lm-b) .learn-section .title-ct > h3{display:none !important}
:is(html,#lm-a) :is(body,#lm-b) .question-content > p,
:is(html,#lm-a) :is(body,#lm-b) .question-content > p *{font-size:17px !important;line-height:1.65 !important;text-align:justify !important;hyphens:auto;-webkit-hyphens:auto}
:is(html,#lm-a) :is(body,#lm-b) .question-content > p{color:#13213a !important}
/* 8. Old banner strips (profile, categories): new blue style instead of the dark chalkboard photo */
:is(html,#lm-a) :is(body,#lm-b) .awe-parallax{background:linear-gradient(135deg,#005EB8 0%,#004A93 100%) !important;background-image:linear-gradient(135deg,#005EB8 0%,#004A93 100%) !important}
:is(html,#lm-a) :is(body,#lm-b) .awe-parallax .awe-overlay,:is(html,#lm-a) :is(body,#lm-b) .awe-overlay{background:transparent !important;opacity:0 !important}
:is(html,#lm-a) :is(body,#lm-b) .awe-parallax :is(h1,h2,h3,h4,p,span,a){color:#fff !important}
:is(html,#lm-a) :is(body,#lm-b) :is(.profile-section,.section-profile,#profile) :is(input,select,textarea){border:1px solid #B8D0EA !important;border-radius:10px !important}
/* 9. Owner preference 2026-10-10: questions and answers justified on all devices */
:is(html,#lm-a) :is(body,#lm-b) :is(.questions,.questions_desc,.quiz_des,.question-content > p,.question-content > div:not(#div_question_nav):not(.answer):not(.margin_top):not(.col-md-12)) :is(p,div,span,li){text-align:justify !important;hyphens:auto;-webkit-hyphens:auto;word-spacing:normal}
:is(html,#lm-a) :is(body,#lm-b) .answer-list label{text-align:left !important;hyphens:manual}
