/* ==========================================================================
   Strategy Live: blog
   Landing (page template / home.php), category & archive pages, single article.
   Colours follow the Elementor kit (post-8) so they stay in sync with the site.
   ========================================================================== */

.sl-blog,
.sl-landing {
	--sl-teal: var(--e-global-color-f8fed1d, #0A666B);
	--sl-orange: var(--e-global-color-cf7aec7, #ED7023);
	/* Darker orange for small text on white (keeps 4.5:1 contrast). */
	--sl-orange-text: #B9520F;
	--sl-heading-accent: #EE7024; /* "Latest Articles" + "Browse by topic" headings */
	--sl-ink: #172022;
	--sl-body: #2A3335;
	--sl-muted: #586467;
	--sl-line: #DCE4E1;
	--sl-tint: #F1F6EE;
	--sl-radius: 14px;
	--sl-radius-btn: 10px;
	--sl-shadow: 0 10px 30px rgba(8, 60, 62, 0.08);
	--sl-shadow-hover: 0 16px 38px rgba(8, 60, 62, 0.14);
	--sl-font: "Nunito Sans", var(--e-global-typography-text-font-family, sans-serif), sans-serif;
	--sl-container: 1200px;
	--sl-gutter: 24px;
	/* Section padding (top and bottom): 80 desktop / 60 tablet / 40 phone. */
	--sl-pad: 80px;
	--sl-text: 19px;
}

.sl-blog {
	color: var(--sl-body);
	font-family: var(--sl-font);
	font-size: var(--sl-text);
	line-height: 1.6;
}

/* Page-level wrappers (theme templates). Shortcode output (.sl-embed) inherits from Elementor. */
.content-area.sl-blog,
.content-area.sl-landing {
	width: 100%;
	flex: 1 1 100%;
	background: #ffffff;
}

/* Blog landing page: Elementor content runs full width; no GeneratePress spacing. */
.sl-landing .site-main,
.sl-landing .inside-article {
	margin: 0;
	padding: 0;
}

.sl-landing__content .entry-content:not(:first-child) {
	margin-top: 0;
}

/* Shortcodes inside Elementor: spacing is controlled by the Elementor section. */
.sl-embed .sl-topics {
	padding-top: 0;
	padding-bottom: 0;
}

/* Topics auto-added by the landing template (no Elementor section around it).
   Padding, not margin: GeneratePress zeroes the bottom margin of .site-main's last child. */
.sl-landing__topics .sl-topics {
	padding-top: var(--sl-pad);
	padding-bottom: var(--sl-pad);
}

/* Bottom spacing on category pages (no "Browse by topic" block there). */
.sl-archive-end {
	height: var(--sl-pad);
}

.sl-blog .site-main,
.sl-main {
	margin: 0;
}

.sl-blog a {
	text-decoration: none;
}

.sl-blog a:focus-visible {
	outline: 3px solid var(--sl-orange);
	outline-offset: 2px;
}

.sl-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--sl-container) + (var(--sl-gutter) * 2));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--sl-gutter);
	padding-right: var(--sl-gutter);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.sl-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--sl-pad) var(--sl-gutter);
	background-color: var(--sl-teal);
	background-image: var(--sl-hero-image, none);
	background-size: cover;
	background-position: center;
	color: #ffffff;
	text-align: center;
}

.sl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--sl-teal);
	opacity: 0.84;
}

.sl-hero--lg {
	min-height: 360px;
}

