/*
 * Fitness Living Magazine — newsletter utility bar (inc/flm-subscribe-cta.php).
 * A quiet strip above the masthead: a small gold label on the left, a fine
 * gold hairline, and the "Get New Fitness Stories by Email →" button on the right,
 * set on the same edges as the masthead and the page below it. Deep editorial
 * brown button, white lettering, fine warm-gold inner rule — distinct from
 * the charcoal Get Featured button.
 */

/* ---------- The button ---------- */

.flm-sub-cta {
	align-items: center;
	background: #3d2617;
	border: 1px solid #3d2617;
	border-radius: 0;
	box-shadow: inset 0 0 0 2px #3d2617, inset 0 0 0 3px rgba(212, 177, 110, .62);
	box-sizing: border-box;
	color: #fff !important;
	display: inline-flex;
	flex: 0 0 auto;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 12.5px;
	font-style: normal;
	font-weight: 700;
	gap: 10px;
	justify-content: center;
	letter-spacing: .12em;
	line-height: 1;
	min-height: 42px;
	padding: 0 22px;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color .2s ease, box-shadow .2s ease;
	white-space: nowrap;
}

.flm-sub-cta__label {
	color: inherit !important;
}

/* The shorter wording is used only on narrow phones (below). */
.flm-sub-cta__short {
	display: none;
}

.flm-sub-cta__arrow {
	color: #d8b673;
	display: inline-block;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	transition: transform .2s ease;
}

.flm-sub-cta:hover,
.flm-sub-cta:focus-visible {
	background: #2b1a0f;
	border-color: #2b1a0f;
	box-shadow: inset 0 0 0 2px #2b1a0f, inset 0 0 0 3px rgba(222, 190, 126, .9);
	color: #fff !important;
}

.flm-sub-cta:hover .flm-sub-cta__arrow,
.flm-sub-cta:focus-visible .flm-sub-cta__arrow {
	transform: translateX(2px);
}

.flm-sub-cta:focus-visible {
	outline: 2px solid #8d692a;
	outline-offset: 3px;
}

/* ---------- The strip: label · hairline · button ---------- */

.flm-sub-strip {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	gap: 18px;
}

.flm-sub-strip__label {
	color: #6b4f1d;
	flex: 0 0 auto;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 13.5px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: .18em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.flm-sub-strip__rule {
	background: rgba(152, 115, 52, .5);
	flex: 1 1 auto;
	height: 1px;
	min-width: 24px;
}

/* ---------- Desktop (1025px and up): the bar above the masthead ----------
   Same edges as the masthead rules below it: 1280px at most on articles and
   pages; on the homepage 32px in from the window, 1440px at most. */

.flm-sub-bar {
	display: none;
}

@media (min-width: 1025px) {
	.flm-sub-bar {
		background: #fff;
		display: block;
		position: relative;
		z-index: 2;
	}

	.flm-sub-bar .flm-sub-strip {
		margin: 0 auto;
		max-width: 1280px;
		padding: 14px 0 11px;
		width: calc(100% - 40px);
	}

	.flm-sub-bar--home .flm-sub-strip {
		max-width: 1440px;
		width: calc(100% - 64px);
	}
}

/* ---------- Tablet and phone (1024px and below) ----------
   Homepage: the same bar at the top of the page, above the masthead.
   Other pages: a row directly under Foxiz's mobile logo bar. */

.flm-sub-mobile {
	display: none;
}

@media (max-width: 1024px) {
	.flm-sub-bar--home {
		background: #fff;
		display: block;
	}

	.flm-sub-bar--home .flm-sub-strip {
		padding: 14px 18px 11px;
	}

	#header-mobile .flm-sub-mobile {
		background: #fff;
		border-top: 1px solid #e7e3dc;
		box-sizing: border-box;
		display: block;
		width: 100%;
	}

	#header-mobile .flm-sub-mobile .flm-sub-strip {
		padding: 14px 20px 11px;
	}

	.flm-sub-bar--home .flm-sub-cta,
	#header-mobile .flm-sub-mobile .flm-sub-cta {
		font-size: 12px;
		letter-spacing: .1em;
		min-height: 44px;
		padding: 0 18px;
	}

	.flm-sub-bar--home .flm-sub-strip__label,
	#header-mobile .flm-sub-mobile .flm-sub-strip__label {
		font-size: 13px;
		letter-spacing: .14em;
	}
}

/* Phones: the button alone, centred, on one line, never below 12px. */
@media (max-width: 767px) {
	.flm-sub-bar--home .flm-sub-strip,
	#header-mobile .flm-sub-mobile .flm-sub-strip {
		justify-content: center;
		padding-left: 14px;
		padding-right: 14px;
	}

	.flm-sub-bar--home .flm-sub-strip__label,
	.flm-sub-bar--home .flm-sub-strip__rule,
	#header-mobile .flm-sub-mobile .flm-sub-strip__label,
	#header-mobile .flm-sub-mobile .flm-sub-strip__rule {
		display: none;
	}

	.flm-sub-bar--home .flm-sub-cta,
	#header-mobile .flm-sub-mobile .flm-sub-cta {
		font-size: 12.5px;
		letter-spacing: .09em;
		max-width: 100%;
		padding: 0 18px;
	}
}

/* Narrow phones: "Get Fitness Stories by Email →", same size. */
@media (max-width: 399px) {
	.flm-sub-cta__long {
		display: none;
	}

	.flm-sub-cta__short {
		display: inline;
	}

	.flm-sub-bar--home .flm-sub-cta,
	#header-mobile .flm-sub-mobile .flm-sub-cta {
		gap: 9px;
		letter-spacing: .08em;
		padding: 0 16px;
	}
}

/* The narrowest phones (under 360px): 12px, still one line. */
@media (max-width: 359px) {
	.flm-sub-bar--home .flm-sub-strip,
	#header-mobile .flm-sub-mobile .flm-sub-strip {
		padding-left: 12px;
		padding-right: 12px;
	}

	.flm-sub-bar--home .flm-sub-cta,
	#header-mobile .flm-sub-mobile .flm-sub-cta {
		font-size: 12px;
		gap: 8px;
		letter-spacing: .06em;
		padding: 0 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flm-sub-cta,
	.flm-sub-cta__arrow {
		transition: none;
	}
}
