/* Fast Tracks redesign - header.
 * Source of truth: projects/front-page/reference/g1c/G1c-header-all-dark.dc.html (the frame's @container
 * numbers are @media here). Colours/shadows/rings come from tokens.css only.
 * Every rule is scoped by .ft-hd, .ft-mh, .ft-subbar or .ft-rows so nothing leaks to other pages and so
 * the rules beat GeneratePress's bare a / button / input / h2 rules by specificity, not !important.
 * :is(...) counts as its most specific argument, so ":is(.ft-hd, .ft-mh) .x" weighs the same as ".ft-hd .x".
 */

/* ---------- shared base ---------- */
:is(.ft-hd, .ft-mh, .ft-subbar) {
	font-family: var(--font-body);
	line-height: normal;
}

.ft-hd,
.ft-mh {
	position: sticky;
	top: 0;
	z-index: 20;
	transition: box-shadow var(--dur-fast) var(--ease-standard);
}

/* The header's shadow shows only once the page is scrolled (header.js puts .ft-scrolled on <html>). At the very
   top of the page it would fall on the banner strips and make the gap above them look thinner than the gap below. */
.ft-scrolled :is(.ft-hd, .ft-mh) {
	box-shadow: var(--shadow-md);
}

/* WordPress admin bar: 32px; 46px up to 782px; not fixed (so no offset) under 600px. */
.admin-bar .ft-hd,
.admin-bar .ft-mh {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ft-hd,
	.admin-bar .ft-mh {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .ft-hd,
	.admin-bar .ft-mh {
		top: 0;
	}
}

.ft-hd {
	display: block;
}

.ft-mh,
.ft-subbar {
	display: none;
}

:is(.ft-hd, .ft-mh) .ft-headband {
	background-color: var(--brown-primary);
	background-image: url(img/header-texture.jpg);
	background-size: cover;
	background-position: center;
	border-bottom: 3px solid var(--brass-400);
}

/* ---------- brand (crest + name) ---------- */
:is(.ft-hd, .ft-mh) .ft-brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

:is(.ft-hd, .ft-mh) .ft-brand-crest {
	display: block;
	height: 64px;
	width: auto;
	max-width: none;
	filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--espresso-950) 50%, transparent));
}

:is(.ft-hd, .ft-mh) .ft-brand-text {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

:is(.ft-hd, .ft-mh) .ft-brand-name {
	font-size: 22px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-on-inverse);
}

:is(.ft-hd, .ft-mh) .ft-brand-line {
	font-size: 14px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brass-400);
}

/* ---------- computer header, row 1 ---------- */
.ft-hd .ft-bar1 {
	padding-top: 5px;
	padding-bottom: 5px;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px 22px;
}

.ft-hd .ft-acctnav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	column-gap: 18px;
}

