/**
 * PsychDirect Article Styles
 * 
 * Editorial-quality blog article layout.
 * All rules scoped to .pd-article or .pd-article-* to avoid global overrides.
 * 
 * Design tokens (consistent with PsychDirect):
 * - Primary blue: #3b82f6
 * - Text dark: #303c40
 * - Text body: #374151
 * - Text muted: #6b7280
 * - Text light: #9ca3af
 * - Border: #e5e7eb
 * - Background subtle: #f9fafb
 * - Footer dark: #060668
 */

/* ==========================================================================
   Global Font Override (Article Pages)
   Force Inter everywhere, override any legacy Montserrat
   ========================================================================== */

.pd-article-wrapper,
.pd-article-wrapper *,
.pd-article,
.pd-article * {
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ==========================================================================
   Page-Level Wrapper & Footer Transition
   ========================================================================== */

.pd-article-wrapper {
	background: #ffffff;
	min-height: calc(100vh - 200px);
}

/* Buffer zone before footer - creates soft transition */
.pd-article-wrapper::after {
	content: '';
	display: block;
	height: 72px;
	background: linear-gradient(
		to bottom,
		#ffffff 0%,
		#f7f8f9 30%,
		#eef0f3 60%,
		#e4e7ec 100%
	);
	border-top: 1px solid #f0f1f3;
}

@media (min-width: 768px) {
	.pd-article-wrapper::after {
		height: 88px;
	}
}

/* ==========================================================================
   Back Navigation
   ========================================================================== */

.pd-article-nav {
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 20px 0;
}

@media (min-width: 768px) {
	.pd-article-nav {
		padding: 28px 32px 0;
	}
}

@media (min-width: 1024px) {
	.pd-article-nav {
		padding: 36px 40px 0;
	}
}

.pd-article-nav__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
	transition: color 0.15s ease;
}

.pd-article-nav__back:hover {
	color: #3b82f6;
}

.pd-article-nav__back svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ==========================================================================
   Article Container
   ========================================================================== */

.pd-article {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 20px 64px;
	background: #ffffff;
}

@media (min-width: 768px) {
	.pd-article {
		padding: 32px 32px 80px;
	}
}

@media (min-width: 1024px) {
	.pd-article {
		padding: 40px 40px 96px;
	}
}

/* ==========================================================================
   Article Header
   ========================================================================== */

.pd-article__header {
	margin-bottom: 32px;
	padding-bottom: 0;
	border-bottom: none;
}

@media (min-width: 768px) {
	.pd-article__header {
		margin-bottom: 40px;
	}
}

/* Article Title (H1) */
.pd-article__title,
.pd-article h1:first-of-type {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.pd-article__title,
	.pd-article h1:first-of-type {
		font-size: 36px;
		line-height: 1.15;
		margin-bottom: 16px;
	}
}

@media (min-width: 1024px) {
	.pd-article__title,
	.pd-article h1:first-of-type {
		font-size: 42px;
	}
}

/* Article Subtitle */
.pd-article__subtitle {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	color: #6b7280;
	margin: 0 0 24px;
}

@media (min-width: 768px) {
	.pd-article__subtitle {
		font-size: 20px;
		margin-bottom: 28px;
	}
}

/* Author Byline Row (Medium style) */
.pd-article__byline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pd-article__byline-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

.pd-article__byline-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pd-article__byline-name {
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
}

.pd-article__byline-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #6b7280;
}

.pd-article__reading-time {
	color: #6b7280;
}

.pd-article__date {
	color: #6b7280;
}

/* Separator dot between meta items */
.pd-article__meta-separator {
	color: #d1d5db;
	font-weight: 300;
}

/* ==========================================================================
   Featured Image
   ========================================================================== */

.pd-article__featured-image {
	margin: 32px 0 40px;
	padding: 0;
}

@media (min-width: 768px) {
	.pd-article__featured-image {
		margin: 40px 0 48px;
	}
}

.pd-article__hero-img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

/* Category tag (optional, if used) */
.pd-article__category {
	display: inline-block;
	padding: 5px 14px;
	background: #f3f4f6;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 500;
	color: #4b5563;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pd-article__category:hover {
	background: #e5e7eb;
	color: #374151;
	text-decoration: none;
}

/* ==========================================================================
   Article Content Area
   ========================================================================== */

.pd-article__content {
	/* Creates separation between header and content */
}

/* Remove the old header divider */
.pd-article__header + .pd-article__content::before,
.pd-article__featured-image + .pd-article__content::before {
	display: none;
}

