/**
 * HONETA — content typography for the block editor and theme templates.
 *
 * Loaded only on singular views, archives that render excerpts, and inside the
 * block editor (via add_editor_style), so it never costs bytes on an Elementor
 * page that has no long-form copy.
 *
 * Every value here reuses the tokens declared in style.css. Nothing is
 * duplicated from the design system, so a colour change happens in one place.
 */

/* ------------------------------------------------------------ rhythm -- */

.honeta-entry-content > * {
	max-width: 72ch;
}

.honeta-entry-content > .alignwide,
.honeta-entry-content > .alignfull,
.honeta-entry-content > figure.aligncenter,
.honeta-entry-content > .wp-block-image.aligncenter {
	max-width: none;
}

.honeta-entry-content > *:first-child {
	margin-top: 0;
}

.honeta-entry-content > *:last-child {
	margin-bottom: 0;
}

.honeta-entry-content h2 {
	margin-top: var(--honeta-space-lg);
	padding-bottom: 8px;
	border-bottom: 2px solid var(--honeta-gold);
}

.honeta-entry-content h3 {
	margin-top: var(--honeta-space-md);
}

.honeta-entry-content h4,
.honeta-entry-content h5,
.honeta-entry-content h6 {
	margin-top: var(--honeta-space-md);
	color: var(--honeta-ink);
}

.honeta-entry-content ul,
.honeta-entry-content ol {
	padding-left: 1.4em;
}

.honeta-entry-content li + li {
	margin-top: 6px;
}

.honeta-entry-content ul li::marker {
	color: var(--honeta-green);
}

.honeta-entry-content ol li::marker {
	color: var(--honeta-green);
	font-weight: 700;
}

.honeta-entry-content dt {
	font-weight: 700;
}

.honeta-entry-content dd {
	margin: 0 0 10px 1.2em;
}

/* ------------------------------------------------------- blockquotes -- */

.honeta-entry-content blockquote {
	margin: var(--honeta-space-lg) 0;
	padding: var(--honeta-space-sm) var(--honeta-space-md);
	border-left: 4px solid var(--honeta-gold);
	border-radius: 0 var(--honeta-radius-sm) var(--honeta-radius-sm) 0;
	background-color: var(--honeta-surface);
	color: var(--honeta-ink);
	font-family: var(--honeta-font-heading);
	font-size: 1.125rem;
}

.honeta-entry-content blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--honeta-muted);
	font-family: var(--honeta-font-body);
	font-size: 0.875rem;
	font-style: normal;
}

.honeta-entry-content blockquote > *:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------- media -- */

.honeta-entry-content img {
	border-radius: var(--honeta-radius-sm);
}

.honeta-entry-content figure {
	margin: var(--honeta-space-md) 0;
}

.honeta-entry-content figcaption {
	text-align: center;
}

.honeta-entry-content .wp-block-image img {
	width: 100%;
}

.honeta-entry-content a img:hover {
	opacity: 0.92;
}

/* ------------------------------------------------------------ tables -- */

.honeta-entry-content table {
	margin-bottom: var(--honeta-space-md);
	font-size: 0.9375rem;
}

.honeta-entry-content thead th {
	background-color: var(--honeta-blue);
	color: #fff;
}

.honeta-entry-content tbody tr:nth-child(even) {
	background-color: var(--honeta-tint);
}

.honeta-entry-content td,
.honeta-entry-content th {
	border-color: var(--honeta-line);
}

.honeta-entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
	background-color: var(--honeta-tint);
}

/* ------------------------------------------------------------- code -- */

.honeta-entry-content code {
	padding: 2px 6px;
	border-radius: 4px;
	background-color: var(--honeta-tint);
	color: var(--honeta-blue-dark);
}

.honeta-entry-content pre code {
	padding: 0;
	background-color: transparent;
	color: inherit;
}

/* ---------------------------------------------------------- buttons -- */

.honeta-entry-content .wp-block-button__link {
	min-height: 44px;
	padding: 12px 22px;
	border-radius: var(--honeta-radius-pill);
	background-color: var(--honeta-blue);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.honeta-entry-content .wp-block-button__link:hover,
.honeta-entry-content .wp-block-button__link:focus {
	background-color: var(--honeta-blue-dark);
	color: #fff;
}

.honeta-entry-content .is-style-outline .wp-block-button__link {
	border-color: var(--honeta-blue);
	background-color: transparent;
	color: var(--honeta-blue);
}

/* ------------------------------------------------------------ groups -- */

.honeta-entry-content .wp-block-group.has-background,
.honeta-entry-content .wp-block-cover {
	padding: var(--honeta-space-md);
	border-radius: var(--honeta-radius);
}

.honeta-entry-content .wp-block-separator {
	border-color: var(--honeta-line);
}

.honeta-entry-content .wp-block-quote.is-style-large {
	padding: var(--honeta-space-md);
	font-size: 1.25rem;
}

/* --------------------------------------------------------- utilities -- */

.honeta-entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.honeta-entry-content > .has-text-align-center {
	margin-inline: auto;
	text-align: center;
}

.honeta-entry-content > .has-text-align-right {
	margin-left: auto;
	text-align: right;
}

/* -------------------------------------------------------- editor CTA -- */

.editor-styles-wrapper .honeta-entry-content,
.editor-styles-wrapper .wp-block {
	max-width: none;
}

.editor-styles-wrapper {
	color: var(--honeta-ink);
	font-family: var(--honeta-font-body);
	font-size: var(--honeta-font-size);
	line-height: var(--honeta-leading);
}
