/* Truck site: the page around the cards (header, login, setup, ZIP box). Cards live in dashboard.css. */

:root {
	--site-bg: #f6f7f9;
	--site-ink: #16181d;
	--site-head: #16181d;
	--site-head-ink: #ffffff;
	--site-muted: #4b5160;
	--site-line: #cfd3dc;
	--site-focus: #1849c9;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--site-bg);
	color: var(--site-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

a {
	color: var(--site-focus);
}

h1 {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 16px;
}

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

.th-sitehead {
	background: var(--site-head);
	color: var(--site-head-ink);
}

.th-sitehead__in {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}

.th-brand {
	color: var(--site-head-ink);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	margin-right: auto;
}

.th-sitenav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
}

.th-sitenav a,
.th-linkbtn {
	color: var(--site-head-ink);
	text-decoration: none;
	font: inherit;
	font-size: 0.95rem;
	padding: 6px 0;
	min-height: 32px;
	border-bottom: 2px solid transparent;
}

.th-sitenav a[aria-current="page"] {
	border-bottom-color: var(--site-head-ink);
	font-weight: 600;
}

.th-sitenav a:hover,
.th-linkbtn:hover {
	text-decoration: underline;
}

.th-sitenav form {
	margin: 0;
}

.th-linkbtn {
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	padding: 6px 0;
}

.th-sitehead :focus-visible {
	outline: 3px solid #8fb0ff;
	outline-offset: 2px;
}

.th-main {
	padding: 20px 16px 48px;
}

.th-hidden {
	display: none !important;
}

/* ---- login and setup ------------------------------------------------------- */

.th-app.th-login {
	max-width: 460px;
	background: #fff;
	border: 1px solid var(--site-line);
	border-radius: 12px;
	padding: 24px;
	margin-top: 24px;
}

.th-login input[type="password"],
.th-login input[type="text"] {
	width: 100%;
}

.th-login .th-btn {
	margin-top: 8px;
}

.th-list {
	padding-left: 20px !important;
	list-style: disc !important;
}

.th-list li {
	margin: 6px 0;
}

/* ---- visitor ZIP box (public page) ------------------------------------------- */

.th-zip {
	background: #fff;
	border: 1px solid var(--site-line);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 0 0 16px;
}

.th-zip p {
	margin: 4px 0;
}

.th-zip__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.th-zip__row label {
	font-weight: 600;
}

.th-zip input[type="text"] {
	width: 7.5em;
	font: inherit;
	padding: 6px 8px;
	border: 2px solid var(--site-line);
	border-radius: 6px;
}

.th-zip__err {
	color: #a4161a;
	font-weight: 600;
}

/* ---- settings extras ---------------------------------------------------------- */

.th-money {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.th-key {
	display: inline-block;
	font-size: 1.05rem;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid var(--site-line);
	border-radius: 6px;
	word-break: break-all;
	user-select: all;
}

@media (max-width: 520px) {
	.th-main {
		padding: 16px 16px 40px;
	}
	.th-app.th-login {
		padding: 18px 16px;
	}
}

/* Phones: the Truck and Sort dropdowns stack instead of running off the screen. */
@media (max-width: 520px) {
	.th-app .th-truck-filter select {
		max-width: calc(100vw - 110px);
	}
	.th-app .th-truck-filter label {
		min-width: 3.2em;
	}
}

.th-app .th-field input[type="file"] {
	font: inherit;
	max-width: 100%;
}

.th-filter-pair {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
