
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*
	TABLES CSS STYLES - tables.css
	UPDATED: November 2026
	
	Tables are quite complex - so put in here - in a separate file - will get minified anyway in WordPress
	
	CSS TABLE STYLES
	General styling for tables - various responsive styles
	
	This is a more modern version of tables from 2019
	Responsive tables with different ways of pairing down for smaller screens
	
	------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	Examples on - "testing-tables.php"
	
	------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	SETTING TABLES UP FOR THE SITE - To use horixontal scrolling or not
	
	SITE WIDE HORIZONTAL SCROLLING TABLES
	Horizontal scrolling tables (needs a wrapper around the table) - use this and overflow on the grid/containing cells (.main-panels)
	where needed:
	/ * main panels - generic panels * /
	#main-panels-container .main-panels{
		/* overflow-x:auto; * / / * horizontal scrolling tables * /
	}
	
	SINGLE PAGE HORIZONTAL SCROLLING TABLES
	To do overflow: set a style on the body of the page if it has tables - do all the overflows in one CSS style - '.page-ths'
	<body id="" class="page-ths">
	
	HORIZONTAL SCROLLING NOTE: We tried newer nested grid/flex container page fixes with min-width:0; but this would not work.
	
	FULL DETAILS BELOW UNDER: "TABLES - HORIZONTAL SCROLL" CSS STYLES
	
	------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	The default table is the responsive table with separate rows, with a class to amend to same row.
	To use scrolling site-wide tables instead then hide the mobile styles for the default and use the scrolling ones instead - a well as setting overflow on
	the grid cell (.main-panels) 		
	
	MAIN SITE TABLES
	----------------
	
	Table 1: A RESPONSIVE Table - with title/value on separate rows
	Table 2: A RESPONSIVE Table - with title/value on same row - fluid columns
	Table 3: A RESPONSIVE Table - with title/value on same row - fixed width columns
	Table 4: A HORIZONTALLY SCROLLING Table (need to adapt CSS to use these instead of responsive tables)
	
	DIV TABLE LAYOUT - default table style div layout
	A 'table' made from div cells layout.
	Table 5: A RESPONSIVE 'Table' - made from div cells layout
	
	DIV TABLE LAYOUT - VERTICAL HEADERS
	Note: Using table column cells (tcol) creates an issue when data gets over 2 lines as they wont all match up.
	So need to set a suitable height in this case that will fit known static data (dynamic data no good as unknown).
	See the specific VERTICAL Responsive Tables test pages for better versions.
	
	A 'table' made from div cells layout.
	Table 6: A RESPONSIVE 'Table' - VERTICAL HEADERS - made from div cells layout
	
	BASIC SITE TABLES	
	-----------------
	
	The 'basic' CSS styles for cookies page etc. have a tables approach that allows 3 types of table to be used at once.
	1. Scrolling - table scroll horizontally for small screens
	2. Responsive - tables have the rows split into blocks for small screens for readability - with title/value on the same row
	3. same as 2 but with title/value on separate rows
	The main site has an alternative approach. As Above.
*/
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------- */



/* ************************************************************************************************************************************************************* */
/* TABLES STYLES */
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */
/* TABLES */
/* tables are getting complex - could put in own file - will get minified anyway */

/* vertical scroll table inside a div */
.table-vertical-scroll{
}

/* general table styles: responsive tables - separate rows for titles and content */
table{
	border:red 0px solid;
	margin:2.0rem 0 0 0;
	padding:0;
	font-family:Verdana, Arial, Helvetica, Sans-Serif;
	font-size:1rem;
	/*min-width:700px;*/
	width:100%; /*width:auto;*/
	border-collapse:collapse;
	background-color:#fff;
}
	#main-panels-container .main-panels table :first-child{
		margin-top:auto;
		padding-top:0.5rem; /* match the td */
	}
	table caption, table thead, table th, table td, table a{
		font-family:Verdana, Arial, Helvetica, Sans-Serif;
	}
	table thead{
	}
	table tbody{
	}
	table caption{
		border:blue 0px solid;
		margin:0rem 0 1rem 0;
		font-size:1.4rem;
		color:#666;
		text-align:left;
		font-weight:bold;
	}
	table tr{
	}
		/* first row */
		#main-panels-container .main-panels table tr:first-of-type{
		}
		/* force alternate rows colour and override any td colors set for responsive mobile tables */
		table tr:nth-of-type(2n-1) td{
		}
		/* column 1 */
		table tbody tr td:nth-of-type(1){
		}
		/* striped rows: 2n or 2n-1 */
		table tbody tr:nth-of-type(2n-1){
			background-color:#f0f0f0;
		}
	table th{
		border:#666666 1px solid;
		margin:0;
		padding:0.5rem 1.0rem;
		color:#666;
		font-size:1.5rem;
		font-weight:bold;
		text-align:left;
		background-color:#fff;
	}
		table th.wid-1{
			width:15%;
		}
	table td{
		border:#666666 1px solid;
		margin:0rem;
		padding:0.5rem 1.0rem;
		color:#666;
		font-size:1.5rem;
		text-align:left;
		vertical-align:middle;
	}
		table td:last-child{
		}
		table td:before{
			border:green 0px solid;
		}
		table td a{
			float:none;
			margin:0;
			padding:0;
			color:#000; /*fd4f00*/
			font-size:1em;
			text-decoration:none;
		}
			table td a:hover{
				/*font-weight:normal;*/
				text-decoration:underline;
			}
	/* images */
	table img{
		margin:0rem;
		padding:0rem;
		text-align:left;
	}

