/* WEBSITE ADMIN */

body {
	margin: 0;
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #333;
	background: #f4f7f9;
}

header {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	align-items: center;
	justify-content: space-between;
	padding: 0.75em 1.5em;
	background: #def2ff;
	border-bottom: 1px solid #c8e2f2;
}
header a {
	color: #4a555a;
	text-decoration: none;
}
header a:hover {
	color: #000;
}
header .brand {
	font-weight: 600;
}
header nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25em;
}

main {
	max-width: 960px;
	margin: 0 auto;
	padding: 1em 1.5em 3em;
}

h1 {
	font-size: 1.4em;
	font-weight: 600;
}

a {
	color: #2e6f9e;
	text-decoration: none;
}
a:hover, a:focus-visible {
	text-decoration: underline;
}
a.button:hover, header a:hover, .fb-thumb:hover {
	text-decoration: none;
}

.flash, .error {
	padding: 0.6em 0.9em;
	border-radius: 4px;
}
.note {
	padding: 0.6em 0.9em;
	border-radius: 4px;
	background: #eef5fa;
	border: 1px solid #c8dceb;
}
table.list small.broken {
	color: #b06a1a;
}
.flash {
	background: #e3f6e5;
	border: 1px solid #b6e0bb;
}
.error {
	background: #fdeaea;
	border: 1px solid #f0bcbc;
}

label {
	display: block;
	margin-bottom: 1em;
	font-weight: 500;
}
label small, fieldset small {
	display: block;
	font-weight: normal;
	color: #777;
}
input[type=text], input[type=password], input[type=number], input[type=file], input[type=email], input[type=url], input[type=date], input[type=search], input[type=tel], textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.25em;
	padding: 0.45em 0.6em;
	font: inherit;
	border: 1px solid #ccd5db;
	border-radius: 4px;
	background: #fff;
}
input[type=number] {
	max-width: 8em;
}
textarea.code {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 14px;
}

fieldset {
	border: 1px solid #dde3e7;
	border-radius: 6px;
	padding: 0.75em 1em 0.25em;
	margin: 0 0 1.25em;
	background: #fff;
}
legend {
	font-weight: 600;
	padding: 0 0.4em;
}

.row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5em;
}
.row label {
	flex: 1 1 12em;
}

button, .button {
	display: inline-block;
	padding: 0.5em 1.2em;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: #2e6f9e;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
}
button:hover, .button:hover {
	background: #245a81;
}
button.danger {
	background: #b03a3a;
}
a.danger {
	color: #b03a3a;
}

.pages-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.5em;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1em;
}
.tabs {
	display: flex;
	gap: 0.25em;
	background: #e6eef3;
	padding: 0.2em;
	border-radius: 6px;
}
.tabs a {
	padding: 0.3em 0.8em;
	border-radius: 4px;
	color: #4a555a;
	font-size: 14px;
}
.tabs a:hover {
	text-decoration: none;
	background: #f4f8fb;
}
.tabs a[aria-current] {
	background: #fff;
	color: #2e6f9e;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.tabs span {
	color: #889;
	font-weight: normal;
	margin-left: 0.2em;
}
.tag {
	display: inline-flex;
	align-items: center;
	margin-left: 0.5em;
	padding: 0.05em 0.5em;
	font-size: 12px;
	color: #2e6f9e;
	background: #e3f0f9;
	border-radius: 10px;
	white-space: nowrap;
	vertical-align: 0.1em;
}
.tag .icon {
	width: 0.95em;
	height: 0.95em;
	margin-right: 0.25em;
	vertical-align: 0;
}
.tag-footer {
	color: #666;
	background: #eceff1;
}
form.inline {
	display: inline;
}
button.link {
	padding: 0;
	margin-left: 0.6em;
	font: inherit;
	font-weight: normal;
	color: #2e6f9e;
	background: none;
	border: none;
	cursor: pointer;
}
button.link:hover {
	background: none;
	text-decoration: underline;
}
label.check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 0.6em;
	align-items: start;
	font-weight: normal;
}
label.check input {
	margin-top: 0.25em;
}
label.check small {
	display: block;
}
.status-line {
	margin: 0 0 0.8em;
	font-size: 14px;
	color: #555;
}
.narrow {
	max-width: 420px;
}
.medium {
	max-width: 760px;
}

