/* ==========================================================================
   The text editor (Scripts/Portfolio/newLookEditor.js): ecordiapp's toolbar
   on the website's RadEditor, as ecordiapp's editor looks (src/index.css:
   .rte, .rte-toolbar, .rte-link, .rte-palette, .rte-swatch). Linked on every
   page (Templates/Site.Master); it only applies to editors the script has
   given the new toolbar (.nl-rte). Sizes are in px: the site's classic
   pages set the root font size to 10px.
   ========================================================================== */
.nl-rte {
    --nl-bg: #f4f4f8; --nl-card: #ffffff; --nl-text: #1b1a2e; --nl-muted: #5b5a6e; --nl-line: #dcdbe4; --nl-brand: #353192; --nl-field-line: #77768a;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; color: var(--nl-text); margin: 0 0 8px;
}
.nl-rte-label { font-weight: 600; margin: 6px 0 8px; }
.nl-rte-box { border: 2px solid var(--nl-field-line); border-radius: 10px; background: var(--nl-card); overflow: hidden; }
.nl-rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-bottom: 1px solid var(--nl-field-line); }
.nl-rte-toolbar button { min-width: 44px; min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--nl-text); font: inherit; font-size: 16.8px; cursor: pointer; }
.nl-rte-toolbar button svg { pointer-events: none; }
.nl-rte-toolbar button[aria-pressed="true"], .nl-rte-toolbar button[aria-expanded="true"] { background: var(--nl-brand); color: #fff; border-color: var(--nl-brand); }
.nl-rte-toolbar button:hover { border-color: var(--nl-field-line); }
.nl-rte-toolbar button:focus-visible { outline: 3px solid var(--nl-brand); outline-offset: 1px; }
.nl-rte-toolbar .nl-rte-mic { margin-left: auto; }
.nl-rte-toolbar .nl-rte-all { font-size: 14.4px; font-weight: 600; color: var(--nl-brand); padding: 0 12px; }
.nl-rte-toolbar .nl-rte-mic + .nl-rte-all { margin-left: 0; }
.nl-rte-toolbar button:not(.nl-rte-mic) + .nl-rte-all { margin-left: auto; }
.nl-rte-colour-face { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 700; }
.nl-rte-colour-bar { display: block; width: 16px; height: 4px; margin-top: 2px; border-radius: 1px; background: linear-gradient(90deg, #b91c1c, #b45309, #15803d, #1d4ed8, #7e22ce); }
.nl-rte-dictation { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--nl-field-line); color: var(--nl-muted); font-size: 14.4px; }
.nl-rte-panel { padding: 10px 12px; border-bottom: 1px solid var(--nl-field-line); }
.nl-rte-panel[hidden], .nl-rte-dictation[hidden], .nl-rte [hidden] { display: none !important; }
.nl-rte-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.nl-rte-form input[type="text"], .nl-rte-form input[type="number"] { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 12px; border: 2px solid var(--nl-field-line); border-radius: 10px; font: inherit; box-sizing: border-box; }
.nl-rte-form input[aria-invalid="true"] { border-color: #b42318; }
.nl-rte-error { margin: 0 0 8px; color: #b42318; font-weight: 600; }
.nl-rte-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-rte-actions button { min-height: 44px; padding: 0 16px; border: 1px solid var(--nl-field-line); border-radius: 10px; background: var(--nl-card); color: var(--nl-brand); font: inherit; font-weight: 600; cursor: pointer; }
.nl-rte-actions .nl-rte-primary { background: var(--nl-brand); color: #fff; border-color: var(--nl-brand); }
.nl-rte-table-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nl-rte-table-fields label { flex: 1 1 120px; }
.nl-rte-form label.nl-rte-check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 10px; }
.nl-rte-check input { width: 22px; height: 22px; }
.nl-rte-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nl-rte-swatch { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #8a8a99; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.nl-rte-swatch-a { font-weight: 800; font-size: 17.6px; }
/* RadEditor inside: no frame, toolbar or modes of its own (shown again with "All editor tools") */
.nl-rte-radeditor, .nl-rte-radeditor .reLayoutWrapper { width: 100% !important; border: 0 !important; background: none !important; }
.nl-rte-radeditor:not(.nl-rte-all-on) td.reToolCell,
.nl-rte-radeditor:not(.nl-rte-all-on) td.reTlbVertical,
.nl-rte-radeditor:not(.nl-rte-all-on) td.reToolZone,
.nl-rte-radeditor td.reWrapper_corner, .nl-rte-radeditor td.reWrapper_center,
.nl-rte-radeditor td.reLeftVerticalSide, .nl-rte-radeditor td.reRightVerticalSide { display: none !important; }
.nl-rte-radeditor .reContentCell { border: 0 !important; }
.nl-rte-radeditor .reContentArea { padding: 12px !important; min-height: 10em; line-height: 1.5; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; font-size: 16px !important; color: var(--nl-text); outline: none; overflow-wrap: anywhere; }
.nl-rte-radeditor .reContentArea:focus { box-shadow: inset 0 0 0 3px var(--nl-brand); }
.nl-rte-radeditor .reContentArea p, .nl-rte-radeditor .reContentArea ul, .nl-rte-radeditor .reContentArea ol { margin: 0 0 0.6em; }
.nl-rte-radeditor .reContentArea ul, .nl-rte-radeditor .reContentArea ol { padding-left: 1.4em; }
.nl-rte-radeditor .reContentArea a { color: var(--nl-brand); }
.nl-rte .nl-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nl-rte { width: 100%; box-sizing: border-box; }
