/**
 * ACWC document download list
 * Shared by TOR (.acwc-document-list) and ROP & Workplan (.workplan-list)
 */

.acwc-document-list,
.workplan-list,
.acwc-document-list.gb-container,
.workplan-list.gb-container,
.entry-content .acwc-document-list,
.entry-content .workplan-list {
	width: 100% !important;
	max-width: 100% !important;
	margin: 24px 0 40px;
}

/* Full-width document rows */
.acwc-document-list .gb-button,
.workplan-list .gb-button,
.entry-content .acwc-document-list .gb-button,
.entry-content .workplan-list .gb-button {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 12px !important;
	padding: 14px 18px !important;
	border: 1px solid #e5e5e5 !important;
	border-left: 4px solid #803380 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #333 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.acwc-document-list .gb-button:hover,
.acwc-document-list .gb-button:focus,
.workplan-list .gb-button:hover,
.workplan-list .gb-button:focus,
.entry-content .acwc-document-list .gb-button:hover,
.entry-content .workplan-list .gb-button:hover {
	background: #faf7fb !important;
	color: #803380 !important;
	box-shadow: 0 2px 8px rgba(128, 51, 128, 0.12) !important;
}

.acwc-document-list .gb-button .gb-icon,
.workplan-list .gb-button .gb-icon {
	flex: 0 0 auto;
	margin-right: 0.55em;
	color: #803380;
}

.acwc-document-list .gb-button .gb-button-text,
.workplan-list .gb-button .gb-button-text {
	flex: 1 1 auto;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
}

/* "Download" chip on the right */
.acwc-document-list .gb-button .gb-button-text::after,
.workplan-list .gb-button .gb-button-text::after {
	content: "Download";
	float: right;
	margin-left: 16px;
	padding: 4px 12px;
	background: #803380;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.acwc-document-list .gb-button:hover .gb-button-text::after,
.workplan-list .gb-button:hover .gb-button-text::after {
	background: #222;
}

/* About page nav rows → pages (not PDF downloads) */
.acwc-document-list--nav .gb-button .gb-button-text::after {
	content: "View";
}

@media (max-width: 575px) {
	.acwc-document-list .gb-button .gb-button-text::after,
	.workplan-list .gb-button .gb-button-text::after {
		display: block;
		float: none;
		width: fit-content;
		margin: 10px 0 0;
	}
}

/* Temporarily hide page content (e.g. Past Representative) while updating */
.acwc-hidden-content {
	display: none !important;
}

.acwc-updating-notice {
	margin: 24px 0 40px;
	padding: 20px 24px;
	border-left: 4px solid #803380;
	background: #faf7fb;
	color: #555;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}