@media (min-width: 768px) {
	.pd-article__header + .pd-article__content::before {
		margin-bottom: 40px;
	}
}

/* ==========================================================================
   Typography - Body Text
   ========================================================================== */

.pd-article p {
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	color: #374151;
	margin: 0 0 24px;
}

@media (min-width: 768px) {
	.pd-article p {
		font-size: 18px;
		line-height: 1.75;
		margin-bottom: 28px;
	}
}

/* Lead paragraph - first paragraph gets special treatment */
.pd-article__content > p:first-of-type {
	font-size: 18px;
	line-height: 1.7;
	color: #4b5563;
	margin-bottom: 28px;
}

@media (min-width: 768px) {
	.pd-article__content > p:first-of-type {
		font-size: 19px;
		line-height: 1.65;
		margin-bottom: 36px;
	}
}

/* Strong/Bold text */
.pd-article strong,
.pd-article b {
	font-weight: 600;
	color: #303c40;
}

/* Emphasis */
.pd-article em,
.pd-article i {
	font-style: italic;
}

/* ==========================================================================
   Typography - Headings
   ========================================================================== */

/* Section Headings (H2) */
.pd-article h2 {
	position: relative;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: #303c40;
	margin: 40px 0 20px;
	letter-spacing: -0.01em;
	padding-top: 16px;
}

/* Subtle visual anchor above H2 */
.pd-article h2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 28px;
	height: 2px;
	background: #d1d5db;
	border-radius: 1px;
}

@media (min-width: 768px) {
	.pd-article h2 {
		font-size: 24px;
		margin-top: 48px;
		margin-bottom: 24px;
		padding-top: 20px;
	}
}

/* First H2 after content start - no extra top margin, no divider */
.pd-article__content > h2:first-child {
	margin-top: 0;
	padding-top: 0;
}

.pd-article__content > h2:first-child::before {
	display: none;
}

/* Subsection Headings (H3) */
.pd-article h3 {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #374151;
	margin: 44px 0 14px;
}

@media (min-width: 768px) {
	.pd-article h3 {
		font-size: 19px;
		margin-top: 52px;
		margin-bottom: 16px;
	}
}

/* H3 following H2 - reduced spacing */
.pd-article h2 + h3 {
	margin-top: 24px;
}

/* H4 */
.pd-article h4 {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #4b5563;
	margin: 32px 0 12px;
}

@media (min-width: 768px) {
	.pd-article h4 {
		font-size: 17px;
	}
}

/* ==========================================================================
   Lists
   ========================================================================== */

.pd-article ul,
.pd-article ol {
	font-size: 17px;
	line-height: 1.7;
	color: #374151;
	margin: 0 0 28px;
	padding-left: 24px;
}

@media (min-width: 768px) {
	.pd-article ul,
	.pd-article ol {
		font-size: 18px;
		line-height: 1.75;
		margin-bottom: 32px;
		padding-left: 28px;
	}
}

.pd-article li {
	margin-bottom: 10px;
	padding-left: 6px;
}

@media (min-width: 768px) {
	.pd-article li {
		margin-bottom: 12px;
	}
}

/* Last item in list */
.pd-article li:last-child {
	margin-bottom: 0;
}

/* Nested lists */
.pd-article ul ul,
.pd-article ol ol,
.pd-article ul ol,
.pd-article ol ul {
	margin-top: 12px;
	margin-bottom: 12px;
}

/* Unordered list bullets */
.pd-article ul {
	list-style-type: disc;
}

.pd-article ul ul {
	list-style-type: circle;
}

/* Ordered list numbers */
.pd-article ol {
	list-style-type: decimal;
}

/* Bold lead-ins in list items */
.pd-article li > strong:first-child,
.pd-article li > b:first-child {
	color: #303c40;
}

/* ==========================================================================
   Links
   ========================================================================== */

.pd-article a:not(.pd-article-cta__btn):not(.pd-article__category):not(.pd-article__tag):not(.pd-article-btn--outline):not(.pd-article-btn--secondary):not(.pd-article__profile-btn):not(.pd-article__author-link) {
	color: #3b82f6;
	text-decoration: underline;
	text-decoration-color: rgba(59, 130, 246, 0.4);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.pd-article a:not(.pd-article-cta__btn):not(.pd-article__category):not(.pd-article__tag):not(.pd-article-btn--outline):not(.pd-article-btn--secondary):not(.pd-article__profile-btn):not(.pd-article__author-link):hover {
	color: #2563eb;
	text-decoration-color: #2563eb;
}

.pd-article a:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
	border-radius: 2px;
}