/* responsive tables - adapt so titles and content are on one row - fluid columns */
table.table-1, table.table-2{
}

/* responsive tables - adapt so titles and content are on one row - fixed width columns */
table.table-2{
}

/* TABLES */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */
/* TABLES - SPECIFIC */
/* specific styles building on the base table layout */

/* vertical scroll table inside a div */
.table-vertical-scroll.tvs-election-1{
}

/* --------------------------------------------------------------------------------------------------------------------------------- */
/* Election page - table 1 */
table.election-1{
	border:#000 2px solid;
	margin:2.0rem 0 0 0;
	padding:0;
	font-size:1rem;
}
	#main-panels-container .main-panels table.election-1 :first-child{
		margin-top:auto;
		padding-top:0.5rem; /* match the td */
	}
	table.election-1 thead{
	}
	table.election-1 tbody{
	}
	table.election-1 caption{
		border:blue 0px solid;
		margin:0rem 0 1rem 0;
		font-size:1.4rem;
		color:#000;
	}
	table.election-1 tr{
	}
		/* column 1 */
		table.election-1 tbody tr td:nth-of-type(1){
		}
		/* striped rows: 2n or 2n-1 */
		table.election-1 tbody tr:nth-of-type(2n-1){
			background-color:#fff;
		}
	table.election-1 th{
		border:#c3c3c3 1px solid;
		margin:0;
		padding:0.5rem 1.0rem;
		color:#000;
		font-size:1.5rem;
	}
		#main-panels-container .main-panels table.election-1 th:first-of-type{
			background-color:#e7e7e9;
		}
		table.election-1 th.wid-1{
			width:15%;
		}
	table.election-1 td{
		border:#c3c3c3 1px solid;
		margin:0rem;
		padding:0.5rem 1.0rem;
		color:#000;
		font-size:1.5rem;
	}
		table.election-1 td:first-of-type{
		}
		/* force alternate rows colour and override any td colors set for responsive mobile tables */
		 #main-panels-container .main-panels table.election-1 tr:nth-of-type(2n-1) td:first-of-type{
		}
		table.election-1 td:last-child{
		}
		table.election-1 td:before{
		}
		table.election-1 td a{
			color:#000;
		}
			table.election-1 td a:hover{
				text-decoration:underline;
			}
		table.election-1 th.conservative,
		table.election-1 td.conservative{
			background-color:#003cab;
		}
		table.election-1 th.labour,
		table.election-1 td.labour{
			background-color:#c20800;
		}
		table.election-1 th.liberal,
		table.election-1 td.liberal{
			background-color:#ffba22;
		}
		table.election-1 th.snp,
		table.election-1 td.snp{
			background-color:#ffe146;
		}
		table.election-1 th.green,
		table.election-1 td.green{
			background-color:#006b46;
		}
		table.election-1 th.pc,
		table.election-1 td.pc{
			background-color:#149678;
		}
		table.election-1 th.reform,
		table.election-1 td.reform{
			background-color:#6acaf5;
		}
		table.election-1 th.independent,
		table.election-1 td.independent{
			background-color:#a862ab;
		}
		table.election-1 th.other,
		table.election-1 td.other{
			background-color:#bfbdbd;
		}
	/* images */
	table.election-1 img{
		margin:0rem;
		padding:0rem;
		text-align:left;
	}
/* --------------------------------------------------------------------------------------------------------------------------------- */

/* TABLES - SPECIFIC */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */
/* TABLES - HORIZONTAL SCROLL */
/*
	SITE WIDE HORIZONTAL SCROLLING TABLES
	--------------------------------------
	Horizontal scrolling tables (needs a wrapper around the table) - use this and overflow on the grid/containing cells (.main-panels)
	where needed:
	/ * main panels - generic panels * /
	#main-panels-container .main-panels{
		/ * overflow-x:auto; * / / * horizontal scrolling tables * /
	}
	IF MOBILE STYLES ARE ADAPTIVE BY DEFAULT - THEN NEED TO RESET/OVERRIDE THEM HERE - table{} CSS
	(adaptive styles clash as scrolling ones don't need to adapt)
	So to have both adaptive and scrolling responsive tables across the whole site - to use all types of table together:
	have the adaptive ones by default - and use a wrapper for scrolling along with a style to set the overflow:auto for the page
	
	SINGLE PAGE HORIZONTAL SCROLLING TABLES
	----------------------------------------
	To do overflow: set a style on the body of the page if it has tables - do all the overflows in one CSS style - '.page-ths'
	<body id="" class="page-ths">
*/