table.list {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}
table.list th, table.list td {
	padding: 0.5em 0.6em;
	border-bottom: 1px solid #e6eaed;
	text-align: left;
	vertical-align: top;
}
table.list th {
	background: #eef3f6;
	font-weight: 600;
}
table.list .actions {
	white-space: nowrap;
}
table.list .actions a {
	margin-left: 0.6em;
}
table.list small {
	color: #777;
}

table.gallery td {
	vertical-align: middle;
}
table.gallery tr[draggable] {
	cursor: move;
}
table.gallery tr.dragging {
	opacity: 0.4;
}
table.gallery img {
	display: block;
	height: auto;
}
table.gallery small {
	word-break: break-all;
}

ul.columns {
	columns: 3 14em;
	padding-left: 1.2em;
}

@media (max-width: 640px) {
	table.list thead {
		display: none;
	}
	table.list tr {
		display: block;
		border-bottom: 1px solid #e6eaed;
		padding: 0.4em 0;
	}
	table.list td {
		display: block;
		border: none;
		padding: 0.2em 0.6em;
	}
	table.list .actions a:first-child {
		margin-left: 0;
	}
}

button.secondary {
	color: #2e6f9e;
	background: #fff;
	border: 1px solid #b9cfdd;
}
button.secondary:hover {
	background: #eef5fa;
}
button:disabled {
	opacity: 0.45;
	cursor: default;
}
table.gallery tr.added {
	background: #f3fbf4;
}

/* FILE BROWSER */

.fb {
	background: #fff;
	border: 1px solid #dde3e7;
	border-radius: 6px;
}
.fb-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em 1em;
	align-items: center;
	padding: 0.75em 1em;
	border-bottom: 1px solid #e6eaed;
}
.fb-crumbs {
	flex: 1 1 14em;
	font-weight: 500;
}
.fb-crumbs a {
	text-decoration: none;
}
.fb-search {
	flex: 0 1 16em;
	margin: 0 !important;
	display: block;
	box-sizing: border-box;
	padding: 0.4em 0.6em;
	font: inherit;
	border: 1px solid #ccd5db;
	border-radius: 4px;
}
.fb-actions {
	display: flex;
	gap: 0.5em;
}
.fb-status:not(:empty) {
	padding: 0.6em 1em;
	color: #666;
	background: #f7f9fa;
	border-bottom: 1px solid #e6eaed;
}
.fb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 1em;
	padding: 1em;
	min-height: 8em;
	align-content: start;
}
.fb-page .fb-grid {
	min-height: 24em;
}
.fb-drop {
	outline: 2px dashed #2e6f9e;
	outline-offset: -6px;
	background: #f2f8fc;
}
.fb-item {
	min-width: 0;
	font-size: 13px;
	line-height: 1.35;
}
.fb-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	padding: 4px;
	box-sizing: border-box;
	background: #f4f7f9;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	overflow: hidden;
}
button.fb-thumb:hover, a.fb-thumb:hover {
	background: #e9f1f6;
}
.fb-thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.fb-icon {
	font-size: 48px;
	line-height: 1;
}
.fb-selected .fb-thumb {
	border-color: #2e6f9e;
	background: #e3f0f9;
	position: relative;
}
.fb-selected .fb-thumb::after {
	content: "✓";
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	color: #fff;
	background: #2e6f9e;
	border-radius: 50%;
	font-weight: 700;
}
.fb-in .fb-thumb img {
	opacity: 0.5;
}
.fb-name {
	margin-top: 0.3em;
	word-break: break-all;
}
.fb-meta {
	color: #888;
	font-size: 12px;
	word-break: break-word;
}
.fb-link {
	padding: 0;
	margin-top: 0.2em;
	font-size: 12px;
	font-weight: normal;
	background: none !important;
	color: #2e6f9e;
	border: none;
	text-decoration: none;
}
.fb-link:hover, .fb-link:focus-visible {
	text-decoration: underline;
}
.fb-link.danger {
	color: #b03a3a;
}
.fb-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: center;
	justify-content: space-between;
	padding: 0.75em 1em;
	border-top: 1px solid #e6eaed;
	background: #fafbfc;
	position: sticky;
	bottom: 0;
}
.fb-count {
	color: #666;
}

