/* Site header (phone/tablet bar: _items/nav_mobile_v2.php) and footer (_items/footer.php),
   loaded by _items/header.php. Launched 2026-12-02.
   Desktop (1024px and up) keeps the existing bar from ss.css. Below that the desktop bar
   no longer fits on one line, so the sticky phone/tablet bar takes over. */

.nmv-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- phone / tablet header ---------- */

.nmv, .nmv-drawer, .nmv-overlay { display:none; }

@media (max-width: 1023px) {

	.layout-v2 #nav,
	.layout-v2 .dropdown.main-nav { display:none !important; }

	.nmv {
		display:block;
		position:sticky;
		top:0;
		z-index:1004;
		background:#fff;
		box-shadow:0 1px 2px rgba(0,0,0,.25);
	}
	.nmv-bar {
		display:flex;
		align-items:center;
		justify-content:space-between;
		height:58px;
		padding:0 6px 0 12px;
	}
	.nmv-logo img { height:42px; width:auto; display:block; }

	.nmv-actions { display:flex; align-items:stretch; height:100%; }
	.nmv-btn {
		position:relative;
		display:flex;
		align-items:center;
		justify-content:center;
		gap:7px;
		min-width:48px;
		height:100%;
		margin:0;
		padding:0 12px;
		border:0;
		border-left:1px solid #e5e5e5;
		background:#fff;
		color:#555;
		font:inherit;
		font-size:1.1rem;
		cursor:pointer;
		text-decoration:none;
	}
	.nmv-btn:hover, .nmv-btn:focus { background:#f4f4f4; color:#333; }
	.nmv-btn[aria-expanded="true"] { background:#333; color:#fff; }

	/* cart keeps the desktop bar's blue button */
	.nmv-cart, .nmv-cart:hover, .nmv-cart:focus { background:#0470ba; color:#fff; border-left:0; }
	.nmv-cart:hover, .nmv-cart:focus { background:#035a96; }
	.nmv-count {
		position:absolute;
		top:9px;
		right:5px;
		min-width:18px;
		height:18px;
		padding:0 5px;
		border-radius:9px;
		background:#ff6600;
		color:#fff;
		font-size:11px;
		font-weight:bold;
		line-height:18px;
		text-align:center;
	}
	.nmv-count.empty { display:none; }

	.nmv-menu-label { font-size:.8rem; font-weight:bold; text-transform:uppercase; letter-spacing:.03em; }
	.nmv-burger { display:inline-flex; flex-direction:column; justify-content:space-between; width:20px; height:14px; }
	.nmv-burger span { display:block; height:2px; border-radius:2px; background:currentColor; }

	/* search row under the bar */
	.nmv-search {
		display:none;
		align-items:center;
		gap:8px;
		margin:0;
		padding:8px 10px;
		background:#333;
	}
	.nmv-search.open { display:flex; }
	.nmv-search i { color:#999; padding-left:4px; }
	.nmv-search input[type="search"] {
		flex:1;
		height:42px;
		margin:0;
		padding:0 12px;
		border:0;
		border-radius:5px;
		box-shadow:none;
		font-size:16px; /* 16px stops iOS from zooming in */
	}
	.nmv-search button {
		height:42px;
		margin:0;
		padding:0 16px;
		border:0;
		border-radius:5px;
		background:#0470ba;
		color:#fff;
		font-weight:bold;
		cursor:pointer;
	}

	/* drawer */
	.nmv-overlay {
		display:block;
		position:fixed;
		inset:0;
		z-index:1010;
		background:rgba(0,0,0,.5);
		opacity:0;
		visibility:hidden;
		transition:opacity .25s, visibility .25s;
	}
	.nmv-drawer {
		display:flex;
		flex-direction:column;
		position:fixed;
		top:0;
		right:0;
		bottom:0;
		z-index:1011;
		width:min(360px, 88vw);
		background:#fff;
		box-shadow:-4px 0 18px rgba(0,0,0,.25);
		transform:translateX(105%);
		visibility:hidden;
		transition:transform .28s ease, visibility .28s;
	}
	html.nmv-open { overflow:hidden; }
	html.nmv-open .nmv-overlay { opacity:1; visibility:visible; }
	html.nmv-open .nmv-drawer { transform:none; visibility:visible; }

	.nmv-drawer-head {
		display:flex;
		align-items:center;
		justify-content:space-between;
		height:58px;
		padding:0 0 0 18px;
		border-top:6px solid #333;
		border-bottom:1px solid #e5e5e5;
		font-weight:bold;
		text-transform:uppercase;
		color:#333;
	}
	.nmv-close {
		width:58px;
		height:100%;
		margin:0;
		border:0;
		background:none;
		color:#555;
		font-size:1.4rem;
		cursor:pointer;
	}
	.nmv-close:hover, .nmv-close:focus { background:#f4f4f4; color:#333; }

	.nmv-drawer-body { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:16px 0 24px; }

	.nmv-label {
		padding:0 18px 8px;
		color:#999;
		font-size:.75rem;
		font-weight:bold;
		text-transform:uppercase;
		letter-spacing:.04em;
	}
	.nmv-shop { display:grid; gap:8px; padding:0 14px 16px; border-bottom:1px solid #e5e5e5; }
	.nmv-shop a {
		display:flex;
		align-items:center;
		gap:14px;
		padding:12px 14px;
		border:1px solid #e1e4e8;
		border-radius:5px;
		background:#f4f6f8;
		color:#333;
		text-decoration:none;
	}
	.nmv-shop a:hover, .nmv-shop a:focus { border-color:#0470ba; background:#e6edf3; }
	.nmv-shop i { width:28px; color:#0470ba; font-size:1.5rem; text-align:center; }
	.nmv-shop b { display:block; font-size:1rem; }
	.nmv-shop small { display:block; color:#777; font-size:.8rem; line-height:1.3; }

	.nmv-links, .nmv-sub { margin:0; padding:0; list-style:none; }
	.nmv-links > li { margin:0; border-bottom:1px solid #eee; }
	.nmv-links > li > a,
	.nmv-links summary {
		display:flex;
		align-items:center;
		justify-content:space-between;
		min-height:52px;
		padding:0 18px;
		color:#444;
		font-weight:bold;
		text-transform:uppercase;
		font-size:.95rem;
		text-decoration:none;
		cursor:pointer;
		list-style:none;
	}
	.nmv-links > li > a { justify-content:flex-start; }
	.nmv-links summary::-webkit-details-marker { display:none; }
	.nmv-links > li > a:hover, .nmv-links summary:hover { background:#f8f8f8; color:#000; }
	.nmv-links summary i { color:#999; font-size:.8rem; transition:transform .2s; }
	.nmv-links details[open] summary { background:#f8f8f8; }
	.nmv-links details[open] summary i { transform:rotate(180deg); }
	.nmv-links details { padding-bottom:0; }
	.nmv-links details[open] { padding-bottom:8px; background:#fafafa; }

	.nmv-sub-head {
		padding:10px 18px 2px 28px;
		color:#999;
		font-size:.72rem;
		font-weight:bold;
		text-transform:uppercase;
		letter-spacing:.04em;
	}
	.nmv-sub li { margin:0; }
	.nmv-sub a {
		display:block;
		padding:10px 18px 10px 28px;
		color:#333;
		text-decoration:none;
	}
	.nmv-sub a:hover, .nmv-sub a:focus { color:#0470ba; background:#f0f0f0; }

	/* StackTube / STACKFAST badges, same as the desktop bar */
	.nmv-links a.stacktube span { margin-left:3px; }
	.nmv-links a.stackfast { color:#27924d; }
	.nmv-links a.stackfast span { margin:0 6px 0 0; }

	.nmv-help { display:grid; gap:2px; padding:18px; }
	.nmv-help a { display:flex; align-items:center; gap:10px; padding:8px 0; color:#555; text-decoration:none; }
	.nmv-help a:hover { color:#0470ba; }
	.nmv-help i { width:18px; color:#999; text-align:center; }

	/* the Amazon note wraps to 3 lines on phones; tighten it */
	.layout-v2 .amz-note { padding:9px 0 !important; border-bottom-width:2px !important; font-size:.85rem; }
}

@media (prefers-reduced-motion: reduce) {
	.nmv-drawer, .nmv-overlay, .nmv-links summary i { transition:none; }
}

/* ---------- footer ---------- */

.fv2 { margin-top:60px; background:#333; color:#bbb; font-size:.95rem; line-height:1.6; }
.fv2 a { color:#ddd; text-decoration:none; }
.fv2 a:hover, .fv2 a:focus { color:#fff; }
.fv2-wrap { max-width:1160px; margin:0 auto; padding:0 15px; } /* same width as the site's .row */

/* help strip */
.fv2-help { background:#e6e6e6; border-top:1px solid #ccc; color:#333; }
.fv2-help .fv2-wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; padding-top:20px; padding-bottom:20px; }
.fv2-help-text b { display:block; font-size:1.15rem; color:#333; }
.fv2-help-text span { color:#666; font-size:.9rem; }
.fv2 .fv2-help .fv2-pill { border-color:#999; color:#333; }
.fv2 .fv2-help .fv2-pill:hover, .fv2 .fv2-help .fv2-pill:focus { background:#333; border-color:#333; color:#fff; }
.fv2-help-actions { display:flex; flex-wrap:wrap; gap:10px; }
.fv2 .fv2-pill {
	display:inline-flex;
	align-items:center;
	gap:8px;
	padding:10px 18px;
	border:1px solid rgba(255,255,255,.45);
	border-radius:999px;
	color:#fff;
	font-weight:bold;
	white-space:nowrap;
	transition:background .15s, border-color .15s;
}
.fv2 .fv2-pill:hover, .fv2 .fv2-pill:focus { background:#fff; border-color:#fff; color:#0470ba; }

/* main grid */
.fv2-main { padding:48px 0 36px; }
.fv2-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1.1fr; gap:32px; }

.fv2-logo img { height:52px; width:auto; }
.fv2-brand p { margin:14px 0 18px; color:#aaa; font-size:.9rem; line-height:1.6; }

.fv2-social { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.fv2-social li { margin:0; }
.fv2 .fv2-social a {
	display:flex;
	align-items:center;
	justify-content:center;
	width:40px;
	height:40px;
	border-radius:50%;
	background:rgba(255,255,255,.08);
	color:#ddd;
	font-size:1.05rem;
	transition:background .15s, color .15s, transform .15s;
}
.fv2 .fv2-social a:hover, .fv2 .fv2-social a:focus { background:#0470ba; color:#fff; transform:translateY(-2px); }

.fv2-col summary, .fv2-head {
	display:block;
	margin:0 0 12px;
	color:#fff;
	font-size:.8rem;
	font-weight:bold;
	text-transform:uppercase;
	letter-spacing:.06em;
	list-style:none;
}
.fv2-col summary { pointer-events:none; }
.fv2-col summary::-webkit-details-marker { display:none; }
.fv2-col summary i { display:none; }
.fv2-col ul { margin:0; padding:0; list-style:none; }
.fv2-col li { margin:0 0 8px; }
.fv2-col a { color:#bbb; font-size:.92rem; }
.fv2-col a:hover, .fv2-col a:focus { color:#fff; }

.fv2-contact address { margin:0 0 10px; font-style:normal; color:#bbb; font-size:.92rem; }
.fv2-contact p { margin:0; font-size:.92rem; }
.fv2-dim { color:#888; }

/* International band */
.fv2-intl { background:rgba(0,0,0,.22); border-top:1px solid rgba(255,255,255,.08); }
.fv2-intl .fv2-wrap { display:flex; flex-wrap:wrap; align-items:center; gap:18px 28px; padding-top:28px; padding-bottom:28px; }
.fv2-intl-text { display:flex; align-items:center; gap:16px; flex:1; }
.fv2-intl-globe { color:#0470ba; font-size:2.4rem; }
.fv2-intl-text b { display:block; color:#fff; font-size:1.15rem; }
.fv2-intl-text span { color:#aaa; font-size:.9rem; }
.fv2 .fv2-intl-btn { border-color:#0470ba; background:#0470ba; }
.fv2 .fv2-intl-btn:hover, .fv2 .fv2-intl-btn:focus { background:#fff; border-color:#fff; color:#0470ba; }

/* bottom bar */
.fv2-bottom { border-top:1px solid rgba(255,255,255,.1); color:#888; font-size:.82rem; }
.fv2-bottom .fv2-wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; padding-top:16px; padding-bottom:16px; }
.fv2-bottom nav { display:flex; flex-wrap:wrap; gap:6px 20px; }
.fv2 .fv2-bottom a { color:#999; }
.fv2 .fv2-bottom a:hover { color:#fff; }

/* tablet: brand row on top, then four columns */
@media (max-width: 1023px) {
	.fv2-grid { grid-template-columns:repeat(4, 1fr); gap:28px 24px; }
	.fv2-brand { grid-column:1 / -1; display:grid; grid-template-columns:auto 1fr; gap:4px 24px; align-items:center; }
	.fv2-brand p { margin:0; }
	.fv2-social { grid-column:1 / -1; }
}

/* phone: stacked, link groups fold */
@media (max-width: 640px) {
	.fv2 { margin-top:40px; }
	.fv2-help .fv2-wrap { padding-top:22px; padding-bottom:22px; }
	.fv2-help-actions { width:100%; display:grid; }
	.fv2 .fv2-pill { justify-content:center; padding:12px 18px; }

	.fv2-main { padding:30px 0 20px; }
	.fv2-grid { grid-template-columns:1fr; gap:0; }
	.fv2-brand { display:block; text-align:center; padding-bottom:24px; }
	.fv2-brand p { margin:12px auto 16px; max-width:28em; }
	.fv2-social { justify-content:center; }
	.fv2 .fv2-social a { width:44px; height:44px; }

	.fv2-col { border-top:1px solid rgba(255,255,255,.1); }
	.fv2-col summary {
		display:flex;
		align-items:center;
		justify-content:space-between;
		margin:0;
		padding:16px 0;
		font-size:.85rem;
		pointer-events:auto;
		cursor:pointer;
	}
	.fv2-col summary i { display:inline-block; color:#888; transition:transform .2s; }
	.fv2-col[open] summary i { transform:rotate(180deg); }
	.fv2-col ul { padding:0 0 12px; }
	.fv2-col li { margin:0; }
	.fv2-col a { display:block; padding:9px 0; font-size:1rem; }

	.fv2-contact { border-top:1px solid rgba(255,255,255,.1); padding-top:16px; text-align:center; }
	.fv2-contact .fv2-head { margin-bottom:8px; }

	.fv2-intl .fv2-wrap { flex-direction:column; text-align:center; }
	.fv2-intl-text { flex-direction:column; gap:8px; }
	.fv2 .fv2-intl-btn { width:100%; justify-content:center; padding:12px 18px; }

	.fv2-bottom .fv2-wrap { flex-direction:column; text-align:center; }
	.fv2-bottom nav { justify-content:center; }
}