/* goes on body style - need overflow:auto on containing div to stop page scrolling rather than just the table */
.page-ths{
}
	.page-ths #main-panels-container .main-panels{
		/*width:80%;*/ /* 80% */
	}

.table-horiz-scroll{
	border:green 0px solid;
	display:block;
	overflow-x:auto;
	/* prevent accidental "back/forward" browser swipe gestures when a user reaches the edge of the horizontal scroll area */
	overscroll-behavior-x:contain;
}
	/* select and style the first child element of every #main-panels-container .main-panels .table-horiz-scroll element: */
	#main-panels-container .main-panels .table-horiz-scroll > :first-child{
		margin-top:2.0rem;
	}
	
	/* table styles */
	.table-horiz-scroll table{
		overflow-x:auto;
		/*display:block;*/ /* forces table gap inside border so no good */
	}
		.table-horiz-scroll table thead{
		}
		.table-horiz-scroll table tbody{
		}
		.table-horiz-scroll table caption{
		}
		.table-horiz-scroll table tr{
		}
			/* column 1 */
			.table-horiz-scroll table tr td:nth-of-type(1){
			}
			/* alternate 'rows' - actually td's - 2n or 2n-1 */
			.table-horiz-scroll table tr td:nth-of-type(2n-1){
			}
			/* striped rows: 2n or 2n-1 */
			.table-horiz-scroll table tbody tr:nth-of-type(2n-1){
			}
		.table-horiz-scroll table th{
		}
			.table-horiz-scroll table th.wid-1{
			}
		.table-horiz-scroll table td{
		}
			.table-horiz-scroll table td:last-child{
			}
			.table-horiz-scroll table td:before{
			}
			.table-horiz-scroll table td a{
			}
				.table-horiz-scroll table td a:hover{
				}
/* TABLES - HORIZONTAL SCROLL */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */
/* DIV TABLE LAYOUT - default table style div layout */

/* table container */
.table{
	border:red 0px solid;
	margin:2.0rem 0 0 0;
	padding:0;
	font-family:Verdana, Arial, Helvetica, Sans-Serif;
	font-size:1rem;
	width:100%;
}
	.table caption, .table .theader, .table .trow, .table .tcell, .table a{
		font-family:Verdana, Arial, Helvetica, Sans-Serif;
	}
	/* table caption */
	.table .tcaption{
		border:blue 0px solid;
		margin-bottom:0.5rem;
		color:#666;
		font-size:1.5rem;
		text-align:left;
		font-weight:bold;
	}

	/* header container */
	.table .theaders{
		border:blue 0px solid;
		border-top:#000000 0px solid;
		border-bottom:#000000 1px solid;
		margin:0;
		padding:0rem 0rem 0rem 0rem;
		font-size:1rem;
		width:100%;
		/* FLEX */
		display:flex;
		flex-flow:row wrap;
		justify-content:flex-start;
		align-items:center;
	}
		/* header items */
		.table .theaders .theader{
			border:green 0px solid;
			clear:none;
			margin:0;
			padding:0.2rem 0.5rem;
			font-size:1.4rem;
			font-weight:normal;
			text-align:left;
			width:20.0%;
		}
			/* links */
			.table .theaders .theader a{
				text-decoration:none;
				color:#000;
			}
				.table .theaders .theader a:hover{
					text-decoration:underline;
					color:#000;
				}
				.table .theaders .theader a.selected{
					text-decoration:underline;
					color:#000;
				}
			/* general header style options */
			.table .theaders .theader.header-1{
			}
	/* row container */
	.table .trows{
		border:blue 0px solid;
		border-bottom:#000000 1px solid;
		margin:0;
		padding:0;
		font-size:1rem;
	}
		/* table rows - tr */
		.table .trows .trow{
			border:red 0px solid;
			border-bottom:#999999 1px solid;
			clear:none;
			margin:0;
			padding:0.8rem 0;
			font-size:1rem;
			/*background-color:#ccc;*/
			/* FLEX */
			display:flex;
			flex-flow:row wrap;
			justify-content:flex-start;
			align-items:flex-start;
		}
			/* striped rows: 2n or 2n-1 */
			.table .trows .trow:nth-of-type(2n-1){
				background-color:#eee;
			}
			/* Selects any row that is the first element of its type among its siblings */
			.table .trows .trow:first-of-type{
			}
			.table .trows .trow:last-of-type{
				border-bottom:#999999 0px solid;
			}
			/* table row cells - td */
			.table .trows .trow .tcell{
				border:green 0px solid;
				clear:none;
				margin:0;
				padding:0.5rem 0.5rem;
				color:#666;
				font-size:1.4rem;
				text-align:left;
				width:20.0%;
				/* text typography settings */
				overflow-wrap:anywhere; /* wrap long title - stop container breaking */
				text-wrap:pretty; /* prevent orphan words */
				hyphens:auto; /* apply cosmetic hyphenation */
				-webkit-hyphens:auto; /* required for older iOS Safari versions */
			}
				/* general row cells style options */
				.table .trows .trow .tcell.cell-1{
				}
/* DIV TABLE LAYOUT - default table style div layout */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */
/* DIV TABLE LAYOUT - VERTICAL HEADERS - default table style div layout */