dialog.picker {
	width: min(960px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: none;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	overflow: auto;
}
dialog.picker::backdrop {
	background: rgba(20, 30, 40, 0.45);
}
.picker-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75em 1em;
	background: #def2ff;
}
.picker-head .close {
	padding: 0 0.4em;
	font-size: 22px;
	line-height: 1;
	color: #4a555a;
	background: none;
}
dialog.picker .fb {
	border: none;
	border-radius: 0;
}

[hidden] {
	display: none !important;
}
.fb-actions button {
	white-space: nowrap;
}

.fb-links {
	display: flex;
	gap: 0.8em;
}
.fb-links .fb-link {
	margin-top: 0.15em;
}
.fb-foot-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}
.fb-foot button.danger {
	background: #b03a3a;
}
dialog.fb-move {
	width: min(420px, calc(100vw - 32px));
	border: none;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	padding: 1.25em;
}
dialog.fb-move::backdrop {
	background: rgba(20, 30, 40, 0.45);
}
#redirect-page {
	display: block;
	width: 100%;
	max-width: 32em;
	margin-top: 0.25em;
	padding: 0.45em;
	font: inherit;
	border: 1px solid #ccd5db;
	border-radius: 4px;
	background: #fff;
}
.fb-move-select {
	display: block;
	width: 100%;
	margin-top: 0.3em;
	padding: 0.45em;
	font: inherit;
}
.fb-move-note {
	color: #777;
	font-size: 13px;
}
dialog.fb-move .fb-foot-buttons {
	justify-content: flex-end;
}

/* IMAGE VIEWER */

dialog.iv {
	width: min(1000px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: none;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}
dialog.iv[open] {
	display: flex;
	flex-direction: column;
}
dialog.iv::backdrop {
	background: rgba(15, 20, 25, 0.7);
}
.iv-head, .iv-foot {
	display: flex;
	gap: 1em;
	align-items: center;
	justify-content: space-between;
	padding: 0.6em 1em;
}
.iv-head {
	background: #def2ff;
}
.iv-head strong {
	word-break: break-all;
}
.iv-close {
	padding: 0 0.4em;
	font-size: 24px;
	line-height: 1;
	color: #4a555a;
	background: none;
}
.iv-close:hover {
	background: none;
	color: #000;
}
.iv-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 1em 3.5em;
	background: #f4f7f9;
	overflow: hidden;
}
.iv-stage img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 180px);
	object-fit: contain;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.iv-prev, .iv-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.4em;
	height: 2.4em;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: #2e6f9e;
	background: #fff;
	border: 1px solid #c8d6e0;
	border-radius: 50%;
}
.iv-prev:hover, .iv-next:hover {
	background: #eef5fa;
}
.iv-prev {
	left: 0.6em;
}
.iv-next {
	right: 0.6em;
}
.iv-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1.2em;
	color: #666;
	font-size: 13px;
}
.iv-foot a {
	white-space: nowrap;
	font-size: 13px;
}

/* MENU EDITOR */

