/* cms-text-block.css v1.0.4 */
/* 1.0.3: all colors, fonts and sizes use corsetmaking.css :root tokens (no fallbacks), per CMS Flex Component Standards 2026-10-28.
   Requires corsetmaking.css with Design Tokens Pass 2 (b48) - --btn-gold-*, --surface-subtle, --focus-ring.
   Free-entry hex fields (icon color, border color, background color) are content settings output inline by the template; the CSS defaults below apply when they are blank. */

/* ==========================================================================
   CMS Text Block
   ========================================================================== */

.cms-text-block {
	box-sizing: border-box;
	width: 100%;
}

.cms-text-block__inner {
	display: block;
	box-sizing: border-box;
}

/* Width variants */
.cms-text-block--width-full .cms-text-block__inner {
	width: 100%;
}

.cms-text-block--width-medium .cms-text-block__inner {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.cms-text-block--width-narrow .cms-text-block__inner {
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* 1.0.3: left-aligned widths - left edge lines up with the page H1 */
.cms-text-block--width-medium-left .cms-text-block__inner {
	max-width: 800px;
	margin-left: 0;
	margin-right: auto;
}

.cms-text-block--width-narrow-left .cms-text-block__inner {
	max-width: 600px;
	margin-left: 0;
	margin-right: auto;
}

/* Padding */
.cms-text-block--pad-small .cms-text-block__inner {
	padding: 15px 20px;
}

.cms-text-block--pad-medium .cms-text-block__inner {
	padding: 30px 20px;
}

.cms-text-block--pad-large .cms-text-block__inner {
	padding: 60px 20px;
}

/* Text alignment */
.cms-text-block--align-center {
	text-align: center;
}

.cms-text-block--align-right {
	text-align: right;
}

/* Border variants (decorative - color can be overridden by the Border Color field) */
.cms-text-block--border-solid {
	border: 2px solid var(--brand-gold-accent);
}

.cms-text-block--border-rounded {
	border: 2px solid var(--brand-gold-accent);
	border-radius: 8px;
}

/* ==========================================================================
   Box - Callout (1.0.3)
   Matches content-page-notice: light panel, optional purple left border.
   ========================================================================== */

.cms-text-block--box-callout .cms-text-block__inner {
	background-color: var(--surface-subtle);
	border-radius: 4px;
}

/* Callout always needs inner padding, even when Padding is set to None */
.cms-text-block--box-callout:not(.cms-text-block--pad-small):not(.cms-text-block--pad-medium):not(.cms-text-block--pad-large) .cms-text-block__inner {
	padding: 15px 20px;
}

.cms-text-block--box-accent .cms-text-block__inner {
	border-left: 4px solid var(--brand-purple);
	border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   Icon layout - two-column flex when icon present
   Icons are decorative (aria-hidden) - the heading carries the meaning.
   ========================================================================== */

.cms-text-block--has-icon .cms-text-block__inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	gap: 20px;
}

.cms-text-block__icon {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	color: var(--brand-gold-accent);
	padding-top: 4px;
}

.cms-text-block__icon svg {
	width: 40px;
	height: 40px;
	display: block;
}

.cms-text-block--has-icon .cms-text-block__content {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
}

/* ==========================================================================
   Heading styles - same scale as cms-product-grid 1.0.9; bold is 600
   ========================================================================== */

.cms-text-block__heading {
	margin-top: 0;
	margin-bottom: 12px;
	color: var(--text-body);
	font-weight: 600;
}

/* Page Title - Crimson Text 35 (30 mobile) */
.cms-text-block__heading--xl {
	font-family: var(--font-accent-family);
	font-size: var(--font-size-35);
	line-height: 1.2;
}

/* Section Title - Crimson Text 25 (20 mobile) */
.cms-text-block__heading--large {
	font-family: var(--font-accent-family);
	font-size: var(--font-accent-size-md);
	line-height: 1.25;
}

/* Content Header - Montserrat 20 (18 mobile), matches h2.content-page-header */
.cms-text-block__heading--medium {
	font-family: var(--font-heading-family);
	font-size: var(--font-heading-size-md);
	line-height: 1.3;
}

/* Label / Small - Montserrat 14 uppercase */
.cms-text-block__heading--small {
	font-family: var(--font-ui-family);
	font-size: var(--font-size-14);
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cms-text-block__heading a {
	color: inherit;
	text-decoration: none;
}

.cms-text-block__heading a:hover,
.cms-text-block__heading a:focus {
	color: var(--link-hover);
	text-decoration: underline;
}

/* ==========================================================================
   Body text - body copy 16
   ========================================================================== */

.cms-text-block__body {
	font-family: var(--font-primary);
	font-size: var(--font-size-16);
	color: var(--brand-charcoal);
	line-height: 1.7;
}

.cms-text-block__body p {
	margin-top: 0;
	margin-bottom: 14px;
}

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

.cms-text-block__body b,
.cms-text-block__body strong {
	font-weight: 600;
}

.cms-text-block__body a {
	color: var(--link-color);
	text-decoration: underline;
}

.cms-text-block__body a:hover,
.cms-text-block__body a:focus {
	color: var(--link-hover);
}

/* ==========================================================================
   Text Style - Byline (1.0.3)
   e.g. "By Amy - January 2015" under the page title: 14px muted, no top padding
   ========================================================================== */

.cms-text-block--style-byline .cms-text-block__inner {
	padding-top: 0;
}

.cms-text-block--style-byline .cms-text-block__body {
	font-size: var(--font-size-14);
	color: var(--text-muted);
	line-height: 1.5;
}

/* ==========================================================================
   Text color options (chosen manually in Background > Text Color)
   ========================================================================== */

/* Light - white text for dark backgrounds */
.cms-text-block--color-light,
.cms-text-block--color-light .cms-text-block__heading,
.cms-text-block--color-light .cms-text-block__body,
.cms-text-block--color-light .cms-text-block__body p,
.cms-text-block--color-gold-dark .cms-text-block__body,
.cms-text-block--color-gold-dark .cms-text-block__body p {
	color: var(--color-white);
	text-shadow: 2px 2px 1px var(--color-black);
}

.cms-text-block--color-light .cms-text-block__body a,
.cms-text-block--color-light .cms-text-block__heading a:hover,
.cms-text-block--color-light .cms-text-block__heading a:focus,
.cms-text-block--color-gold-dark .cms-text-block__body a {
	color: var(--color-white);
	text-decoration: underline;
}

.cms-text-block--color-light .cms-text-block__body a:hover,
.cms-text-block--color-light .cms-text-block__body a:focus,
.cms-text-block--color-gold-dark .cms-text-block__body a:hover,
.cms-text-block--color-gold-dark .cms-text-block__body a:focus {
	color: var(--color-white);
	text-decoration: none;
}

/* Gold heading (on white) - accessible gold text, white backgrounds only */
.cms-text-block--color-gold .cms-text-block__heading {
	color: var(--brand-gold-text);
}

/* Gold heading on a gray Callout box would fail contrast - use body text color there */
.cms-text-block--box-callout.cms-text-block--color-gold .cms-text-block__heading {
	color: var(--text-body);
}

/* Gold heading, light text (dark background) - brighter gold reads on dark */
.cms-text-block--color-gold-dark .cms-text-block__heading {
	color: var(--brand-gold-accent);
	text-shadow: 2px 2px 1px var(--color-black);
}

/* ==========================================================================
   CTA button - gold style (--btn-gold-* pair), 16
   ========================================================================== */

.cms-text-block__cta {
	margin-top: 20px;
}

.cms-text-block__button {
	display: inline-block;
	box-sizing: border-box;
	padding: 10px 24px;
	background-color: var(--btn-gold-bg);
	border: 1px solid var(--btn-gold-bg);
	color: var(--btn-gold-text);
	font-family: var(--font-primary);
	font-size: var(--font-size-16);
	font-weight: 600;
	text-decoration: none;
	text-shadow: none;
	cursor: pointer;
	-webkit-transition: background-color 0.2s ease, color 0.2s ease;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cms-text-block__button:hover,
.cms-text-block__button:focus {
	background-color: var(--btn-gold-hover-bg);
	border-color: var(--btn-gold-hover-bg);
	color: var(--btn-gold-hover-text);
	text-decoration: none;
}

/* ==========================================================================
   Color presets (1.0.4)
   Chosen in the Icon / Border / Background Color dropdowns. "Custom" (and
   blocks saved before 1.0.4) use the hex field as an inline style instead.
   Kept after the base border / icon rules so these win at equal specificity.
   ========================================================================== */

/* Background (Background Type = Color) - pair with the Text Color shown */
.cms-text-block--bg-subtle {
	background-color: var(--surface-subtle);      /* Dark text */
}

.cms-text-block--bg-muted {
	background-color: var(--surface-muted);       /* Dark text */
}

.cms-text-block--bg-white {
	background-color: var(--color-white);         /* Dark or Gold heading (on white) */
}

.cms-text-block--bg-purple {
	background-color: var(--brand-purple);        /* Light or Gold heading, light text */
}

.cms-text-block--bg-charcoal {
	background-color: var(--brand-charcoal);      /* Light; gold heading only at large sizes */
}

.cms-text-block--bg-brown {
	background-color: var(--brand-gold-ink);      /* Light or Gold heading, light text */
}

/* Border (Border = Solid or Rounded) */
.cms-text-block--border-color-gold {
	border-color: var(--brand-gold-accent);
}

.cms-text-block--border-color-purple {
	border-color: var(--brand-purple);
}

.cms-text-block--border-color-gray {
	border-color: var(--border-light);
}

.cms-text-block--border-color-charcoal {
	border-color: var(--brand-charcoal);
}

/* Icon (decorative) */
.cms-text-block__icon--gold {
	color: var(--brand-gold-accent);
}

.cms-text-block__icon--gold-dark {
	color: var(--brand-gold-text);
}

.cms-text-block__icon--purple {
	color: var(--brand-purple);
}

.cms-text-block__icon--charcoal {
	color: var(--brand-charcoal);
}

.cms-text-block__icon--white {
	color: var(--color-white);
}

/* Keyboard focus */
.cms-text-block a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	.cms-text-block__heading--xl {
		font-size: var(--font-size-30);
	}

	.cms-text-block__heading--large {
		font-size: var(--font-size-20);
	}

	.cms-text-block__heading--medium {
		font-size: var(--font-heading-size-sm);
	}

	.cms-text-block--has-icon .cms-text-block__inner {
		gap: 14px;
	}

	.cms-text-block__icon {
		width: 32px;
		height: 32px;
	}

	.cms-text-block__icon svg {
		width: 32px;
		height: 32px;
	}

	.cms-text-block--width-medium .cms-text-block__inner,
	.cms-text-block--width-narrow .cms-text-block__inner,
	.cms-text-block--width-medium-left .cms-text-block__inner,
	.cms-text-block--width-narrow-left .cms-text-block__inner {
		max-width: 100%;
	}

	/* 44px tap target */
	.cms-text-block__button {
		min-height: 44px;
	}
}
