/* ============================================================
   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: 1.5rem 1rem 4rem;
	font: 18px/1.7 Georgia, "Times New Roman", serif;
	color: #1a1a1a;
}

/* Hero */
.uj-article__hero {
	margin: 0 -1rem 1.5rem;
}
.uj-article__hero-img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.uj-article__hero-caption {
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #666;
	padding: 0.5rem 1rem 0;
	margin: 0;
}

/* Header / title block */
.uj-article__header {
	margin-bottom: 1.5rem;
}
.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 {
	font: 700 clamp(1.75rem, 4vw, 2.5rem)/1.2 Georgia, "Times New Roman", serif;
	color: #0f172a;
	margin: 0 0 1rem;
}

.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; }

/* Body */
.uj-article__body {
	font-size: 1.0625rem;
	line-height: 1.75;
}
.uj-article__body > * + * { margin-top: 1.25rem; }
.uj-article__body h2 {
	font: 700 1.625rem/1.3 Georgia, serif;
	color: #0f172a;
	margin: 2.5rem 0 1rem;
}
.uj-article__body h3 {
	font: 700 1.25rem/1.35 Georgia, serif;
	color: #0f172a;
	margin: 2rem 0 0.75rem;
}
.uj-article__body p { margin: 0 0 1.25rem; }
.uj-article__body a { color: #1d4ed8; }
.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 { margin: 0; color: #555; }

/* CTA blocks */
.uj-cta {
	margin: 0 0 2rem;
	padding: 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: 700 1.375rem/1.3 Georgia, serif;
	color: #0f172a;
	margin: 0 0 0.75rem;
}
.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;
}

/* "What to read next" — related posts grid (after Tours / Insider CTA) */
.uj-related {
	margin: 2.5rem 0 2rem;
	padding-top: 1.75rem;
	border-top: 1px solid #e5e7eb;
}
.uj-related__heading {
	font: 700 1.5rem/1.2 Georgia, serif;
	color: #B3421D;
	margin: 0 0 1.5rem;
}
.uj-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.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;
}
.uj-related__title {
	font: 700 1rem/1.35 Georgia, serif;
	color: #B3421D;
	margin: 0.875rem 0.875rem 0.5rem;
	/* Clamp to 3 lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.uj-related__excerpt {
	font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #555;
	margin: 0 0.875rem 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.uj-related__more {
	display: block;
	margin: 0 0.875rem 1rem;
	font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #B3421D;
}

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

/* Mobile — single column */
@media (max-width: 520px) {
	.uj-related__grid { grid-template-columns: 1fr; gap: 1rem; }
	.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 */
@media (max-width: 600px) {
	.uj-single { padding: 1rem 0.875rem 3rem; font-size: 17px; }
	.uj-article__hero { margin-left: -0.875rem; margin-right: -0.875rem; }
	.uj-article__title { font-size: 1.625rem; }
}
