/**
 * Self-contained design system for the evacuation coverage checker.
 * Every rule is scoped to .bcecc. Theme fonts, colors, and layout are not used.
 */

.bcecc {
	all: initial;
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 46rem;
	margin: 24px auto;
	padding: 16px;
	background: #f3f4f6;
	color: #1c1f24;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	text-align: left;
}

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

.bcecc [hidden] {
	display: none !important;
}

.bcecc h2,
.bcecc h3,
.bcecc p,
.bcecc ul,
.bcecc ol,
.bcecc li,
.bcecc legend,
.bcecc label,
.bcecc caption,
.bcecc th,
.bcecc td,
.bcecc button {
	font-family: inherit;
	color: inherit;
}

.bcecc h2 {
	margin: 0 0 16px;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.bcecc h3 {
	margin: 32px 0 16px;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.bcecc p,
.bcecc ul,
.bcecc ol {
	margin: 0 0 16px;
}

.bcecc ul,
.bcecc ol {
	padding-left: 1.25rem;
}

.bcecc li + li {
	margin-top: 8px;
}

.bcecc a {
	color: #1f4b5a;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bcecc a:hover {
	color: #163844;
}

.bcecc :focus {
	outline: 3px solid #0b5cab;
	outline-offset: 2px;
}

.bcecc-above,
.bcecc-below,
.bcecc-faq,
.bcecc-tool {
	margin: 0 0 48px;
}

.bcecc-tool {
	background: #ffffff;
	border: 1px solid #d5d8e0;
	border-radius: 12px;
	padding: 24px 16px;
}

.bcecc fieldset {
	border: 0;
	margin: 0 0 16px;
	padding: 0;
	min-inline-size: 0;
}

.bcecc legend {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.bcecc-option,
.bcecc-check {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
}

.bcecc-option input,
.bcecc-check input {
	width: 22px;
	height: 22px;
	margin: 0;
	flex: 0 0 22px;
	accent-color: #1f4b5a;
}

.bcecc-option label,
.bcecc-check {
	cursor: pointer;
}

.bcecc-option label {
	flex: 1;
	padding: 10px 0;
	line-height: 1.4;
}

.bcecc-progress {
	margin: 8px 0;
	color: #3f4654;
	font-size: 0.95rem;
}

.bcecc-nav-buttons,
.bcecc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.bcecc button {
	min-height: 44px;
	min-width: 44px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
}

.bcecc-nav-buttons button,
.bcecc-actions button {
	border: 2px solid #1f4b5a;
}

#bcecc-next,
#bcecc-show,
#bcecc-download {
	background: #1f4b5a;
	color: #ffffff;
}

#bcecc-next:hover,
#bcecc-show:hover,
#bcecc-download:hover {
	background: #163844;
	border-color: #163844;
}

#bcecc-back,
#bcecc-reset {
	background: #ffffff;
	color: #1c1f24;
	border-color: #5c6573;
}

.bcecc-error {
	margin: 8px 0 0;
	color: #7f1d1d;
	font-weight: 600;
}

.bcecc-banner,
.bcecc-results-pending {
	background: #ffffff;
	border: 1px solid #d5d8e0;
	border-left: 4px solid #1f4b5a;
	padding: 12px 16px;
}

.bcecc-summary {
	font-size: 1.125rem;
	font-weight: 600;
}

.bcecc-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	margin: 0 0 8px;
}

.bcecc-table caption {
	caption-side: top;
	text-align: left;
	font-weight: 600;
	padding: 0 0 8px;
}

.bcecc-table th,
.bcecc-table td {
	text-align: left;
	vertical-align: top;
	padding: 12px 16px;
	border: 1px solid #d5d8e0;
	font-weight: 400;
}

.bcecc-table thead th {
	background: #e8eaee;
	font-weight: 600;
}

.bcecc-table tbody th {
	font-weight: 600;
	width: 28%;
}

.bcecc-table tfoot td {
	color: #3f4654;
	background: #f3f4f6;
}

.bcecc-signal {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: #1c1f24;
}

.bcecc-icon {
	flex: 0 0 20px;
	display: block;
}

.bcecc-signal-likely .bcecc-icon {
	color: #0f6b45;
}

.bcecc-signal-depends .bcecc-icon {
	color: #8a4b08;
}

.bcecc-signal-unlikely .bcecc-icon,
.bcecc-signal-not_applicable .bcecc-icon {
	color: #3f4654;
}

.bcecc-signal-ended .bcecc-icon {
	color: #7f1d1d;
}

.bcecc-signal-label {
	color: #1c1f24;
	font-weight: 600;
}

.bcecc-checklist,
.bcecc-flags,
.bcecc-questions {
	background: #ffffff;
	border: 1px solid #d5d8e0;
	border-radius: 8px;
	padding: 16px 16px 16px 32px;
}

.bcecc-checklist {
	list-style: none;
	padding-left: 16px;
}

.bcecc-check span {
	flex: 1;
}

.bcecc-support {
	background: #ffffff;
	border: 1px solid #d5d8e0;
	border-radius: 8px;
	padding: 8px 16px 16px;
	margin: 24px 0;
}

.bcecc-support.is-expanded {
	border-width: 2px;
	border-color: #1f4b5a;
}

.bcecc-disclaimer {
	font-size: 1rem;
	line-height: 1.6;
	margin-top: 16px;
}

.bcecc-tip-wrap {
	position: relative;
	display: inline-block;
}

.bcecc-tip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	min-width: 44px;
	padding: 8px 2px;
	border: 0;
	background: transparent;
	color: #1f4b5a;
	font: inherit;
	line-height: 1.3;
	text-align: left;
	text-decoration: underline dotted;
	text-underline-offset: 3px;
	cursor: help;
}

.bcecc-tip-bubble {
	position: absolute;
	z-index: 5;
	left: 0;
	top: calc(100% + 4px);
	width: max-content;
	max-width: min(20rem, 80vw);
	padding: 8px 12px;
	border-radius: 8px;
	background: #1c1f24;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	box-shadow: 0 8px 24px rgba(28, 31, 36, 0.18);
}

.bcecc strong {
	font-weight: 600;
}

@media (max-width: 599px) {
	.bcecc {
		margin: 0 auto;
		padding: 16px;
	}

	.bcecc h2 {
		font-size: 1.5rem;
	}

	.bcecc-tool {
		padding: 16px;
	}

	.bcecc-nav-buttons button,
	.bcecc-actions button {
		flex: 1 1 100%;
	}

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

	.bcecc-table,
	.bcecc-table tbody,
	.bcecc-table tr,
	.bcecc-table th,
	.bcecc-table td {
		display: block;
		width: 100%;
	}

	.bcecc-table {
		border: 0;
		background: transparent;
	}

	.bcecc-table tbody tr {
		background: #ffffff;
		border: 1px solid #d5d8e0;
		border-radius: 8px;
		margin: 0 0 16px;
		padding: 8px 12px 12px;
	}

	.bcecc-table tbody th,
	.bcecc-table tbody td {
		border: 0;
		padding: 8px 0 0;
	}

	.bcecc-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		color: #3f4654;
		font-size: 0.85rem;
		font-weight: 600;
	}

	.bcecc-table tfoot tr {
		background: transparent;
		border: 0;
		padding: 0;
		margin: 0;
	}

	.bcecc-table tfoot td {
		padding: 8px 0 0;
	}

	.bcecc-table tfoot td::before {
		content: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bcecc *,
	.bcecc *::before,
	.bcecc *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
