/*
 * VIP system layer. One copy of what 29 block stylesheets each carry today.
 *
 * The button system lives here as REAL CLASSES. It was a SCSS mixin library,
 * so `@include btn.primary` emitted the whole rule body at every call site -
 * 32 call sites across 9 blocks, all shipping duplicate bytes.
 *
 * Consumes the --vip-* and --brand-* tokens from brand.php. Cosmetic only;
 * anything that decides geometry or visibility belongs in
 * inc/critical-layout.php.
 *
 * The button rules are a faithful translation of
 * src/shared/button/_buttons.scss, declaration for declaration, so moving a
 * block onto these classes is a swap and not a redesign. That includes the
 * `!important` on colour: Astra's `.entry-content a` rules out-specify a plain
 * class, and the mixins have always carried it. Timing is the mixins' real
 * 220ms cubic-bezier(0.2,0.7,0.2,1), not the --vip-dur-* primitives, which no
 * button has ever used - matching the source of truth matters more here than
 * spending a token.
 *
 * Colour tokens are mapped from brand.json by VALUE, not by name:
 *   navy   #0A1633 = --brand-ground-dark   (NOT --brand-action-fill)
 *   blue   #2E69FA = --brand-action-fill
 *   deep   #1B3FA0 = --brand-action-hover
 *   grey   #E9E9E9 = --brand-ground-band
 */

/* -- layout utilities -------------------------------------------------- */

.u-container { max-width: var(--vip-container-wide, 1280px); margin-inline: auto; }
.u-container--mid  { max-width: var(--vip-container-mid, 1200px); }
.u-container--text { max-width: var(--vip-container-text, 820px); }

/* Full-bleed escape. Resolves to ~0 when the container already fills the
   viewport, which the critical layout contract guarantees. */
.u-full-bleed { width: 100vw; margin-left: calc(-50vw + 50%); max-width: 100vw; }

/* -- button system ----------------------------------------------------- */

.btn {
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	gap: 10px;
	padding: 13px 30px;
	border: 1px solid transparent;
	border-radius: var(--vip-radius-pill, 999px);
	font-family: 'Barlow', 'Montserrat', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
	transition: all 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.btn--primary { background: var(--brand-ground-dark, #0A1633); color: var(--brand-ground, #FFF) !important; }
.btn--primary:hover { background: var(--brand-action-fill, #2E69FA); color: #FFFFFF !important; }

.btn--secondary { background: var(--brand-action-fill, #2E69FA); color: #FFFFFF !important; }
.btn--secondary:hover { background: var(--brand-action-hover, #1B3FA0); color: #FFFFFF !important; }

.btn--outline { background: transparent; color: var(--brand-ground-dark, #0A1633) !important; border-color: var(--brand-ground-dark, #0A1633); }
.btn--outline:hover { background: var(--brand-ground-dark, #0A1633); color: #FFF !important; }

.btn--outline-on-dark { background: transparent; color: #FFF !important; border-color: #FFF; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06); }
.btn--outline-on-dark:hover { background: rgba(255, 255, 255, 0.08); }

.btn--text {
	background: transparent;
	color: var(--brand-ground-dark, #0A1633) !important;
	padding: 10px 6px;
	font-weight: 700;
	letter-spacing: 0.1em;
	box-shadow: none;
}
.btn--text:hover { color: var(--brand-action-hover, #1B3FA0) !important; background: transparent; }

/* Content-link style pill: grey ground, 17px text, sentence case. */
.btn--small {
	padding: 10px 15px;
	font-size: 17px;
	line-height: 17px;
	background: var(--brand-ground-band, #E9E9E9) !important;
	color: var(--brand-ink, #111) !important;
	border-color: transparent !important;
	box-shadow: none !important;
	text-transform: none;
}
@media (max-width: 600px) {
	.btn--small { padding: 5px 10px; font-size: 15px; line-height: normal; }
}

/* Tighter vertical padding because the 28px CaretCircleRight icon is taller. */
.btn--with-icon-right { padding-top: 15px; padding-bottom: 15px; gap: 20px; }
