/*
 * Page Content Styles
 * Restores browser-default spacing for CMS/TinyMCE content blocks.
 * Overrides global resets in main.css so WYSIWYG output matches the editor.
 */

/* ---- Base ---- */
.page-content {
	line-height: 1.7;
}

/* ---- Paragraphs ---- */
.page-content p {
	margin: 0 0 1em 0 !important;
	padding: 0 !important;
}
.page-content p:last-child {
	margin-bottom: 0 !important;
}

/* ---- Headings ---- */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
	margin: 1.25em 0 .5em 0 !important;
	font-family: var(--primary-font) !important;
	font-weight: 900 !important;
	line-height: 1.25 !important;
}
.page-content h1:first-child,
.page-content h2:first-child,
.page-content h3:first-child,
.page-content h4:first-child,
.page-content h5:first-child,
.page-content h6:first-child {
	margin-top: 0 !important;
}
.page-content h1:last-child,
.page-content h2:last-child,
.page-content h3:last-child,
.page-content h4:last-child,
.page-content h5:last-child,
.page-content h6:last-child {
	margin-bottom: 0 !important;
}

/* Sizes */
.page-content h1 { font-size: 2em; }
.page-content h2 { font-size: 1.5em; }
.page-content h3 { font-size: 1.25em; }
.page-content h4 { font-size: 1.1em; }
.page-content h5 { font-size: 1em; }
.page-content h6 { font-size: .875em; }

/* ---- Links ---- */
.page-content a {
	color: var(--primary-color);
	text-decoration: underline !important;
}
.page-content a:hover {
	color: var(--secondary-color);
}

/* ---- Lists ---- */
.page-content ul,
.page-content ol {
	margin: 0 0 1em 0 !important;
	padding-left: 2em !important;
	line-height: 1.7;
}
.page-content ul { list-style-type: disc; }
.page-content ol { list-style-type: decimal; }
.page-content li {
	margin-bottom: .4em;
}
.page-content li:last-child {
	margin-bottom: 0;
}
.page-content ul li::marker {
	color: var(--primary-color);
}

/* Nested lists */
.page-content ul ul,
.page-content ol ol,
.page-content ul ol,
.page-content ol ul {
	margin-top: .4em !important;
	margin-bottom: 0 !important;
}

/* ---- Blockquote ---- */
.page-content blockquote {
	margin: 1em 0 !important;
	padding: .75em 1.25em !important;
	border-left: 4px solid var(--primary-color);
	font-style: italic;
}

/* ---- Horizontal Rule ---- */
.page-content hr {
	margin: 1.5em 0 !important;
	border: none;
	border-top: 1px solid #ddd;
}

/* ---- Images ---- */
.page-content img {
	max-width: 100%;
	height: auto;
}

/* ---- Tables ---- */
.page-content table {
	width: 100%;
	margin-bottom: 1em;
	border-collapse: collapse;
}
.page-content th,
.page-content td {
	padding: .5em .75em;
	border: 1px solid #ddd;
	text-align: left;
}
.page-content th {
	font-weight: 700;
	background-color: #f5f5f5;
}

/* ---- Inline formatting ---- */
.page-content strong,
.page-content b {
	font-weight: 700;
}
.page-content em,
.page-content i {
	font-style: italic;
}
