/* Beyond Affairs — styles_articles.css
   Article single-post layout, hero banner, sidebar, typography,
   and Articles hub page. Responsive overrides are in styles_responsive.css. */


/* ============================================================
   Article Hero Banner
   ============================================================ */

.article-hero {
	position: relative;
	width: 100%;
	height: 380px;
	background-color: var(--color-primary-dark);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

/* Background image is always set via inline style in article-hero.php
   (either the post's featured image or the default heroArticles.png).
   42% positions the crop so the coffee cup sits near the bottom of the hero. */
.article-hero:not(.article-hero--img) {
	background-position: center 42%;
}

/* Diagonal texture was for the plain color-block fallback — no longer used. */
.article-hero:not(.article-hero--img)::before {
	display: none;
}

/* Gradient overlay — bottom-heavy so title always reads cleanly */
.article-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(15, 22, 32, 0.93) 0%,
		rgba(15, 22, 32, 0.62) 35%,
		rgba(15, 22, 32, 0.22) 65%,
		rgba(15, 22, 32, 0.04) 100%
	);
	pointer-events: none;
}

/* Featured-image posts already override background via inline style;
   their overlay is the same gradient above — no separate rule needed. */

.article-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-bottom: 36px;
}

.article-hero__eyebrow {
	display: block;
	font-family: var(--font-body);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
	margin-bottom: 10px;
}

.article-hero__eyebrow a {
	color: rgba(255, 255, 255, 0.62);
	text-decoration: none;
	transition: color 0.15s ease;
}

.article-hero__eyebrow a:hover {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
}

.article-hero__title {
	font-family: var(--font-heading);
	font-size: clamp(1.7rem, 3.2vw, 2.8rem);
	font-weight: 600;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 14px;
	max-width: 800px;
}

.article-hero__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.55);
}

.article-hero__meta-sep {
	opacity: 0.5;
}


/* ============================================================
   Article Layout — two-column grid
   ============================================================ */

.article-layout {
	padding: 56px 0 88px;
	background-color: var(--color-bg);
}

.article-layout__inner {
	display: grid;
	grid-template-columns: 1fr 288px;
	gap: 56px;
	align-items: start;
}


/* ============================================================
   Article Main Content
   ============================================================ */

.article-main {
	min-width: 0; /* prevent grid blowout */
}

/* Meta bar: back link + reading time */
.entry-article__meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 36px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--color-bg-dark);
}

.entry-article__back {
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.15s ease;
}

.entry-article__back:hover {
	color: var(--color-accent-dark);
	text-decoration: none;
}

.entry-article__reading-time {
	font-family: var(--font-body);
	font-size: 0.78rem;
	color: var(--color-text-light);
	font-weight: 500;
}

/* Body typography — optimised for long-form reading */
.entry-article__body {
	font-size: 1.08rem;
	line-height: 1.85;
	color: var(--color-text);
}

.entry-article__body p {
	margin-bottom: 1.4em;
}

.entry-article__body h2 {
	font-family: var(--font-heading);
	font-size: clamp(1.55rem, 2.4vw, 2.1rem);
	color: var(--color-primary-dark);
	margin-top: 2.2em;
	margin-bottom: 0.65em;
	padding-bottom: 0.3em;
	border-bottom: 1px solid var(--color-bg-dark);
	line-height: 1.2;
}

.entry-article__body h3 {
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 1.8vw, 1.6rem);
	color: var(--color-primary-dark);
	margin-top: 1.8em;
	margin-bottom: 0.5em;
	line-height: 1.25;
}

.entry-article__body h4 {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary);
	margin-top: 1.6em;
	margin-bottom: 0.4em;
}

.entry-article__body a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-article__body a:hover {
	color: var(--color-accent-dark);
}

.entry-article__body ul,
.entry-article__body ol {
	padding-left: 1.5em;
	margin-bottom: 1.4em;
}

.entry-article__body li {
	margin-bottom: 0.45em;
	line-height: 1.75;
}

.entry-article__body blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	border-left: 4px solid var(--color-accent);
	background: var(--color-bg-alt);
	border-radius: 0 6px 6px 0;
}

.entry-article__body blockquote p {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--color-primary-dark);
	margin-bottom: 0;
	line-height: 1.65;
}

.entry-article__body img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 1.6em 0;
}

.entry-article__body hr {
	border: none;
	border-top: 1px solid var(--color-bg-dark);
	margin: 2.4em 0;
}

/* Article footer: taxonomy + prev/next nav */
.entry-article__footer {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 2px solid var(--color-bg-dark);
}

.entry-article__taxonomy {
	margin-bottom: 36px;
}

.entry-article__tax-row {
	font-size: 0.875rem;
	color: var(--color-text-light);
	margin-bottom: 6px;
}

.entry-article__tax-label {
	font-weight: 600;
	margin-right: 4px;
}

.entry-article__tax-row a {
	color: var(--color-accent);
	text-decoration: none;
}

.entry-article__tax-row a:hover {
	text-decoration: underline;
}