.me {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 15em;
	gap: 1.5em;
	align-items: start;
}
.me-editor {
	background: #fff;
	border: 1px solid #dde3e7;
	border-radius: 6px;
	padding: 1em;
}
.me-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.25em;
	align-items: center;
}
.me-addpage {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	font-weight: normal;
	color: #666;
}
.me-addpage select {
	max-width: 16em;
	padding: 0.4em;
	font: inherit;
	border: 1px solid #ccd5db;
	border-radius: 4px;
	background: #fff;
}
.me-help {
	margin: 0.75em 0;
}
.me-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.me-row {
	display: flex;
	gap: 0.6em;
	align-items: center;
	margin: 0 0 0.4em calc(var(--depth) * 2.2em);
	padding: 0.4em 0.6em;
	background: #f7f9fb;
	border: 1px solid #e1e7eb;
	border-left: 3px solid #9cc3de;
	border-radius: 5px;
	position: relative;
}
.me-row[style*="--depth: 0"] {
	border-left-color: #2e6f9e;
}
.me-row[style*="--depth: 2"] {
	border-left-color: #c9dceb;
}
.me-dragging {
	opacity: 0.4;
}
.me-drop-before::before, .me-drop-after::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 3px;
	background: #2e6f9e;
	border-radius: 2px;
}
.me-drop-before::before {
	top: -5px;
}
.me-drop-after::after {
	bottom: -6px;
}
.me-handle {
	cursor: grab;
	color: #8aa0b0;
	font-size: 18px;
	line-height: 1;
	padding: 0.2em 0.1em;
	user-select: none;
}
.me-fields {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(8em, 1fr) minmax(10em, 1.4fr);
	gap: 0.5em;
	align-items: start;
	min-width: 0;
}
.me-fields input {
	margin: 0;
	padding: 0.35em 0.5em;
}
.me-text {
	font-weight: 600;
}
.me-link {
	min-width: 0;
}
.me-status {
	display: block;
	margin-top: 0.15em;
	font-size: 12px;
}
.me-status::before {
	margin-right: 0.3em;
}
.me-ok {
	color: #3a7d44;
}
.me-ok::before {
	content: "✓";
}
.me-ext {
	color: #2e6f9e;
}
.me-ext::before {
	content: "↗";
}
.me-warn {
	color: #b06a1a;
}
.me-warn::before {
	content: "⚠";
}
.me-buttons {
	display: flex;
	gap: 0.25em;
}
.me-btn {
	width: 2em;
	height: 2em;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: #2e6f9e;
	background: #fff;
	border: 1px solid #c8d6e0;
}
.me-btn:hover:not(:disabled) {
	background: #eef5fa;
}
.me-remove {
	color: #b03a3a;
}
.me-empty {
	color: #777;
}

.me-preview {
	position: sticky;
	top: 1em;
}
.me-preview-title {
	font-weight: 600;
	margin-bottom: 0.4em;
}
/* mimics the site's side menu */
.me-site {
	padding: 1.5em 1em 1em;
	background: #fff;
	border: 1px solid #dde3e7;
	border-radius: 6px;
	text-align: right;
	font: 9pt/140% verdana, sans-serif;
	color: #999;
}
.me-site ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.me-site > ul:not(.me-footnotes) > li {
	padding-bottom: 2.4em;
}
.me-site a {
	color: #4a555a;
	text-decoration: none;
}
.me-site a:hover {
	color: #000;
}
.me-site a.me-broken {
	color: #b06a1a;
	text-decoration: underline wavy;
}
.me-site .me-footnotes {
	margin-top: 3em;
	font-size: 90%;
}

.me-save {
	position: sticky;
	bottom: 0;
	display: flex;
	gap: 1em;
	align-items: center;
	margin-top: 1em;
	padding: 0.75em 0;
	background: #f4f7f9;
}
.me-dirty {
	color: #b06a1a;
	font-size: 14px;
}

@media (max-width: 760px) {
	.me {
		grid-template-columns: 1fr;
	}
	.me-preview {
		position: static;
	}
	.me-row {
		flex-wrap: wrap;
		margin-left: calc(var(--depth) * 1em);
	}
	.me-fields {
		grid-template-columns: 1fr;
		flex-basis: calc(100% - 2em);
	}
	.me-buttons {
		margin-left: 1.6em;
	}
}

/* ICONS */

.icon {
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.35em;
	vertical-align: -0.17em;
	flex-shrink: 0;
}
header nav a, table.list .actions a {
	white-space: nowrap;
}
header nav a .icon {
	opacity: 0.8;
}
/* icon-only buttons */
.me-btn .icon, .iv-prev .icon, .iv-next .icon, .iv-close .icon, .picker-head .close .icon {
	margin: 0;
	vertical-align: middle;
}
.me-handle .icon {
	margin: 0;
	width: 18px;
	height: 18px;
}
.fb-icon .icon {
	width: 52px;
	height: 52px;
	margin: 0;
	color: #9cb6c9;
	stroke-width: 1.5;
}
.fb-link .icon {
	width: 1em;
	height: 1em;
	margin-right: 0.2em;
}
.me-help .icon {
	margin: 0 0.15em;
}

