/* Memo review practice. Matches the AddsUp content pages (cream page, navy headings, orange actions, white
   panels). Uses the theme's design tokens (es_corporate/css/tokens.css) where they exist. */

/* Page: cream background behind the form, like the AddsUp content pages. */
.es-main--inner:has(.es-mr) { background: #fdf9f0; }

/* The theme caps forms at 640px (.es-main--inner form); these rules are one class more specific so they win; the case needs room for exhibit tables and the memo beside them. */
.es-main--inner form.es-mr { max-width: 70rem; margin: 0 auto; padding: clamp(20px, 3vw, 40px); background: #fff; border: 1px solid #d3dfe2; border-radius: 12px; box-shadow: 0 12px 32px rgba(3, 53, 71, .06); color: #244b58; font-size: 18px; line-height: 1.6; }
.es-main--inner form.es-mr p, .es-main--inner form.es-mr li { font-size: 18px; line-height: 1.6; }
.es-main--inner form.es-mr h2 { margin: 0 0 14px; color: #033547; font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; }
.es-main--inner form.es-mr h3 { color: #033547; font-weight: 700; }
.es-main--inner form.es-mr .description, .es-main--inner form.es-mr .form-item__description { color: #4d636b; font-size: 16px; }
.es-main--inner form.es-mr a { color: #0a6470; }
.es-main--inner form.es-mr :focus-visible { outline: 3px solid #087b8a; outline-offset: 3px; }
/* Reading width for prose; tables and the split layout use the full card. */
.es-main--inner form.es-mr > p, .es-main--inner form.es-mr > ul, .es-main--inner form.es-mr .es-mr-lead, .es-main--inner form.es-mr .es-mr-task, .es-main--inner form.es-mr .es-mr-note { max-width: 46rem; }

/* Step bar */
.es-mr-progress { margin: 0 0 clamp(20px, 3vw, 32px); }
.es-mr-progress-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.es-mr-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.es-mr-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 8px; border-top: 4px solid #d3dfe2; }
.es-mr-step--done { border-top-color: #087b8a; }
.es-mr-step--current { border-top-color: #fc6723; }
.es-mr-step-dot { display: none; }
.es-mr-step-label { color: #6f8189; font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.es-mr-step--done .es-mr-step-label { color: #087b8a; }
.es-mr-step--current .es-mr-step-label { color: #033547; font-weight: 800; }
@media (max-width: 40rem) {
  .es-mr-step-label { display: none; }
  .es-mr-step--current .es-mr-step-label { display: block; position: static; white-space: nowrap; }
  .es-mr-step--current { flex: 3 1 0; }
}

/* Labels and notes */
.es-mr-pilot { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; background: #fff1e8; color: #b0430f; font-size: 13px !important; font-weight: 800; letter-spacing: .08em; line-height: 1.5 !important; text-transform: uppercase; }
.es-mr-lead { color: #033547; font-size: 21px !important; line-height: 1.5 !important; }
.es-mr-facts { margin: 18px 0 8px; padding: 0; list-style: none; }
.es-mr-facts li { position: relative; margin: 0 0 10px; padding-left: 30px; }
.es-mr-facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid #087b8a; border-bottom: 3px solid #087b8a; transform: rotate(-45deg); }
.es-mr-hello { color: #033547; font-weight: 700; }
.es-mr-note { padding: 14px 18px; border-radius: 10px; background: var(--es-warn-bg, #fdf3e3); color: var(--es-warn, #8a4b00); }
.es-mr-task { margin: 20px 0; padding: 16px 20px; border-left: 4px solid #fc6723; border-radius: 0 10px 10px 0; background: #fdf9f0; color: #033547; }

/* Actions */
.es-main--inner form.es-mr .form-actions { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e7e2d9; }
.es-main--inner form.es-mr .form-actions .button, .es-main--inner form.es-mr .form-actions .btn, .es-main--inner form.es-mr .form-actions input[type="submit"] {
  min-height: 50px; padding: 12px 28px; background: #fc6723; border: 2px solid #fc6723; border-radius: 4px; color: #022a38; font-size: 17px; font-weight: 700; line-height: 1.4;
}
.es-main--inner form.es-mr .form-actions .button:hover, .es-main--inner form.es-mr .form-actions .btn:hover, .es-main--inner form.es-mr .form-actions input[type="submit"]:hover { background: #ff945f; border-color: #ff945f; color: #022a38; }
@media (max-width: 40rem) { .es-main--inner form.es-mr .form-actions .button, .es-main--inner form.es-mr .form-actions .btn, .es-main--inner form.es-mr .form-actions input[type="submit"] { width: 100%; } }

/* Form fields */
.es-main--inner form.es-mr .form-item, .es-main--inner form.es-mr .js-form-item { margin-bottom: 20px; }
.es-main--inner form.es-mr label, .es-main--inner form.es-mr legend, .es-main--inner form.es-mr .fieldset-legend { color: #033547; font-weight: 700; }
.es-main--inner form.es-mr textarea, .es-main--inner form.es-mr input[type="text"], .es-main--inner form.es-mr input[type="email"], .es-main--inner form.es-mr select { max-width: 100%; border-color: #7a8d94; border-radius: 6px; font-size: 17px; }
.es-main--inner form.es-mr .form-radios label, .es-main--inner form.es-mr .form-checkboxes label, .es-main--inner form.es-mr .form-type-checkbox label { color: #244b58; font-weight: 500; }
.es-main--inner form.es-mr textarea { max-width: 46rem; }
.es-main--inner form.es-mr .form-radios .form-item,.es-main--inner form.es-mr .form-checkboxes .form-item { margin-bottom: 8px; }
.es-main--inner form.es-mr .form-radios .form-item .description { margin: 2px 0 0; }
.es-main--inner form.es-mr fieldset.form-wrapper:not(.es-mr-claim), .es-main--inner form.es-mr fieldset.js-form-wrapper:not(.es-mr-claim) { border: 0; padding: 0; margin: 0 0 22px; }

/* Exhibits: each one folds; tables scroll sideways inside their own box on a narrow screen. */
.es-mr-exhibits { margin: 28px 0; }
.es-mr-exhibits-title { margin: 0 0 12px; color: #033547; font-size: 21px !important; font-weight: 800; }
.es-mr-exhibit { margin-bottom: 12px; }
.es-mr-exhibit > summary { color: #033547; font-weight: 700; }
.es-mr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin: 12px 0; border: 1px solid #e7e2d9; border-radius: 8px; }
.es-mr-table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: 16px; }
.es-mr-table th, .es-mr-table td { padding: 10px 14px; border-bottom: 1px solid #eef1f2; text-align: left; vertical-align: top; }
.es-mr-table thead th { background: #f6f8f9; color: #033547; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.es-mr-table tbody tr:last-child td { border-bottom: 0; }
.es-mr-table td.es-mr-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.es-mr-table tbody tr:last-child td.es-mr-num { font-weight: 700; color: #033547; }
.es-mr-note-small { color: #4d636b; font-size: 15px !important; }

/* Memo screen: memo beside the exhibits on a wide screen; exhibits first on a phone. */
.es-mr-split { display: grid; gap: 28px; }
@media (min-width: 62rem) {
  .es-mr-split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .es-mr-exhibits--panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; margin-top: 0; padding: 18px; border: 1px solid #e7e2d9; border-radius: 10px; background: #fdf9f0; }
}
@media (max-width: 61.99rem) { .es-mr-exhibits--panel { order: -1; } }
.es-mr-memo { margin-bottom: 22px; padding: 22px 24px; border: 1px solid #d3dfe2; border-top: 4px solid #033547; border-radius: 10px; background: #fff; }
.es-mr-memo h3 { font-size: 20px; }
.es-mr-claim { margin: 0 0 18px; padding: 16px 20px; border: 1px solid #d3dfe2; border-left: 4px solid #43bfcb; border-radius: 10px; background: #fff; }
.es-mr-claim legend { float: none; width: auto; margin: 0 0 6px; padding: 0; color: #033547; font-size: 18px; font-weight: 800; }
.es-mr-marks .form-item, .es-mr-inline .form-item { display: inline-block; margin: 0 22px 6px 0; }
.es-mr-ref { margin: 28px 0 0; }

/* Feedback */
.es-mr-score { margin: 0 0 28px; padding: 22px 26px; border-radius: 12px; background: linear-gradient(160deg, #033547 0%, #044259 100%); color: #edf5f6; }
.es-mr-score p, .es-mr-score td, .es-mr-score th { color: #edf5f6; }
.es-mr-hits { margin: 0 0 12px; color: #fff !important; font-size: 26px !important; font-weight: 800; }
.es-mr-calls { width: 100%; max-width: 40rem; border-collapse: collapse; }
.es-mr-calls th, .es-mr-calls td { padding: 8px 14px 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); text-align: left; vertical-align: top; }
.es-mr-calls tr:last-child th, .es-mr-calls tr:last-child td { border-bottom: 0; }
.es-mr-result { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.es-mr-result--correct { background: var(--es-ok-bg, #e7f3ec); color: var(--es-ok, #1d6b45); }
.es-mr-result--partly-correct { background: var(--es-warn-bg, #fdf3e3); color: var(--es-warn, #8a4b00); }
.es-mr-result--incorrect { background: var(--es-bad-bg, #fbecea); color: var(--es-bad, #a12b1f); }
.es-mr-flaw { margin-bottom: 16px; padding: 16px 20px; border: 1px solid #e7e2d9; border-left: 4px solid var(--es-bad, #a12b1f); border-radius: 0 10px 10px 0; background: #fff; }
.es-mr-flaw--ok, .es-mr-flaw--found { border-left-color: var(--es-ok, #1d6b45); }
.es-mr-flaw-tag { display: inline-block; margin: 0 0 8px !important; padding: 2px 10px; border-radius: 999px; font-size: 13px !important; font-weight: 800; line-height: 1.5 !important; }
.es-mr-flaw--found .es-mr-flaw-tag { background: var(--es-ok-bg, #e7f3ec); color: var(--es-ok, #1d6b45); }
.es-mr-flaw--missed .es-mr-flaw-tag { background: var(--es-bad-bg, #fbecea); color: var(--es-bad, #a12b1f); }
.es-mr-flaw h3 { margin: 0 0 6px; font-size: 19px; }
.es-mr-yours { color: #4d636b; }
.es-mr-lesson { margin-top: 22px; padding: 18px 22px; border-left: 4px solid #087b8a; border-radius: 0 10px 10px 0; background: #eaf3f4; color: #033547; }