/* ==========================================================================
   Dividers (HR)
   ========================================================================== */

.pd-article hr {
	border: none;
	height: 1px;
	background: #e5e7eb;
	margin: 48px 0;
}

@media (min-width: 768px) {
	.pd-article hr {
		margin: 56px 0;
	}
}

/* ==========================================================================
   Blockquotes
   ========================================================================== */

.pd-article blockquote {
	margin: 36px 0;
	padding: 24px 28px;
	border-left: 3px solid #3b82f6;
	background: #f9fafb;
	border-radius: 0 12px 12px 0;
}

@media (min-width: 768px) {
	.pd-article blockquote {
		margin: 40px 0;
	}
}

.pd-article blockquote p {
	font-size: 17px;
	font-style: italic;
	color: #4b5563;
	margin-bottom: 0;
	line-height: 1.7;
}

.pd-article blockquote p:not(:last-child) {
	margin-bottom: 16px;
}

.pd-article blockquote cite {
	display: block;
	margin-top: 16px;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	color: #6b7280;
}

/* ==========================================================================
   Images
   ========================================================================== */

.pd-article img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 28px 0;
}

.pd-article figure {
	margin: 36px 0;
}

@media (min-width: 768px) {
	.pd-article figure {
		margin: 44px 0;
	}
}

.pd-article figure img {
	margin: 0;
}

.pd-article figcaption {
	margin-top: 14px;
	font-size: 14px;
	color: #6b7280;
	text-align: center;
	line-height: 1.5;
}

/* ==========================================================================
   Callout / Highlight Box
   ========================================================================== */

.pd-article-callout {
	margin: 36px 0;
	padding: 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

@media (min-width: 768px) {
	.pd-article-callout {
		margin: 44px 0;
		padding: 28px 32px;
	}
}

.pd-article-callout__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	background: #e0f2fe;
	border-radius: 8px;
	color: #0284c7;
}

.pd-article-callout__title {
	font-size: 16px;
	font-weight: 600;
	color: #303c40;
	margin: 0 0 10px;
	line-height: 1.4;
}

.pd-article-callout p {
	font-size: 15px;
	line-height: 1.65;
	color: #4b5563;
	margin: 0;
}

.pd-article-callout p:not(:last-child) {
	margin-bottom: 12px;
}

