/*
 * Site chrome: header, navigation, mobile panel, cart, footer.
 */

/* ---------- header shell ---------- */

.tdt-head {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--tdt-line);
}

.tdt-head.is-stuck { box-shadow: 0 10px 30px -24px rgba(10, 10, 31, .5); }

.tdt-head__in {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1440px;
	margin-inline: auto;
	padding: 14px var(--tdt-gut);
}

.tdt-head__brand { margin-right: auto; display: flex; align-items: center; }
.tdt-head__brand img { height: 40px; width: auto; }

.tdt-head__wordmark {
	font-family: var(--tdt-display);
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -.02em;
	text-transform: uppercase;
	text-decoration: none;
}

/* ---------- primary navigation ---------- */

.tdt-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15.5px;
}

.tdt-nav__list li { position: relative; }

.tdt-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 0;
	color: var(--tdt-ink);
	text-decoration: none;
	white-space: nowrap;
}

.tdt-nav__list a:hover { color: var(--tdt-indigo); }
.tdt-nav__list .current-menu-item > a { color: var(--tdt-indigo); }

/* The last item in the primary menu reads as the call to action. */
.tdt-nav__list > li:last-child > a {
	padding: 11px 20px;
	border-radius: var(--tdt-radius);
	background: var(--tdt-indigo);
	color: #fff;
}

.tdt-nav__list > li:last-child > a:hover { background: var(--tdt-indigo-deep); color: #fff; }
.tdt-nav__list > li:last-child.menu-item-has-children > a { padding-right: 14px; }

/* ---------- dropdowns ---------- */

.tdt-sub-toggle {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	vertical-align: middle;
}

.tdt-sub-toggle svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .18s;
}

.menu-item-has-children.is-open > .tdt-sub-toggle svg { transform: rotate(180deg); }

.tdt-nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: -14px;
	z-index: 5;
	min-width: 232px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--tdt-paper);
	border: 1px solid var(--tdt-line);
	border-radius: var(--tdt-radius);
	box-shadow: var(--tdt-shadow-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .16s, transform .16s, visibility .16s;
}

.tdt-nav .menu-item-has-children:hover > .sub-menu,
.tdt-nav .menu-item-has-children:focus-within > .sub-menu,
.tdt-nav .menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tdt-nav .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 15px;
	white-space: normal;
}

.tdt-nav .sub-menu a:hover { background: var(--tdt-paper-2); }

/* ---------- cart ---------- */

.tdt-cart {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: var(--tdt-radius);
	color: var(--tdt-ink);
	text-decoration: none;
}

.tdt-cart:hover { background: var(--tdt-paper-2); }

.tdt-cart svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tdt-cart__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--tdt-pink);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

/* ---------- mobile ---------- */

.tdt-navtoggle {
	display: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--tdt-line);
	border-radius: var(--tdt-radius);
	background: none;
}

.tdt-navtoggle svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
}

.tdt-mobilenav {
	max-height: calc(100vh - 70px);
	overflow-y: auto;
	padding: 8px var(--tdt-gut) 24px;
	border-top: 1px solid var(--tdt-line);
	background: var(--tdt-paper);
}

.tdt-mobilenav__list, .tdt-mobilenav .sub-menu { margin: 0; padding: 0; list-style: none; }

.tdt-mobilenav__list > li { border-bottom: 1px solid var(--tdt-line); }

.tdt-mobilenav a {
	display: block;
	padding: 13px 0;
	font-size: 17px;
	text-decoration: none;
}

.tdt-mobilenav .menu-item-has-children { display: grid; grid-template-columns: 1fr 44px; }
.tdt-mobilenav .menu-item-has-children > .sub-menu { grid-column: 1 / -1; display: none; padding: 0 0 8px 14px; }
.tdt-mobilenav .menu-item-has-children.is-open > .sub-menu { display: block; }
.tdt-mobilenav .sub-menu a { padding: 10px 0; font-size: 15.5px; color: var(--tdt-slate); }

body.tdt-nav-open { overflow: hidden; }

@media (max-width: 1020px) {
	.tdt-nav { display: none; }
	.tdt-navtoggle { display: grid; }
	.tdt-head__in { gap: 12px; }
}

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

.tdt-foot {
	background: var(--tdt-navy);
	color: rgba(255, 255, 255, .78);
	padding-block: clamp(44px, 7vh, 76px) 0;
}

.tdt-foot__in {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: clamp(28px, 4vw, 56px);
}

.tdt-foot__logo { height: 40px; width: auto; }

.tdt-foot__wordmark {
	font-family: var(--tdt-display);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -.02em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
}

.tdt-foot__tagline {
	max-width: 26em;
	margin: 18px 0;
	color: rgba(255, 255, 255, .66);
	font-size: 15.5px;
}

.tdt-foot__social {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tdt-foot__social a {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	color: #fff;
}

.tdt-foot__social svg { width: 20px; height: 20px; fill: currentColor; }
.tdt-foot__social a:hover { color: var(--tdt-pink); }

.tdt-foot__heading {
	margin: 0 0 18px;
	color: #fff;
	font-size: 20px;
	letter-spacing: -.02em;
}

.tdt-foot__list { margin: 0; padding: 0; list-style: none; }
.tdt-foot__list li { margin-bottom: 12px; }

.tdt-foot__list a {
	position: relative;
	padding-left: 15px;
	color: rgba(255, 255, 255, .78);
	font-size: 15.5px;
	text-decoration: none;
}

.tdt-foot__list a::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

.tdt-foot__list a:hover { color: #fff; }

.tdt-foot__bottom {
	margin-top: clamp(36px, 6vh, 56px);
	padding-block: 22px 26px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .55);
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
}

.tdt-foot__bottom p { margin: 0; }

.tdt-foot__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	justify-content: center;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.tdt-foot__legal a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.tdt-foot__legal a:hover { color: #fff; }

/* ---------- back to top ---------- */

.tdt-totop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 70;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: var(--tdt-ink);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}

.tdt-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.tdt-totop svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 900px) {
	.tdt-foot__in { grid-template-columns: 1fr 1fr; }
	.tdt-foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.tdt-foot__in { grid-template-columns: 1fr; }
}
