/* Governance Page Styles */

.governance-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem 5rem;
}

.governance-shell {
	border: 1px solid rgba(69, 71, 100, 0.14);
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(52, 142, 134, 0.08) 0%, rgba(52, 142, 134, 0.16) 100%);
	padding: 1.6rem 1.35rem;
	margin-bottom: 1.4rem;
}

.governance-shell h1 {
	margin: 0;
	color: var(--primary-color);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.35;
}

.governance-shell p {
	margin: 0.8rem 0 0;
	color: var(--primary-color);
	line-height: 1.9;
	opacity: 0.9;
}

.governance-sections {
	display: grid;
	gap: 1rem;
}

.governance-section-group {
	border: 1px solid rgba(69, 71, 100, 0.14);
	border-radius: 16px;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.governance-section-group:hover {
	border-color: rgba(52, 142, 134, 0.35);
	box-shadow: 0 4px 12px rgba(52, 142, 134, 0.1);
}

.governance-section-group[open] .governance-section-chevron {
	transform: rotate(180deg);
}

.governance-section-summary {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1rem;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	width: 100%;
	text-align: right;
	list-style: none;
	user-select: none;
	-webkit-user-select: none;
	transition: background-color 0.2s ease;
}

.governance-section-summary:hover {
	background: rgba(52, 142, 134, 0.04);
}

.governance-section-summary::-webkit-details-marker {
	display: none;
}

.governance-section-summary::marker {
	display: none;
}

.governance-section-title {
	margin: 0;
	flex: 1;
	color: var(--primary-color);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
}

.governance-section-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: rgba(52, 142, 134, 0.12);
	color: var(--primary-color);
	font-size: 0.85rem;
	font-weight: 700;
}

.governance-section-chevron {
	display: inline-block;
	width: 1.2rem;
	height: 1.2rem;
	transition: transform 0.3s ease;
	color: var(--primary-color);
}

.governance-section-content {
	border-top: 1px solid rgba(69, 71, 100, 0.12);
	padding: 1rem;
	background: #ffffff;
	border-radius: 0 0 16px 16px;
}

.governance-files-list {
	display: grid;
	gap: 0.8rem;
}

.governance-file-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	border: 1px solid rgba(69, 71, 100, 0.12);
	border-radius: 12px;
	padding: 1rem;
	background: rgba(52, 142, 134, 0.02);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.governance-file-item:hover {
	border-color: rgba(52, 142, 134, 0.25);
	background: rgba(52, 142, 134, 0.06);
}

.governance-file-info {
	flex: 1;
	min-width: 0;
}

.governance-file-title {
	margin: 0;
	color: var(--primary-color);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.5;
}

.governance-file-description {
	margin: 0.5rem 0 0;
	color: var(--primary-color);
	font-size: 0.85rem;
	line-height: 1.6;
	opacity: 0.85;
}

.governance-file-meta {
	margin: 0.5rem 0 0;
	color: var(--primary-color);
	font-size: 0.8rem;
	line-height: 1.5;
	opacity: 0.65;
}

.governance-file-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	border: 0;
	background: var(--primary-color);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}

.governance-file-button:hover,
.governance-file-button:focus-visible {
	background: var(--primary-color-75);
	transform: translateY(-2px);
}

.governance-empty {
	padding: 2.5rem 1.5rem;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid rgba(69, 71, 100, 0.14);
	text-align: center;
}

.governance-empty p {
	margin: 0;
	color: var(--primary-color);
	font-weight: 500;
	opacity: 0.8;
}

/* Animations */
.governance-file-item {
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.governance-page {
		padding: 1.5rem 1rem 3rem;
	}

	.governance-shell {
		padding: 1.2rem 1rem;
	}

	.governance-shell h1 {
		font-size: 1.6rem;
	}

	.governance-file-item {
		flex-direction: column;
	}

	.governance-file-button {
		width: 100%;
		justify-content: center;
	}
}