/* table container */
.table-vertical{
	border:red 0px solid;
	margin:0;
	padding:1.2rem 0 0 0;
	font-family:Verdana, Arial, Helvetica, Sans-Serif;
	font-size:1rem;
	width:100%;
}
	.table-vertical tcaption, .table-vertical .theader, .table-vertical .tcol, .table-vertical .tcell, .table-vertical a{
		font-family:Verdana, Arial, Helvetica, Sans-Serif;
	}
	/* table caption */
	.table-vertical .tcaption{
		border:blue 0px solid;
		margin-bottom:0.5rem;
		color:#000;
		font-size:1.5rem;
		text-align:left;
		font-weight:bold;
	}
	/* row container */
	.table-vertical .tcols{
		border:blue 0px solid;
		border-top:#000000 1px solid;
		border-bottom:#000000 1px solid;
		margin:0;
		padding:0;
		font-size:1rem;
		/* FLEX */
		display:flex;
		flex-flow:row nowrap;
		justify-content:flex-start;
		align-items:flex-start;
	}
		/* header items */
		.table-vertical .tcols .tcol{
			border:green 0px solid;
			clear:none;
			margin:0;
			padding:0rem 0rem;
			font-size:1rem;
			width:25.0%;
		}
			/* striped items: 2n or 2n-1 */
			.table-vertical .tcols .tcol:nth-of-type(2n-1){ /*2n 2n-1*/
			}
			/* links */
			.table-vertical .trows .theader a{
				text-decoration:none;
				color:#0056d0;
			}
				.table-vertical .trows .theader a:hover{
					text-decoration:underline;
					color:#0056d0;
				}
				.table-vertical .trows .theader a.selected{
					text-decoration:underline;
					color:#0056d0;
				}
			/* table cells - headers */
			.table-vertical .tcols #col-theaders{
			}
				.table-vertical .tcols #col-theaders.tcol .tcell{
					/*border:blue 0px dashed;*/
					font-weight:bold;
					text-transform:uppercase;
				}
				/* striped items: 2n or 2n-1 */
				.table-vertical .tcols #col-theaders.tcol .tcell:nth-of-type(2n-1){ /*2n 2n-1*/
				}
			/* table cells */
			.table-vertical .tcols .tcol .tcell{
				border:blue 0px solid;
				clear:none;
				margin:0;
				padding:0.5rem 0.5rem;
				color:#4a494b;
				font-size:1.4rem;
				width:100.0%;
				background-color:#fff; /* ccc fff */
				/* text typography settings */
				overflow-wrap:anywhere; /* wrap long title - stop container breaking */
				text-wrap:pretty; /* prevent orphan words */
				hyphens:auto; /* apply cosmetic hyphenation */
				-webkit-hyphens:auto; /* required for older iOS Safari versions */
			}
				/* striped items: 2n or 2n-1 */
				.table-vertical .tcols .tcol .tcell:nth-of-type(2n-1){ /*2n 2n-1*/
					background-color:#f0f0f0; /* eee f0f0f0 */
				}
				.table-vertical .tcols .tcol .tcell:nth-of-type(2n){ /*2n 2n-1*/
					border-top:#999 1px solid;
					border-bottom:#999 1px solid;
				}
				/* general row cells style options */
				.table-vertical .tcols .tcol .tcell.cell-1{
				}
/* DIV TABLE LAYOUT - VERTICAL HEADERS - default table style div layout */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */
/* DIV SCROLL TABLE LAYOUT - default table style div layout */

/* table wrapper - scroll */
.scrolltable-wrap{
}