/* SEARCHABLE SELECT */

.cb {
	position: relative;
	max-width: 32em;
	margin-top: 0.25em;
	font-weight: normal;
}
.cb-input {
	margin: 0 !important;
	padding-right: 2em !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.6em center / 1em;
}
.cb-list {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	top: calc(100% + 2px);
	max-height: 18em;
	overflow-y: auto;
	margin: 0;
	padding: 0.25em 0;
	list-style: none;
	background: #fff;
	border: 1px solid #ccd5db;
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.cb-option, .cb-none {
	padding: 0.35em 0.75em;
}
.cb-option {
	cursor: pointer;
}
.cb-option mark {
	background: #fff1b8;
	color: inherit;
	padding: 0;
}
.cb-special {
	color: #2e6f9e;
	font-style: italic;
}
.cb-option:first-child.cb-special {
	border-bottom: 1px solid #eef1f3;
}
.cb-option:last-child.cb-special {
	border-top: 1px solid #eef1f3;
}
.cb-current {
	font-weight: 600;
}
.cb-active {
	background: #e3f0f9;
}
.cb-none {
	color: #888;
	font-size: 14px;
}
.me-link .cb {
	margin-top: 0;
	max-width: none;
}
.me-link .cb-input, .me-link .cb input {
	padding-right: 0.5em !important;
	background-image: none;
}
select.select {
	display: block;
	width: 100%;
	margin-top: 0.25em;
	padding: 0.45em;
	font: inherit;
	border: 1px solid #ccd5db;
	border-radius: 4px;
	background: #fff;
}
table.list th {
	white-space: nowrap;
}
table.list .tag {
	white-space: nowrap;
}

/* HELP */

.title-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	align-items: baseline;
	justify-content: space-between;
}
.help-link {
	font-size: 14px;
	white-space: nowrap;
}
.help {
	display: grid;
	grid-template-columns: 12em minmax(0, 1fr);
	gap: 0 2em;
	align-items: start;
}
.help-toc {
	position: sticky;
	top: 1em;
	grid-row: span 20;
	padding: 0.75em 1em;
	background: #fff;
	border: 1px solid #dde3e7;
	border-radius: 6px;
	font-size: 14px;
}
.help-toc ol {
	margin: 0.4em 0 0;
	padding-left: 1.3em;
}
.help-toc li {
	margin: 0.2em 0;
}
.help section {
	background: #fff;
	border: 1px solid #dde3e7;
	border-radius: 6px;
	padding: 0.25em 1.25em 0.5em;
	margin-bottom: 1.25em;
	scroll-margin-top: 1em;
}
.help section:target {
	border-color: #9cc3de;
	box-shadow: 0 0 0 3px #e3f0f9;
}
.help h2 {
	font-size: 1.15em;
	margin: 0.7em 0 0.4em;
}
.help h2 .icon {
	color: #2e6f9e;
}
.help h3 {
	font-size: 1em;
	margin: 1em 0 0.2em;
}
.help li {
	margin: 0.3em 0;
}
.help li .icon {
	margin: 0 0.1em;
	vertical-align: -0.15em;
}
.help code {
	background: #f1f4f6;
	padding: 0 0.3em;
	border-radius: 3px;
}
.help .tip {
	padding: 0.5em 0.8em;
	background: #eef5fa;
	border-radius: 4px;
	font-size: 14px;
}
@media (max-width: 760px) {
	.help {
		grid-template-columns: 1fr;
	}
	.help-toc {
		position: static;
		grid-row: auto;
		margin-bottom: 1em;
	}
}
input.colour {
	width: 4em;
	height: 2.2em;
	padding: 2px;
}

/* Roseland: the menu preview mimics the site's menu bar and its drop-downs */
.me-site {
	text-align: left;
	background: #aee0dd;
	font: 300 13px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #666;
	padding: 0.8em 1em;
}
.me-site > ul:not(.me-footnotes) > li {
	padding-bottom: 0.6em;
}
.me-site ul ul {
	margin: 0.2em 0 0 0.9em;
	font-size: 12px;
}
.me-site a {
	color: #555;
}

