/**
 * Glossary single-post content styles.
 * Restores block typography & spacing reset by Tailwind Preflight.
 * Scoped to .glossary-content so it never leaks.
 */

/* ── Base ── */
.glossary-content {
	color: #374151;
	line-height: 1.75;
	font-size: 1.0625rem;
	font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.glossary-content > *:first-child {
	margin-top: 0;
}

/* ── Headings ── */
.glossary-content h1,
.glossary-content h2,
.glossary-content h3,
.glossary-content h4,
.glossary-content h5,
.glossary-content h6 {
	color: #111827;
	line-height: 1.3;
	margin-top: 2em;
	margin-bottom: 0.75em;
	font-family: "SF Pro Display", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-weight: 600;
}

.glossary-content h1 { font-size: 2rem; }
.glossary-content h2 { font-size: 1.5rem; }
.glossary-content h3 { font-size: 1.25rem; }
.glossary-content h4 { font-size: 1.125rem; }
.glossary-content h5 { font-size: 1rem; }
.glossary-content h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Paragraphs ── */
.glossary-content p {
	margin-bottom: 1.25em;
}

/* ── Links ── */
.glossary-content a {
	color: #7c3aed;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.glossary-content a:hover {
	color: #6d28d9;
}

/* ── Lists ── */
.glossary-content ul,
.glossary-content ol {
	margin-bottom: 1.25em;
	padding-left: 1.5em;
}

.glossary-content ul { list-style-type: disc; }
.glossary-content ol { list-style-type: decimal; }
.glossary-content ul ul { list-style-type: circle; }
.glossary-content ul ul ul { list-style-type: square; }
.glossary-content ol ol { list-style-type: lower-alpha; }

.glossary-content li {
	margin-bottom: 0.375em;
}

.glossary-content li > ul,
.glossary-content li > ol {
	margin-top: 0.375em;
	margin-bottom: 0;
}

/* ── Blockquote ── */
.glossary-content blockquote {
	border-left: 4px solid #7c3aed;
	padding: 1rem 1.5rem;
	margin: 1.5em 0;
	background: #f5f3ff;
	border-radius: 0 0.5rem 0.5rem 0;
	color: #4b5563;
}

.glossary-content blockquote p:last-child {
	margin-bottom: 0;
}

.glossary-content blockquote cite {
	display: block;
	margin-top: 0.75em;
	font-size: 0.875rem;
	color: #6b7280;
	font-style: normal;
}

/* ── Code ── */
.glossary-content code {
	background: #f3f4f6;
	padding: 0.2em 0.4em;
	border-radius: 0.25rem;
	font-size: 0.875em;
	color: #7c3aed;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.glossary-content pre {
	background: #1e1e2e;
	color: #cdd6f4;
	padding: 1.25rem 1.5rem;
	border-radius: 0.5rem;
	overflow-x: auto;
	margin: 1.5em 0;
	font-size: 0.875rem;
	line-height: 1.7;
	tab-size: 4;
}

.glossary-content pre code {
	background: none;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
	color: inherit;
}

/* ── Images & Figures ── */
.glossary-content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin: 1.5em 0;
}

.glossary-content figure {
	margin: 1.5em 0;
}

.glossary-content figure img {
	margin: 0;
}

.glossary-content figcaption {
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
	margin-top: 0.5em;
}

/* ── Tables ── */
.glossary-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.9375rem;
}

.glossary-content th,
.glossary-content td {
	border: 1px solid #e5e7eb;
	padding: 0.625rem 0.875rem;
	text-align: left;
}

.glossary-content th {
	background: #f9fafb;
	font-weight: 600;
	color: #111827;
}

.glossary-content tbody tr:nth-child(even) {
	background: #f9fafb;
}

/* ── Horizontal Rule ── */
.glossary-content hr {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 2em 0;
}

/* ── Separator block ── */
.glossary-content .wp-block-separator {
	border: none;
	border-top: 2px solid #e5e7eb;
	margin: 2.5em auto;
	max-width: 100px;
}

.glossary-content .wp-block-separator.is-style-wide {
	max-width: 100%;
}

/* ── Columns block ── */
.glossary-content .wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
	margin: 1.5em 0;
}

.glossary-content .wp-block-column {
	flex: 1;
	min-width: 0;
}

/* ── Gallery block ── */
.glossary-content .wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 1.5em 0;
	padding: 0;
	list-style: none;
}

.glossary-content .wp-block-gallery .wp-block-image {
	flex-grow: 1;
	margin: 0;
}

/* ── Cover block ── */
.glossary-content .wp-block-cover {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 250px;
	padding: 2rem;
	margin: 1.5em 0;
	border-radius: 0.5rem;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

/* ── Button block ── */
.glossary-content .wp-block-button__link {
	display: inline-block;
	padding: 0.75em 1.5em;
	background: #7c3aed;
	color: #fff;
	border-radius: 0.375rem;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	transition: background 0.15s ease;
}

.glossary-content .wp-block-button__link:hover {
	background: #6d28d9;
	color: #fff;
}

.glossary-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin: 1.5em 0;
}

/* ── Group block ── */
.glossary-content .wp-block-group {
	margin: 1.5em 0;
}

/* ── Pullquote block ── */
.glossary-content .wp-block-pullquote {
	border-top: 4px solid #7c3aed;
	border-bottom: 4px solid #7c3aed;
	padding: 1.5em 0;
	margin: 2em 0;
	text-align: center;
}

.glossary-content .wp-block-pullquote blockquote {
	border-left: none;
	background: none;
	padding: 0;
	margin: 0;
}

.glossary-content .wp-block-pullquote p {
	font-size: 1.25rem;
	font-style: italic;
}

/* ── Embed & Video blocks ── */
.glossary-content .wp-block-embed,
.glossary-content .wp-block-video {
	margin: 1.5em 0;
}

.glossary-content .wp-block-embed .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.glossary-content .wp-block-embed .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 0.5rem;
}

.glossary-content video {
	max-width: 100%;
	border-radius: 0.5rem;
}

/* ── Details / Accordion block ── */
.glossary-content details {
	margin: 1em 0;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 0.75em 1em;
}

.glossary-content details summary {
	cursor: pointer;
	font-weight: 600;
	color: #111827;
}

.glossary-content details[open] summary {
	margin-bottom: 0.75em;
}