/* table container */
.scrolltable{
	border:red 0px solid;
	margin:2.0rem 0 0 0;
	padding:0;
	font-family:Verdana, Arial, Helvetica, Sans-Serif;
	font-size:1rem;
	width:100%;
}
	.scrolltable tcaption, .scrolltable .theader, .scrolltable .trow, .scrolltable .tcell, .scrolltable a{
		font-family:Verdana, Arial, Helvetica, Sans-Serif;
	}
	/* table caption */
	.scrolltable .tcaption{
		border:blue 0px solid;
		margin-bottom:0.5rem;
		color:#666;
		font-size:1.5rem;
		text-align:left;
		font-weight:bold;
	}

	/* header container */
	.scrolltable .theaders{
		border:blue 0px solid;
		border-top:#000000 0px solid;
		border-bottom:#000000 1px solid;
		margin:0;
		padding:0rem 0rem 0rem 0rem;
		font-size:1rem;
		width:100%;
		/* FLEX */
		display:flex;
		flex-flow:row wrap;
		justify-content:flex-start;
		align-items:center;
	}
		/* header items */
		.scrolltable .theaders .theader{
			border:green 0px solid;
			clear:none;
			margin:0;
			padding:0.2rem 0.5rem;
			font-size:1.4rem;
			font-weight:normal;
			text-align:left;
			width:20.0%;
		}
			/* links */
			.scrolltable .theaders .theader a{
				text-decoration:none;
				color:#000;
			}
				.scrolltable .theaders .theader a:hover{
					text-decoration:underline;
					color:#000;
				}
				.scrolltable .theaders .theader a.selected{
					text-decoration:underline;
					color:#000;
				}
			/* general header style options */
			.scrolltable .theaders .theader.header-1{
			}
	/* row container */
	.scrolltable .trows{
		border:blue 0px solid;
		border-bottom:#000000 1px solid;
		margin:0;
		padding:0;
		font-size:1rem;
	}
		/* table rows - tr */
		.scrolltable .trows .trow{
			border:red 0px solid;
			border-bottom:#999999 1px solid;
			clear:none;
			margin:0;
			padding:0.8rem 0;
			font-size:1rem;
			/*background-color:#ccc;*/
			/* FLEX */
			display:flex;
			flex-flow:row wrap;
			justify-content:flex-start;
			align-items:flex-start;
		}
			/* striped rows: 2n or 2n-1 */
			.scrolltable .trows .trow:nth-of-type(2n-1){
				background-color:#eee;
			}
			/* Selects any row that is the first element of its type among its siblings */
			.scrolltable .trows .trow:first-of-type{
			}
			.scrolltable .trows .trow:last-of-type{
				border-bottom:#999999 0px solid;
			}
			/* table row cells - td */
			.scrolltable .trows .trow .tcell{
				border:green 0px solid;
				clear:none;
				margin:0;
				padding:0.5rem 0.5rem;
				color:#666;
				font-size:1.4rem;
				text-align:left;
				width:20.0%;
				/* text typography settings */
				overflow-wrap:anywhere; /* wrap long title - stop container breaking */
				text-wrap:pretty; /* prevent orphan words */
				hyphens:auto; /* apply cosmetic hyphenation */
				-webkit-hyphens:auto; /* required for older iOS Safari versions */
			}
				/* general row cells style options */
				.scrolltable .trows .trow .tcell.cell-1{
				}
/* DIV SCROLL TABLE LAYOUT - default table style div layout */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */

/* TABLES STYLES */
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------- */





/* ------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* TABLES STYLES - MEDIA QUERIES */

/* WIDE DESKTOP / LARGE SCREEN LAYOUT */
@media only screen and (min-width: 114em) { /* 1920px = 120em, 1824px = 114em */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES */
	/* TABLES */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES - SPECIFIC */
	/* specific styles building on the base table layout */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Marginal Seats - table 1 */
	/* Marginal Seats - table 1 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Marginal Seats - table 2 */
	/* Marginal Seats - table 2 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Marginal Seats - table 3 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Election page - table 1 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Election page - table 2 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* TABLES - SPECIFIC */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES - HORIZONTAL SCROLL */
	/* TABLES - HORIZONTAL SCROLL */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV TABLE LAYOUT - default table style div layout */
	/* DIV TABLE LAYOUT - default table style div layout */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV TABLE LAYOUT - VERTICAL HEADERS - default table style div layout */
	/* DIV TABLE LAYOUT - VERTICAL HEADERS - default table style div layout */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV SCROLL TABLE LAYOUT - default table style div layout */
	/* DIV SCROLL TABLE LAYOUT - default table style div layout */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
}
/* WIDE DESKTOP / LARGE SCREEN LAYOUT */


/* TABLET / MEDIUM SCREEN LAYOUT */
@media only screen and (max-width: 80em) { /* 1280px = 80em, 1024px = 64em */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES */
	/* TABLES */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES - SPECIFIC */
	/* specific styles building on the base table layout */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Marginal Seats - table 1 */
	/* Marginal Seats - table 1 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Marginal Seats - table 2 */
	/* Marginal Seats - table 2 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Marginal Seats - table 3 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	/* Election page - table 1 */
	/* ----------------------------------------------------------------------------------------------------------------------------------------- */
	
	/* TABLES - SPECIFIC */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES - HORIZONTAL SCROLL */
	/* TABLES - HORIZONTAL SCROLL */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV TABLE LAYOUT - default table style div layout */
	/* DIV TABLE LAYOUT - default table style div layout */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV TABLE LAYOUT - VERTICAL HEADERS - default table style div layout */
	/* DIV TABLE LAYOUT - VERTICAL HEADERS - default table style div layout */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV SCROLL TABLE LAYOUT - default table style div layout */
	/* DIV SCROLL TABLE LAYOUT - default table style div layout */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
}
/* TABLET / MEDIUM SCREEN LAYOUT */


