/**
 * Text Block — Styles
 *
 * PHASE 4 — BLOCK SYSTEM (ATOMS ONLY). TOKEN-ONLY STYLING.
 *
 * No [data-atb-section="..."] selector appears anywhere in this file.
 * The nested p/a rules target descendant elements that text.php's own
 * wpautop()/wp_kses_post() output can produce — they are still scoped
 * under .atb-text, not bare global element selectors.
 */

.atb-text {
	font-family: var(--atb-font-family-base, sans-serif);
	color: var(--atb-color-text, #171717);
	line-height: var(--atb-line-height-normal, 1.5);
}

.atb-text p {
	margin: 0 0 var(--atb-space-4, 1rem) 0;
}

.atb-text p:last-child {
	margin-bottom: 0;
}

.atb-text a {
	color: var(--atb-color-primary, #2563eb);
	text-decoration: underline;
}

.atb-text a:hover {
	color: var(--atb-color-primary-dark, #1d4ed8);
}

/* Sizes */

.atb-text--sm {
	font-size: var(--atb-font-size-sm, 0.875rem);
}

.atb-text--md {
	font-size: var(--atb-font-size-base, 1rem);
}

.atb-text--lg {
	font-size: var(--atb-font-size-lg, 1.125rem);
}

/* Alignment */

.atb-text--align-left {
	text-align: left;
}

.atb-text--align-center {
	text-align: center;
}

.atb-text--align-right {
	text-align: right;
}