.ft-hd .ft-right {
	flex: 0 0 auto;
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

:is(.ft-hd, .ft-mh) .ft-nav2 {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	color: var(--text-on-inverse);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
	transition: color 0.15s ease-out;
}

:is(.ft-hd, .ft-mh) .ft-nav2:hover {
	color: var(--brass-400);
	text-decoration: none;
}

/* The outline badge: .ft-btn--outline gives the frame's box; these add the frame's extras. */
.ft-hd .ft-tt {
	flex: 0 0 auto;
	margin-right: 6px;
}

:is(.ft-hd, .ft-mh) .ft-tt-text {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	line-height: 1.15;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ft-mh .ft-tt {
	flex: 0 0 auto;
	height: 44px;
	margin: 0;
}

/* Facebook / YouTube circles */
:is(.ft-hd, .ft-mh) .ft-round2 {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 2px solid var(--brass-400);
	color: var(--brass-400);
	text-decoration: none;
	transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

:is(.ft-hd, .ft-mh) .ft-round2:hover {
	background: var(--brass-400);
	color: var(--espresso-900);
}

:is(.ft-hd, .ft-mh) .ft-round2:focus-visible {
	outline: none;
	box-shadow: var(--ring);
}

/* Cart: the plain link, or the box around CheckoutWC's own cart */
:is(.ft-hd, .ft-mh) .ft-cart2 {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
	background: var(--brass-400);
	color: var(--espresso-900);
	text-decoration: none;
	transition: background-color 0.15s ease-out;
}

.ft-hd .ft-cart2 {
	margin-left: 4px;
}

.ft-mh .ft-cart2 {
	width: 44px;
	height: 44px;
}

:is(.ft-hd, .ft-mh) .ft-cart2:hover,
:is(.ft-hd, .ft-mh) .ft-cart2:focus-visible {
	color: var(--espresso-900);
}

:is(.ft-hd, .ft-mh) .ft-cart2:hover {
	background: var(--brass-600);
}

:is(.ft-hd, .ft-mh) .ft-cart2:focus-visible {
	outline: none;
	box-shadow: var(--ring);
}

/* Cart count: a small round badge on the button's top-right corner (Ron, 2026-11-25; no drawing).
   CheckoutWC prints the number beside its icon and hides it with .cfw-hidden while the cart is empty. */
:is(.ft-hd, .ft-mh) .ft-cart2--cfw {
	position: relative;
}

/* CheckoutWC's wrapper is position:relative; let the badge anchor to the button instead. */
:is(.ft-hd, .ft-mh) .ft-cart2--cfw .cfw-side-cart-quantity-wrap {
	position: static;
}

:is(.ft-hd, .ft-mh) .ft-cart2--cfw .cfw-side-cart-quantity:not(.cfw-hidden) {
	position: absolute;
	top: -7px;
	right: -7px;
	box-sizing: border-box;
	min-width: 20px;
	height: 20px;
	margin: 0;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-pill);
	background: var(--espresso-900);
	box-shadow: 0 0 0 2px var(--brass-400);
	color: var(--text-on-inverse);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 1;
	pointer-events: none;
}

/* ---------- computer header, row 2 ---------- */
.ft-hd .ft-row2 {
	background: var(--surface-inverse);
	border-bottom: 4px solid var(--brass-400);
}

.ft-hd .ft-row2-in {
	padding-top: 10px;
	padding-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.ft-hd .ft-nav {
	color: var(--text-on-inverse);
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 13px 0;
	white-space: nowrap;
}

.ft-hd .ft-nav:hover {
	color: var(--text-on-inverse);
	text-decoration: underline;
}

/* Brand button: shared.css draws it; keep its ink colour against GeneratePress's a:hover colour. */
:is(.ft-hd, .ft-subbar) .ft-btn:not(.ft-btn--outline),
:is(.ft-hd, .ft-subbar) .ft-btn:not(.ft-btn--outline):hover {
	color: var(--espresso-900);
	text-decoration: none;
}

/* ---------- search (both copies) ---------- */
:is(.ft-hd, .ft-subbar) .ft-search {
	position: relative;
	flex: 1 1 200px;
	min-width: 200px;
	display: flex;
	margin: 0;
	padding: 0;
}

:is(.ft-hd, .ft-subbar) .ft-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

:is(.ft-hd, .ft-subbar) .ft-search input.site-search-box,
:is(.ft-hd, .ft-subbar) .ft-search input.site-search-box:focus {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	box-sizing: border-box;
	height: 46px;
	margin: 0;
	padding: 0 44px 0 18px;
	border: 2px solid var(--brass-400);
	border-right: 0;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
	background: var(--white);
	color: var(--text-strong);
	box-shadow: none;
	outline: none;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}

:is(.ft-hd, .ft-subbar) .ft-search input.site-search-box:focus {
	box-shadow: var(--ring);
}

:is(.ft-hd, .ft-subbar) .ft-search input.site-search-box::-webkit-search-cancel-button {
	display: none;
}

:is(.ft-hd, .ft-subbar) .ft-sbtn {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 52px;
	height: 46px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--brass-400);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--brass-400);
	color: var(--espresso-900);
	cursor: pointer;
	font-size: 16px;
	line-height: normal;
	transition: background-color 0.15s ease-out;
}

:is(.ft-hd, .ft-subbar) .ft-sbtn:hover {
	background: var(--brass-600);
	color: var(--espresso-900);
}

:is(.ft-hd, .ft-subbar) .ft-sbtn:focus-visible {
	outline: none;
	box-shadow: var(--ring);
}

/* The type-ahead plugin adds its own clear button after the box. Its cream X is drawn for a dark box, so sit it
   inside our white box and draw the X in a dark ink through a mask. */
:is(.ft-hd, .ft-subbar) .ft-search .fts-clear {
	position: absolute;
	top: 5px;
	right: 56px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--text-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

:is(.ft-hd, .ft-subbar) .ft-search .fts-clear:hover,
:is(.ft-hd, .ft-subbar) .ft-search .fts-clear:focus {
	background: var(--text-strong);
}

/* ---------- account item ([account-menu] shortcode: today's markup, restyled) ---------- */
:is(.ft-hd, .ft-mh) .ft-acct h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 0;
	color: var(--text-on-inverse);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: normal;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s ease-out;
}

:is(.ft-hd, .ft-mh) .ft-acct h2:hover {
	color: var(--brass-400);
}

:is(.ft-hd, .ft-mh) .ft-acct h2 a {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-decoration: none;
}

:is(.ft-hd, .ft-mh) .ft-acct h2 a:hover {
	color: var(--brass-400);
	text-decoration: none;
}

/* Logged out: swap the site's icon font glyph for the frame's login arrow. Pages that load Font
   Awesome's script (e.g. /balance/) turn the <i> into an <svg class="svg-inline--fa">: hide that too. */
:is(.ft-hd, .ft-mh) .ft-acct h2 a :is(i, svg.svg-inline--fa) {
	display: none;
}

:is(.ft-hd, .ft-mh) .ft-acct h2 a::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Logged in: the name with a drop-down. Today's script shows/hides .dropdown-content. */
:is(.ft-hd, .ft-mh) .ft-acct .account-dropdown {
	position: relative;
	display: inline-block;
	margin: 0;
}

:is(.ft-hd, .ft-mh) .ft-acct .account-dropdown h2::after {
	content: none;
}

:is(.ft-hd, .ft-mh) .ft-acct .dropdown-content {
	min-width: 240px;
	margin-top: 0;
	padding: 0;
	background: var(--surface-card);
	border: var(--hairline);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: var(--shadow-md);
	text-align: left;
}

:is(.ft-hd, .ft-mh) .ft-acct .dropdown-content a {
	display: block;
	padding: 10px 20px;
	background: var(--surface-card);
	color: var(--text-strong);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
}

:is(.ft-hd, .ft-mh) .ft-acct .dropdown-content a:hover {
	background: var(--surface-raised);
	color: var(--brass-600);
}

:is(.ft-hd, .ft-mh) .ft-acct .dropdown-content a.active,
:is(.ft-hd, .ft-mh) .ft-acct .dropdown-content a.active:hover {
	background: var(--surface-sunken);
	color: var(--text-strong);
}

/* ---------- tablet / phone bar ---------- */
.ft-mh .ft-bar-m {
	box-sizing: border-box;
	padding: 8px clamp(16px, 4vw, 40px);
	display: flex;
	align-items: center;
	gap: 10px;
}

.ft-mh .ft-brand {
	flex: 0 1 auto;
	min-width: 0;
	gap: 10px;
}

.ft-mh .ft-brand-crest {
	height: 52px;
}

.ft-mh .ft-brand-name,
.ft-mh .ft-brand-line {
	white-space: nowrap;
}

.ft-mh .ft-spacer {
	flex: 1 1 auto;
}

.ft-mh .ft-mbtn {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--brass-400);
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--brass-400);
	cursor: pointer;
	font-size: 16px;
	line-height: normal;
	transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

