/**
 * Single article page styles.
 *
 * @package Hamechadesh
 */

/* Note:
 *  - .hm-single-cat-header* styles moved to assets/css/components/category-header.css
 *  - .hm-single-columns layout primitives moved to assets/css/components/single-columns.css
 *  Both are shared with the category archive page.
 */

/* ==========================================================================
   Entry Header — breadcrumbs + eyebrow + title + excerpt
   Figma node 615:17322 (eyebrow + title + excerpt)
   Figma node 509:8828 (breadcrumbs)
   ========================================================================== */

.hm-entry-header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 11px;
}

/* 55px gap from breadcrumbs to the first content block (eyebrow OR title). */
.hm-entry-header > .hm-breadcrumbs + * {
	margin-block-start: 55px;
}

/* "before_title" eyebrow — full-width pill with right border (RTL:
   border on the inline-start side; rounded corners on the inline-end side).
   Color comes from the post's category via the --hm-cat-color variable set
   on the <article> wrapper in template-parts/content.php. Falls back to the
   theme orange when the variable is unset (defensive). */
.hm-entry-header__eyebrow {
	padding: 6px 16px;
	border-inline-start: 1px solid var(--hm-cat-color, var(--hm-color-orange));
	border-start-end-radius: 8px;
	border-end-end-radius: 8px;
	color: var(--hm-cat-color, var(--hm-color-orange));
	font-family: var(--hm-font-primary);
	font-weight: 700;
	font-size: 20px;
	line-height: 20px;
	text-align: start;
	unicode-bidi: isolate;
}

/* Main post title — Pompei Black 55px / 51px line-height (Figma exact).
   Fluid on smaller viewports via clamp(). */
.hm-entry-header__title {
	margin: 0;
	color: var(--hm-color-text);
	font-family: var(--hm-font-primary);
	font-weight: 800;
	font-size: clamp(32px, 1.5rem + 2.4vw, 55px);
	line-height: 0.93;
	text-align: start;
	unicode-bidi: isolate;
}

/* Post excerpt / dek. */
.hm-entry-header__excerpt {
	margin: 0;
	max-width: 628px;
	color: var(--hm-color-text);
	font-family: var(--hm-font-primary);
	font-weight: 300;
	font-size: 16px;
	line-height: 22px;
	text-align: start;
	unicode-bidi: isolate;
}

@media (max-width: 767px) {
	.hm-entry-header > .hm-breadcrumbs + * {
		margin-block-start: 30px;
	}

	.hm-entry-header__eyebrow {
		padding: 5px 12px;
		font-size: 16px;
		line-height: 20px;
	}

	.hm-entry-header__excerpt {
		font-size: 15px;
		line-height: 21px;
	}
}

/* ==========================================================================
   Featured Image — full-width hero with 20px rounded corners
   ========================================================================== */

.hm-single-columns__main .post-thumbnail {
	display: block;
	width: 100%;
	margin: 0 0 20px 0;
}

.hm-single-columns__main .post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

.hm-single-columns__main .post-thumbnail__caption {
	margin: 8px 0 0;
	font-family: var(--hm-font-primary);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--hm-color-text-muted, #6b7280);
	text-align: center;
}

/* ==========================================================================
   Post Content — body type scaled up for readability on the article page
   ========================================================================== */

.hm-single-columns__main .entry-content {
	font-size: 1.3rem;
}

/* End-of-article comments CTA — shares button visuals with
   .hm-meta-bar__comments (see post-meta-bar.css); this wrapper only
   handles the right-alignment in RTL. */
.hm-comments-cta-wrap {
	display: flex;
	justify-content: flex-start; /* RTL: flex-start = RIGHT (Lessons #1, #14) */
	margin-block-start: 30px;
}

/* Post-end ad banner — explicitly 50px below the CTA (overrides the
   ad-inline component's default `margin-block: var(--hm-space-lg)`). */
.hm-comments-cta-wrap + .hm-ad-inline {
	margin-block-start: 50px;
}

/* ==========================================================================
   Section heading — red dot + Pompei Black 32px title.
   Shared by .hm-posts-grid (must-read & may-interest), .hm-most-viewed,
   and any future content
   sections below the post body that follow the same pattern as
   .hm-single-cat-header (without the divider line and CTA button).
   ========================================================================== */

.hm-section-heading {
	display: flex;
	align-items: flex-end;
	gap: 15px;
	margin: 0 0 30px 0;
	font-family: var(--hm-font-primary);
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
	color: var(--hm-color-primary);
}

.hm-section-heading__dot {
	flex-shrink: 0;
	align-self: center;
	width: 13px;
	height: 13px;
	color: var(--hm-color-accent); /* fill="currentColor" inside the SVG */
}

.hm-section-heading__text {
	display: inline-block;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.hm-section-heading {
		font-size: 26px;
		margin-bottom: 20px;
	}
}

/* ==========================================================================
   Two-Column Layout — single-post-specific overrides
   (Layout primitives live in assets/css/components/single-columns.css)
   ========================================================================== */

/* Override flashes height for single-post context.
   Base .hm-flashes is 500px; homepage 1350px+ sets height:auto + flex.
   Single post needs exactly 410px, no flex sizing. */
.hm-single-columns__sidebar .hm-flashes {
	height: 410px;
}

@media (min-width: 1350px) {	
	.hm-single-columns__sidebar .hm-flashes {
		height: 410px;
		flex: none;
		min-height: auto;
		margin-bottom: 20px;
	}
}

/* Note: .hm-single-sidebar-posts and the sidebar banner skeleton styles moved
   to assets/css/components/sidebar-posts.css so they can be shared with the
   category archive sidebar. */
