/**
 * Digiprensa — Guía de diseño (page shell only)
 *
 * Layout CSS for the living style guide page (page-templates/guidelines.php).
 * This file lays out the guide's own chrome ONLY — containers, grids, section
 * headers, swatch/icon/button labels. It NEVER restyles real component
 * classes (.dp-btn, .newspaper-card, .digiprensa-badge, .dp-single__*, etc.)
 * so every rendered sample keeps its real, unmodified production styling.
 *
 * Uses the theme's own --dp-* tokens for the guide's chrome so the guide
 * itself feels consistent with the design system it documents.
 *
 * @package understrap
 */

/* ======================================================================== */
/* Page shell                                                                */
/* ======================================================================== */
.dp-guide {
	max-width: var(--dp-max, 1200px);
	margin: 0 auto;
	padding: 2.5rem var(--digiprensa-content-padding, 20px) 5rem;
}

.dp-guide__intro {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--dp-border);
}

.dp-guide__eyebrow {
	font-family: var(--dp-font-mono);
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--dp-global);
	margin: 0 0 .5rem;
}

.dp-guide__title {
	font-family: var(--dp-font-display);
	color: var(--dp-ink);
	margin: 0 0 .75rem;
}

.dp-guide__lead {
	font-family: var(--dp-font-body);
	color: var(--dp-ink-gray);
	max-width: 62ch;
	line-height: 1.6;
	margin: 0;
}

/* ======================================================================== */
/* Sections                                                                  */
/* ======================================================================== */
.dp-guide__section {
	margin-bottom: 4rem;
}

.dp-guide__section-title {
	font-family: var(--dp-font-display);
	color: var(--dp-ink);
	margin: 0 0 .35rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid var(--dp-ink);
}

.dp-guide__section-desc {
	font-family: var(--dp-font-body);
	color: var(--dp-ink-gray);
	font-size: .92rem;
	max-width: 70ch;
	margin: .75rem 0 1.5rem;
	line-height: 1.5;
}

.dp-guide__section-desc code,
.dp-guide__lead code {
	font-family: var(--dp-font-mono);
	background: var(--dp-paper);
	border: 1px solid var(--dp-border);
	border-radius: 3px;
	padding: .05rem .35rem;
	font-size: .85em;
}

.dp-guide__variant-title {
	font-family: var(--dp-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--dp-ink);
	margin: 2rem 0 1rem;
}

.dp-guide__variant-title code {
	font-family: var(--dp-font-mono);
	font-weight: 400;
	color: var(--dp-ink-gray);
}

.dp-guide__empty {
	font-family: var(--dp-font-body);
	color: var(--dp-ink-gray);
	font-style: italic;
}

/* ======================================================================== */
/* 1. Paleta                                                                 */
/* ======================================================================== */
.dp-guide__swatch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--dp-gap, 1.5rem);
}

.dp-guide__swatch {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1rem;
	background: var(--dp-surface);
	box-shadow: var(--dp-shadow);
}

.dp-guide__swatch-chip {
	display: block;
	width: 100%;
	height: 64px;
	border-radius: var(--dp-radius);
	border: 1px solid var(--dp-border);
	margin-bottom: .5rem;
}

.dp-guide__swatch-label {
	font-family: var(--dp-font-body);
	font-weight: 600;
	color: var(--dp-ink);
	font-size: .92rem;
}

.dp-guide__swatch-var {
	font-family: var(--dp-font-mono);
	font-size: .75rem;
	color: var(--dp-global);
}

.dp-guide__swatch-value {
	font-family: var(--dp-font-mono);
	font-size: .75rem;
	color: var(--dp-ink-gray);
	text-transform: uppercase;
}

.dp-guide__swatch-desc {
	font-family: var(--dp-font-body);
	font-size: .8rem;
	color: var(--dp-ink-gray);
}

/* ======================================================================== */
/* 2. Tipografía                                                             */
/* ======================================================================== */
.dp-guide__type-families {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--dp-gap, 1.5rem);
	margin-bottom: 2rem;
}

.dp-guide__type-family {
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1rem;
	background: var(--dp-surface);
}

.dp-guide__type-label {
	display: block;
	font-family: var(--dp-font-mono);
	font-size: .75rem;
	color: var(--dp-ink-gray);
	margin-bottom: .5rem;
}

.dp-guide__type-label code {
	font-family: var(--dp-font-mono);
	color: var(--dp-global);
}

.dp-guide__type-sample {
	font-size: 1.5rem;
	margin: 0;
	color: var(--dp-ink);
}

.dp-guide__type-scale {
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1.5rem;
	background: var(--dp-surface);
}

.dp-guide__type-scale > * + * {
	margin-top: 1rem;
}

.dp-guide__eyebrow-sample {
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--dp-ink-gray);
}

/* ======================================================================== */
/* 3. Botones · 4. Badges                                                    */
/* ======================================================================== */
.dp-guide__button-row,
.dp-guide__badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dp-gap, 1.5rem);
}

.dp-guide__button-sample,
.dp-guide__badge-sample {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .5rem;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1.25rem;
	background: var(--dp-surface);
}

.dp-guide__button-code {
	font-family: var(--dp-font-mono);
	font-size: .75rem;
	color: var(--dp-ink-gray);
}

/* ======================================================================== */
/* 5. Iconos                                                                 */
/* ======================================================================== */
.dp-guide__icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: var(--dp-gap, 1.5rem);
}

.dp-guide__icon-sample {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1rem .5rem;
	background: var(--dp-surface);
	text-align: center;
}

.dp-guide__icon-glyph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--dp-ink);
}

.dp-guide__icon-glyph svg {
	width: 24px;
	height: 24px;
	display: block;
}

.dp-guide__icon-name {
	font-family: var(--dp-font-mono);
	font-size: .7rem;
	color: var(--dp-ink-gray);
	word-break: break-all;
}

/* ======================================================================== */
/* 6. Tarjetas de periódico                                                  */
/* ======================================================================== */
.dp-guide__card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--dp-gap, 1.5rem);
	margin-bottom: 1rem;
}

.dp-guide__card-list {
	max-width: 640px;
}

/* ======================================================================== */
/* 7. Ficha (elementos)                                                      */
/* ======================================================================== */
.dp-guide__ficha-sample {
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1.5rem;
	background: var(--dp-surface);
	max-width: 640px;
	margin-bottom: 1rem;
}

/* .dp-single__eyebrow / __title / __claim / __metastrip render light text —
   they are designed to sit on the navy hero background in production. */
.dp-guide__ficha-sample--dark {
	background: var(--dp-ink);
	border-color: var(--dp-ink);
}