.ft-mh .ft-mbtn:hover {
	background: var(--brass-400);
	color: var(--espresso-900);
}

.ft-mh .ft-mbtn:focus-visible {
	outline: none;
	box-shadow: var(--ring);
}

.ft-mh .ft-mbtn svg {
	display: block;
}

.ft-mh .ft-mbtn .ft-mbtn-x,
.ft-mh .ft-mbtn[aria-expanded="true"] .ft-mbtn-bars {
	display: none;
}

.ft-mh .ft-mbtn[aria-expanded="true"] .ft-mbtn-x {
	display: block;
}

/* ---------- the menu ---------- */
.ft-mh .ft-menu {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 4px clamp(16px, 4vw, 40px) 16px;
	background: var(--surface-inverse);
	border-bottom: 3px solid var(--brass-400);
}

.ft-mh .ft-menu[hidden] {
	display: none;
}

.ft-mh .ft-menu .ft-nav2 {
	gap: 10px;
	box-sizing: content-box; /* the frame's rows are 50px plus the 1px line; the theme's border-box made them 50 */
	min-height: 50px;
	padding: 0;
	font-size: 16px;
	border-bottom: 1px solid var(--border-inverse);
}

.ft-mh .ft-menu .ft-menu-first,
.ft-mh .ft-menu .ft-menu-first:hover {
	color: var(--brass-400);
}

