/* Typography for WYSIWYG post content (single posts, archive excerpts). */

.entry-content {
	color: rgba(11, 58, 130, 0.7);
	line-height: 1.75;
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: 'Glacial Indifference', sans-serif;
	font-weight: 600;
	color: #0B3A82;
	line-height: 1.3;
}

.entry-content h2 { margin-top: 2em; font-size: 1.75rem; }
.entry-content h3 { margin-top: 1.75em; font-size: 1.4rem; }
.entry-content h4 { margin-top: 1.5em; font-size: 1.15rem; }
.entry-content h2:first-child,
.entry-content h3:first-child { margin-top: 0; }

.entry-content p {
	margin: 0;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li + li {
	margin-top: 0.5em;
}

.entry-content li > ul,
.entry-content li > ol {
	margin-top: 0.5em;
}

.entry-content a {
	color: #D9A11E;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:hover {
	color: #BD8815;
}

.entry-content strong { color: #0B3A82; font-weight: 700; }

.entry-content blockquote {
	border-left: 4px solid #D9A11E;
	padding: 0.25em 0 0.25em 1.25em;
	font-style: italic;
	color: rgba(11, 58, 130, 0.6);
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
}

.entry-content figcaption {
	margin-top: 0.5em;
	font-size: 0.875rem;
	color: rgba(11, 58, 130, 0.5);
	text-align: center;
}

.entry-content code {
	background: #F0F2F6;
	color: #0B3A82;
	padding: 0.15em 0.4em;
	border-radius: 0.375rem;
	font-size: 0.875em;
}

.entry-content pre {
	background: #0B3A82;
	color: #F8F8F6;
	padding: 1.25em;
	border-radius: 0.75rem;
	overflow-x: auto;
}

.entry-content pre code {
	background: none;
	color: inherit;
	padding: 0;
}

.entry-content hr {
	border: none;
	border-top: 1px solid rgba(11, 58, 130, 0.1);
}

.entry-content table {
	display: block;
	max-width: fit-content;
	overflow-x: auto;
	border-collapse: collapse;
	width: 100%;
}

.entry-content th,
.entry-content td {
	padding: 0.75em 1em;
	border: 1px solid rgba(11, 58, 130, 0.1);
	text-align: left;
}

.entry-content thead th {
	background: rgba(11, 58, 130, 0.05);
	color: #0B3A82;
	font-family: 'Glacial Indifference', sans-serif;
	font-weight: 600;
}

.entry-content tbody tr:nth-child(even) {
	background: rgba(11, 58, 130, 0.03);
}

/* Sticky sidebar CTA (single.php): explicit rule instead of relying on
   Tailwind's grid align-items behavior, so it keeps working regardless
   of how the surrounding grid/flex layout changes. */
.aa-sidebar-sticky {
	position: static;
}

@media (min-width: 1024px) {
	.aa-sidebar-sticky {
		position: sticky;
		top: 6rem;
	}
}

/* Pagination (archive.php) */
.aa-pagination {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
}

.aa-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0B3A82;
	background: #fff;
	border: 1px solid rgba(11, 58, 130, 0.1);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.aa-pagination .page-numbers:hover {
	background: rgba(217, 161, 30, 0.1);
	color: #D9A11E;
}

.aa-pagination .page-numbers.current {
	background: #0B3A82;
	color: #fff;
	border-color: #0B3A82;
}

.aa-pagination .page-numbers.dots {
	background: none;
	border: none;
}
