/* Charter Bus vs. Driving Calculator — gli- prefixed classes */

.gli-intro-content,
.gli-below-content,
.gli-faq {
	margin-bottom: 2rem;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.gli-intro-content h2 {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	line-height: 1.3;
	color: #1e3a5f;
}

.gli-intro-content h3,
.gli-below-content h3,
.gli-faq h3 {
	margin: 1.5rem 0 1rem;
	font-size: 1.125rem;
	line-height: 1.3;
	color: #1e3a5f;
}

.gli-intro-content h2 + p {
	margin-top: 0;
}

.gli-below-content + .gli-below-content {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e2e2e2;
}

.gli-intro-content a,
.gli-below-content a {
	color: #1565c0;
	text-decoration: underline;
}

.gli-faq-item {
	margin-bottom: 0.5rem;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
}

.gli-faq-question {
	padding: 0.85rem 1rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.gli-faq-question::-webkit-details-marker {
	display: none;
}

.gli-faq-answer {
	padding: 0 1rem 1rem;
	font-size: 0.95rem;
}

.gli-faq-answer p {
	margin: 0 0 0.75rem;
}

.gli-calculator {
	box-sizing: border-box;
	max-width: 960px;
	margin: 0 auto 2rem;
	padding: 1.25rem 1rem 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #1a1a1a;
}

.gli-calculator *,
.gli-calculator *::before,
.gli-calculator *::after {
	box-sizing: inherit;
}

.gli-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gli-fieldset {
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	padding: 1rem 1.25rem 0.5rem;
	margin: 0 0 1.25rem;
}

.gli-fieldset legend {
	font-weight: 700;
	font-size: 1.05rem;
	padding: 0 0.35rem;
}

.gli-field {
	margin-bottom: 1rem;
}

.gli-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.gli-field input[type="number"],
.gli-field input[type="text"] {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.65rem;
	font-size: 1rem;
	border: 1px solid #8a8a8a;
	border-radius: 4px;
	background: #fff;
}

.gli-field input:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
}

.gli-field input[aria-invalid="true"] {
	border-color: #b00020;
}

.gli-hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	color: #555;
}

.gli-gas-source {
	font-style: italic;
}

.gli-eia-attribution {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.gli-eia-attribution[hidden] {
	display: none !important;
}

.gli-calc-disclaimer {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	font-size: 0.875rem;
	background: #f9fafb;
	border-left: 3px solid #9ca3af;
	color: #374151;
}

.gli-error {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #b00020;
}

.gli-error[hidden] {
	display: none !important;
}

.gli-warning {
	margin: 0.35rem 0 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	background: #fff8e1;
	border-left: 3px solid #f59e0b;
	color: #7c5a00;
}

.gli-warning[hidden] {
	display: none !important;
}

.gli-advanced {
	margin-bottom: 1.25rem;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	padding: 0.5rem 1rem;
}

.gli-advanced summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.35rem 0;
}

.gli-advanced .gli-fieldset {
	border: 0;
	padding: 0.5rem 0 0;
	margin: 0;
}

.gli-btn {
	display: inline-block;
	min-height: 2.75rem;
	padding: 0.6rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	background: #fff;
	color: #1a1a1a;
}

.gli-btn:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.gli-btn--primary {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
}

.gli-btn--primary:hover {
	background: #1e40af;
}

.gli-btn--secondary {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.gli-btn--secondary:hover {
	background: #e5e7eb;
}

.gli-btn--secondary:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.gli-btn--cta {
	background: #b8860b;
	border-color: #b8860b;
	color: #fff;
}

.gli-btn--cta:hover {
	background: #996f00;
	color: #fff;
}

.gli-banner {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-size: 0.9375rem;
}

.gli-banner--info {
	background: #fff8e1;
	border: 1px solid #f59e0b;
	color: #7c5a00;
}

.gli-banner[hidden],
.gli-calc-results[hidden],
.gli-result-note[hidden] {
	display: none !important;
}

.gli-calc-results {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 2px solid #e5e7eb;
}

.gli-results-heading {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	font-weight: 700;
}

.gli-results-heading:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.gli-results-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
	.gli-results-grid {
		grid-template-columns: 1fr 1fr;
	}

	.gli-result-driving {
		order: 1;
	}

	.gli-result-bus {
		order: 2;
	}
}

