/* Prism Article — single blog/article detail layout */
.prism-article {
	--pa-accent: #FFFFFF;
	--pa-card-bg: rgba(255, 255, 255, 0.04);
	--pa-border: rgba(255, 255, 255, 0.08);
	--pa-heading: #FFFFFF;
	--pa-text: #D3C4D1;
	--pa-muted: #9A8E98;
	background-color: #3C1430;
}

.prism-article__inner {
	max-width: 1140px;
	margin: 0 auto;
}

.prism-article__box {
	background-color: var(--pa-card-bg);
	border: 1px solid var(--pa-border);
	border-radius: 14px;
}

/* ---- Header ---- */
.prism-article__head {
	max-width: 820px;
	margin: 0 auto 24px;
	text-align: center;
}

.prism-article__category {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--pa-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.prism-article__title {
	margin: 0 0 20px;
	color: var(--pa-heading);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
}

.prism-article__byline {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.prism-article__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.prism-article__byline-text {
	display: flex;
	flex-direction: column;
	text-align: left;
	gap: 2px;
}

.prism-article__author {
	color: var(--pa-heading);
	font-size: 14px;
	font-weight: 600;
}

.prism-article__reviewed {
	color: var(--pa-muted);
	font-weight: 400;
}

.prism-article__role {
	color: var(--pa-muted);
	font-weight: 400;
}

.prism-article__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--pa-muted);
	font-size: 13px;
}

.prism-article__dot {
	opacity: 0.6;
}

.prism-article__share {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
}

.prism-article__share-label {
	color: var(--pa-muted);
	font-size: 13px;
}

.prism-article .prism-article__share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--pa-border);
	background-color: var(--pa-card-bg);
	color: var(--pa-accent);
	font-size: 13px;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.prism-article .prism-article__share-btn:hover {
	background-color: rgba(255, 255, 255, 0.14);
	transform: translateY(-1px);
}

/* ---- Hero ---- */
.prism-article__hero {
	position: relative;
	width: 100%;
	height: 420px;
	margin: 0 0 36px;
	border-radius: 16px;
	overflow: hidden;
}

