/**
 * Capacity Statement PDF modal — Our Vision page only.
 */

.hfh-capacity-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
	/* backdrop + dialog positioning context */
	isolation: isolate;
}

.hfh-capacity-modal[hidden] {
	display: none;
}

.hfh-capacity-modal__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.62);
	z-index: 0;
}

.hfh-capacity-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(960px, 100%);
	max-height: min(90vh, 860px);
	background: #222;
	border-radius: 6px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.hfh-capacity-modal__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 0.45rem 0.55rem;
	background: #2d2d2d;
	border-bottom: 1px solid #444;
	flex-shrink: 0;
}

.hfh-capacity-modal__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	flex-shrink: 0;
}

.hfh-capacity-modal__download,
.hfh-capacity-modal__close {
	font-family: inherit;
	font-size: 0.6875rem;
	line-height: 1;
	padding: 0.35rem 0.55rem;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
	border: 1px solid transparent;
}

.hfh-capacity-modal__download {
	color: #fff;
	background: #0099cc;
	border-color: #0088b8;
	font-weight: 600;
}

.hfh-capacity-modal__download:hover,
.hfh-capacity-modal__download:focus {
	background: #0088b8;
	color: #fff;
	outline: none;
}

.hfh-capacity-modal__close {
	color: #eee;
	background: #444;
	border-color: #555;
	font-weight: 600;
}

.hfh-capacity-modal__close:hover,
.hfh-capacity-modal__close:focus {
	background: #555;
	color: #fff;
	outline: none;
}

.hfh-capacity-modal__frame {
	flex: 1 1 auto;
	width: 100%;
	min-height: 280px;
	border: 0;
	background: #111;
}

@media (max-width: 600px) {
	.hfh-capacity-modal {
		padding: 0.5rem;
	}

	.hfh-capacity-modal__dialog {
		max-height: 92vh;
		border-radius: 4px;
	}

	.hfh-capacity-modal__toolbar {
		justify-content: flex-end;
	}

	.hfh-capacity-modal__actions {
		justify-content: flex-end;
	}
}