.gli-result-card {
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	background: #fafafa;
}

.gli-result-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
}

.gli-result-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.gli-result-total,
.gli-result-pp {
	margin: 0 0 0.65rem;
}

.gli-result-total strong,
.gli-result-pp strong {
	font-size: 1.25rem;
}

.gli-result-breakdown {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	font-size: 0.9375rem;
}

.gli-result-breakdown li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.25rem 0;
	border-top: 1px solid #e5e7eb;
}

.gli-result-verdict {
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	background: #eff6ff;
	border-left: 4px solid #1d4ed8;
	border-radius: 0 6px 6px 0;
	font-size: 1.0625rem;
	font-weight: 600;
}

.gli-result-note {
	margin: 0.5rem 0;
	font-size: 0.9375rem;
	color: #374151;
}

.gli-result-breakeven-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 1.25rem;
}

.gli-result-breakeven {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
	min-width: 320px;
}

.gli-result-breakeven caption {
	caption-side: top;
	text-align: left;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.gli-result-breakeven th,
.gli-result-breakeven td {
	padding: 0.5rem 0.75rem;
	border: 1px solid #d4d4d4;
	text-align: left;
}

.gli-result-breakeven thead th {
	background: #f3f4f6;
	font-weight: 700;
}

.gli-row-current {
	background: #fef9c3;
}

.gli-row-breakeven {
	background: #ecfdf5;
}

.gli-calc-export {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: flex-start;
}

.gli-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.gli-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 600;
	cursor: pointer;
}

.gli-field select {
	display: block;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.65rem;
	font-size: 1rem;
	border: 1px solid #8a8a8a;
	border-radius: 4px;
	background: #fff;
}

.gli-result-note--driver {
	background: #f9fafb;
	border-left: 3px solid #6b7280;
	padding: 0.75rem 1rem;
}

.gli-share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	width: 100%;
	max-width: 640px;
}

.gli-share-url {
	flex: 1 1 200px;
	min-height: 2.75rem;
	padding: 0.5rem 0.65rem;
	font-size: 0.875rem;
	border: 1px solid #8a8a8a;
	border-radius: 4px;
	background: #f9fafb;
}

.gli-copy-status {
	font-size: 0.875rem;
	min-height: 1.25rem;
}

.gli-copy-status--ok {
	color: #047857;
}

.gli-copy-status--error {
	color: #b00020;
}

.gli-scenarios {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.gli-scenarios-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gli-scenarios-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.gli-scenarios-table th,
.gli-scenarios-table td {
	padding: 0.5rem 0.65rem;
	border: 1px solid #d4d4d4;
	text-align: left;
	vertical-align: top;
}

.gli-scenarios-table thead th {
	background: #f3f4f6;
	font-weight: 700;
}

.gli-scenario-actions {
	white-space: nowrap;
}

.gli-btn--text {
	background: none;
	border: none;
	padding: 0.25rem 0.5rem;
	min-height: auto;
	font-size: 0.875rem;
	color: #1d4ed8;
	text-decoration: underline;
}

.gli-examples {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e2e2e2;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.gli-examples-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.gli-examples-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.gli-example-card {
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	background: #fafafa;
}

.gli-example-card h4 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	line-height: 1.35;
}

.gli-example-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
	margin: 0.75rem 0;
}

.gli-example-stats dt {
	font-size: 0.75rem;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
}

.gli-example-stats dd {
	margin: 0;
	font-weight: 600;
}

.gli-example-verdict {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
}

.gli-cta {
	margin: 0;
}