.prism-article__hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- Layout ---- */
.prism-article__layout {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.prism-article__content {
	flex: 1 1 auto;
	min-width: 0;
}

.prism-article__sidebar {
	flex: 0 0 320px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 24px;
}

/* ---- Table of contents ---- */
.prism-article__toc {
	padding: 22px 24px;
	margin-bottom: 32px;
}

.prism-article__toc-title {
	display: block;
	margin-bottom: 12px;
	color: var(--pa-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.prism-article__toc-list {
	margin: 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.prism-article__toc-link {
	color: var(--pa-text);
	font-size: 15px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.prism-article__toc-link:hover,
.prism-article__toc-link.is-active {
	color: var(--pa-accent);
	text-decoration: underline;
}

/* ---- Body ---- */
.prism-article__section {
	margin-bottom: 14px;
	scroll-margin-top: 24px;
}

.prism-article__h2 {
	margin: 28px 0 14px;
	color: var(--pa-heading);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	scroll-margin-top: 24px;
}

.prism-article__figure {
	margin: 0 0 18px;
}

.prism-article__figure img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.prism-article__rte {
	color: var(--pa-text);
	font-size: 16px;
	line-height: 1.7;
}

.prism-article__rte > :first-child { margin-top: 0; }
.prism-article__rte > :last-child { margin-bottom: 0; }
.prism-article__rte p { margin: 0 0 16px; }
.prism-article__rte h3 { color: var(--pa-heading); font-size: 19px; margin: 24px 0 10px; }
.prism-article__rte h4 { color: var(--pa-heading); font-size: 17px; margin: 20px 0 8px; }
.prism-article__rte a { color: var(--pa-accent); text-decoration: underline; }
.prism-article__rte strong { color: var(--pa-heading); }
.prism-article__rte ul,
.prism-article__rte ol { margin: 0 0 16px; padding-left: 22px; }
.prism-article__rte li { margin-bottom: 8px; }
.prism-article__rte blockquote {
	margin: 0 0 18px;
	padding: 14px 18px;
	border-left: 3px solid var(--pa-accent);
	background-color: var(--pa-card-bg);
	border-radius: 0 10px 10px 0;
	color: var(--pa-text);
}
.prism-article__rte img { max-width: 100%; height: auto; border-radius: 12px; }
.prism-article__rte table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 18px;
	font-size: 14px;
}
.prism-article__rte th,
.prism-article__rte td {
	padding: 10px 12px;
	border: 1px solid var(--pa-border);
	text-align: left;
	color: var(--pa-text);
}
.prism-article__rte th {
	background-color: var(--pa-card-bg);
	color: var(--pa-heading);
	font-weight: 700;
}

/* ---- FAQ ---- */
.prism-article__faq {
	margin-top: 36px;
	scroll-margin-top: 24px;
}

.prism-article__faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.prism-article__faq-item {
	overflow: hidden;
}

.prism-article .prism-article__faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	color: var(--pa-heading);
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.prism-article__faq-icon {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.prism-article__faq-icon::before,
.prism-article__faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: var(--pa-accent);
}

.prism-article__faq-icon::before { width: 14px; height: 2px; }
.prism-article__faq-icon::after { width: 2px; height: 14px; transition: transform 0.25s ease, opacity 0.25s ease; }

.prism-article__faq-item.is-open .prism-article__faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.prism-article__faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.prism-article__faq-a .prism-article__rte {
	padding: 0 20px 18px;
	font-size: 15px;
}

/* ---- Sidebar widgets ---- */
.prism-article__widget,
.prism-article__cta {
	padding: 22px 24px;
}

.prism-article__widget-title {
	display: block;
	margin-bottom: 14px;
	color: var(--pa-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.prism-article__topics {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.prism-article__topic {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--pa-border);
	border-radius: 20px;
	color: var(--pa-text);
	font-size: 13px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.prism-article__topic:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--pa-accent);
}

.prism-article__cta-heading {
	display: block;
	margin-bottom: 8px;
	color: var(--pa-heading);
	font-size: 18px;
	font-weight: 700;
}

.prism-article__cta-text {
	margin: 0 0 16px;
	color: var(--pa-text);
	font-size: 14px;
	line-height: 1.55;
}

.prism-article .prism-article__cta-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 24px;
	background-color: #FFFFFF;
	color: #3C1430;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.prism-article .prism-article__cta-btn:hover {
	opacity: 0.85;
}

/* ---- Related ---- */
.prism-article__related {
	margin-top: 48px;
	padding-top: 36px;
	border-top: 1px solid var(--pa-border);
}

.prism-article__related-title {
	margin: 0 0 22px;
	color: var(--pa-heading);
	font-size: 24px;
	font-weight: 700;
}

.prism-article__related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.prism-article__rel-card {
	display: flex;
	flex-direction: column;
	background-color: var(--pa-card-bg);
	border: 1px solid var(--pa-border);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.prism-article__rel-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.18);
}

.prism-article__rel-media {
	display: block;
	position: relative;
	height: 160px;
}

.prism-article__rel-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.prism-article__rel-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
}

.prism-article__rel-cat {
	color: var(--pa-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.prism-article__rel-title {
	color: var(--pa-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.prism-article__rel-date {
	color: var(--pa-muted);
	font-size: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.prism-article__layout {
		flex-direction: column;
	}
	.prism-article__sidebar {
		flex-basis: auto !important;
		width: 100%;
		position: static;
	}
	.prism-article__related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.prism-article__title {
		font-size: 26px;
	}
	.prism-article__hero {
		height: 240px;
	}
	.prism-article__related-grid {
		grid-template-columns: 1fr;
	}
	.prism-article__byline {
		justify-content: flex-start;
	}
	.prism-article__share {
		margin-left: 0;
		width: 100%;
	}
}
