/* ============================================
   Article Pages — Layout, TOC & Visual Refresh
   ============================================ */

html {
	scroll-behavior: smooth;
}

/* Override overflow:hidden from style.css — required for sticky TOC */
.content:has(.article-layout) {
	overflow: visible;
}

/* --- Hero --- */

.article-hero {
	background: linear-gradient(135deg, #1d253e 0%, #2a3352 100%);
	padding: 70px 30px 65px;
	text-align: center;
}

.article-hero h1 {
	font-family: "Scope One", sans-serif;
	font-size: 40px;
	color: #fff;
	max-width: 720px;
	margin: 0 auto 18px;
	line-height: 1.25;
	letter-spacing: -0.3px;
}

.article-hero .subtitle {
	font-family: "Quicksand", sans-serif;
	font-size: 17px;
	color: rgba(255,255,255,0.72);
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.65;
}

/* --- Two-Column Layout --- */

.article-layout {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	padding: 0 20px;
}

/* --- Table of Contents (Desktop Sidebar) --- */

.article-toc {
	width: 220px;
	flex-shrink: 0;
	position: sticky;
	top: 30px;
	padding: 35px 0 40px;
	align-self: flex-start;
}

.article-toc .toc-label {
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	color: #999;
	margin-bottom: 16px;
	padding-left: 16px;
}

.article-toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.article-toc li {
	margin: 0;
}

.article-toc a {
	display: block;
	padding: 7px 16px;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	line-height: 1.45;
	color: #888;
	text-decoration: none;
	border-left: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.article-toc a:hover {
	color: #1d253e;
}

.article-toc a.active {
	color: #1d253e;
	font-weight: 600;
	border-left-color: #fd8451;
}

/* --- Mobile TOC (Collapsible Top Bar) --- */

.article-toc-mobile {
	display: none;
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.toc-mobile-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #1d253e;
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	text-align: left;
}

.toc-mobile-toggle .toc-chevron {
	transition: transform 0.25s ease;
	font-size: 10px;
	color: #999;
}

.article-toc-mobile.open .toc-chevron {
	transform: rotate(180deg);
}

.toc-mobile-list {
	display: none;
	padding: 0 20px 14px;
	list-style: none;
	margin: 0;
}

.article-toc-mobile.open .toc-mobile-list {
	display: block;
}

.toc-mobile-list a {
	display: block;
	padding: 8px 0;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #666;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
}

.toc-mobile-list li:last-child a {
	border-bottom: none;
}

.toc-mobile-list a.active {
	color: #fd8451;
	font-weight: 600;
}

/* --- Article Content --- */

.article-content {
	flex: 1;
	min-width: 0;
	max-width: 780px;
	padding: 45px 40px 90px;
	background: #fff;
}

.article-content h2 {
	font-size: 30px;
	font-weight: 700;
	margin-top: 55px;
	margin-bottom: 18px;
	padding-top: 30px;
	border-top: none;
	color: #1d253e;
	letter-spacing: -0.2px;
	position: relative;
}

.article-content h2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: #fd8451;
	border-radius: 2px;
}

.article-content h2:first-of-type {
	margin-top: 30px;
	padding-top: 0;
}

.article-content h2:first-of-type::before {
	display: none;
}

.article-content h3 {
	font-size: 20px;
	font-weight: 700;
	margin-top: 35px;
	margin-bottom: 12px;
	color: #1d253e;
}

.article-content p {
	margin-bottom: 18px;
	line-height: 1.75;
	color: #3a3a3a;
}

.article-content .intro-text {
	font-size: 19px;
	line-height: 1.75;
	color: #444;
}

/* --- Blockquotes --- */

.article-content blockquote {
	border-left: 4px solid #fd8451;
	margin: 25px 0;
	padding: 20px 28px;
	background: #fdf8f5;
	font-style: italic;
	color: #555;
	border-radius: 0 6px 6px 0;
}

.article-content blockquote p {
	margin-bottom: 0;
}

/* --- Lists --- */

.article-content ol, .article-content ul {
	padding-left: 25px;
	margin-bottom: 22px;
}

.article-content ol li, .article-content ul li {
	margin-bottom: 10px;
	line-height: 1.7;
	color: #3a3a3a;
}

/* --- Example Letters --- */

.article-content .example-letter {
	background: #f7f9fc;
	border-radius: 8px;
	padding: 28px 32px;
	margin: 20px 0 35px;
	border-left: 4px solid #2595FF;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.article-content .example-letter p {
	font-style: italic;
	color: #555;
	margin-bottom: 10px;
}

.article-content .example-letter p:last-child {
	margin-bottom: 0;
}

.article-content .example-label {
	font-size: 10pt;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #999;
	margin-bottom: 8px;
	font-family: "Open Sans", sans-serif;
}

/* --- CTA Box --- */

.article-content .cta-box {
	background: linear-gradient(135deg, #1d253e 0%, #2a3352 100%);
	color: #fff;
	padding: 35px 45px;
	border-radius: 10px;
	text-align: center;
	margin: 45px 0;
	box-shadow: 0 4px 20px rgba(29,37,62,0.2);
}

.article-content .cta-box h3 {
	color: #fff;
	font-size: 22px;
	margin-top: 0;
	margin-bottom: 8px;
}

.article-content .cta-box p, .article-content .cta-box a {
	color: rgba(255,255,255,0.82);
	margin-bottom: 22px;
	font-size: 16px;
}

.article-content .cta-box .btn {
	background: #fd8451;
	transition: background 0.2s ease, transform 0.15s ease;
}

.article-content .cta-box .btn:hover {
	background: #2595FF;
	transform: translateY(-1px);
}

/* --- Prompt Grid --- */

.prompt-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 28px;
	padding-left: 0;
}

.prompt-grid li {
	list-style: none;
	background: #f7f7f7;
	padding: 14px 20px;
	border-radius: 8px;
	flex: 1 1 calc(50% - 12px);
	min-width: 250px;
	font-size: 15px;
	line-height: 1.55;
	color: #3a3a3a;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid #eee;
}

.prompt-grid li:hover {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	border-color: #ddd;
}

/* --- Links --- */

.article-content a {
	color: #2595FF;
	text-decoration: none;
	border-bottom: 1px solid rgba(37,149,255,0.3);
	transition: border-color 0.2s ease;
}

.article-content a:hover {
	border-bottom-color: #2595FF;
}

.article-content .cta-box a {
	border-bottom: none;
}

/* --- Responsive --- */

@media screen and (max-width: 899px) {
	.article-toc {
		display: none;
	}

	.article-toc-mobile {
		display: block;
	}

	.article-layout {
		display: block;
		padding: 0;
	}

	.article-content {
		max-width: 100%;
		padding: 35px 25px 70px;
	}

	.article-hero h1 {
		font-size: 30px;
	}
}

@media screen and (max-width: 599px) {
	.article-hero {
		padding: 50px 20px 45px;
	}

	.article-hero h1 {
		font-size: 26px;
	}

	.article-content {
		padding: 25px 18px 60px;
	}

	.article-content h2 {
		font-size: 24px;
	}

	.article-content .cta-box {
		padding: 28px 22px;
	}

	.prompt-grid li {
		flex: 1 1 100%;
	}
}
