/*
Theme Name: VAEA
Theme URI: https://www.vaea.vic.gov.au
Version: 1.2
Description: Custom theme for the Victorian Asbestos Eradication Agency (VAEA).
Author: WorkSafe Victoria
Author URI: https://www.worksafe.vic.gov.au/
template: bb-theme
*/

/* Custom accordion style for dictionary */ 

.acm-accordion .rpl-table {
	margin: 1.5em 0;
	overflow-x: auto;
}

.acm-accordion .rpl-table__scroll-container {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.acm-accordion .rpl-table table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.95rem;
}

.acm-accordion .rpl-table th,
.acm-accordion .rpl-table td {
	border: 1px solid #d5d5d5;
	padding: 0.6em 0.5em;
	text-align: center;
	vertical-align: middle;
}

.acm-accordion .rpl-table thead th {
	background: #4C4D52;
	color: #fff;
	border-color: #4C4D52;
	padding: 0.5em;
}

.acm-accordion .rpl-table thead th h5 {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
}

/* Default (non-selected) cell text */
.acm-accordion .rpl-table tbody td {
	color: #333;
	font-weight: 400;
}

/* Highlighted / selected value — wrapped in <h4> by the source markup */
.acm-accordion .rpl-table tbody td h4 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: #00b2a9; /* accent — adjust to match VAEA brand colour */
	border-radius: 3px;
	padding: 0.35em 0.4em;
}

/* Ease of fibre release: colour the scale from low (green) to high (red) risk */
.acm-accordion .rpl-table table colgroup + thead + tbody tr:first-child td:nth-child(1),
.acm-accordion .rpl-table table colgroup + thead + tbody tr:first-child td:nth-child(2),
.acm-accordion .rpl-table table colgroup + thead + tbody tr:first-child td:nth-child(3) {
	background: #eaf6ec;
}

.acm-accordion .rpl-table table colgroup + thead + tbody tr:first-child td:nth-child(8),
.acm-accordion .rpl-table table colgroup + thead + tbody tr:first-child td:nth-child(9),
.acm-accordion .rpl-table table colgroup + thead + tbody tr:first-child td:nth-child(10) {
	background: #fdeceb;
}

/* "<– Lowest risk" / "Highest risk –>" caption row */
.acm-accordion .rpl-table tbody tr:last-child td {
	border: none;
	font-size: 0.8rem;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding-top: 0.3em;
}

@media (max-width: 600px) {
	.acm-accordion .rpl-table th,
	.acm-accordion .rpl-table td {
		padding: 0.4em 0.3em;
		font-size: 0.85rem;
	}
}

/* Adjust margins for text content */
.fl-rich-text ul li, 
.fl-rich-text ol li {
    margin-bottom: 10px; 
}

.fl-rich-text ul, 
.fl-rich-text ol {
    margin-bottom: 15px; 
}

.fl-rich-text p {
    margin-bottom: 25px; 
}