/**
 * Shared utility classes. All theme classes use the `bst-` prefix.
 * See "Utility classes" in docs/design-system.md.
 */

/* Container: content up to --container wide, --gap padding outside it. */

.bst-container {
	box-sizing: border-box;
	max-width: calc(var(--container) + 2 * var(--gap));
	margin-right: auto;
	margin-left: auto;
	padding-right: var(--gap);
	padding-left: var(--gap);
}

/*
 * Main element of full-width templates (front page, reviews page; see
 * inc/layout.php). GeneratePress .site-content is a flex row; fill it.
 */

.bst-full-width {
	width: 100%;
}

/* Section rhythm */

.bst-section {
	padding-top: var(--section-y);
	padding-bottom: var(--section-y);
	background-color: var(--color-ivory);
}

.bst-section--sage {
	background-color: var(--color-sage);
}

/* The section padding sets the rhythm; drop the last element's margin. */
:where(.bst-section, .bst-section > .bst-container) > :last-child {
	margin-bottom: 0;
}

/* Eyebrow label above a section heading */

.bst-eyebrow {
	margin: 0 0 1.25em;
	color: var(--color-accent);
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

/* Italic text link ("Đọc thêm") */

.bst-link-italic {
	color: var(--color-forest);
	font-family: var(--font-heading);
	font-size: var(--text-link);
	font-style: italic;
	font-weight: 400;
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.bst-link-italic:hover,
.bst-link-italic:focus {
	color: var(--color-forest);
	text-decoration-color: var(--color-accent);
}
