/* ==========================================================================
   Site-wide additions
   Loaded on every page as a normal cached stylesheet – see inc/enqueue.php.
   Moved out of Appearance > Customize > Additional CSS, October 2026.
   Page-specific styles belong in their own file (e.g. css/article-hub.css,
   css/events.css), not here.
   ========================================================================== */

/* ========================================
   GLOBAL & BASE
======================================== */

.daterangepicker th { border-radius: 0; }

.gform_body li:before { display: none !important; }

.ginput_container { color: black !important; }

table, td, th {
	table-layout: auto;
	word-break: normal;
}

blockquote {
	text-align: center;
	color: #574B90;
	padding-left: 0;
}

h5 { padding-top: 0 !important; }

body.author { display: block; }


/* ========================================
   TYPOGRAPHY
======================================== */

.sidenote,
.modern-footnotes-footnote__note {
	font-size: 0.8rem;
	line-height: 1rem;
}

.sidenote {
	width: 33%;
	color: #574b90;
	font-family: Din Bold, Helvetica Neue, Arial, sans-serif;
	margin-bottom: 2rem;
}

.modern-footnotes-footnote__note {
	font-family: Din regular, Helvetica Neue, Arial, sans-serif;
}

.jump-list__sub-title,
.form_description { font-size: 1rem; }

/* Used on the news/blog listing grid */
.listing-post__date { font-style: italic; }

.featured-article__label {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #666;
	margin-bottom: .5rem;
}


/* ========================================
   COLOURS & HEADINGS
======================================== */

.block__item--link .block__text i svg path { fill: #9e579d; }
.block__content h2 { color: #9e579d; }

/* Used on Article Hub and Campaigns Leader pages */
.section-heading {
	text-align: center;
	margin-top: 3rem;
	border-top: 0.0625rem solid #d7d7d7;
}


/* ========================================
   IMAGES & CAPTIONS
======================================== */

.wp-caption .wp-caption-text,
.btn-list_social-share .btn { background-color: #E9E6F6; }

figcaption.credit-tracker-thumbnail {
	text-align: right;
	font-size: small;
	position: relative;
}

a .credit-tracker-thumbnail { display: none; }

/* Image credit overlay on featured images (single posts, events, etc.) */
.featured-image {
	position: relative;
	display: inline-block;
}

.featured-image .image-credit {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(255,255,255,0.8);
	color: #000;
	box-shadow: -2px 2px #574B90;
	padding: 0 8px;
	font-size: 8px;
	text-align: right;
}


/* ========================================
   COOKIE BANNER
======================================== */

.hu-cookies-save,
.hu-toggle-heading { border-radius: 0.31rem !important; }

#hu-heading {
	font-family: Din Bold, Helvetica Neue, Arial, sans-serif !important;
}

#hu-text-body {
	font-family: Crimson Text, Times New Roman, serif;
}

#hu #hu-background { display: none; }


/* ========================================
   NAV / BUTTONS
======================================== */

#menu-item-73 {
	background-color: #FE99BC;
	padding: 5px 7px;
	border-radius: 0.3125rem;
}


/* ========================================
   CAMPAIGN & LEADER
======================================== */

.campaign-section--parliament {
	background-color: #f1f0f6;
	padding: 20px 0;
	margin-bottom: 3rem;
}

.leader-block__heading {
	text-decoration: none;
	transition: color 0.3s ease;
}

.leader-block__item:hover .leader-block__heading { color: #FD98BC; }


/* ========================================
   TABLES
======================================== */
/* ========================================
   TABLES
======================================== */

.table-scroll-wrapper {
	position: relative;  /* pseudo-element will be relative to this */
	width: 100%;
	margin-bottom: 1.25rem;
}

.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-scroll table {
	width: 100%;
	min-width: 0;
	table-layout: auto;
	margin-bottom: 0;
}

/* Let text wrap; also overrides width="200"/"300" pasted in by the editor */
.table-scroll th,
.table-scroll td {
	width: auto;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
}

/* Default: columns after the first hold figures – standard width, right-aligned */
.table-scroll th:not(:first-child),
.table-scroll td:not(:first-child) {
	width: 8rem;
	text-align: left;
	font-variant-numeric: tabular-nums;
}

/* Opt-out for text-heavy tables: <table class="table--text"> */
.table-scroll .table--text th,
.table-scroll .table--text td {
	width: auto;
	text-align: left;
}

/* Fade: hidden unless the table actually scrolls; clears at the end of the scroll */
.table-scroll-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 60px;
	height: 100%;
	pointer-events: none;
	background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
	opacity: 0;
}

@keyframes table-fade {
	0%, 90% { opacity: 1; }
	100%    { opacity: 0; }
}

@supports (animation-timeline: scroll()) {
	.table-scroll-wrapper { timeline-scope: --table-scroll; }
	.table-scroll { scroll-timeline: --table-scroll inline; }
	.table-scroll-wrapper::after {
		animation: table-fade linear both;
		animation-timeline: --table-scroll;
	}
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 543px) {

	.table-scroll th,
	.table-scroll td {
		padding: 0.625rem 0.5rem;
	}

	.table-scroll th {
		font-size: 0.9375rem;
	}

	.table-scroll th:not(:first-child),
	.table-scroll td:not(:first-child) {
		width: 5rem;
	}

	.table-scroll .table--text th,
	.table-scroll .table--text td {
		width: auto;
	}
}

@media screen and (max-width: 1200px) and (min-width: 992px),
(max-width: 768px) {

	.content-area table tbody .table__cell--meta,
	.content-area table tbody .table__cell--meta:before {
		display: table-cell !important;
		content: none !important;
		width: auto !important;
		padding: 0.5rem !important;
	}
}