/* Callout Variants */
.pd-article-callout--tip {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.pd-article-callout--tip .pd-article-callout__icon {
	background: #dcfce7;
	color: #16a34a;
}

.pd-article-callout--note {
	background: #fffbeb;
	border-color: #fde68a;
}

.pd-article-callout--note .pd-article-callout__icon {
	background: #fef3c7;
	color: #d97706;
}

/* ==========================================================================
   Article CTA Block
   ========================================================================== */

.pd-article-cta {
	position: relative;
	margin: 64px 0 0;
	padding: 36px 28px;
	background: #f6f8fa;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

@media (min-width: 768px) {
	.pd-article-cta {
		margin-top: 72px;
		padding: 44px 56px;
	}
}

/* Soft divider above CTA */
.pd-article-cta::before {
	content: '';
	position: absolute;
	top: -36px;
	left: 50%;
	transform: translateX(-50%);
	width: 48px;
	height: 3px;
	background: #e5e7eb;
	border-radius: 2px;
}

@media (min-width: 768px) {
	.pd-article-cta::before {
		top: -40px;
	}
}

.pd-article-cta__title {
	font-size: 20px;
	font-weight: 600;
	color: #303c40;
	margin: 0 0 10px;
	line-height: 1.35;
}

@media (min-width: 768px) {
	.pd-article-cta__title {
		font-size: 22px;
		margin-bottom: 12px;
	}
}

.pd-article-cta__text {
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	letter-spacing: -0.01em;
	color: #64748b;
	margin: 0 0 24px;
	max-width: 460px;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 768px) {
	.pd-article-cta__text {
		font-size: 17px;
		margin-bottom: 28px;
	}
}

.pd-article-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 500;
	color: #ffffff;
	background: #3b82f6;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

@media (min-width: 768px) {
	.pd-article-cta__btn {
		font-size: 16px;
		padding: 15px 32px;
	}
}

.pd-article-cta__btn:hover {
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pd-article-cta__btn:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.pd-article-cta__btn:active {
	transform: scale(0.98);
}

/* CTA button icon */
.pd-article-cta__btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ==========================================================================
   Tags
   ========================================================================== */

.pd-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
	.pd-article__tags {
		margin-top: 48px;
		padding-top: 36px;
	}
}

.pd-article__tag {
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #4b5563;
	background: #f3f4f6;
	border-radius: 100px;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pd-article__tag:hover {
	background: #e5e7eb;
	color: #374151;
	text-decoration: none;
}

/* ==========================================================================
   Article Footer / Author
   ========================================================================== */

.pd-article__footer {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
	.pd-article__footer {
		margin-top: 56px;
		padding-top: 36px;
	}
}

/* Legacy author styles removed - see Author Block (Enhanced) section below */

/* ==========================================================================
   Code Blocks
   ========================================================================== */

.pd-article code {
	font-family: 'SF Mono', Monaco, 'Andale Mono', monospace !important;
	font-size: 14px;
	padding: 3px 7px;
	background: #f3f4f6;
	border-radius: 5px;
	color: #374151;
}

.pd-article pre {
	margin: 28px 0;
	padding: 24px;
	background: #1f2937;
	border-radius: 12px;
	overflow-x: auto;
}

.pd-article pre code {
	font-size: 14px;
	padding: 0;
	background: transparent;
	color: #e5e7eb;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.pd-article table {
	width: 100%;
	margin: 28px 0;
	border-collapse: collapse;
	font-size: 15px;
}

.pd-article th,
.pd-article td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.pd-article th {
	font-weight: 600;
	color: #303c40;
	background: #f9fafb;
}

.pd-article td {
	color: #374151;
}

.pd-article tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   WordPress Block Editor Compatibility
   ========================================================================== */

/* Gutenberg blocks within article */
.pd-article .wp-block-image {
	margin: 36px 0;
}

.pd-article .wp-block-image img {
	margin: 0;
}

.pd-article .wp-block-image figcaption {
	margin-top: 14px;
	font-size: 14px;
	color: #6b7280;
	text-align: center;
}

.pd-article .wp-block-quote {
	margin: 36px 0;
	padding: 24px 28px;
	border-left: 3px solid #3b82f6;
	background: #f9fafb;
	border-radius: 0 12px 12px 0;
}

.pd-article .wp-block-quote p {
	font-style: italic;
}

/* Gutenberg button blocks */
.pd-article .wp-block-button__link {
	color: #ffffff;
	text-decoration: none;
}

.pd-article .wp-block-button__link:hover {
	color: #ffffff;
	text-decoration: none;
}

/* ==========================================================================
   Additional Button Styles (for shortcodes)
   ========================================================================== */

/* Outline Button */
.pd-article-btn--outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 500;
	color: #3b82f6;
	background: transparent;
	border: 2px solid #3b82f6;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pd-article-btn--outline:hover {
	background: #3b82f6;
	color: #ffffff;
	text-decoration: none;
}

/* Secondary Button */
.pd-article-btn--secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 500;
	color: #374151;
	background: #f3f4f6;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.pd-article-btn--secondary:hover {
	background: #e5e7eb;
	color: #1f2937;
	text-decoration: none;
}

/* Inline action link (for contextual links that replace "click here") */
.pd-article-link--action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
	color: #3b82f6;
	text-decoration: none;
}

.pd-article-link--action:hover {
	color: #2563eb;
	text-decoration: underline;
}

.pd-article-link--action svg {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */

/* Add extra breathing room before a section */
.pd-article .pd-spacing-top {
	margin-top: 56px;
}

/* Add extra breathing room after a section */
.pd-article .pd-spacing-bottom {
	margin-bottom: 56px;
}
/* ==========================================================================
   References Section
   ========================================================================== */

.pd-article__references {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
	.pd-article__references {
		margin-top: 64px;
		padding-top: 40px;
	}
}

.pd-article__references-title {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	margin: 0 0 20px;
}

@media (min-width: 768px) {
	.pd-article__references-title {
		font-size: 13px;
		margin-bottom: 24px;
	}
}

.pd-article__references-content {
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
}

.pd-article__references-content p {
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
	margin-bottom: 12px;
}

.pd-article__references-content a {
	color: #6b7280;
	text-decoration-color: rgba(107, 114, 128, 0.4);
}

.pd-article__references-content a:hover {
	color: #4b5563;
	text-decoration-color: #4b5563;
}

/* ==========================================================================
   Author Block (Enhanced)
   ========================================================================== */

.pd-article__author-block {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
	.pd-article__author-block {
		margin-top: 64px;
		padding-top: 48px;
	}
}

.pd-article__author-block-title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9ca3af;
	margin: 0 0 12px;
}

