/* ============================================================
   UJ Single Article — Phase 1 native template styles
   wp-content/themes/hello-theme-child/assets/single-article.css
   ============================================================ */

/* Layout */
.uj-single {
	max-width: 768px;
	margin: 0 auto;
	padding: 0.5rem 1rem 4rem;
	font: 18px/1.7 Georgia, "Times New Roman", serif;
	color: #1a1a1a;
}

/* Hero — tight spacing on mobile so the title is visible above the fold */
.uj-article__hero {
	margin: 0 -1rem 0.75rem;
}
.uj-article__hero-img {
	width: 100%;
	height: auto;
	display: block;
	/* Let the image render at its natural aspect ratio. WordPress includes
	   width/height attributes on the_post_thumbnail() so browsers reserve
	   space correctly without forcing a fixed aspect-ratio. */
}
.uj-article__hero-caption {
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #666;
	padding: 0.375rem 1rem 0;
	margin: 0;
}

/* Header / title block */
.uj-article__header {
	margin: 0.5rem 0 1rem;
}
.uj-article__cat {
	display: inline-block;
	font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #B3421D;
	text-decoration: none;
	margin-bottom: 0.75rem;
}
.uj-article__cat:hover { text-decoration: underline; }

.uj-article__title {
	margin: 0 0 1rem !important;
	font: 400 clamp(1.875rem, 4vw, 2.625rem)/1.15 "Alfa Slab One", "Roboto Slab", "Rockwell", Georgia, serif !important;
	color: #B3421D !important;
	letter-spacing: 0.005em;
}
/* Elementor Kit decorates headings with ::before / ::after pseudo-element
   dividers. We don't want any of those on article body headings — strip
   them globally for this template. */
.uj-article__title::before,
.uj-article__title::after,
.uj-article__body h2::before,
.uj-article__body h2::after,
.uj-article__body h3::before,
.uj-article__body h3::after,
.uj-article__body h4::before,
.uj-article__body h4::after,
.uj-article__body h5::before,
.uj-article__body h5::after,
.uj-article__body h6::before,
.uj-article__body h6::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
	background: none !important;
}
.uj-article__title,
.uj-article__body h2,
.uj-article__body h3,
.uj-article__body h4,
.uj-article__body h5,
.uj-article__body h6 {
	border: 0 !important;
	text-decoration: none !important;
}