/* BLOCK EDITOR */

main {
	max-width: 1180px;
}
.be {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
}
.be-column {
	background: #f4f7f9;
	border: 1px dashed #c8d4dc;
	border-radius: 6px;
	padding: 8px;
	min-height: 120px;
}
.be-column.be-hidden {
	opacity: 0.75;
}
.be-column-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
	font-size: 14px;
}
.be-column-head small {
	color: #888;
}
.be-card {
	border-radius: 5px;
	margin-bottom: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}
.be-card[style*="#ffffff"] {
	border: 1px solid #dde3e7;
}
.be-card-main {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 10px;
	background: none !important;
	color: inherit;
	font: inherit;
	font-weight: normal;
	border: none;
	border-radius: 0;
	cursor: pointer;
}
.be-card-main:hover .be-title {
	text-decoration: underline;
}
.be-type {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.8;
}
.be-title {
	display: block;
	font: 300 15px/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 2px 0;
}
.be-summary {
	display: block;
	font-size: 12px;
	opacity: 0.85;
	word-break: break-word;
}
.be-tools {
	display: flex;
	gap: 2px;
	padding: 4px 6px;
	background: rgba(255, 255, 255, 0.55);
}
.be-tools button {
	padding: 2px 5px;
	color: #2e6f9e;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #c8d6e0;
	border-radius: 3px;
}
.be-tools button .icon {
	margin: 0;
	vertical-align: -0.15em;
}
.be-tools button:disabled {
	opacity: 0.35;
}
.be-tools .be-remove {
	margin-left: auto;
	color: #b03a3a;
}
.be-add select {
	width: 100%;
	padding: 0.35em;
	font: inherit;
	font-size: 14px;
	border: 1px solid #c8d4dc;
	border-radius: 4px;
	background: #fff;
}
.be-dirty {
	color: #b06a1a;
}

/* side panel for editing one block (not a modal, so the text editor's own pop-ups work) */
.bp {
	position: fixed;
	z-index: 900;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(640px, 100vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
}
.bp[hidden] {
	display: none;
}
body.bp-open::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 800;
	background: rgba(20, 30, 40, 0.35);
}
.bp-head {
	padding: 0.9em 1.2em;
	background: #def2ff;
}
.bp-head small {
	display: block;
	color: #555;
}
.bp-fields {
	flex: 1;
	overflow-y: auto;
	padding: 1em 1.2em;
}
.bp-field {
	display: block;
	margin-bottom: 1em;
	font-weight: 500;
}
.bp-field > span {
	display: block;
	margin-bottom: 0.25em;
}
.bp-field select {
	display: block;
	width: 100%;
	padding: 0.45em;
	font: inherit;
	border: 1px solid #ccd5db;
	border-radius: 4px;
	margin-top: 0.25em;
}
.bp-check {
	display: block;
	margin: -0.4em 0 1em;
	font-weight: normal;
}
.bp-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.bp-swatches label {
	position: relative;
	width: 30px;
	height: 30px;
	margin: 0;
	border-radius: 50%;
	border: 1px solid #c8d4dc;
	cursor: pointer;
}
.bp-swatches input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.bp-swatches label:has(input:checked) {
	outline: 3px solid #2e6f9e;
	outline-offset: 2px;
}
.bp-swatches label:has(input:focus-visible) {
	outline: 3px solid #9cc3de;
	outline-offset: 2px;
}
.bp-row {
	display: flex;
	gap: 0.5em;
	align-items: center;
}
.bp-row input {
	margin: 0 !important;
}
.bp-row button {
	white-space: nowrap;
}
.bp-thumb {
	display: block;
	max-width: 181px;
	max-height: 140px;
	margin-bottom: 0.4em;
	border-radius: 3px;
}
.bp-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	align-items: center;
	padding: 0.8em 1.2em;
	border-top: 1px solid #e6eaed;
	background: #fafbfc;
}
.bp-foot small {
	color: #777;
}
.tox-tinymce-aux {
	z-index: 1300 !important;
}
dialog.picker {
	z-index: 1400;
}

