/* Generated business service, route and tool pages. Builds on main.css tokens. */

.freight-page .freight-hero h1 { max-width: 22ch; }
.freight-page .freight-intro { max-width: 70ch; margin: 0; }
.freight-page .freight-hero .freight-actions { margin-top: 32px; }
.freight-page .freight-language-switch { margin: 16px 0 0; font-size: 0.9375rem; font-weight: 600; }

.freight-page .freight-main { padding-block: clamp(48px, 6vw, 80px) var(--section); }
.freight-page .freight-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	align-items: start;
}
.freight-page .freight-content { display: grid; gap: 0; min-width: 0; }
.freight-page .freight-aside {
	display: grid;
	gap: 16px;
	min-width: 0;
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

/* Content sections read as one document, separated by rules. */
.freight-page .freight-content > .freight-panel {
	padding-block: clamp(36px, 4.5vw, 52px);
	border-top: 1px solid var(--line);
}
.freight-page .freight-content > .freight-panel:first-child { padding-top: 0; border-top: 0; }
.freight-page .freight-panel h2 { max-width: 32ch; margin-bottom: 16px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.freight-page .freight-panel h3 { font-size: 1.0625rem; }
.freight-page .freight-panel p { max-width: 72ch; }
.freight-page .freight-panel > :last-child { margin-bottom: 0; }
.freight-page .freight-panel a { overflow-wrap: anywhere; }

/* Facts as a two-column definition table. */
.freight-page .freight-service-facts {
	display: grid;
	margin: 8px 0 24px;
	border-top: 1px solid var(--line);
}
.freight-page .freight-service-facts > div {
	display: grid;
	grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
	gap: 8px 24px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}
.freight-page .freight-service-facts dt { color: var(--ink); font-size: 0.9375rem; }
.freight-page .freight-service-facts dd { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.freight-page .freight-route-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}
.freight-page .freight-route-link {
	display: block;
	padding: 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s;
}
.freight-page .freight-route-link:hover { border-color: var(--brand); }
.freight-page .freight-route-link h3 { margin: 0 0 6px; color: var(--ink); font-size: 1rem; }
.freight-page .freight-route-link:hover h3 { color: var(--brand); }
.freight-page .freight-route-link p { margin: 0; color: var(--muted); font-size: 0.875rem; }

.freight-page .freight-faq h2 { margin-bottom: 24px; }

/* Sidebar */
.freight-page .freight-aside .freight-panel {
	padding: 24px;
	background: var(--paper);
	border-radius: var(--radius);
}
.freight-page .freight-aside h2 { font-size: 1rem; margin-bottom: 10px; }
.freight-page .freight-aside p { font-size: 0.875rem; color: var(--muted); }
.freight-page .freight-aside .button { width: 100%; margin-top: 12px; }
.freight-page .freight-related { padding-block: 20px 12px !important; }
.freight-page .freight-related a {
	display: block;
	padding: 10px 0;
	border-top: 1px solid var(--line);
	color: var(--text);
	font-size: 0.875rem;
	text-decoration: none;
}
.freight-page .freight-related h2 + a { border-top: 0; }
.freight-page .freight-related a:hover { color: var(--brand); }

.freight-page .freight-closing { margin-top: clamp(24px, 4vw, 40px); }

/* Tools */
.freight-page .freight-tool-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.freight-page .freight-tool-form label { margin: 0; }
.freight-page .freight-tool-form :is(input, select) { margin-top: 6px; }
.freight-page .cargo-row {
	margin: 20px 0;
	padding: 20px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.freight-page .cargo-row legend { font-size: 0.9375rem; margin: 0; padding: 0 6px; }
.freight-page .cargo-row-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
.freight-page .freight-tool-result {
	margin-top: 28px;
	padding: 24px;
	background: var(--brand-tint);
	border-radius: var(--radius);
}
.freight-page .freight-tool-result h3 { margin-bottom: 12px; }
.freight-page .cargo-totals {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 16px 0 20px;
}
.freight-page .cargo-totals dt { color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.freight-page .cargo-totals dd {
	margin-top: 4px;
	color: var(--ink);
	font-size: 1.5rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
}
.freight-page #cargo-summary {
	padding: 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-size: 0.8125rem;
	line-height: 1.7;
}
.freight-page .freight-tool-error:not(:empty) {
	margin-top: 16px;
	padding-inline-start: 12px;
	border-inline-start: 3px solid #a33a3a;
	color: #8b2727;
}

@media (max-width: 980px) {
	.freight-page .freight-layout { grid-template-columns: minmax(0, 1fr); }
	.freight-page .freight-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.freight-page .freight-service-facts > div,
	.freight-page .freight-route-grid,
	.freight-page .freight-aside,
	.freight-page .freight-tool-fields,
	.freight-page .cargo-totals { grid-template-columns: minmax(0, 1fr); }
	.freight-page .cargo-row-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.freight-page .freight-actions .button { width: 100%; }
}