/* MOBILE / SMALL SCREEN LAYOUT */
@media all and (max-width: 45em) { /* 720px = 45em, 640px = 40em */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES */
	
	/* vertical scroll table inside a div */
	.table-vertical-scroll{
	}
	
	/* general table styles: responsive tables - separate rows for titles and content */
	table{
	}
		#main-panels-container .main-panels table :first-child{
		}
		table thead{
			display:none;
		}
		table tbody{
		}
		table caption{
		}
		table tr{
			margin-bottom:1rem;
			display:block;
		}
			/* first row */
			#main-panels-container .main-panels table tr:first-of-type{
				padding-top:0rem;
			}
			/* force alternate rows colour and override any td colors set for responsive mobile tables */
			#main-panels-container .main-panels table tr:nth-of-type(2n-1) td{
				background-color:#f0f0f0 !important;
			}
			/* column 1 */
			table tr td:nth-of-type(1){
			}
			/* alternate 'rows' - actually td's - 2n or 2n-1 */
			table tr td:nth-of-type(2n-1){
			}
			/* striped rows: 2n or 2n-1 */
			table tbody tr:nth-of-type(2n-1){
			}
		table th{
		}
			table th.wid-1{
			}
		table td{
			border-bottom:#666666 0px solid;
			margin:0;
			padding:0.5rem 1.0rem;
			display:block;
		}
			table td:last-child{
				border-bottom:#666666 1px solid;
			}
			table td:before{
				content:attr(data-title);
				display:block;
				font-weight:bold;
				width:100%;
			}
			table td a{
			}
				table td a:hover{
				}
				
	/* responsive tables - adapt so titles and content are on one row - fluid columns */
	table.table-1, table.table-2{
	}
		table.table-1 thead,
		table.table-2 thead{
			display:none;
		}
		table.table-1 tbody,
		table.table-2 tbody{
		}
		table.table-1 caption,
		table.table-2 caption{
		}
		table.table-1 tr,
		table.table-2 tr{
			margin-bottom:1rem;
			display:block;
		}
			/* column 1 */
			table.table-1 tr td:nth-of-type(1),
			table.table-2 tr td:nth-of-type(1){
			}
			/* alternate 'rows' - actually td's - 2n or 2n-1 */
			table.table-1 tr td:nth-of-type(2n-1),
			table.table-2 tr td:nth-of-type(2n-1){
				/*background-color:#f0f0f0;*/
			}
			/* striped rows: 2n or 2n-1 */
			table.table-1 tbody tr:nth-of-type(2n-1),
			table.table-2 tbody tr:nth-of-type(2n-1){
				background:none;
			}
		table.table-1 th,
		table.table-2 th{
		}
			table.table-1 th.wid-1,
			table.table-2 th.wid-1{
			}
		table.table-1 td,
		table.table-2 td{
			border-bottom:#666666 0px solid;
			margin:0;
			padding:0.5rem 1.0rem;
			display:block;
			text-align:right;
		}
			table.table-1 td:last-child,
			table.table-2 td:last-child{
				border-bottom:#666666 1px solid;
			}
			table.table-1 td:before,
			table.table-2 td:before{
				content:attr(data-title);
				margin-right:1rem;
				float:left;
				display:block;
				font-weight:bold;
				width:auto;
			}
			table.table-1 td a,
			table.table-2 td a{
			}
				table.table-1 td a:hover,
				table.table-2 td a:hover{
				}

	/* responsive tables - adapt so titles and content are on one row - fixed width columns */
	table.table-2{
	}
		table.table-2 thead{
		}
		table.table-2 tbody{
		}
		table.table-2 caption{
		}
		table.table-2 tr{
		}
			/* column 1 */
			table.table-2 tr td:nth-of-type(1){
			}
			/* alternate 'rows' - actually td's - 2n or 2n-1 */
			table.table-2 tr td:nth-of-type(2n-1){
				/*background-color:#f0f0f0;*/
			}
			/* striped rows: 2n or 2n-1 */
			table.table-2 tbody tr:nth-of-type(2n-1){
			}
		table.table-2 th{
		}
			table.table-2 th.wid-1{
			}
		table.table-2 td{
			position:relative;
			padding-left:52%;
			text-align:left;
			width:100%;
		}
			table.table-2 td:last-child{
			}
			table.table-2 td:before{
				padding:0rem 1rem;
				position:absolute;
				left:0;
				width:50%;
			}
			table.table-2 td a{
			}
				table.table-2 td a:hover{
				}
	/* TABLES */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */


	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES - SPECIFIC */
	/* specific styles building on the base table layout */
	
	/* vertical scroll table inside a div */
	.table-vertical-scroll{
		margin:2.0rem 0 0 0;
		max-height:70rem;
		overflow-y:scroll;
	}
		.table-vertical-scroll.tvs-election-1{
			border:#000 2px solid;
		}
	
	/* --------------------------------------------------------------------------------------------------------------------------------- */
	/* Election page - table 1 */
	table.election-1{
		padding:0.2rem;
	}
		#main-panels-container .main-panels table.election-1 :first-child{
			/*padding-top:0rem;*/ /* match the td */
		}
		table.election-1 thead{
		}
		table.election-1 tbody{
		}
		table.election-1 caption{
			font-size:1.4rem;
		}
		table.election-1 tr{
			margin:0rem !important;
			padding:0.8rem !important;
		}
			/* column 1 */
			table.election-1 tbody tr td:nth-of-type(1){
			}
			/* striped rows: 2n or 2n-1 */
			table.election-1 tbody tr:nth-of-type(2n-1){
			}
		table.election-1 th{
			border:#c3c3c3 1px solid;
			font-size:1.5rem;
		}
			#main-panels-container .main-panels table.election-1 th :first-of-type{
			}
			table.election-1 th.wid-1{
			}
		table.election-1 td{
			border:#c3c3c3 1px solid;
			border-top:#c3c3c3 0px solid;
			font-size:1.5rem;
		}
			table.election-1 td:first-of-type{
				border-top:#c3c3c3 1px solid;
				background-color:#e7e7e9 !important;
			}
			/* force alternate rows colour and override any td colors set for responsive mobile tables */
			 #main-panels-container .main-panels table.election-1 tr:nth-of-type(2n-1) td:first-of-type{
				background-color:#e7e7e9 !important;
			}
			table.election-1 td:last-child{
				border:#c3c3c3 1px solid;
			}
			table.election-1 td:before{
			}
			table.election-1 td a{
			}
				table.election-1 td a:hover{
				}
			table.election-1 th.conservative,
			table.election-1 td.conservative{
			}
			table.election-1 th.labour,
			table.election-1 td.labour{
			}
			table.election-1 th.liberal,
			table.election-1 td.liberal{
			}
			table.election-1 th.snp,
			table.election-1 td.snp{
			}
			table.election-1 th.green,
			table.election-1 td.green{
			}
			table.election-1 th.pc,
			table.election-1 td.pc{
			}
			table.election-1 th.reform,
			table.election-1 td.reform{
			}
			table.election-1 th.independent,
			table.election-1 td.independent{
			}
			table.election-1 th.other,
			table.election-1 td.other{
			}
		/* images */
		table.election-1 img{
		}
	/* --------------------------------------------------------------------------------------------------------------------------------- */
				
	/* TABLES - SPECIFIC */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */


	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* TABLES - HORIZONTAL SCROLL */
	/* horizontal scrolling tables - need a wrapper around the tanle and style to set overflow:auto where needed */
	
	/* goes on body style - need overflow:auto on containing div to stop page scrolling rather than just the table */
	.page-ths{
		overflow-x:auto;
	}
		.page-ths .site-container{
			overflow-x:auto;
		}
		.page-ths #main-panels-container .main-panels{
			overflow-x:auto;
		}
		.page-ths .site-main,
		.page-ths .site-main div,
		.page-ths div{
			overflow-x:auto;
		}
		
	/* .table-horiz-scroll with overflow-x divs */
	.table-horiz-scroll{
		display:block;
		overflow-x:auto;
		/* prevent accidental "back/forward" browser swipe gestures when a user reaches the edge of the horizontal scroll area */
		overscroll-behavior-x:contain;
	}
	
		/* select and style the first child element of every #main-panels-container .main-panels .table-horiz-scroll element: */
		#main-panels-container .main-panels .table-horiz-scroll > :first-child{
		}
		
		/* table styles */
		.table-horiz-scroll table{
			/*min-width:700px;*/ /* TESTING ONLY */
		}
			.table-horiz-scroll table thead{
				display:table-header-group; /* default */
			}
			.table-horiz-scroll table tbody{
			}
			.table-horiz-scroll table caption{
			}
			.table-horiz-scroll table tr{
				margin-bottom:0rem;
				display:table-row; /* default */
			}
				/* first row */
				 #main-panels-container .main-panels .table-horiz-scroll table tr:first-of-type{
					padding-top:0rem;
				}
				/* force alternate rows colour and override any td colors set for responsive mobile tables */
				 #main-panels-container .main-panels .table-horiz-scroll table tr:nth-of-type(2n-1) td{
					background-color:#fff !important;
				}
				/* column 1 */
				.table-horiz-scroll table tr td:nth-of-type(1){
					background-color:#fff;
				}
				/* alternate 'rows' - actually td's - 2n or 2n-1 */
				.table-horiz-scroll table tr td:nth-of-type(2n-1){
					background-color:#fff;
				}
				/* striped rows: 2n or 2n-1 */
				.table-horiz-scroll table tbody tr:nth-of-type(2n-1){
					background-color:#fff;
				}
			.table-horiz-scroll table th{
			}
				.table-horiz-scroll table th.wid-1{
				}
			.table-horiz-scroll table td{
				/*border-bottom:#666666 1px solid;*/
				margin:0;
				padding:0.5rem 1.0rem;
				display:table-cell; /* default */
			}
				.table-horiz-scroll table td:last-child{
					/*border-bottom:#666666 1px solid;*/
				}
				.table-horiz-scroll table td:before{
					content:none;
					display:none;
				}
				.table-horiz-scroll table td a{
				}
					.table-horiz-scroll table td a:hover{
					}
	/* TABLES - HORIZONTAL SCROLL */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV TABLE LAYOUT - default table style div layout */
	
	/* table container */
	.table{
	}
		/* table caption */
		.table .tcaption{
		}
		/* header container */
		.table .theaders{
			display:none;
		}
			/* header items */
			.table .theaders .theader{
			}
				/* links */
				.table .theaders .theader a{
				}
					.table .theaders .theader a:hover{
					}
					.table .theaders .theader a.selected{
					}
				/* general header style options */
				.table .theaders .theader.header-1{
				}
		/* row container */
		.table .trows{
			border-top:#000000 1px solid;
		}
			/* table rows - tr */
			.table .trows .trow{
			}
				/* striped rows: 2n or 2n-1 */
				.table .trows .trow:nth-of-type(2n-1){
				}
				.table .trows .trow:first-of-type{
				}
				.table .trows .trow:last-of-type{
				}
				/* table row cells - td */
				.table .trows .trow .tcell{
					clear:both;
					width:100% !important;
				}
					.table .trows .trow .tcell:before{
						content:attr(data-title);
						display:block;
						font-weight:bold;
						width:100%;
					}
					/* general row cells style options */
					.table .trows .trow .tcell.cell-1{
					}
	/* DIV TABLE LAYOUT - default table style div layout */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV TABLE LAYOUT - VERTICAL HEADERS - default table style div layout */
	
	/* table container */
	.table-vertical{
	}
		/* table caption */
		.table-vertical .tcaption{
		}
		/* row container */
		.table-vertical .tcols{
			border-top:#000000 0px solid;
			border-bottom:#000000 0px solid;
			/* FLEX */
			display:flex;
			flex-flow:column wrap;
			justify-content:flex-start;
			align-items:flex-start;
		}
			.table-vertical .tcols > div.tcol:first-of-type + div{ /*second of type*/
				margin-top:0;
			}
			/* header items */
			.table-vertical .tcols .tcol{
				border-top:#000000 1px solid;
				border-bottom:#000000 1px solid;
				margin:0.5rem 0 0 0;
				padding:0;
				width:100.0%;
				background-color:#f0f0f0; /* eee f0f0f0 */
			}
				/* striped items: 2n or 2n-1 */
				.table-vertical .tcols .tcol:nth-of-type(2n-1){ /*2n 2n-1*/
					/*border-top:#000000 1px solid;
					border-bottom:#000000 1px solid;*/
					background-color:#fff; /* ccc fff */
				}
				.table-vertical .tcols .tcol:nth-of-type(2n){ /*2n 2n-1*/
					border-bottom:#000000 1px solid;
				}
				.table-vertical .tcols .tcol:last-of-type{
				}
				/* links */
				.table-vertical .trows .theader a{
				}
					.table-vertical .trows .theader a:hover{
					}
					.table-vertical .trows .theader a.selected{
					}
				/* table cells - headers */
				.table-vertical .tcols #col-theaders{
					display:none;
				}
					.table-vertical .tcols #col-theaders.tcol .tcell{
					}
				/* table cells */
				.table-vertical .tcols .tcol .tcell{
					background:none;
				}
					.table-vertical .tcols .tcol .tcell:before{
						content:attr(data-title);
						display:block;
						font-weight:bold;
						width:100%;
					}
					/* striped items: 2n or 2n-1 */
					.table-vertical .tcols .tcol .tcell:nth-of-type(2n-1){ /*2n 2n-1*/
						background:none;
					}
					.table-vertical .tcols .tcol .tcell:nth-of-type(2n){ /*2n 2n-1*/
					}
					/* general row cells style options */
					.table-vertical .tcols .tcol .tcell.cell-1{
					}
	/* DIV TABLE LAYOUT - VERTICAL HEADERS - default table style div layout */
	/* ----------------------------------------------------------------------------------------------------------------------------------------------------- */
	
	
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
	/* DIV SCROLL TABLE LAYOUT - default table style div layout */
	
	/* table wrapper - scroll */
	.scrolltable-wrap{
		display:flex;
		overflow-x:auto;
	}
	
	/* table container */
	.scrolltable{
		min-width:720px;
	}
		/* table caption */
		.scrolltable .tcaption{
		}
		/* header container */
		.scrolltable .theaders{
		}
			/* header items */
			.scrolltable .theaders .theader{
			}
				/* links */
				.scrolltable .theaders .theader a{
				}
					.scrolltable .theaders .theader a:hover{
					}
					.scrolltable .theaders .theader a.selected{
					}
				/* general header style options */
				.scrolltable .theaders .theader.header-1{
				}
		/* row container */
		.scrolltable .trows{
		}
			/* table rows - tr */
			.scrolltable .trows .trow{
			}
				/* striped rows: 2n or 2n-1 */
				.scrolltable .trows .trow:nth-of-type(2n-1){
				}
				.scrolltable .trows .trow:first-of-type{
				}
				.scrolltable .trows .trow:last-of-type{
				}
				/* table row cells - td */
				.scrolltable .trows .trow .tcell{
				}
					.scrolltable .trows .trow .tcell:before{
					}
					/* general row cells style options */
					.scrolltable .trows .trow .tcell.cell-1{
					}
	/* DIV SCROLL TABLE LAYOUT - default table style div layout */
	/* ------------------------------------------------------------------------------------------------------------------------------------------------- */
}
/* MOBILE / SMALL SCREEN LAYOUT */


/* MINOR: SPECIAL SMALL SCREEN LAYOUT */
@media all and (max-width: 25em) { /* 400px = 25em, 320px = 20em */
}
/* MINOR: SPECIAL SMALL SCREEN LAYOUT */

/* TABLES STYLES - MEDIA QUERIES */
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------- */
