:root {
	--bg-color: #f9f7f4;
	--text-color: #333;
	--white: white;
	--primary-green: #4a6741;
	--primary-green-light: #6b8b62;
	--primary-green-lighter: #7a9271;
	--primary-green-dark: #5a7a51;
	--primary-green-lightest: #f0f7f0;
	--border-gray: #e0e0e0;
	--shadow: rgba(0,0,0,0.1);
}

/* Keep existing body styles from layout.css */

pre {
	font-size: 1em;
	background: #f5f5f5;
	padding: 10px;
	border-radius: 4px;
	overflow-x: auto;
}

label.label {}

div.rightbar {
	float: right;
	border-left: thin solid #e0e0e0;
	padding-left: 15px;
	margin-left: 15px;
}

/* these are mostly so tinymce will add them to "Formats" menu */

article.content {
	display: block;
}

section.content {
	display: block;
}

aside.content {
	display: block;
}

header.content {
	display: block;
}

footer.content {
	display: block;
}

nav.content {
	display: block;
}

blockquote.content {
	display: block;
}

a {
	color: #4a6741;
	text-decoration: none;
}

a:hover {
	color: #6b8b62;
	text-decoration: underline;
}

a.empty {
	color: #c74440;
}

div.errors {
	border: 2px solid #c74440;
	padding: 10px;
	color: #c74440;
	background: #fee;
	border-radius: 4px;
	margin: 10px 0;
}

div.hidden {
	display: none;
}
#tinymce div.hidden,
.mode-edit div.hidden {
	display: block;
	background: #00000020;
}

button.btn,
a.btn,
input[type="submit"],
button[type="submit"] {
	padding: 10px 20px;
	background: var(--primary-green-light);
	color: var(--white);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
	text-decoration: none;
	display: inline-block;
}

button.btn:hover,
a.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background: var(--primary-green-dark);
}

button.btn-outline,
a.btn-outline {
	flex-shrink: 0;
	padding: 3px 8px;
	background: transparent;
	color: var(--primary-green);
	text-decoration: none;
	border: 1px solid var(--primary-green-light);
	border-radius: 3px;
	font-size: 0.85em;
	cursor: pointer;
}

button.btn-outline:hover,
a.btn-outline:hover {
	background: var(--primary-green-lightest);
	text-decoration: none;
}

button.btn-outline.cancel,
a.btn-outline.cancel {
	color: #666;
	border-color: #999;
}

/* sortable tables */
table.sortable {
	border-collapse: collapse;
	width: 100%;
	margin: 15px 0;
}

table.sortable th {
	background: #6b8b62;
	color: white;
	padding: 10px;
	text-align: left;
}

table.sortable td {
	padding: 8px;
	border-bottom: 1px solid #e0e0e0;
}

table.sortable tr:hover {
	background: #f9f7f4;
}

/* for image_caption */
figure.image {
	display: inline-block;
	margin: 0 0 1em 0;
}

figure.align-left {
	float: left;
	clear: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

figure.align-right {
	float: right;
	clear: right;
	margin-left: 1.5em;
	margin-bottom: 1em;
	max-width: 350px;
}

figure.align-center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	clear: both;
	margin-bottom: 1em;
}

figure.image img {
	margin: 0px 0px 8px 0px;
	border-radius: 5px;
	max-width: 100%;
	height: auto;
}

figure.image figcaption {
	margin: 0;
	text-align: center;
	font-size: 0.9em;
	color: #666;
}

/* Viewerjs navbar thumbnails - make them wider/square */
.viewer-navbar li {
	min-width: 50px;
}

.viewer-navbar img {
	object-fit: cover;
}