.sl-hero__inner {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.sl-hero__title {
	margin: 0;
	font-family: var(--sl-font);
	font-size: clamp(32px, 4vw, 54px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.sl-hero--md .sl-hero__title {
	font-size: clamp(32px, 3.6vw, 48px);
}

.sl-hero__text {
	max-width: 640px;
	margin: 18px auto 0;
	font-size: var(--sl-text);
	line-height: 1.6;
	color: #ffffff;
}

.sl-hero__text p {
	margin: 0 0 0.75em;
}

.sl-hero__text p:last-child {
	margin-bottom: 0;
}

/* Meta line inside the hero (single article). */
.sl-hero .sl-meta {
	justify-content: center;
	margin-top: 22px;
	color: #ffffff;
}

.sl-blog .sl-hero .sl-meta__cat,
.sl-blog .sl-hero .sl-meta__sep {
	color: #ffffff;
}

.sl-hero .sl-meta__cat {
	font-weight: 700;
}

.sl-blog .sl-hero .sl-meta__cat:hover,
.sl-blog .sl-hero .sl-meta__cat:focus {
	color: #ffffff;
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Meta line: "By Author  Category - Date"
   -------------------------------------------------------------------------- */

.sl-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 6px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sl-ink);
}

.sl-meta__author {
	margin-right: 4px;
}

.sl-meta__cat,
.sl-meta__sep {
	color: var(--sl-orange-text);
}

.sl-meta__cat {
	font-weight: 600;
}

.sl-meta__when {
	white-space: nowrap;
}

.sl-meta__sep {
	margin-right: 4px;
}

.sl-blog .sl-meta__cat:hover,
.sl-blog .sl-meta__cat:focus {
	color: var(--sl-orange-text);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Card grid
   -------------------------------------------------------------------------- */

.sl-section {
	padding-bottom: var(--sl-pad);
}

.sl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.sl-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	background: #ffffff;
	border-radius: var(--sl-radius);
	box-shadow: var(--sl-shadow);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sl-card:hover,
.sl-card:focus-within {
	box-shadow: var(--sl-shadow-hover);
	transform: translateY(-3px);
}

.sl-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--sl-tint);
}

.sl-card__media img,
.sl-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.sl-card__placeholder {
	background: linear-gradient(135deg, #DBE8D0 0%, #BFD9C9 100%);
}

.sl-card:hover .sl-card__media img {
	transform: scale(1.04);
}

.sl-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 24px 26px;
}

.sl-card__title {
	margin: 0;
	font-family: var(--sl-font);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.sl-card__title a {
	color: var(--sl-teal);
}

.sl-blog .sl-card__title a:hover,
.sl-blog .sl-card__title a:focus {
	color: var(--sl-orange-text);
}

.sl-empty {
	padding: 24px 0;
	text-align: center;
	color: var(--sl-muted);
}

.sl-empty p {
	margin: 0;
}

.sl-empty .search-form {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.sl-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}

.sl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--sl-line);
	border-radius: var(--sl-radius-btn);
	font-size: 16px;
	font-weight: 600;
	color: var(--sl-teal);
	background: #ffffff;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sl-blog .sl-pagination a.page-numbers:hover,
.sl-blog .sl-pagination a.page-numbers:focus {
	border-color: var(--sl-teal);
	color: var(--sl-teal);
}

.sl-pagination .page-numbers.current {
	background: var(--sl-teal);
	border-color: var(--sl-teal);
	color: #ffffff;
}

.sl-pagination .page-numbers.dots {
	border-color: transparent;
}

/* --------------------------------------------------------------------------
   Category description (bottom area)
   -------------------------------------------------------------------------- */

.sl-term-description {
	padding-top: var(--sl-pad);
}

.sl-term-description__inner {
	max-width: 860px;
}

.sl-term-description__inner > *:first-child {
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   Browse by topic
   -------------------------------------------------------------------------- */

.sl-topics {
	padding-top: var(--sl-pad);
	padding-bottom: var(--sl-pad);
}

/* .sl-topics__label shares the heading style below (see "Related"). */

.sl-topics__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sl-topics__list li {
	margin: 0;
}

.sl-chip {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--sl-line);
	border-radius: var(--sl-radius-btn);
	background: #ffffff;
	font-size: 16px;
	line-height: 1.3;
	color: var(--sl-ink);
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.sl-blog .sl-chip:hover,
.sl-blog .sl-chip:focus {
	border-color: var(--sl-teal);
	color: var(--sl-teal);
}

.sl-blog .sl-chip.is-active {
	border-color: var(--sl-teal);
	background: var(--sl-teal);
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   Single article
   -------------------------------------------------------------------------- */

.sl-article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	align-items: start;
	padding-top: var(--sl-pad);
	padding-bottom: var(--sl-pad);
}

.sl-article__main {
	min-width: 0;
	max-width: 820px;
}

/* Author card */
.sl-article__aside {
	position: sticky;
	top: 32px;
}

.admin-bar .sl-article__aside {
	top: 64px;
}

.sl-author-card {
	padding: 28px 24px 40px;
	border-radius: var(--sl-radius);
	background: var(--sl-tint);
	text-align: center;
}

.sl-author-card + .sl-author-card {
	margin-top: 16px;
}

.sl-author-card__photo,
.sl-author-card img.avatar {
	display: block;
	width: 112px;
	height: 112px;
	margin: 0 auto 20px;
	border-radius: 50%;
	object-fit: cover;
	background: #ffffff;
}

.sl-author-card__name {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.sl-author-card__name a {
	color: var(--sl-teal);
}

.sl-blog .sl-author-card__name a:hover,
.sl-blog .sl-author-card__name a:focus {
	color: var(--sl-teal);
	text-decoration: underline;
}

.sl-author-card__role {
	margin: 4px 0 0;
	font-size: 16px;
	line-height: 1.4;
	color: var(--sl-body);
}

/* Article body */
.sl-prose {
	font-size: var(--sl-text);
	line-height: 1.7;
	color: var(--sl-ink);
	overflow-wrap: break-word;
}

.sl-blog .sl-prose:not(:first-child) {
	margin-top: 0;
}

/* Lead paragraph of an article (bold opening). */
.sl-article .sl-prose > p:first-child {
	font-weight: 700;
}

.sl-prose p,
.sl-prose ul,
.sl-prose ol,
.sl-prose blockquote,
.sl-prose figure,
.sl-prose table {
	margin: 0 0 1.3em;
}

.sl-prose ul,
.sl-prose ol {
	padding-left: 1.4em;
	margin-left: 0;
}

.sl-prose li {
	margin-bottom: 0.4em;
}

.sl-prose h2,
.sl-prose h3 {
	margin: 1.6em 0 0.6em;
	font-family: var(--sl-font);
	font-weight: 700;
	line-height: 1.25;
	color: var(--sl-teal);
}

.sl-prose h2 {
	font-size: 32px;
}

.sl-prose h3 {
	font-size: 25px;
}

.sl-prose h4,
.sl-prose h5,
.sl-prose h6 {
	margin: 1.6em 0 0.6em;
	font-family: var(--sl-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sl-orange-text);
}

.sl-prose a {
	color: var(--sl-teal);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sl-prose a:hover,
.sl-prose a:focus {
	color: var(--sl-orange-text);
}

.sl-prose strong,
.sl-prose b {
	font-weight: 700;
}

.sl-prose blockquote {
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--sl-orange);
	font-size: 1.1em;
	font-style: normal;
	color: var(--sl-teal);
}

.sl-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--sl-radius);
}

.sl-prose > *:last-child {
	margin-bottom: 0;
}

/* Closing question */
.sl-question {
	margin-top: 48px;
	padding: 28px 32px;
	border-radius: var(--sl-radius);
	background: var(--sl-tint);
}

.sl-question__label {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sl-orange-text);
}

