/* NeviLex: quick draft. See drafter.php. */
.nvxd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid #d6e0ee; border-radius: 12px; background: #f4f8fd; direction: rtl; }
.nvxd-cta p { flex: 1 1 220px; margin: 0 !important; font-size: 14px; color: #4b5b6e; line-height: 1.9; }
.nvxd-go { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 9px; background: #1f3366; color: #fff !important; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.6; text-decoration: none !important; cursor: pointer; }
.nvxd-go:hover { background: #2a4380; }
.nvxd-go.is-locked { background: #e8edf4; color: #1f3366 !important; }
html.nvxd-on .nvxd-cta { display: none; }

/* The boxes in the text. Outside fill mode they read as the text they hold, or as the [label]. */
.nvxd-f { white-space: pre-wrap; }
.nvxd-f:empty::before { content: "[" attr(data-ph) "]"; }
html.nvxd-on .nvxd-f { display: inline; padding: 1px 6px; margin: 0 1px; border-radius: 5px; background: #fff4cc; box-shadow: inset 0 -2px 0 #e0b63a; outline: 0; cursor: text; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html.nvxd-on .nvxd-f:empty::before { content: attr(data-ph); color: #8a6d1a; opacity: .85; } /* the yellow box shows it is a blank; no brackets needed */
html.nvxd-on .nvxd-f.is-full { background: #e7f4ec; box-shadow: inset 0 -2px 0 #3c9a63; }
html.nvxd-on .nvxd-f { -webkit-user-select: text !important; user-select: text !important; -webkit-touch-callout: default; } /* the site's copy protection would stop typing */
html.nvxd-on .nvxd-f.is-cur { background: #fff; box-shadow: 0 0 0 2px #2F6DB5; }
html.nvxd-on .nvxd-f:focus { background: #fff; box-shadow: 0 0 0 2px #2F6DB5; }

/* The wording itself can be changed while filling in */
html.nvxd-on .nvxd-edit { outline: 0; border-radius: 6px; cursor: text; -webkit-user-select: text !important; user-select: text !important; transition: background .15s, box-shadow .15s; }
html.nvxd-on .nvxd-edit:hover { box-shadow: 0 0 0 1px rgba(47, 109, 181, .18); }
html.nvxd-on .nvxd-edit:focus { background: rgba(47, 109, 181, .04); box-shadow: 0 0 0 2px rgba(47, 109, 181, .30); }
.nvxd-w { display: inline; }
html.nvxl-dark.nvxd-on .nvxd-edit:focus { background: rgba(91, 147, 214, .07); box-shadow: 0 0 0 2px rgba(91, 147, 214, .4); }

/* Adding a numbered point while filling in */
.nvxd-li-act { display: none; }
html.nvxd-on .nvxd-li-act { display: inline-flex; gap: 4px; margin-inline-start: 8px; vertical-align: middle; opacity: .35; transition: opacity .15s; -webkit-user-select: none; user-select: none; }
html.nvxd-on li:hover > .nvxd-li-act, html.nvxd-on li:focus-within > .nvxd-li-act { opacity: 1; }
.nvxd-li-act button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 1px solid #b9c7da; border-radius: 50%; background: #fff; color: #1f3366; font: 700 16px/1 system-ui, sans-serif; cursor: pointer; }
.nvxd-li-act .nvxd-add:hover { background: #1f3366; border-color: #1f3366; color: #fff; }
.nvxd-li-act .nvxd-del { color: #a33; border-color: #e3bcbc; }
.nvxd-li-act .nvxd-del:hover { background: #a33; border-color: #a33; color: #fff; }
html.nvxd-on li.nvxd-added { background: rgba(47, 109, 181, .06); border-radius: 6px; }
@media (pointer: coarse) { html.nvxd-on .nvxd-li-act { opacity: .8; } .nvxd-li-act button { width: 30px; height: 30px; } }
html.nvxl-dark .nvxd-li-act button { background: #172233; border-color: #2c3a4d; color: #cfe0f5; }
html.nvxl-dark.nvxd-on li.nvxd-added { background: rgba(91, 147, 214, .10); }
@media print { .nvxd-li-act { display: none !important; } }

/* The bar while filling in. */
.nvxd-bar { display: none; }
html.nvxd-on .nvxd-bar { position: fixed; z-index: 9500; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(760px, calc(100% - 20px)); box-sizing: border-box;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border: 1px solid #d6e0ee; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(10, 20, 35, .22); direction: rtl; font-size: 14px; }
.nvxd-prog { display: flex; align-items: center; gap: 10px; color: #4b5b6e; white-space: nowrap; }
.nvxd-meter { position: relative; display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: #e5ebf3; overflow: hidden; }
.nvxd-meter i { position: absolute; top: 0; bottom: 0; right: 0; width: 0; background: #3c9a63; border-radius: 3px; transition: width .2s; }
.nvxd-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.nvxd-b { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #cfd8e5; border-radius: 9px; background: #fff; color: #1f3366; font: inherit; font-size: 14px; line-height: 1.6; cursor: pointer; }
.nvxd-b.is-main { background: #1f3366; border-color: #1f3366; color: #fff; font-weight: 700; }
.nvxd-b.is-quiet { border-color: transparent; color: #5b6b7e; }
.nvxd-note { flex: 1 1 100%; margin: 0 !important; font-size: 12px; color: #6b7a8c; line-height: 1.8; }
html.nvxd-on body { padding-bottom: 150px; }
html.nvxd-on .nvxbn, html.nvxd-on .go-top, html.nvxd-on .nvxl-tools:not(.is-docked), html.nvxd-on .nvxd-btn.is-float { display: none !important; } /* out of the way while filling in */
/* Phones: the editor at the top of the screen */
.nvxd-ed { display: none; }
html.nvxd-editing .nvxd-ed { position: fixed; z-index: 9600; left: 0; right: 0; top: 0; display: block; padding: 10px 12px 10px; padding-top: max(10px, env(safe-area-inset-top, 0px)); background: #fff; border-bottom: 1px solid #d6e0ee; box-shadow: 0 8px 24px rgba(10, 20, 35, .18); direction: rtl; }
.nvxd-ed-l { margin: 0 0 6px !important; max-height: 5.6em; overflow: auto; color: #6b5a1f; font-size: 13px; line-height: 1.8; }
.nvxd-ed textarea { display: block; width: 100%; box-sizing: border-box; min-height: 48px; max-height: 30vh; margin: 0 !important; padding: 8px 10px !important; border: 1.5px solid #2F6DB5 !important; border-radius: 10px !important; background: #fff !important; color: #1d2733 !important; font: inherit; font-size: 16px !important; line-height: 1.8; resize: vertical; -webkit-user-select: text; user-select: text; }
.nvxd-ed-a { display: flex; gap: 8px; margin-top: 8px; }
.nvxd-ed-a .nvxd-b.is-main { flex: 1; justify-content: center; }
html.nvxd-editing .nvxd-bar { display: none !important; }
html.nvxl-dark.nvxd-editing .nvxd-ed { background: #121a25; border-bottom-color: #2c3a4d; }
html.nvxl-dark .nvxd-ed-l { color: #d9c486; }
html.nvxl-dark .nvxd-ed textarea { background: #172233 !important; color: #e2e8f0 !important; border-color: #5b93d6 !important; }
html.nvxl-dark.nvxd-on .nvxd-f.is-cur { background: #121a25; box-shadow: 0 0 0 2px #5b93d6; }
@media (max-width: 600px) {
	html.nvxd-on .nvxd-bar { padding: 8px 10px; gap: 6px 10px; }
	.nvxd-acts { width: 100%; margin: 0; }
	.nvxd-b { flex: 1 1 auto; justify-content: center; padding: 8px 8px; }
	.nvxd-b.is-quiet { flex: 0 0 auto; }
	.nvxd-note { display: none; }
}

/* Dark mode */
html.nvxl-dark .nvxd-cta { background: #172233; border-color: #2c3a4d; }
html.nvxl-dark .nvxd-cta p, html.nvxl-dark .nvxd-prog { color: #9fb0c4; }
html.nvxl-dark .nvxd-go { background: #2F6DB5; }
html.nvxl-dark .nvxd-go.is-locked { background: #22314a; color: #cfe0f5 !important; }
html.nvxl-dark.nvxd-on .nvxd-f { background: #3a3218; box-shadow: inset 0 -2px 0 #c9a23a; color: #f2e6c0; }
html.nvxl-dark.nvxd-on .nvxd-f:empty::before { color: #d9c486; }
html.nvxl-dark.nvxd-on .nvxd-f.is-full { background: #183526; box-shadow: inset 0 -2px 0 #3c9a63; color: #d9f0e2; }
html.nvxl-dark.nvxd-on .nvxd-f:focus { background: #121a25; box-shadow: 0 0 0 2px #5b93d6; }
html.nvxl-dark.nvxd-on .nvxd-bar { background: #121a25; border-color: #2c3a4d; }
html.nvxl-dark .nvxd-meter { background: #26344a; }
html.nvxl-dark .nvxd-b { background: #172233; border-color: #2c3a4d; color: #cfe0f5; }
html.nvxl-dark .nvxd-b.is-main { background: #2F6DB5; border-color: #2F6DB5; color: #fff; }
html.nvxl-dark .nvxd-b.is-quiet { background: transparent; border-color: transparent; color: #9fb0c4; }
@media print { .nvxd-cta, .nvxd-bar { display: none !important; } .nvxd-f { background: none !important; box-shadow: none !important; } }