/* Prev / Next navigation */
.entry-article__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.entry-article__nav-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--color-bg-dark);
	border-radius: 6px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.entry-article__nav-link:hover {
	border-color: var(--color-accent);
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
	text-decoration: none;
}

.entry-article__nav-link--next {
	text-align: right;
}

.entry-article__nav-dir {
	font-family: var(--font-body);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.entry-article__nav-title {
	font-family: var(--font-heading);
	font-size: 1rem;
	color: var(--color-primary-dark);
	line-height: 1.3;
}


/* ============================================================
   Article Sidebar
   ============================================================ */

.article-sidebar {
	min-width: 0;
	position: sticky;
	top: calc(var(--header-height) + 24px);
}

/* Base widget card */
.sidebar-widget {
	background: #fff;
	border: 1px solid var(--color-bg-dark);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 24px;
}

.sidebar-widget__head {
	background: var(--color-primary-dark);
	color: #fff;
	padding: 13px 20px;
	font-family: var(--font-body);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

/* ── Categories widget ── */
.sidebar-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-cat-list li {
	border-bottom: 1px solid var(--color-bg-dark);
}

.sidebar-cat-list li:last-child {
	border-bottom: none;
}

.sidebar-cat-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 20px;
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-cat-list a:hover {
	background: var(--color-bg-alt);
	color: var(--color-accent);
	text-decoration: none;
}

.sidebar-cat-count {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--color-text-light);
	background: var(--color-bg-alt);
	border-radius: 10px;
	padding: 2px 9px;
	flex-shrink: 0;
}

/* ── Recent articles widget ── */
.sidebar-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-recent-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 13px 20px;
	border-bottom: 1px solid var(--color-bg-dark);
}

.sidebar-recent-item:last-child {
	border-bottom: none;
}

.sidebar-recent-title {
	font-family: var(--font-heading);
	font-size: 0.97rem;
	line-height: 1.35;
	color: var(--color-primary-dark);
	text-decoration: none;
	transition: color 0.15s ease;
}

.sidebar-recent-title:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.sidebar-recent-date {
	font-family: var(--font-body);
	font-size: 0.74rem;
	color: var(--color-text-light);
}

/* ── CTA widget ── */
.sidebar-widget--cta {
	border-color: transparent;
	background: var(--color-primary-dark);
}

.sidebar-widget--cta .sidebar-widget__head {
	background: rgba(255, 255, 255, 0.10);
	letter-spacing: 0.1em;
}

.sidebar-cta {
	padding: 22px 20px 24px;
	text-align: center;
}

.sidebar-cta__heading {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-style: italic;
	color: #fff;
	margin-bottom: 8px;
	line-height: 1.3;
}

.sidebar-cta__text {
	font-family: var(--font-body);
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.68);
	margin-bottom: 20px;
}

.sidebar-cta__btn {
	display: inline-block;
	width: 100%;
	text-align: center;
	padding: 11px 20px;
}


/* ============================================================
   Articles Hub Hero — taller than single-article banner
   ============================================================ */

.articles-hub-hero {
	height: 340px;
	background-position: center 30%; /* shift up slightly to show couple, not just hands */
	align-items: flex-end; /* text sits at bottom, gradient protects it */
}

/* Image is bright/light — suppress diagonal texture, use a stronger custom overlay */
.articles-hub-hero::before {
	display: none;
}

/* Stronger gradient than single-article default: image is light so needs more coverage */
.articles-hub-hero::after {
	background: linear-gradient(
		to top,
		rgba(15, 22, 32, 0.94) 0%,
		rgba(15, 22, 32, 0.72) 30%,
		rgba(15, 22, 32, 0.38) 58%,
		rgba(15, 22, 32, 0.10) 82%,
		rgba(15, 22, 32, 0.00) 100%
	);
}

.articles-hub-hero .article-hero__inner {
	padding-bottom: 40px;
}

.article-hero__subtitle {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
	margin: 12px 0 0;
	max-width: 560px;
}


/* ============================================================
   Healing From Home Hero — matches hub hero height
   ============================================================ */

.healing-from-home-hero {
	height: 340px;
	background-position: center 68%;
	align-items: flex-end;
}

.healing-from-home-hero::before {
	display: none;
}

.healing-from-home-hero::after {
	background: linear-gradient(
		to top,
		rgba(15, 22, 32, 0.94) 0%,
		rgba(15, 22, 32, 0.72) 30%,
		rgba(15, 22, 32, 0.38) 58%,
		rgba(15, 22, 32, 0.10) 82%,
		rgba(15, 22, 32, 0.00) 100%
	);
}

.healing-from-home-hero .article-hero__inner {
	padding-bottom: 40px;
}


/* ============================================================
   Category Jump-Nav
   ============================================================ */

.articles-jumpnav {
	background: var(--color-bg-alt);
	border-bottom: 1px solid var(--color-bg-dark);
	padding: 18px 0;
}

.articles-jumpnav .pad {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.articles-jumpnav__label {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-light);
	flex-shrink: 0;
}