.sl-question__text {
	margin: 10px 0 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--sl-ink);
}

/* Related */
.sl-related {
	padding-bottom: var(--sl-pad);
}

.sl-related__title,
.sl-archive__title,
.sl-topics__label {
	margin: 0 0 32px;
	font-family: var(--sl-font);
	font-size: clamp(28px, 2.6vw, 36px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--sl-teal);
}

.sl-archive__title,
.sl-topics__label {
	color: var(--sl-heading-accent);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.sl-blog,
	.sl-landing {
		--sl-pad: 60px;
	}

	.sl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.sl-article {
		grid-template-columns: minmax(0, 1fr) 260px;
		gap: 36px;
	}

	.sl-hero--lg {
		min-height: 300px;
	}
}

@media (max-width: 767px) {
	.sl-blog,
	.sl-landing {
		--sl-pad: 40px;
		--sl-gutter: 16px;
		--sl-text: 17px;
	}

	.sl-hero--lg {
		min-height: 0;
	}

	.sl-hero__title,
	.sl-hero--md .sl-hero__title {
		font-size: 30px;
	}

	.sl-meta {
		font-size: 15px;
	}

	.sl-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.sl-card__title {
		font-size: 19px;
	}

	.sl-pagination {
		margin-top: 32px;
	}

	.sl-chip {
		padding: 9px 15px;
		font-size: 15px;
	}

	/* Author card moves above the article on phones. */
	.sl-article {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.sl-article__aside {
		position: static;
		order: -1;
	}

	.sl-author-card {
		display: grid;
		grid-template-columns: 64px 1fr;
		column-gap: 16px;
		align-items: center;
		padding: 16px;
		text-align: left;
	}

	.sl-author-card + .sl-author-card {
		margin-top: 12px;
	}

	.sl-author-card__photo,
	.sl-author-card img.avatar {
		grid-row: span 2;
		width: 64px;
		height: 64px;
		margin: 0;
	}

	.sl-author-card__name {
		font-size: 18px;
		align-self: end;
	}

	.sl-author-card__role {
		align-self: start;
		font-size: 15px;
	}

	.sl-prose h2 {
		font-size: 26px;
	}

	.sl-prose h3 {
		font-size: 22px;
	}

	.sl-prose h4,
	.sl-prose h5,
	.sl-prose h6 {
		font-size: 18px;
	}

	.sl-question {
		margin-top: 36px;
		padding: 22px 20px;
	}

	.sl-question__text {
		font-size: 19px;
	}

	.sl-related__title,
	.sl-archive__title,
	.sl-topics__label {
		margin-bottom: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sl-card,
	.sl-card__media img {
		transition: none;
	}

	.sl-card:hover,
	.sl-card:focus-within {
		transform: none;
	}

	.sl-card:hover .sl-card__media img {
		transform: none;
	}
}
