/* Pillar-cluster module — magazine layout. */

.dp-pc {
	color: var(--dp-fg, #0F172A);
}

/* ===== Hero ===== */

.dp-pc-hero {
	margin: 1.5rem 0 2.25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #E2E8F0;
}

.dp-pc-hero h1 {
	font-family: 'Newsreader', Georgia, serif;
	font-size: clamp(2rem, 4vw, 2.85rem);
	font-weight: 500;
	line-height: 1.12;
	margin: 0 0 0.6rem;
	color: #0F172A;
	letter-spacing: -0.01em;
}

.dp-pc-lead {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.2rem;
	font-weight: 400;
	color: #475569;
	max-width: 60ch;
	margin: 0;
	line-height: 1.4;
}

/* ===== Layout 2-col (article + sidebar) ===== */

.dp-pc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 3rem;
	align-items: start;
}

@media (max-width: 900px) {
	.dp-pc-layout {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

.dp-pc-sidebar {
	position: sticky;
	top: 1.25rem;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.92rem;
	align-self: start;
}

@media (max-width: 900px) {
	.dp-pc-sidebar {
		position: static;
		border-bottom: 1px solid #E2E8F0;
		padding-bottom: 1.25rem;
	}
}

.dp-pc-side-meta {
	border: 1px solid #E2E8F0;
	background: #F8FAFC;
	padding: 0.95rem 1.05rem;
	border-radius: 4px;
	margin: 0 0 1.25rem;
}

.dp-pc-side-meta dt {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6E6750;
	margin-top: 0.6rem;
}

.dp-pc-side-meta dt:first-child {
	margin-top: 0;
}

.dp-pc-side-meta dd {
	margin: 0.2rem 0 0;
	color: #0F172A;
	font-weight: 500;
}

.dp-pc-side-meta dd a {
	color: #B45309;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.dp-pc-side-meta dd a:hover {
	border-bottom-color: #CA8A04;
}

.dp-pc-toc h3 {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6E6750;
	margin: 0 0 0.75rem;
}

.dp-pc-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: dp-toc;
}

.dp-pc-toc li {
	counter-increment: dp-toc;
	margin: 0;
	padding: 0;
	position: relative;
}

.dp-pc-toc a {
	display: block;
	padding: 0.5rem 0 0.5rem 2.2rem;
	color: #1E293B;
	text-decoration: none;
	border-bottom: 1px solid #F1F5F9;
	transition: color 0.15s ease;
	line-height: 1.3;
}

.dp-pc-toc li:last-child a {
	border-bottom: none;
}

.dp-pc-toc a:hover {
	color: #B45309;
}

.dp-pc-toc a::before {
	content: counter(dp-toc, decimal-leading-zero);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.75rem;
	font-weight: 500;
	color: #CA8A04;
	position: absolute;
	left: 0;
	top: 0.55rem;
}

/* ===== Body — densidad recortada ===== */

.dp-pc-body {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.55;
	color: #1E293B;
	max-width: 68ch;
}

.dp-pc-body h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 500;
	font-size: 1.7rem;
	line-height: 1.2;
	margin: 2.5rem 0 0.85rem;
	color: #0F172A;
	letter-spacing: -0.005em;
	scroll-margin-top: 1rem;
}

.dp-pc-body h2::before {
	content: '';
	display: block;
	width: 36px;
	height: 2px;
	background: #CA8A04;
	margin-bottom: 0.85rem;
}

.dp-pc-body > h2:first-child {
	margin-top: 0;
}

.dp-pc-body h3 {
	font-family: 'Inter', system-ui, sans-serif;
	font-weight: 600;
	font-size: 1.05rem;
	margin: 1.5rem 0 0.4rem;
	color: #0F172A;
	letter-spacing: 0.005em;
}

.dp-pc-body p {
	margin: 0 0 0.85rem;
}

.dp-pc-body ul,
.dp-pc-body ol {
	padding-left: 1.4rem;
	margin: 0.8rem 0 1.05rem;
}

.dp-pc-body ul li,
.dp-pc-body ol li {
	margin: 0.3rem 0;
	padding-left: 0.2rem;
}

.dp-pc-body ul li::marker {
	color: #CA8A04;
}

.dp-pc-body strong {
	font-weight: 600;
	color: #0F172A;
}

.dp-pc-body em {
	font-style: italic;
	color: #475569;
}

.dp-pc-body a {
	color: #B45309;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.dp-pc-body a:hover {
	text-decoration-thickness: 2px;
}

/* Drop cap en primer párrafo */
.dp-pc-body p.dp-pc-dropcap::first-letter {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 3.6em;
	font-weight: 500;
	float: left;
	line-height: 0.85;
	margin: 0.05em 0.12em 0 -0.04em;
	color: #B45309;
}

/* Tablas magazine */
.dp-pc-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95rem;
	border-top: 2px solid #0F172A;
	border-bottom: 2px solid #0F172A;
}

.dp-pc-body th {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6E6750;
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid #CBD5E1;
}

.dp-pc-body td {
	padding: 0.7rem 0.75rem;
	border-bottom: 1px solid #F1F5F9;
	vertical-align: top;
}

