/**
 * Component: Content Elements (Section Header, Badge, Tag, Divider)
 * ---------------------------------------------------------------------------
 * File: assets/css/components/content-elements.css
 * PHP: template-parts/components/section-header.php, gdq_badge(),
 *      gdq_tag(), gdq_divider() in inc/template-tags.php
 *
 * Note: the base .eyebrow text styling lives in typography.css (Sprint
 * 2A) since it's a typographic treatment; this file adds the structural
 * variants (underline, pill) and the section-header layout wrapper on
 * top of that, keeping the "what it looks like as text" vs. "how it's
 * structured as a component" split consistent with the rest of the theme.
 *
 * Accessibility: badges/tags are inline decorative chips, not links by
 * default — gdq_tag() renders a real <a> only when a URL is passed, never
 * fakes link behaviour with a <span> + JS.
 *
 * Responsive: section headers are single-column by default; the
 * '--center' alignment variant centers on all breakpoints (no responsive
 * change needed — centering doesn't need to differ by viewport).
 */

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.gdq-section-header {
	margin-bottom: var(--gdq-space-5);
}

.gdq-section-header--center {
	text-align: center;
}

.gdq-section-header__heading {
	margin-top: var(--gdq-space-2);
}

.gdq-section-header__accent {
	color: var(--gdq-color-accent);
}

.gdq-section-header__intro {
	margin-top: var(--gdq-space-3);
}

.gdq-section-header--center .gdq-section-header__intro {
	margin-inline: auto;
}

/* Underline eyebrow variant — short gold rule instead of a text label */
.gdq-section-header__underline {
	display: block;
	width: 48px;
	height: 3px;
	background-color: var(--gdq-color-accent);
	border-radius: var(--gdq-radius-pill);
}

.gdq-section-header--center .gdq-section-header__underline {
	margin-inline: auto;
}

/* Pill eyebrow variant — bordered capsule */
.gdq-section-header__eyebrow--pill {
	border: 1px solid var(--gdq-color-border);
	border-radius: var(--gdq-radius-pill);
	padding: var(--gdq-space-1) var(--gdq-space-3);
}

/* ==========================================================================
   BADGE — state chip (e.g. "Featured", "New")
   ========================================================================== */
.gdq-badge {
	display: inline-flex;
	align-items: center;
	font-size: var(--gdq-text-small-size);
	font-weight: 600;
	padding: 0.25em var(--gdq-space-2);
	border-radius: var(--gdq-radius-pill);
}

.gdq-badge--accent {
	background-color: var(--gdq-color-accent);
	color: var(--gdq-color-bg-primary);
}

.gdq-badge--neutral {
	background-color: var(--gdq-color-bg-surface-alt);
	color: var(--gdq-color-text-heading);
	border: 1px solid var(--gdq-color-border);
}

/* ==========================================================================
   TAG — category label, outline style
   ========================================================================== */
.gdq-tag {
	display: inline-flex;
	align-items: center;
	font-size: var(--gdq-text-small-size);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--gdq-color-text-heading);
	background-color: var(--gdq-color-bg-surface-alt);
	border: 1px solid var(--gdq-color-border);
	border-radius: var(--gdq-radius-sm);
	padding: 0.25em var(--gdq-space-2);
}

a.gdq-tag:hover,
a.gdq-tag:focus-visible {
	border-color: var(--gdq-color-accent);
	color: var(--gdq-color-accent);
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */
.gdq-divider {
	border: none;
	border-top: 1px solid var(--gdq-color-border);
	margin-block: var(--gdq-space-4);
}

.gdq-divider--labelled {
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--gdq-color-text-body);
	font-size: var(--gdq-text-small-size);
	margin-block: var(--gdq-space-4);
}

.gdq-divider--labelled::before,
.gdq-divider--labelled::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--gdq-color-border);
}

.gdq-divider__label {
	padding-inline: var(--gdq-space-3);
}
