/* ==========================================================================
   TLE Design System — native layer
   Styles the markup that tle-design.css never saw: core Gutenberg blocks
   inside .article-body, plus the pieces v2 templates introduce.
   Loaded after tle-design.css; every rule stays inside .tle-scope.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Gutenberg blocks inside the article body
   -------------------------------------------------------------------------- */

.tle-scope .article-body figure,
.tle-scope .article-body .wp-block-image {
	margin: var(--space-lg) 0;
}

.tle-scope .article-body .wp-block-image img,
.tle-scope .article-body figure img {
	display: block;
	width: 100%;
	height: auto;
}

.tle-scope .article-body figcaption,
.tle-scope .article-body .wp-element-caption {
	margin-top: 0.6rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--color-muted);
	text-align: left;
	border-left: 2px solid var(--color-accent);
	padding-left: 0.75rem;
}

.tle-scope .article-body .aligncenter { margin-left: auto; margin-right: auto; }
.tle-scope .article-body .alignleft   { float: left;  margin: 0.4rem var(--space-md) var(--space-sm) 0; max-width: 50%; }
.tle-scope .article-body .alignright  { float: right; margin: 0.4rem 0 var(--space-sm) var(--space-md); max-width: 50%; }
.tle-scope .article-body .alignwide,
.tle-scope .article-body .alignfull { max-width: 100%; }

.tle-scope .article-body .wp-block-quote,
.tle-scope .article-body .wp-block-pullquote {
	margin: var(--space-lg) 0;
}

.tle-scope .article-body .wp-block-quote cite,
.tle-scope .article-body .wp-block-pullquote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.tle-scope .article-body .wp-block-separator,
.tle-scope .article-body hr {
	max-width: 120px;
	margin: var(--space-xl) 0;
	border: 0;
	border-top: 2px solid var(--color-accent);
}

.tle-scope .article-body .wp-block-embed,
.tle-scope .article-body .wp-block-video {
	margin: var(--space-lg) 0;
}

.tle-scope .article-body .wp-block-embed__wrapper { position: relative; }

.tle-scope .article-body iframe {
	display: block;
	max-width: 100%;
	border: 0;
}

.tle-scope .article-body .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	padding: 0.85rem 1.6rem;
	background: var(--color-black);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
}

.tle-scope .article-body .wp-block-button__link:hover { background: var(--color-accent-dark); }

/* Press releases end on a boilerplate block — set it apart from the story. */
.tle-scope .article-body .wp-block-table { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Front page: the secondary well beside the lead story
   -------------------------------------------------------------------------- */

.tle-scope .tle-well {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.tle-scope .tle-well .article-card + .article-card {
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border);
}

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

.tle-scope .tle-pagination {
	margin-top: var(--space-xl);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--color-border);
}

.tle-scope .tle-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.tle-scope .tle-pagination a,
.tle-scope .tle-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--color-border);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-mid);
	text-decoration: none;
	transition: all var(--transition);
}

.tle-scope .tle-pagination a:hover {
	border-color: var(--color-accent);
	color: var(--color-black);
	background: var(--color-accent-bg);
}

.tle-scope .tle-pagination .current {
	background: var(--color-black);
	border-color: var(--color-black);
	color: var(--color-white);
}

.tle-scope .tle-pagination .dots { border-color: transparent; }

/* --------------------------------------------------------------------------
   Search field + empty states
   -------------------------------------------------------------------------- */

.tle-scope .tle-search {
	display: flex;
	gap: 0.5rem;
	max-width: 520px;
	margin-top: var(--space-md);
}

.tle-scope .tle-search input[type="search"] {
	flex: 1;
	padding: 0.85rem 1rem;
	border: 1px solid var(--color-border);
	background: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--color-ink);
}

.tle-scope .tle-search input[type="search"]:focus {
	outline: none;
	border-color: var(--color-accent);
}

.tle-scope .tle-empty {
	padding: var(--space-xl) 0;
	font-size: 1.05rem;
	color: var(--color-mid);
	text-align: center;
}

.tle-scope .tle-empty a { color: var(--color-accent-dark); }

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

@media (max-width: 768px) {
	.tle-scope .article-body .alignleft,
	.tle-scope .article-body .alignright {
		float: none;
		margin: var(--space-md) 0;
		max-width: 100%;
	}

	.tle-scope .tle-search { flex-direction: column; }
}

/* Header overflow on phones.
   The v1 header keeps the logo, a CTA button and the hamburger on one row;
   below ~520px they do not fit and push the document wider than the viewport,
   so the page renders inset with a dead gutter. Drop the CTA — the mobile
   menu already carries Free Report — and let the logo shrink. */
@media (max-width: 560px) {
	.tle-scope .header-cta { display: none; }

	.tle-scope .header-inner {
		gap: 0.75rem;
		justify-content: space-between;
	}

	.tle-scope .site-logo {
		font-size: 1.05rem;
		min-width: 0;
	}
}

/* Nothing may exceed the viewport width. */
.tle-scope { overflow-x: hidden; }
.tle-scope img,
.tle-scope iframe,
.tle-scope table { max-width: 100%; }