@media (max-width: 900px) {
	.be {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.be {
		grid-template-columns: 1fr;
	}
}

/* PROPERTIES */

input.filter {
	display: block;
	width: 100%;
	max-width: 24em;
	box-sizing: border-box;
	margin: 0 0 1em;
	padding: 0.45em 0.6em;
	font: inherit;
	border: 1px solid #ccd5db;
	border-radius: 4px;
}
.list-thumb {
	display: block;
	border-radius: 3px;
	object-fit: cover;
}
fieldset.status {
	border-left: 4px solid #c8d4dc;
}
fieldset.status.is-live {
	border-left-color: #3a9a4a;
}
fieldset.status small {
	display: block;
	margin-bottom: 0.5em;
}
.mappick {
	position: relative;
	width: 380px;
	max-width: 100%;
	cursor: crosshair;
}
.mappick img:first-child {
	display: block;
	width: 380px;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}
.mappick .marker {
	position: absolute;
	width: 15px;
	pointer-events: none;
}

/* captcha (ALTCHA) on sign in and forgotten password */
.captcha {
	margin: 0 0 1em;
}
.captcha altcha-widget {
	--altcha-max-width: 100%;
	--altcha-border-radius: 4px;
	--altcha-color-border: #ccd5db;
	font: inherit;
}

/* two-step sign-in */
.qr {
	width: 200px;
	margin: 0.6em 0;
	padding: 6px;
	background: #fff;
	border: 1px solid #dde3e7;
	border-radius: 6px;
}
.qr svg {
	display: block;
	width: 100%;
	height: auto;
}
.setup-key {
	font-size: 15px;
	letter-spacing: 0.05em;
	word-break: break-all;
}
input.code-input {
	max-width: 10em;
	font: 600 20px/1.2 ui-monospace, Menlo, Consolas, monospace;
	letter-spacing: 0.15em;
}
ol.steps > li {
	margin-bottom: 1.2em;
}
.backup-codes ul.codes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8em, 1fr));
	gap: 0.3em 1em;
	padding: 0;
	list-style: none;
	font-size: 17px;
}
p.or {
	display: flex;
	align-items: center;
	gap: 0.8em;
	color: #888;
}
p.or::before, p.or::after {
	content: "";
	flex: 1;
	border-top: 1px solid #dde3e7;
}
form.inline-form {
	margin: 0.6em 0;
}
legend .icon {
	color: #2e6f9e;
}
legend small.best {
	display: inline;
	font-weight: normal;
	color: #3a7d44;
	margin-left: 0.4em;
}
.passkey-add {
	align-items: flex-end;
	margin-top: 0.6em;
}
.passkey-add p {
	margin: 0 0 1em;
}
details summary {
	cursor: pointer;
	color: #2e6f9e;
	margin-bottom: 0.6em;
}

/* messages */
table.messages .select-col {
	width: 2em;
}
table.messages tr.new td {
	font-weight: 600;
}
table.messages tr.new td small {
	font-weight: normal;
}
.tag-new {
	background: #e3f1e5;
	color: #2f6b39;
}
nav .count {
	display: inline-block;
	min-width: 1.4em;
	padding: 0 0.4em;
	margin-left: 0.3em;
	border-radius: 1em;
	background: #c0392b;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}
table.message-fields {
	width: 100%;
	max-width: 760px;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #dde3ea;
	margin-bottom: 1em;
}
table.message-fields th, table.message-fields td {
	padding: 0.55em 0.8em;
	border-bottom: 1px solid #eef1f4;
	text-align: left;
	vertical-align: top;
}
table.message-fields th {
	width: 12em;
	font-weight: 600;
	color: #444;
}
.message-text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.message-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em;
	max-width: 760px;
	margin-bottom: 1em;
}
.message-bar .back {
	margin-right: auto;
}

/* log out is a form (so other sites can't sign you out) styled as a menu link */
nav .nav-form {
	display: inline;
	margin: 0;
}
nav .nav-form button.link {
	font: inherit;
	color: inherit;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: inherit;
}
nav .nav-form button.link:hover {
	text-decoration: underline;
}