.articles-jumpnav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.articles-jumpnav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid var(--color-bg-dark);
	border-radius: 20px;
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.articles-jumpnav__link:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
	text-decoration: none;
}

.articles-jumpnav__count {
	font-size: 0.72rem;
	font-weight: 700;
	background: var(--color-bg-alt);
	color: var(--color-text-light);
	border-radius: 10px;
	padding: 1px 7px;
	transition: background 0.15s ease, color 0.15s ease;
}

.articles-jumpnav__link:hover .articles-jumpnav__count {
	background: rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.85);
}


/* ============================================================
   Articles Hub — category sections
   ============================================================ */

.articles-hub {
	padding: 64px 0 96px;
	background: var(--color-bg);
}

.articles-hub__section {
	margin-bottom: 64px;
	padding-bottom: 64px;
	border-bottom: 1px solid var(--color-bg-dark);
}

.articles-hub__section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.articles-hub__section-head {
	margin-bottom: 28px;
}

.articles-hub__section-title {
	font-family: var(--font-heading);
	font-size: clamp(1.7rem, 2.8vw, 2.4rem);
	color: var(--color-primary-dark);
	margin: 0 0 8px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--color-accent);
	display: inline-block;
}

.articles-hub__section-desc {
	font-size: 0.95rem;
	color: var(--color-text-light);
	margin: 8px 0 0;
	max-width: 640px;
	line-height: 1.65;
}

/* Article list within each category section */
.articles-hub__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
}

.articles-hub__item {
	padding: 16px 20px 16px 0;
	border-bottom: 1px solid var(--color-bg-dark);
}

/* Right column items get left padding to form the gutter */
.articles-hub__item:nth-child(2n) {
	padding-left: 32px;
	border-left: 1px solid var(--color-bg-dark);
}

.articles-hub__item-title {
	display: block;
	font-family: var(--font-heading);
	font-size: 1.08rem;
	line-height: 1.35;
	color: var(--color-primary-dark);
	text-decoration: none;
	transition: color 0.15s ease;
	margin-bottom: 4px;
}

.articles-hub__item-title:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.articles-hub__item-excerpt {
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--color-text-light);
	margin: 0;
}

.articles-hub__empty {
	font-size: 1.05rem;
	color: var(--color-text-light);
	padding: 48px 0;
	text-align: center;
}


/* ============================================================
   Retreat pages — hero modifier + contact CTA
   ============================================================ */

.retreat-hero {
	height: 340px;
	background-position: center center;
	align-items: flex-end;
}

.retreat-hero::before { display: none; }

.retreat-hero::after {
	background: linear-gradient(
		to top,
		rgba(15, 22, 32, 0.94) 0%,
		rgba(15, 22, 32, 0.72) 30%,
		rgba(15, 22, 32, 0.38) 58%,
		rgba(15, 22, 32, 0.10) 82%,
		rgba(15, 22, 32, 0.00) 100%
	);
}

.retreat-hero .article-hero__inner {
	padding-bottom: 40px;
}

.retreat-contact {
	background: var(--color-bg-alt);
	border-top: 1px solid var(--color-bg-dark);
	padding: 64px 0;
	text-align: center;
}

.retreat-contact__heading {
	font-family: var(--font-heading);
	font-size: clamp(1.7rem, 2.8vw, 2.4rem);
	color: var(--color-primary-dark);
	margin-bottom: 16px;
}

.retreat-contact__text {
	color: var(--color-text-light);
	line-height: 1.7;
	max-width: 560px;
	margin: 0 auto 32px;
}

.retreat-contact__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}



/* ============================================================
   Category Archive — pagination
   ============================================================ */

.articles-pagination {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--color-bg-dark);
}

.articles-pagination .nav-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.articles-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--color-bg-dark);
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.articles-pagination .page-numbers:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
	text-decoration: none;
}

.articles-pagination .page-numbers.current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

.articles-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
	color: var(--color-text-light);
}


/* ============================================================
   Article & Hub page — viewport-fixed background treatment
   Applies to: single posts (.ba-article-page)
               Articles hub (.ba-articles-hub)
   ============================================================ */

/* Warm background tint on content wrappers */
body.ba-article-page .article-layout,
body.ba-articles-hub .articles-hub {
	background: #faf8f5;
}

/* Lora for article body text */
body.ba-article-page .entry-article__body {
	font-family: 'Lora', Georgia, serif;
	font-size: 1.06rem;
	line-height: 1.9;
}

/* #main: relative+overflow for butterfly containment only */
body.ba-article-page #main,
body.ba-articles-hub #main {
	position: relative;
	overflow: hidden;
}

body.ba-article-page #main::after,
body.ba-articles-hub #main::after {
	content: '';
	position: absolute;
	bottom:20px;
	left: 30px;
	width: 156px;
	height: 147px;
	background-image: url( 'assets/images/bgButterfly.png' );
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: contain;
	opacity: 0.15;
	pointer-events: none;
}