.uj-article__meta {
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #555;
}
.uj-article__meta a { color: #1d4ed8; text-decoration: none; }
.uj-article__meta a:hover { text-decoration: underline; }
.uj-article__sep { margin: 0 0.5rem; color: #999; }

/* Auth-state strip below the meta line. Quiet by default — secondary text,
   one degree muter than the byline. JS swaps between the .guest and .member
   variants based on /wp-json/uj/v1/auth-state (see toggle script in single.php). */
.uj-article__auth-state {
	margin: 0.5rem 0 0;
	font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #6b7280;
}
.uj-article__auth-state p { margin: 0; }
.uj-article__auth-state a {
	color: #B3421D;
	text-decoration: none;
	font-weight: 600;
}
.uj-article__auth-state a:hover { text-decoration: underline; }
.uj-article__auth-state__member { font-style: italic; }

/* Insider posts: bump the auth-state strip up slightly so the
   "become a member today" pitch carries more weight than the
   default ad-free byline on regular posts. */
.uj-article__auth-state--insider { font-size: 15px; }

/* Body */
.uj-article__body {
	font-size: 1.0625rem;
	line-height: 1.75;
}
.uj-article__body > * + * { margin-top: 1.25rem; }
.uj-article__body h2 {
	font: 600 1.75rem/1.2 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
	color: #B3421D;
	letter-spacing: 0.005em;
	margin: 2.5rem 0 1rem;
}
.uj-article__body h3 {
	font: 600 1.375rem/1.3 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
	color: #B3421D;
	letter-spacing: 0.005em;
	margin: 2rem 0 0.75rem;
}
.uj-article__body p { margin: 0 0 1.25rem; }
/* Body links + byline + author-bio links — UJ red, slightly darker
   rest state so they read as deliberate. Hover brightens to the
   primary brand red. */
.uj-article__body a,
.uj-article__author-link,
.uj-author-box a {
	color: #8E331A;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}
/* Card wrappers inside the article body (related-posts grid) must NOT
   inherit the body-link underline + brand-red color — children of the
   card have their own visual hierarchy. */
.uj-article__body a.uj-related__link,
.uj-article__body a.uj-front-card__link {
	color: inherit !important;
	text-decoration: none !important;
}
.uj-article__body a:hover,
.uj-article__body a:focus-visible,
.uj-article__author-link:hover,
.uj-article__author-link:focus-visible,
.uj-author-box a:hover,
.uj-author-box a:focus-visible {
	color: #B3421D;
	text-decoration-thickness: 2px;
}
.uj-article__body img { max-width: 100%; height: auto; border-radius: 4px; }
.uj-article__body figure { margin: 2rem 0; }
.uj-article__body figcaption {
	font-size: 0.875rem;
	color: #666;
	text-align: center;
	margin-top: 0.5rem;
}
.uj-article__body blockquote {
	border-left: 4px solid #B3421D;
	margin: 2rem 0;
	padding: 0.5rem 1.25rem;
	color: #444;
	font-style: italic;
}
.uj-article__body ul, .uj-article__body ol { padding-left: 1.5rem; }
.uj-article__body code {
	background: #f3f4f6;
	padding: 0.1em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
}

/* Footer / tags / author */
.uj-article__footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; }

.uj-tags {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.uj-tags li a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #f3f4f6;
	color: #374151;
	border-radius: 999px;
	font: 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-decoration: none;
}
.uj-tags li a:hover { background: #e5e7eb; }

.uj-author-box {
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
	background: #f9fafb;
	border-radius: 6px;
	font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.uj-author-box__avatar img { border-radius: 50%; display: block; }
.uj-author-box__name { font-size: 1.125rem; margin: 0 0 0.25rem; }
.uj-author-box__name a { color: #0f172a; text-decoration: none; }
.uj-author-box__bio { color: #555; }
.uj-author-box__bio p { margin: 0 0 0.5rem; }
.uj-author-box__bio p:last-child { margin-bottom: 0; }
.uj-author-box__bio a { color: #B3421D; }
.uj-author-box__bio a:hover { text-decoration: underline; }

/* Ad Inserter / our ad-injector exclusion wrapper.
   - For SPANS (which wrap CTAs around block-level asides): apply
     `display: contents` so the span is invisible to layout and its
     block children flow naturally.
   - For ASIDES (the ad blocks themselves): do NOT apply
     `display: contents` — that would break the containing block for
     the ad's `::before` / `::after` pseudo-element dividers, causing
     them to position against the viewport at 50% width and appear as
     stray horizontal lines elsewhere on the page. The aside renders
     as a normal block by default, which is what we want. */
span.uj-no-ads { display: contents; }

/* In-article ad slot — rotated by inc/ad-injector.php. Generous vertical
   whitespace + thin centered dividers above and below to set it apart from
   surrounding article paragraphs. */
.uj-inarticle-ad {
	position: relative;
	margin: 3.5rem 0;
	padding: 1.5rem 1.25rem;
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 4px;
	min-height: 280px; /* prevents collapse to thin line if image lazy-loads slowly */
}
/* EWWW Image Optimizer / WP Rocket lazy-load placeholders inside our ad slot:
   force the image to claim its expected dimensions immediately so the box
   doesn't render as a thin line while the real image is still fetching. */
.uj-inarticle-ad img.lazyload,
.uj-inarticle-ad img[data-eio-rwidth] {
	min-width: 200px;
	min-height: 200px;
	background: #f3f4f6;
}
/* Centered ~50%-wide divider lines above and below */
.uj-inarticle-ad::before,
.uj-inarticle-ad::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 50%;
	height: 1px;
	background: #cbd5e1;
	transform: translateX(-50%);
}
.uj-inarticle-ad::before { top: -1.75rem; }
.uj-inarticle-ad::after  { bottom: -1.75rem; }

.uj-inarticle-ad h4 {
	font: 600 1.0625rem/1.4 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
	color: #B3421D;
	letter-spacing: 0.005em;
	margin: 0 0 0.75rem;
}
.uj-inarticle-ad img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}
/* Links inside ad text — black with underline so they contrast against
   the brand-red body copy. Hover flips to brand red for confirmation. */
.uj-inarticle-ad a {
	color: #0f172a;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 2px;
}
.uj-inarticle-ad a:hover { color: #B3421D; }
/* But links wrapping just an image (the image-link blocks) shouldn't get
   the text underline. */
.uj-inarticle-ad a:has(> img) { text-decoration: none; }

/* CTA blocks */
.uj-cta {
	margin: 0 0 2rem;
	padding: 1rem 1.5rem 1.5rem;
	background: #f8fafc;
	border-left: 4px solid #B3421D;
	border-radius: 4px;
}
/* No top margin when adjacent to article body or another CTA — keeps the
   handoff tight (rather than the previous ~2.5rem gap). */
.uj-article__body + .uj-cta,
.uj-cta + .uj-cta { margin-top: 0; }
.uj-cta__heading {
	font: 600 1.5rem/1.2 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif !important;
	color: #B3421D !important;
	letter-spacing: 0.01em;
	margin: 0 0 0.75rem !important;
}
.uj-cta__heading--small {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}
.uj-cta__body { margin: 0 0 1rem; }
.uj-cta__btn,
.uj-cta__btn:link,
.uj-cta__btn:visited {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	background: #B3421D;
	color: #fff !important; /* override any global anchor color */
	font: 600 15px/1 -apple-system, BlinkMacSystemFont, sans-serif;
	text-decoration: none;
	border-radius: 999px; /* pill */
	border: 0;
	cursor: pointer;
}
.uj-cta__btn:hover { background: #8E331A; color: #fff; }
.uj-cta__small { font-size: 0.875rem; color: #666; margin-top: 0.5rem; }

/* Insider CTA inherits the base .uj-cta look — same background, border, and
   button as Tours. Only differences are the inline list of featured pieces
   and link styling within the body copy. */
.uj-cta--insider > p { margin: 0 0 1rem; }
.uj-cta--insider ul {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
	font-size: 0.9375rem;
}
.uj-cta--insider ul li {
	margin: 0.4rem 0;
	color: #444;
}
.uj-cta--insider a { color: #B3421D; font-weight: 600; }
.uj-cta--insider a:hover { text-decoration: underline; }

.uj-cta--newsletter .uj-newsletter-form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.uj-cta--newsletter input[type="email"] {
	flex: 1 1 220px;
	padding: 0.625rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font: 15px/1.4 -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ------------------------------------------------------------
   Banner variant — used for inline-before-first-H2 injection.
   Heavier visual presence than the default newsletter aside.
   ------------------------------------------------------------ */
.uj-cta.uj-cta--newsletter--banner {
	background: linear-gradient(135deg, #FFF5F0 0%, #FCE9DF 100%) !important;
	border: 1px solid #F0C7B3 !important;
	border-left: 4px solid #B3421D !important;
	border-radius: 8px !important;
	/* Asymmetric vertical padding: 1.5rem top reads as proper headroom
	   for the heading; 0.75rem bottom keeps the form/trust-line close
	   to the bottom edge instead of floating with extra empty space. */
	padding: 1.5rem 1.75rem 0.75rem !important;
	margin: 2rem 0 !important;
	box-shadow: 0 2px 8px rgba(179, 66, 29, 0.06) !important;
}
.uj-cta--newsletter--banner .uj-cta__heading {
	font: 600 1.375rem/1.25 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif !important;
	color: #B3421D !important;
	letter-spacing: 0.01em;
	margin: 0 0 1rem !important;
	text-transform: none;
}

/* Pill-shaped, brand-red submit button — matches Tours / Insider CTA buttons.
   Scoped to the newsletter aside so it doesn't bleed into other Forminator
   forms on the site. */
.uj-cta--newsletter .forminator-button-submit,
.uj-cta--newsletter button[type="submit"],
.uj-cta--newsletter .uj-mc-form__submit {
	display: inline-block !important;
	padding: 0.75rem 1.75rem !important;
	background: #B3421D !important;
	color: #fff !important;
	font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	text-decoration: none !important;
	border-radius: 999px !important;
	border: 0 !important;
	cursor: pointer !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	min-height: 0 !important;
	transition: background 0.15s ease, transform 0.15s ease;
}
.uj-cta--newsletter .forminator-button-submit:hover,
.uj-cta--newsletter button[type="submit"]:hover,
.uj-cta--newsletter .uj-mc-form__submit:hover {
	background: #8E331A !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* ------------------------------------------------------------
   Exit CTA ("Wait! Before You Go..."). Renders at the end of
   travel/food/language articles (auto-injected) and on a few
   pages that embed [uj_exit_cta] directly.

   Visually matches the canonical warm-gradient pattern used by
   .uj-cta--newsletter--banner / .uj-insider-free-cta, so the end-of-
   article ask reads as the SAME asset as the in-article banner above
   it rather than as a second, grey panel with its own red bar.

   The nested [uj_newsletter_inline] inside this aside renders as
   its own .uj-cta--newsletter aside, which would otherwise add a
   duplicate red left-bar and grey background. The second rule
   below strips that nested chrome so the form merges into the
   peach surround cleanly.
   ------------------------------------------------------------ */
.uj-cta.uj-cta--exit {
	background: linear-gradient(135deg, #FFF5F0 0%, #FCE9DF 100%);
	border: 1px solid #F0C7B3;
	border-left: 4px solid #B3421D;
	border-radius: 8px;
	padding: 1.5rem 1.75rem;
	margin: 2rem 0;
	box-shadow: 0 2px 8px rgba(179, 66, 29, 0.06);
}
.uj-cta--exit .uj-cta--newsletter {
	background: transparent !important;
	border: 0 !important;
	border-left: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

/* ------------------------------------------------------------
   Free-newsletter CTA injected at the END of Insider posts for
   logged-out non-members. Sole conversion prompt on the page: the
   in-body "for subscribers only" callout was removed because its
   redundant copy pushed readers to bounce before reaching this CTA.
   Warm gradient card with a ghost-style submit button.
   ------------------------------------------------------------ */
.uj-insider-free-cta {
	margin: 2rem 0;
	padding: 1.75rem 1.75rem 1.5rem;
	background: linear-gradient(135deg, #FFF5F0 0%, #FCE9DF 100%);
	border: 1px solid #F0C7B3;
	border-left: 4px solid #B3421D;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(179, 66, 29, 0.06);
	text-align: center;
}
.uj-insider-free-cta__eyebrow {
	margin: 0 0 0.375rem !important;
	font: 700 0.6875rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	color: #B3421D !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.uj-insider-free-cta__heading {
	margin: 0 0 0.625rem !important;
	font: 600 clamp(1.25rem, 2.4vw, 1.625rem)/1.2 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif !important;
	color: #B3421D !important;
	letter-spacing: 0.01em;
}
.uj-insider-free-cta__body {
	margin: 0 0 1rem !important;
	color: #1f2937 !important;
	font: 500 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	max-width: 56ch;
	margin-left: auto !important;
	margin-right: auto !important;
}
.uj-insider-free-cta__actions {
	margin: 0 !important;
}
.uj-insider-free-cta__btn {
	display: inline-block;
	padding: 0.75rem 1.625rem;
	background: transparent;
	color: #B3421D !important;
	border: 2px solid #B3421D;
	border-radius: 999px;
	font: 600 0.9375rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}
.uj-insider-free-cta__btn:hover,
.uj-insider-free-cta__btn:focus-visible {
	background: #B3421D;
	color: #fff !important;
}
/* Inline newsletter form nested inside the Insider→free-newsletter CTA:
   strip the default .uj-cta chrome (grey panel + red left bar) so the
   form merges cleanly into the surrounding pill instead of stacking
   two framed panels. */
.uj-insider-free-cta .uj-cta--newsletter {
	background: transparent !important;
	border-left: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

/* Forminator-form variant of the Insider CTA (the "free unlock" flow in
   inc/free-unlock.php). Forminator brings its own wrapper + form
   chrome that we don't want fighting the pill, so flatten the obvious
   surfaces. Same intent as the .uj-cta--newsletter rule above. */
.uj-insider-free-cta--unlock .forminator-ui,
.uj-insider-free-cta--unlock .forminator-custom-form,
.uj-insider-free-cta--unlock .forminator-row,
.uj-insider-free-cta--unlock form[id^="forminator-module-"] {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Hide the "Email Address *" label. The heading + body already make
   the ask obvious, and the label adds 30px+ of vertical churn between
   the body text and the input. Keep it readable for assistive tech via
   the visually-hidden pattern (not display:none). */
.uj-insider-free-cta--unlock .forminator-ui .forminator-label,
.uj-insider-free-cta--unlock .forminator-ui label[for] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Lay out the Forminator form as a flex column with a single 0.5rem
   gap between every direct child (rows, submit container, response
   message). Targeting `gap` instead of stacked margin-top rules avoids
   the conflicts that left a 0.75rem gap creeping back in between the
   email input and the submit button. */
.uj-insider-free-cta--unlock form[id^="forminator-module-"] {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5rem !important;
}
.uj-insider-free-cta--unlock form[id^="forminator-module-"] > * {
	margin: 0 !important;
	padding: 0 !important;
}
.uj-insider-free-cta--unlock .forminator-row,
.uj-insider-free-cta--unlock .forminator-col,
.uj-insider-free-cta--unlock .forminator-field,
.uj-insider-free-cta--unlock .forminator-button-submit-container,
.uj-insider-free-cta--unlock .forminator-pagination-footer,
.uj-insider-free-cta--unlock .forminator-response-message {
	margin: 0 !important;
	padding: 0 !important;
}

/* Email input — match .uj-mc-form__email visually but shorter. The
   prior 0.625rem vertical padding made the field taller than the
   button + the gap, which is what made the spacing read as broken. */
.uj-insider-free-cta--unlock .forminator-input,
.uj-insider-free-cta--unlock input[type="email"] {
	width: 100% !important;
	padding: 0.5rem 0.875rem !important;
	font: 1rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #111827 !important;
	height: auto !important;
	box-sizing: border-box !important;
}
.uj-insider-free-cta--unlock .forminator-input:focus {
	outline: none !important;
	border-color: #B3421D !important;
	box-shadow: 0 0 0 3px rgba(179, 66, 29, 0.15) !important;
}

/* Submit button — mirror the canonical .uj-cta--newsletter
   .forminator-button-submit pill so every newsletter-shaped button on
   the site reads the same. */
.uj-insider-free-cta--unlock .forminator-button-submit,
.uj-insider-free-cta--unlock button[type="submit"] {
	display: inline-block !important;
	padding: 0.75rem 1.75rem !important;
	background: #B3421D !important;
	color: #fff !important;
	font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	text-decoration: none !important;
	border-radius: 999px !important;
	border: 0 !important;
	cursor: pointer !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	min-height: 0 !important;
	transition: background 0.15s ease, transform 0.15s ease;
}
.uj-insider-free-cta--unlock .forminator-button-submit:hover,
.uj-insider-free-cta--unlock button[type="submit"]:hover {
	background: #8E331A !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* Forminator wraps the submit button row in its own column — center
   the button under the input instead of left-aligning it. Vertical
   spacing is handled by the form's flex `gap`, so no margin-top here. */
.uj-insider-free-cta--unlock .forminator-button-submit-container,
.uj-insider-free-cta--unlock .forminator-row:has(button[type="submit"]) {
	text-align: center !important;
}

/* "Keep reading" — related posts grid, rendered ABOVE the auto-injected
   Tours / Insider CTA. */
.uj-related {
	margin: 2.5rem 0 2rem;
	padding-top: 1.75rem;
	border-top: 1px solid #e5e7eb;
}
.uj-related__heading {
	font: 600 1.625rem/1.2 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
	color: #B3421D;
	letter-spacing: 0.01em;
	margin: 0 0 1.5rem;
}
.uj-related__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
/* 5-card mixed Insider+free variant — 3+2 desktop layout reads better than
   a 5-wide cramped row at the article body's 768px max width. */
.uj-related--mixed5 .uj-related__grid {
	grid-template-columns: repeat(3, 1fr);
}
.uj-related__card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.uj-related__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	border-color: #d1d5db;
}
.uj-related__link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.uj-related__image-wrap {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
	overflow: hidden;
}
.uj-related__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.uj-related__cat {
	position: absolute;
	bottom: 0.625rem;
	left: 0.625rem;
	display: inline-block;
	padding: 0.25rem 0.625rem;
	background: #B3421D;
	color: #fff;
	font: 700 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 3px;
}
/* Card body — single source of truth for horizontal inset on title,
   excerpt, and "read more". Using container padding instead of
   per-child margins prevents Elementor Kit's global p/h4 rules from
   creating uneven left edges. */
.uj-related__body {
	padding: 0.875rem 1rem 1rem !important;
}
.uj-related__title {
	font: 700 1rem/1.3 Georgia, serif !important;
	color: #B3421D !important;
	margin: 0 0 0.375rem !important;
	padding: 0 !important;
	/* Clamp to 3 lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.uj-related__excerpt {
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	color: #4b5563 !important;
	margin: 0 0 0.75rem !important;
	padding: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta row styles moved to assets/site-chrome.css → .uj-card-meta
   (single shared class so all cards across the site look identical). */

/* Tablet — 2 across */
@media (max-width: 900px) {
	.uj-related__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
	.uj-related--mixed5 .uj-related__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile — single column */
@media (max-width: 520px) {
	.uj-related__grid { grid-template-columns: 1fr; gap: 1rem; }
	.uj-related--mixed5 .uj-related__grid { grid-template-columns: 1fr; }
	.uj-related__heading { font-size: 1.375rem; margin-bottom: 1rem; }
	.uj-related__title { font-size: 1.0625rem; -webkit-line-clamp: 2; }
}

/* Visually hidden — for form labels */
.uj-vh {
	border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Mobile tweaks — tighten spacing so the title is visible above the fold */
@media (max-width: 600px) {
	.uj-single { padding: 0.25rem 0.875rem 3rem; font-size: 17px; }
	.uj-article__hero { margin: 0 -0.875rem 0.5rem; }
	.uj-article__hero-caption { padding: 0.25rem 0.875rem 0; font-size: 13px; }
	.uj-article__header { margin: 0.25rem 0 0.75rem; }
	.uj-article__title { font-size: 1.625rem; }
}
