/* markItUp rich-text editor, restyled to blend into the page (2026-10-01). Loaded AFTER js/markitup/style.css + defaultsetstyle.css in every layout.
   What changed: no blue frame / grey gutter image / 11px Verdana / tiny 16px icons. Now: theme colours (light + dark), the page's own font, rem sizes (so site magnification scales it),
   crisp Font Awesome glyphs for the toolbar instead of the old PNGs, a quiet toolbar, and a focus ring. The plain textareas that opt out of the editor (class markItUpEditor on a bare
   textarea) get the same field look. */
@font-face { font-family: "QzEditorIcons"; font-style: normal; font-weight: 900; font-display: swap; src: url("/css/fontawesome/webfonts/fa-solid-900.woff2") format("woff2"), url("/css/fontawesome/webfonts/fa-solid-900.woff") format("woff"); }

/* the frame: one quiet rounded box, accent ring while typing */
.markItUp { width: 100%; max-width: 100%; box-sizing: border-box; margin: .5rem 0; border: 0; }
.markItUp .markItUpContainer { width: 100%; box-sizing: border-box; padding: 0; border: 1px solid var(--qz-line, #d9d4e2); border-radius: .75rem; background: var(--qz-surface, #fff); font: inherit; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.markItUp .markItUpContainer:focus-within { border-color: var(--qz-accent, #5b3fa0); box-shadow: 0 0 0 .15rem var(--qz-accent-soft, rgba(91, 63, 160, .2)); }

/* the writing area: the page's font, comfortable size, no gutter art */
.markItUp .markItUpEditor, textarea.markItUpEditor {
  font: inherit; font-size: 1rem; line-height: 1.55; color: var(--qz-text, #1f1c26);
  background: var(--qz-surface, #fff) none; background-image: none;
  padding: .75rem .9rem; border: 0; border-radius: 0; box-sizing: border-box; width: 100%; min-height: 8rem; height: auto; resize: vertical; outline: none;
}
textarea.markItUpEditor { border: 1px solid var(--qz-line, #d9d4e2); border-radius: .75rem; }
.markItUp .markItUpEditor::placeholder, textarea.markItUpEditor::placeholder { color: var(--qz-muted, #6a6478); }
.html .markItUpEditor, .markdown .markItUpEditor, .textile .markItUpEditor, .bbcode .markItUpEditor, .wiki .markItUpEditor, .dotclear .markItUpEditor { background-image: none; }

/* the toolbar: a thin quiet strip above the text, bigger targets, glyph icons */
.markItUp .markItUpHeader { padding: .25rem .4rem; border-bottom: 1px solid var(--qz-line, #e6e1ee); background: transparent; }
.markItUp .markItUpHeader ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .125rem; }
.markItUp .markItUpHeader ul li { float: none; list-style: none; }
.markItUp .markItUpHeader ul a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 2.125rem; height: 2.125rem; padding: 0; margin: 0; border-radius: .5rem; text-indent: 0; overflow: hidden;
  background-image: none !important; color: var(--qz-muted, #5d5870); font-size: 0; cursor: pointer; transition: background .12s, color .12s;
}
.markItUp .markItUpHeader ul a::before { font-family: "QzEditorIcons"; font-weight: 900; font-size: 1rem; line-height: 1; content: "\f040"; }
.markItUp .markItUpHeader ul a:hover, .markItUp .markItUpHeader ul a:focus-visible { background: var(--qz-accent-soft, #efe8f8); color: var(--qz-accent-text, var(--qz-link, #4a2f9a)); outline: none; }
.markItUp .markItUpHeader ul a:active { background: var(--qz-accent-soft, #efe8f8); transform: translateY(1px); }
.markItUp .markItUpHeader ul .markItUpSeparator { width: 1px; height: 1.25rem; margin: 0 .35rem; background: var(--qz-line, #d9d4e2); }
.markItUp .markItUpHeader ul .markItUpButton1 a::before { content: "\f032"; }   /* bold */
.markItUp .markItUpHeader ul .markItUpButton2 a::before { content: "\f033"; }   /* italic */
.markItUp .markItUpHeader ul .markItUpButton3 a::before { content: "\f0cc"; }   /* strike through */
.markItUp .markItUpHeader ul .markItUpButton4 a::before { content: "\f0ca"; }   /* bulleted list */
.markItUp .markItUpHeader ul .markItUpButton5 a::before { content: "\f0cb"; }   /* numbered list */
.markItUp .markItUpHeader ul .markItUpButton6 a::before { content: "\f03e"; }   /* picture */
.markItUp .markItUpHeader ul .markItUpButton7 a::before { content: "\f0c1"; }   /* link */
.markItUp .markItUpHeader ul .markItUpButton8 a::before { content: "\f12d"; }   /* clean (eraser) */
.markItUp .markItUpHeader ul .preview a::before { content: "\f06e"; }           /* preview (eye) */

/* drop-down menus (sets that have them) */
.markItUp .markItUpHeader ul ul { top: 2.25rem; background: var(--qz-surface, #fff); border: 1px solid var(--qz-line, #d9d4e2); border-radius: .5rem; box-shadow: var(--qz-shadow, 0 4px 16px rgba(0,0,0,.18)); overflow: hidden; }
.markItUp .markItUpHeader ul ul li { border-bottom: 1px solid var(--qz-line, #e6e1ee); }
.markItUp .markItUpHeader ul ul a { width: auto; min-width: 9rem; height: auto; padding: .4rem .75rem .4rem 1.75rem; font-size: .875rem; justify-content: flex-start; color: var(--qz-text, #1f1c26); border-radius: 0; }
.markItUp .markItUpHeader ul ul a::before { display: none; }
.markItUp .markItUpHeader ul ul a:hover { background: var(--qz-accent, #5b3fa0); color: var(--qz-accent-ink, #fff); }

/* the quiet footer handle + preview pane */
.markItUp .markItUpFooter { padding: .125rem 0 .25rem; } .markItUp .markItUpResizeHandle { width: 2rem; height: .25rem; border-radius: .125rem; background: var(--qz-line, #d9d4e2) none; }
.markItUp .markItUpPreviewFrame { border: 0; border-top: 1px solid var(--qz-line, #e6e1ee); background: var(--qz-surface, #fff); margin: 0; }

@media (max-width: 560px) { .markItUp .markItUpHeader ul a { width: 2.5rem; height: 2.5rem; } .markItUp .markItUpEditor { min-height: 7rem; } }
@media (prefers-reduced-motion: reduce) { .markItUp .markItUpContainer, .markItUp .markItUpHeader ul a { transition: none; } }