.dp-pc-body tr:last-child td {
	border-bottom: none;
}

.dp-pc-body td strong {
	color: #0F172A;
}

/* ===== Callouts auto-detectados por H2 ===== */

.dp-pc-callout {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-radius: 4px;
	background: #FEF7EE;
	border-left: 3px solid #CA8A04;
}

.dp-pc-callout--danger {
	background: #FEF2F2;
	border-left-color: #DC2626;
}

.dp-pc-callout--success {
	background: #F0FDF4;
	border-left-color: #16A34A;
}

.dp-pc-callout--info {
	background: #EFF6FF;
	border-left-color: #2563EB;
}

.dp-pc-callout ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dp-pc-callout li {
	padding: 0.5rem 0 0.5rem 1.65rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	position: relative;
	margin: 0;
}

.dp-pc-callout li::marker {
	content: '';
}

.dp-pc-callout li:last-child {
	border-bottom: none;
}

.dp-pc-callout li::before {
	content: '◆';
	position: absolute;
	left: 0;
	top: 0.55rem;
	font-size: 0.85rem;
	color: #CA8A04;
}

.dp-pc-callout--danger li::before {
	content: '⚠';
	color: #DC2626;
	font-size: 0.95rem;
}

.dp-pc-callout--success li::before {
	content: '✓';
	color: #16A34A;
	font-size: 0.95rem;
	font-weight: 700;
}

.dp-pc-callout--info li::before {
	content: 'ℹ';
	color: #2563EB;
	font-size: 0.95rem;
	font-weight: 700;
}

/* ===== Numeración magazine en listas ordenadas marcadas ===== */

.dp-pc-body ol.dp-pc-steps {
	counter-reset: dp-steps;
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}

.dp-pc-body ol.dp-pc-steps > li {
	counter-increment: dp-steps;
	position: relative;
	padding: 0.3rem 0 1rem 3.6rem;
	border-bottom: 1px solid #F1F5F9;
	margin: 0;
	min-height: 3rem;
}

.dp-pc-body ol.dp-pc-steps > li:last-child {
	border-bottom: none;
}

.dp-pc-body ol.dp-pc-steps > li::before {
	content: counter(dp-steps, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0.05rem;
	font-family: 'Newsreader', Georgia, serif;
	font-size: 2.1rem;
	font-weight: 500;
	line-height: 1;
	color: #CA8A04;
	letter-spacing: -0.02em;
}

.dp-pc-body ol.dp-pc-steps > li::marker {
	content: '';
}

/* ===== Bloques estructurales (subsite_links / cluster_list / related / faq / pillar_link) ===== */

.dp-pc-subsite-links,
.dp-pc-cluster-list,
.dp-pc-related,
.dp-pc-pillar-link,
.dp-pc-faq {
	margin: 2.25rem 0;
	padding: 1.4rem 1.6rem;
	background: #F8FAFC;
	border-left: 3px solid #CA8A04;
	border-radius: 2px;
}

.dp-pc-subsite-links h2,
.dp-pc-cluster-list h2,
.dp-pc-related h2,
.dp-pc-faq h2 {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6E6750;
	margin: 0 0 1rem;
}

.dp-pc-subsite-links h2::before,
.dp-pc-cluster-list h2::before,
.dp-pc-related h2::before,
.dp-pc-faq h2::before {
	display: none;
}

.dp-pc-subsite-links ul,
.dp-pc-cluster-list ul,
.dp-pc-related ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0.4rem 1.4rem;
}

.dp-pc-subsite-links li,
.dp-pc-cluster-list li,
.dp-pc-related li {
	margin: 0;
}

.dp-pc-subsite-links a,
.dp-pc-cluster-list a,
.dp-pc-related a {
	color: #0F172A;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	padding: 0.35rem 0;
	display: inline-block;
	transition: border-color 0.15s ease;
}

.dp-pc-subsite-links a:hover,
.dp-pc-cluster-list a:hover,
.dp-pc-related a:hover {
	border-bottom-color: #CA8A04;
}

.dp-pc-pillar-link p {
	margin: 0;
	font-size: 0.95rem;
	color: #475569;
}

.dp-pc-pillar-link a {
	color: #B45309;
	font-weight: 500;
}

/* ===== FAQ ===== */

.dp-pc-faq-list {
	margin: 0;
}

.dp-pc-faq-item {
	border-bottom: 1px solid #E2E8F0;
	padding: 0.85rem 0;
}

.dp-pc-faq-item:last-child {
	border-bottom: none;
}

.dp-pc-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: #0F172A;
	list-style: none;
	padding-right: 1.5rem;
	position: relative;
}

.dp-pc-faq-item summary::-webkit-details-marker {
	display: none;
}

.dp-pc-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 0;
	font-size: 1.4rem;
	line-height: 1;
	color: #CA8A04;
	transition: transform 0.15s ease;
}

.dp-pc-faq-item[open] summary::after {
	content: '−';
}

.dp-pc-faq-a {
	margin-top: 0.6rem;
	color: #1E293B;
	font-size: 0.95rem;
}

.dp-pc-faq-a p {
	margin: 0;
}