.pd-article__author-card {
	display: grid;
	grid-template-columns: 50px 1fr;
	gap: 14px;
	align-items: start;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	max-width: 100%;
}

.pd-article__author-avatar-wrap {
	width: 50px;
	height: 50px;
	min-width: 50px;
	min-height: 50px;
	max-width: 50px;
	max-height: 50px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 50%;
	grid-row: 1 / -1;
	margin-top: 2px;
	background: #e5e7eb;
}

/* Handle both direct img and background-image div approaches */
.pd-article__author-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}

.pd-article__author-info {
	min-width: 0;
}

.pd-article__author-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.pd-article__written-by {
	font-size: 15px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
}

.pd-article__written-by strong {
	color: #1f2937;
	font-weight: 600;
}

.pd-article__profile-btn {
	display: inline-block;
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 300;
	color: #1f2937;
	text-decoration: none !important;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: transparent;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.pd-article__profile-btn:hover {
	color: #9ca3af;
	background: #f9fafb;
	border-color: #d1d5db;
	text-decoration: none !important;
}

.pd-article__author-details {
	font-size: 12px;
	color: #6b7280;
	margin: 0 0 8px;
	line-height: 1.4;
}

.pd-article__author-bio {
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
	margin: 0 0 8px;
}

.pd-article__author-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.pd-article__author-link {
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
	transition: color 0.15s ease;
}

.pd-article__author-link:hover {
	color: #3b82f6;
}

/* Mobile adjustments for author card */
@media (max-width: 520px) {
	.pd-article__author-card {
		grid-template-columns: 44px 1fr;
		padding: 14px;
		gap: 12px;
	}
	
	.pd-article__author-avatar-wrap {
		width: 44px;
		height: 44px;
	}
	
	.pd-article__author-avatar,
	.pd-article__author-avatar-wrap picture,
	.pd-article__author-avatar-wrap img {
		width: 44px;
		height: 44px;
	}
	
	.pd-article__written-by {
		font-size: 14px;
	}
	
	.pd-article__author-links {
		gap: 10px;
	}
}

/* ==========================================================================
   Key Idea Callout (Auto-inserted via JS or manual)
   ========================================================================== */

.pd-article__key-idea {
	margin: 40px 0;
	padding: 24px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
	.pd-article__key-idea {
		margin: 48px 0;
		padding: 28px 32px;
	}
}

.pd-article__key-idea-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9ca3af;
	margin-bottom: 10px;
}

.pd-article__key-idea p {
	font-size: 16px;
	line-height: 1.7;
	color: #374151;
	margin: 0;
	font-style: italic;
}

@media (min-width: 768px) {
	.pd-article__key-idea p {
		font-size: 17px;
	}
}

/* ==========================================================================
   Reading Time in Meta
   ========================================================================== */

.pd-article__reading-time {
	color: #9ca3af;
	font-weight: 400;
}

/* ==========================================================================
   Related Articles Section
   ========================================================================== */

.pd-related-articles {
	max-width: 960px;
	margin: 0 auto;
	padding: 48px 20px 64px;
	border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
	.pd-related-articles {
		padding: 56px 32px 80px;
	}
}

@media (min-width: 1024px) {
	.pd-related-articles {
		padding: 64px 40px 96px;
	}
}

.pd-related-articles__title {
	font-size: 20px;
	font-weight: 600;
	color: #303c40;
	margin: 0 0 24px;
	text-align: center;
}

@media (min-width: 768px) {
	.pd-related-articles__title {
		font-size: 22px;
		margin-bottom: 32px;
	}
}

.pd-related-articles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.pd-related-articles__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (min-width: 900px) {
	.pd-related-articles__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Related Article Card */
.pd-related-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-related-card:hover {
	border-color: #d1d5db;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pd-related-card__link {
	display: block;
	padding: 20px;
	text-decoration: none;
	height: 100%;
}

@media (min-width: 768px) {
	.pd-related-card__link {
		padding: 24px;
	}
}

.pd-related-card__category {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #3b82f6;
	margin-bottom: 10px;
}

.pd-related-card__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #303c40;
	margin: 0 0 10px;
	transition: color 0.15s ease;
}

.pd-related-card:hover .pd-related-card__title {
	color: #3b82f6;
}

@media (min-width: 768px) {
	.pd-related-card__title {
		font-size: 17px;
	}
}

.pd-related-card__excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: #6b7280;
	margin: 0 0 14px;
}

.pd-related-card__read {
	font-size: 13px;
	font-weight: 500;
	color: #3b82f6;
}