.ft-mh .ft-menu .ft-acct {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 50px;
	border-bottom: 1px solid var(--border-inverse);
}

.ft-mh .ft-menu .ft-acct h2 {
	padding: 0;
	font-size: 16px;
}

.ft-mh .ft-menu .ft-acct .account-dropdown {
	display: block;
}

.ft-mh .ft-menu .ft-acct .dropdown-content {
	position: static;
	min-width: 0;
	margin-bottom: 10px;
	box-shadow: none;
}

.ft-mh .ft-menu .ft-m-phone {
	display: none;
}

.ft-mh .ft-menu-social {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
}

.ft-mh .ft-menu-social .ft-round2 {
	width: 44px;
	height: 44px;
}

/* ---------- the row under the bar ---------- */
.ft-subbar {
	box-sizing: border-box;
	padding: 10px clamp(16px, 4vw, 40px);
	background: var(--surface-inverse);
	border-bottom: 4px solid var(--brass-400);
}

.ft-subbar .ft-subbar-in {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ft-subbar .ft-btn {
	flex: 0 0 auto;
	box-sizing: border-box;
	display: inline-block;
	text-align: center;
	white-space: nowrap;
	font-size: 14px;
	padding: 14px 22px;
}

.ft-subbar .ft-search {
	flex: 1 1 auto;
	min-width: 0;
}

.ft-subbar .ft-search input.site-search-box,
.ft-subbar .ft-search input.site-search-box:focus {
	padding: 0 44px 0 16px;
}

/* Keyboard focus on the text links: the brand ring, as on the buttons. */
:is(.ft-hd, .ft-mh) :is(.ft-brand, .ft-nav, .ft-nav2, .ft-acct a):focus-visible {
	outline: none;
	border-radius: var(--radius-sm);
	box-shadow: var(--ring);
}

/* ---------- message strips under the header ----------
 * Spec: projects/front-page/specs/2026-11-24-header-banners-design.md (rounded strips, approved 2026-11-25).
 * One rounded strip per message: Tim's banners (.ft-row), the US discount strip and the "Your discount"
 * strip (.ft-you). Strips share a line when their text fits on one line; spare room is shared out, so every
 * line runs the full width. A strip that does not fit drops to the next line. The page below is pushed down.
 * US / Canada / outside-US strips carry snippet 259's .us-customers-only / .cad-customers-only /
 * .non-us-customers-only; it hides them (display:none !important) until it adds .us-verified / .cad-verified /
 * .non-us-verified to the strip itself, so a revealed strip simply falls back to the rules below.
 */
.ft-rows {
	/* Two darker rusts, for the rust strip's edge and its mouse-over: tokens.css has no rust darker than --danger. */
	--ft-rust-edge: #6E1C10;
	--ft-rust-over: #8A2617;

	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	/* Same left/right edges as the header (.ft-container: 1280px wide, centred, clamp() side padding).
	   The cream band stays full width; only the strips are held in (Ron, 2026-11-25). */
	padding: 6px calc(max(0px, (100% - 1280px) / 2) + clamp(16px, 4vw, 40px));
	background: var(--surface-page);
	font-family: var(--font-body);
	line-height: 1.35;
}

/* No strip to show (no banner for this visitor, country strips not revealed, no "Your discount" strip): no lane
   at all, so no empty cream band under the header. A "Your discount" strip (.ft-you without a country class)
   is only printed when it has text, so it always counts; the US discount strip (.ft-you.us-customers-only)
   counts once it is .us-verified, like a US banner. */
.ft-rows:not(:has(> :is(.ft-row:not(.us-customers-only, .cad-customers-only, .non-us-customers-only), .ft-you:not(.us-customers-only), .us-verified, .cad-verified, .non-us-verified))) {
	display: none;
}

.ft-rows .ft-row,
.ft-rows .ft-you {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 26px;
	margin: 0;
	padding: 3px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: var(--fw-semibold);
	text-align: center;
	text-decoration: none;
	overflow-wrap: break-word;
}

/* The four colours, each with a thin edge so it stands off the header and the page.
   Hover/focus repeat the colour so GeneratePress's a:hover colour never shows. */
.ft-rows .ft-row--brass,
.ft-rows .ft-row--brass:is(:hover, :focus) {
	background: var(--brass-400);
	box-shadow: 0 0 0 1px var(--brass-700), var(--shadow-sm);
	color: var(--text-on-brand);
}

.ft-rows .ft-row--espresso,
.ft-rows .ft-row--espresso:is(:hover, :focus) {
	background: var(--espresso-900);
	box-shadow: 0 0 0 1px var(--brass-400), var(--shadow-sm);
	color: var(--text-on-inverse);
}

.ft-rows .ft-row--cream,
.ft-rows .ft-row--cream:is(:hover, :focus) {
	background: var(--surface-raised);
	box-shadow: 0 0 0 1px var(--sand-500), var(--shadow-sm);
	color: var(--text-strong);
}

.ft-rows .ft-row--rust,
.ft-rows .ft-row--rust:is(:hover, :focus) {
	background: var(--danger);
	box-shadow: 0 0 0 1px var(--ft-rust-edge), var(--shadow-sm);
	color: var(--text-on-inverse);
}

.ft-rows .ft-row-go {
	font-weight: var(--fw-bold);
	text-decoration: underline;
	white-space: nowrap;
}

/* A banner with a link: the whole strip is the link. Mouse-over and keyboard focus turn it a shade darker
   (cream: warmer) and thicken the edge. */
.ft-rows a.ft-row {
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}

.ft-rows a.ft-row:is(:hover, :focus-visible) {
	outline: none;
	box-shadow: 0 0 0 2px var(--espresso-900), var(--shadow-md);
}

.ft-rows a.ft-row--brass:is(:hover, :focus-visible) {
	background: var(--brass-500);
}

.ft-rows a.ft-row--espresso:is(:hover, :focus-visible) {
	background: var(--espresso-600);
	box-shadow: 0 0 0 2px var(--brass-400), var(--shadow-md);
}

.ft-rows a.ft-row--cream:is(:hover, :focus-visible) {
	background: var(--brass-200);
}

.ft-rows a.ft-row--rust:is(:hover, :focus-visible) {
	background: var(--ft-rust-over);
}

/* US discount + Your discount: a cream strip, like a cream banner. */
.ft-rows .ft-you {
	background: var(--surface-raised);
	box-shadow: 0 0 0 1px var(--sand-500), var(--shadow-sm);
	color: var(--text-strong);
}

.ft-rows .ft-you a {
	color: var(--brass-700);
	font-weight: var(--fw-bold);
}

/* The US discount text is typed in Customer Discounts and may hold a paragraph: keep it one strip. */
.ft-rows .ft-you p {
	display: inline;
	margin: 0;
}

/* Phone (the header's 680px step): text wraps inside the strip, so the ends are less round. Tablet keeps the computer look. */
@media (max-width: 680px) {
	.ft-rows {
		padding: 6px 8px;
	}

	.ft-rows .ft-row,
	.ft-rows .ft-you {
		display: block;
		padding: 6px 16px;
		border-radius: 16px;
		font-size: 13px;
	}
}

/* ---------- breakpoints (the frame's container widths, as viewport widths) ---------- */
@media (max-width: 1240px) {
	.ft-hd .ft-d-social {
		display: none;
	}
}

@media (max-width: 1110px) {
	.ft-hd .ft-d-news {
		display: none;
	}
}

@media (max-width: 1000px) {
	.ft-hd {
		display: none;
	}

	.ft-mh,
	.ft-subbar {
		display: block;
	}
}

@media (max-width: 680px) {
	:is(.ft-mh, .ft-subbar) .ft-m-wide {
		display: none;
	}

	.ft-mh .ft-menu .ft-m-phone {
		display: flex;
	}

	.ft-mh .ft-m-crest {
		height: 44px;
	}

	.ft-mh .ft-m-name {
		font-size: 18px;
	}
}

@media (max-width: 400px) {
	.ft-mh .ft-m-crest {
		height: 40px;
	}

	.ft-mh .ft-m-name {
		font-size: 16px;
	}
}

/* ---------- product page title bar (GP Element 153697 "Product Header", fasttracks views/product/title.php) ----------
 * The fasttracks plugin gives the bar a 275px minimum height on computers (frontend.css div.product-title), so
 * every product's bar was 275px however short its title. Drop the minimum: a one-line title gives about 200px
 * (Ron, 2026-11-25). Tablet and phone already have no minimum. Gift card (Element 157222) is not affected.
 */
body.single-product div.product-title {
	min-height: 0;
}
