/* BenCal tracking page. Inherits the theme's fonts; colours kept neutral. */
.bct-tracker {
	--bct-accent: #0b5cad;
	--bct-border: #d7dce2;
	--bct-muted: #5b6470;
	--bct-bg: #ffffff;
	--bct-ok: #1d7a3e;
	--bct-warn: #a65c00;
	max-width: 640px;
	margin: 0 auto;
}

.bct-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.bct-row {
	display: flex;
	gap: 8px;
}

.bct-input {
	flex: 1;
	min-width: 0;
	padding: 12px;
	font-size: 18px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid var(--bct-border);
	border-radius: 6px;
}

.bct-button {
	padding: 12px 22px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--bct-accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.bct-result {
	margin-top: 20px;
}

.bct-error {
	padding: 12px 14px;
	color: #8a1f11;
	background: #fdecea;
	border-radius: 6px;
}

.bct-loading {
	color: var(--bct-muted);
}

.bct-card {
	padding: 20px;
	background: var(--bct-bg);
	border: 1px solid var(--bct-border);
	border-left: 5px solid var(--bct-accent);
	border-radius: 8px;
}

.bct-card.is-delivered {
	border-left-color: var(--bct-ok);
}

.bct-card.is-delayed {
	border-left-color: var(--bct-warn);
}

.bct-code {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--bct-muted);
	letter-spacing: 0.04em;
}

.bct-headline {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.bct-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	margin: 0 0 16px;
}

.bct-facts dt {
	font-size: 13px;
	color: var(--bct-muted);
}

.bct-facts dd {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 600;
}

.bct-note {
	padding: 10px 12px;
	background: #f4f6f8;
	border-radius: 6px;
}

.bct-card.is-delayed .bct-note {
	background: #fff4e5;
}

.bct-history-title {
	margin: 18px 0 8px;
	font-size: 15px;
}

.bct-history {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--bct-border);
}

.bct-history li {
	position: relative;
	padding: 0 0 12px 16px;
	font-size: 14px;
	line-height: 1.4;
}

.bct-history li::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 6px;
	width: 10px;
	height: 10px;
	background: var(--bct-border);
	border-radius: 50%;
}

.bct-history li:first-child::before {
	background: var(--bct-accent);
}

.bct-h-date {
	display: block;
	font-size: 13px;
	color: var(--bct-muted);
}

.bct-h-status {
	font-weight: 600;
}

.bct-h-location::before {
	content: " · ";
}

.bct-h-note {
	display: block;
	font-size: 13px;
	color: var(--bct-muted);
}

.bct-updated {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--bct-muted);
}

@media (max-width: 480px) {
	.bct-row {
		flex-direction: column;
	}

	.bct-facts {
		grid-template-columns: 1fr;
	}
}
