/* MBAmo form. Deliberately plain so the theme's typography and colours carry through;
   override with Custom CSS as the old plugin's readme suggested. */
.mbamo { max-width: 720px; margin: 0 auto; }
.mbamo-h { margin: 0 0 .5em; }
.mbamo-p { margin: 0 0 1.2em; }
.mbamo-sub { margin: 2em 0 .6em; padding-bottom: .3em; border-bottom: 1px solid rgba(0,0,0,.12); }
.mbamo-field { margin: 0 0 1.25em; }
.mbamo-field > label, .mbamo-field > .mbamo-radios { display: block; font-weight: 600; margin-bottom: .4em; }
.mbamo-field input[type=text], .mbamo-field input[type=email], .mbamo-field input[type=number], .mbamo-field select {
	width: 100%; max-width: 100%; box-sizing: border-box; padding: .6em .75em; font: inherit;
	border: 1px solid #bbb; border-radius: 6px; background: #fff;
}
.mbamo-field.has-error input, .mbamo-field.has-error select, .mbamo-field.has-error .mbamo-combo input[type=text] { border-color: #f54600; }
.mbamo-error { color: #f54600; font-weight: 600; margin: .35em 0 0; font-size: .95em; }
.mbamo-hint, .mbamo-fine { font-size: .9em; opacity: .8; margin: .4em 0 0; }
.mbamo-radios label { display: block; font-weight: 400; margin: .25em 0; cursor: pointer; }
.mbamo-radios input { margin-right: .5em; }
.mbamo-button { display: inline-block; padding: .75em 1.4em; font: inherit; font-weight: 700; border: 0; border-radius: 6px; cursor: pointer; background: #1f3a5f; color: #fff; }
.mbamo-button:hover { filter: brightness(1.1); }
.mbamo-button.is-busy, .mbamo-button[disabled] { opacity: .6; cursor: progress; }
.mbamo-button-big { width: 100%; padding: 1em; font-size: 1.1em; margin-top: 1em; }
.mbamo-msg { min-height: 1.4em; margin: .8em 0 0; font-weight: 600; }
.mbamo-msg.is-error { color: #f54600; }
.mbamo-signed-in { font-size: .9em; opacity: .85; }
.mbamo-unlisted { margin-top: .75em; padding: .75em; background: rgba(0,0,0,.04); border-radius: 6px; }
/* combobox */
.mbamo-combo { position: relative; }
.mbamo-combo-list { position: absolute; z-index: 50; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none;
	background: #fff; border: 1px solid #bbb; border-radius: 6px; max-height: 280px; overflow-y: auto; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.mbamo-combo-list li { padding: .5em .75em; cursor: pointer; }
.mbamo-combo-list li:hover, .mbamo-combo-list li.is-active { background: rgba(31,58,95,.1); }
.mbamo-combo-list li.is-notfound { border-top: 1px solid rgba(0,0,0,.1); font-style: italic; }
/* my reports */
.mbamo-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.mbamo-table th, .mbamo-table td { text-align: left; padding: .5em .6em; border-bottom: 1px solid rgba(0,0,0,.1); }
.mbamo-expired { padding: 1.5em; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; }
.mbamo-checks label { display: block; font-weight: 400; margin: .25em 0; cursor: pointer; }
.mbamo-checks input { margin-right: .5em; }

/* ---- all-schools readout */
.mbamo-readout { max-width: 980px; }
.mbamo-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6em; list-style: none; margin: 1em 0 .4em; padding: 0; }
.mbamo-counts li { border: 1px solid rgba(0,0,0,.15); border-left-width: 6px; border-radius: 6px; padding: .6em .8em; display: flex; flex-direction: column; background: #fff; }
.mbamo-counts b { font-size: 1.8em; line-height: 1.1; }
.mbamo-count-diff { font-size: .8em; opacity: .75; }
.mbamo-band-toosafe { border-color: #6b7a8c; }
.mbamo-band-safety { border-color: #2f7d4f; }
.mbamo-band-match { border-color: #1b76bc; }
.mbamo-band-reach { border-color: #b7791f; }
.mbamo-band-moonshot { border-color: #b3402a; }
.mbamo-band-dealbreaker { border-color: #7a1f1f; }
.mbamo-pill { display: inline-block; padding: .15em .65em; border-radius: 999px; border: 1px solid; font-size: .88em; font-weight: 600; background: #fff; white-space: nowrap; }
.mbamo-pill.mbamo-band-toosafe { color: #44505e; background: #eceff3; }
.mbamo-pill.mbamo-band-safety { color: #1f5c39; background: #e5f3ea; }
.mbamo-pill.mbamo-band-match { color: #0f4f80; background: #e4eff9; }
.mbamo-pill.mbamo-band-reach { color: #7a4f0e; background: #fbf0dc; }
.mbamo-pill.mbamo-band-moonshot { color: #7d2b1a; background: #f9e6e1; }
.mbamo-pill.mbamo-band-dealbreaker { color: #fff; background: #7a1f1f; }
.mbamo-matrix { margin: 1.2em 0 .6em; }
.mbamo-mrow { display: grid; grid-template-columns: minmax(7.5em, 2fr) repeat(4, minmax(6.2em, 1fr)); gap: .4em; align-items: center; padding: .55em .4em; border-bottom: 1px solid rgba(0,0,0,.08); }
.mbamo-mrow .mbamo-pill { font-size: .78em; padding: .1em .5em; }
.mbamo-mhead { font-size: .88em; font-weight: 700; border-bottom: 2px solid rgba(0,0,0,.25); }
.mbamo-mgroup { margin-top: 1.4em; padding: .4em .6em; font-weight: 700; border-left: 6px solid; background: rgba(0,0,0,.04); }
.mbamo-mgroup small { font-weight: 400; opacity: .7; margin-left: .4em; }
.mbamo-mname { font-weight: 600; }
.mbamo-moved { display: block; font-weight: 400; }
.mbamo-moved.is-up { color: #1f5c39; }
.mbamo-moved.is-down { color: #7d2b1a; }
.mbamo-est { margin-left: .2em; text-decoration: none; cursor: help; }
.mbamo-notes { font-size: .9em; opacity: .85; padding-left: 1.2em; }
@media (max-width: 640px) {
	.mbamo-mhead { display: none; }
	.mbamo-mrow { grid-template-columns: 1fr 1fr; }
	.mbamo-mname { grid-column: 1 / -1; }
	.mbamo-mrow [data-label]::before { content: attr(data-label) ': '; display: block; font-size: .75em; opacity: .7; }
}
.mbamo-buy { margin-top: 1.6em; }
.mbamo-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1em; }
.mbamo-offer { border: 1px solid rgba(0,0,0,.18); border-radius: 10px; padding: 1.1em 1.2em; background: #fff; }
.mbamo-offer h3 { margin: 0 0 .2em; }
.mbamo-price { font-size: 2em; font-weight: 700; margin: 0 0 .4em; }
.mbamo-locked { background: #fff6d6; padding: .8em 1em; border-radius: 6px; }
.mbamo-paid { background: #e6f4ea; padding: .8em 1em; border-radius: 6px; font-weight: 600; }
.mbamo-claim { margin-top: 1em; }
.mbamo-claim input { padding: .4em .6em; border: 1px solid #bbb; border-radius: 6px; }
.mbamo-upsell { margin-top: 1.6em; padding: 1em 1.2em; border: 1px dashed rgba(0,0,0,.3); border-radius: 10px; }
.mbamo-scn { margin: 1.6em 0; padding: 1em 1.2em; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; background: #f6f9fc; }
.mbamo-scn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1em; }
.mbamo-button-ghost { background: transparent; color: #1f3a5f; border: 1px solid #1f3a5f; }
.mbamo-teaser { margin: 1.2em 0; padding: 1em 1.2em; border-radius: 10px; background: #e4eff9; }

.mbamo-landing { font-size: 1.15em; margin: .6em 0; }
.mbamo-invite { margin: 1.2em 0; padding: 1em 1.2em; border-left: 5px solid #f54600; background: #fdeee6; border-radius: 0 10px 10px 0; }
.mbamo-teaser h3 { margin-top: 0; }

/* ---- launch review fixes: buttons, tap targets, contrast, spinner, fixed answers */
.mbamo-button, a.mbamo-button, a.mbamo-button:visited { text-decoration: none; line-height: 1.2; min-height: 44px; box-sizing: border-box; color: #fff; }
a.mbamo-button:hover, a.mbamo-button:focus, .mbamo-button:hover, .mbamo-button:focus { color: #fff; text-decoration: none; }
.mbamo-button:focus-visible, .mbamo a:focus-visible, .mbamo input:focus-visible, .mbamo select:focus-visible, .mbamo summary:focus-visible { outline: 3px solid #1b76bc; outline-offset: 2px; }
.mbamo-error, .mbamo-msg.is-error { color: #b83300; }
.mbamo-field.has-error input, .mbamo-field.has-error select, .mbamo-field.has-error .mbamo-combo input[type=text] { border-color: #b83300; }
.mbamo-field input, .mbamo-field select, .mbamo-claim input, .mbamo-scn input, .mbamo-scn select { font-size: max(16px, 1em); }
.mbamo-radios label, .mbamo-checks label { display: flex; align-items: center; gap: .55em; min-height: 44px; margin: 0; padding: .2em 0; }
.mbamo-radios input, .mbamo-checks input { width: 20px; height: 20px; margin: 0; flex: none; }
.mbamo-links a, .mbamo-signed-in a { display: inline-block; padding: .5em 0; }
.mbamo-combo-list li { padding: .7em .75em; }
.mbamo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mbamo-spinner { width: 32px; height: 32px; margin: 0 0 1em; border: 3px solid #cdd6e0; border-top-color: #1f3a5f; border-radius: 50%; animation: mbamo-spin 1s linear infinite; }
@keyframes mbamo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mbamo-spinner { animation-duration: 3s; } }
.mbamo-field.is-fixed input[readonly] { background: #f3f5f8; color: #333; }
.mbamo-fixed-note { margin: 0 0 1em; padding: .75em 1em; background: #eef4fb; border-radius: 6px; font-size: .95em; }
.mbamo-fixed-note p { margin: 0 0 .4em; }
.mbamo-fixed-note label { display: flex; gap: .55em; align-items: center; min-height: 44px; cursor: pointer; }
.mbamo-fixed-note input { width: 20px; height: 20px; margin: 0; }
.mbamo-claim summary { padding: .6em 0; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.mbamo-claim input[type=text] { display: block; width: 100%; max-width: 320px; margin: .3em 0 .6em; padding: .6em .75em; box-sizing: border-box; border: 1px solid #bbb; border-radius: 6px; }
.mbamo-claim .mbamo-hint { margin: 0 0 .6em; }
.mbamo-paid { background: #e6f4ea; padding: .8em 1em; border-radius: 6px; font-weight: 600; }
.mbamo-forprofile { font-size: .9em; background: #f6f7f9; border-radius: 6px; padding: .5em .7em; margin: .5em 0; }
.mbamo-offer-fine { font-size: .85em; opacity: .85; margin-top: .6em; }
.mbamo-why { display: block; font-size: .8em; opacity: .8; font-weight: 400; }
.mbamo-dealbreaker { margin: 1em 0 .5em; }
.mbamo-counts a { color: inherit; text-decoration: none; display: block; }
.mbamo-locked .mbamo-button { margin: .3em 0; }
.mbamo-mgroup { scroll-margin-top: 80px; }
.mbamo-note { background: #fff6d6; padding: .8em 1em; border-radius: 6px; font-weight: 600; }

/* ---- review 2 (Oct 23): colour, hierarchy and spacing fixes */
.mbamo-counts li.mbamo-band-toosafe { border-color: #6b7a8c; }
.mbamo-counts li.mbamo-band-safety { border-color: #2f7d4f; }
.mbamo-counts li.mbamo-band-match { border-color: #1b76bc; }
.mbamo-counts li.mbamo-band-reach { border-color: #b7791f; }
.mbamo-counts li.mbamo-band-moonshot { border-color: #b3402a; }
.mbamo-counts a { display: flex; flex-direction: column; }
.mbamo-counts span { display: block; }
.mbamo-count-diff { display: block; margin-top: .2em; }
.mbamo-mgroup.mbamo-band-toosafe { border-left-color: #6b7a8c; }
.mbamo-mgroup.mbamo-band-safety { border-left-color: #2f7d4f; }
.mbamo-mgroup.mbamo-band-match { border-left-color: #1b76bc; }
.mbamo-mgroup.mbamo-band-reach { border-left-color: #b7791f; }
.mbamo-mgroup.mbamo-band-moonshot { border-left-color: #b3402a; }
.mbamo-button.mbamo-button-ghost, a.mbamo-button.mbamo-button-ghost { background: transparent; color: #1f3a5f; border: 1px solid #1f3a5f; margin: .3em .5em .3em 0; }
.mbamo-button.mbamo-button-ghost:hover, .mbamo-button.mbamo-button-ghost:focus { color: #1f3a5f; }
.mbamo-mrow { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
.mbamo-mrow .mbamo-pill { white-space: normal; }
@media (max-width: 760px) and (min-width: 641px) { .mbamo-mrow { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: .3em; } .mbamo-mrow .mbamo-pill { font-size: .72em; padding: .1em .4em; } }
.mbamo [tabindex="-1"]:focus { outline: none; }
.mbamo-offers { align-items: stretch; }
.mbamo-offer { display: flex; flex-direction: column; }
.mbamo-offer .mbamo-button { margin-top: auto; align-self: flex-start; }
#mbamo-code { max-width: 12ch; letter-spacing: .3em; font-size: 1.4em; text-align: center; }
.mbamo-screen > .mbamo-button { margin-top: 1.2em; }
.mbamo-locked { margin-bottom: 1em; }
.mbamo-sub { font-size: .8em; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .75; margin-top: 2.6em; }
.mbamo-scn .mbamo-sub { margin-top: 0; }
.mbamo-scn .mbamo-field:first-of-type { margin-top: 1em; }
.mbamo-claim .mbamo-msg { font-weight: 400; }
.mbamo-read { font-size: 1.08em; line-height: 1.55; margin: .4em 0 1em; padding: .9em 1.1em; border-left: 4px solid #1b76bc; background: #f4f8fc; border-radius: 0 8px 8px 0; }
