/*
 * Article furniture that the static site did not have: the author box and the
 * "next step" block. Styled from the same tokens as everything else.
 *
 * The .article-* layout, .sidebar, .toc-list and .answer-box styles all come
 * from the migrated post-common.css — this file only adds what is new.
 */

/* ------------------------------------------------------------ author box */

.author-box {
	margin-top: 36px;
	padding: 22px;
	background: var(--sky-50);
	border: 1px solid var(--blue-100);
	border-radius: var(--radius-lg);
}

.author-box-inner {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.author-box-avatar {
	border-radius: 50%;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
}

.author-box-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	color: var(--text-light);
	margin-bottom: 4px;
}

.author-box-name {
	font-size: 16px;
	font-weight: 800;
	margin: 0 0 4px;
}

.author-box-name a {
	color: var(--text-dark);
	text-decoration: none;
}

.author-box-name a:hover {
	color: var(--blue-700);
}

.author-box-role {
	font-size: 12.5px;
	color: var(--blue-700);
	font-weight: 700;
	margin-bottom: 8px;
}

.author-box-bio {
	font-size: 13.5px;
	color: var(--text-mid);
	line-height: 1.85;
	margin: 0;
}

/* ------------------------------------------------------------- next step */

.next-step {
	margin-top: 32px;
	padding: 28px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--blue-600), var(--sky-500));
	color: #fff;
	text-align: center;
}

.next-step-title {
	font-size: 22px;
	font-weight: 900;
	color: #fff;
	margin: 0 0 8px;
}

.next-step-text {
	font-size: 14.5px;
	line-height: 1.85;
	color: rgba(255, 255, 255, .92);
	margin: 0 auto 18px;
	max-width: 560px;
}

.next-step-btns {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.next-step-btns .btn-primary {
	background: #fff;
	color: var(--blue-700);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}

.next-step-btns .btn-primary:hover {
	background: var(--blue-50);
}

.next-step-btns .btn-outline {
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
}

.next-step-btns .btn-outline:hover {
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
}

/* ---------------------------------------------------------------- misc */

.article-thumb {
	margin: 0 0 28px;
}

.article-thumb img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	display: block;
}

/* The sidebar CTA button needs a sane width inside a 320px column. */
.cta-sidebar .btn-white {
	padding: 11px 22px;
	font-size: 14px;
	margin-top: 12px;
}

.cta-sidebar p {
	font-size: 13px;
	color: rgba(255, 255, 255, .88);
	line-height: 1.7;
}

/* Long Arabic headings must not blow out the 320px TOC column. */
.toc-list a {
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------- responsive */

/* post-common.css already collapses .article-wrap to one column and unsticks
   .sidebar at 1024px — do not duplicate that here. */

@media (max-width: 600px) {
	.author-box-inner {
		flex-direction: column;
	}
	.next-step {
		padding: 22px 18px;
	}
}
