/* Reusable but site specific styles */

.site_title_link {
	display: flex;
	height: 90px;
}

.site_title_link svg {
	width: auto;
	height: 100%;
}

.butt,
.FormBuilder.InputfieldForm button,
::file-selector-button {
	inline-size: fit-content;
	touch-action: manipulation;
	user-select: none;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	/* font-size: 1rem !important; */
	padding: 0 var(--gap-small);
	gap: var(--gap-small);
	border-radius: 12px;
	border: 1px solid var(--white, #FFF);
	background: var(--yellow, #F3C84D);
	color: var(--dark, #181818);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: 0.28px;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.butt_large {
	font-size: 1rem;
	line-height: 1.3125rem;
	/* 131.25% */
	letter-spacing: 0.02rem;
	padding: 0.5rem 1rem;
}

.butt svg {
	width: 16px;
	height: 16px;
}

.butt_large svg {
	width: 24px;
	height: 24px;
}

.butt_biggest {
	font-size: 1rem;
	line-height: 21px;
	padding: 0.25rem 1rem;
}

.butt_biggest svg {
	width: 32px;
	height: 32px;
}

.butt_red,
.butt_atb {
	color: white;
	background: var(--accent, #BD2125);
}

.butt_red:hover,
.butt_atb:hover {
	color: var(--dark, #181818);
	background: white;

}


.butt_oos,
.butt_oos:hover {
	color: white !important;
	border-color: white !important;
	border-radius: 0;
	background: var(--blue, #275F71) !important;
	cursor: default
}

.faux_butt {
	display: inline-flex;
	gap: var(--gap);
	font-weight: 700;
	line-height: 130%;
	letter-spacing: 0.32px;
	text-transform: uppercase;
	text-decoration: none;
	align-items: center;
}

.butt_stretch .faux_butt {
	margin: var(--gap) auto 0.25rem 0;
}

.fb_white {
	color: white;
}

.fb_white:hover {
	color: var(--dark)
}

.butt:hover,
.FormBuilder.InputfieldForm button:hover {
	color: var(--dark, #181818);
	background-color: white;
	border-color: var(--dark, #181818);
	;
}

.icon-fill,
.fill-red {
	fill: var(--red);
}

.sublink {
	display: inline-block;
	padding: 0 0.5rem;
}

.bg_black {
	background-color: var(--dark);
	color: white;
}

.bg_white {
	background-color: white;
	color: var(--dark);
}

.bg_violet {
	background-color: var(--violet);
	color: var(--dark);
}

.quote_text {
	font-size: var(--step-1);
}

.quoter {
	font-weight: var(--strong);
	font-size: var(--step-05);
	padding-top: 1rem;
}

#rf-logo {
	display: none !important;
}

.roundel {
	width: 100%;
	max-width: 320px;
	height: auto;
	border-radius: 50%;
	margin: auto;
}

.roundel img {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 50%;
}



/* expandable bits */

.expando_button {
	border: 0;
	border-bottom: 1px solid var(--grey-light);
	background-color: white;
	display: flex;
	width: 100%;
	padding: 0.75rem;
	color: var(--accent);
	cursor: pointer;
	transition: var(--transition);
	align-items: center;
	font-size: 1.25rem;
}

.expando_button:hover {
	background-color: var(--dark);
	color: white;
	transition: var(--transition);
}

.expando_label {
	flex: 1;
	text-align: left;
}

.expando_icon {
	width: 28px;
	height: auto
}

.expando_icon_image {
	fill: var(--accent);
	stroke: none;
}

.toggle_toggled .horizontal {
	display: none;
	transition: var(--transition);
}

.expando_icon {
	transition: var(--transition);
}

.toggle_toggled .expando_icon {
	transform: rotate(90deg);
	transition: var(--transition);
}

.expando_content {
	max-height: 0;
	overflow: hidden;
	transition: var(--transition);
	background-color: white;
}

.expando_content_padding {
	padding: 1rem;
	border-bottom: 1px solid var(--grey-light);
}

audio {
	display: block;
	max-width: 100%;
	border-radius: 4px;
	margin: 2rem 0;


}

audio::-webkit-media-controls-panel {
    background-color: var(--grey-very-light);
}

audio::-webkit-media-controls-play-button {
    color: var(--accent);
    background-color: initial; /* Reset default */
}

video {
	display: block;
	width: 100%;
	margin: 2rem 0;
}

/* related */

.iqd_related {
	padding: var(--gap);
}

.iqd_related h2 {
	text-transform: uppercase;
	padding: 0 0 var(--gap) 0;
}

.relateds {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gap);
}

.related {
	display: grid;
	grid-template-columns: 3fr 1fr;
	gap: var(--gap);
	padding: var(--gap);
	background-color: var(--violet);
	max-width: 640px;
	margin: auto;
	box-shadow: var(--shadow);
	text-decoration: none;
}

.related:hover {
	background: var(--purple-dark, #8D69C7);

}

.r_text {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.r_cat {
	font-size: var(--step-0);
	text-transform: uppercase;
	color: white;
}

.r_title {
	font-size: var(--step-1);
	line-height: 1.1;
}

/* toggl */


/* tags */

.filter_title {

	font-weight: 700;
	line-height: 120%;
	/* 19.2px */
	letter-spacing: 0.64px;
	text-transform: uppercase;
	margin-bottom: var(--gap-small);
}

.tag {
	display: inline-flex;
	padding: 0.25rem 0.5rem;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--accent);
	transition: var(--transition);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
	/* 150% */
	letter-spacing: 0.42px;
	text-transform: uppercase;
	background-color: var(--accent);
	color: white;
}

.was_card_link .tag {
	border: 1px solid var(--dark);
}

.tags,
.wasc_tags {
	display: flex;
	gap: var(--gap-small);
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.big_tags .tag {
	display: flex;
	padding: 0.5rem 1rem;
	align-self: stretch;
}

.hero_tags {
	justify-content: center;
}

.tags .tag {
	background-color: var(--accent);
	color: white;
}

.tags .tag_active {
	background-color: var(--dark);
	border-color: white;
}


.wasc_tags {
	gap: var(--gap-small);
	flex-wrap: wrap;
}

.wasc_tags .tag {
	color: var(--dark);
	background-color: white;
	border-color: var(--dark);
}


.tags .tag:hover {
	background-color: var(--dark);
	border-color: var(--dark);
}

.hero_tags .tag:hover {
	border-color: var(--white);
}



/* calls to actions */

.cta {
	color: white;
	display: flex;
	padding: var(--gap);
	flex-direction: column;
	align-items: center;
	gap: 24px;
	flex: 1 0 0;
}

.cta_red {
	background: var(--accent, #BD2125);

}

.cta_blue {
	background: var(--blue, #275F71);
}

.cta_yellow {
	background: var(--yellow, #F3C84D);
	color: var(--dark, #181818);

}

.cta_heading {
	display: flex;
	margin-inline: auto;
	gap: 8px;

	svg {
		height: 40px;
		width: auto;
	}
}

.ctah_text {
	display: flex;
	align-items: center;
	font-family: var(--heading-font);
	font-size: var(--step-1);
	font-weight: 600;
	line-height: 120%;
}

.cta_puff {
	text-align: center;
	line-height: 160%;
	text-wrap: balance;
	flex: 1;
}

.was_mc_form_fieldset {
	display: flex;
	width: 100%;
	gap: var(--gap-small);
}

.was_mc_form_email {
	flex: 1;
	padding: 6px 6px 6px 16px;
}

.cta_mc_butt {
	color: white;
	background-color: transparent;
	border: 2px solid white;
	border-radius: 16px;
	padding: 8px;
	cursor: pointer;
}

.cta_mc_butt:focus,
.cta_mc_butt:hover {
	color: var(--dark);
	background-color: white;
	transition: var(--transition);
}

.socmed_icons {
	display: inline-flex;
	margin: 0 auto;
	gap: 1.5rem;
}

/* No external link on these icons */
.socmed_icons a {
	padding-right: revert;
}

.socmed_icons a::after {
	display: none;
}


.socmed_icons .fill_icon {
	fill: var(--dark);
	transition: var(--transition);
}

.socmed_icon:hover .fill_icon {
	fill: white;
	transition: var(--transition);
}


/* search & newsletter panels */

.header_panel {
	position: fixed;
	top: -600px;
	transition: var(--transition);
	display: flex;
	flex-direction: column-reverse;
	margin-top: 0;
	width: 100%;
	z-index: 120;
	background-size: cover;
	padding: 1rem;
	color: white;
	gap: 28px;
	min-height: 88px;
	align-items: center;

	form {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: var(--gap-small);
	}

	input[type="search"],
	input[type="email"] {
		border-radius: 4px;
		border: 1px solid var(--pale-dark, #CCC9BC);
		background: var(--light, #F7F5ED);
		margin: 0 8px 0 2px;
		flex: 1;
		font-size: 1rem;
		padding: 6px 13px;
		min-height: 40px;
		max-width: 250px;
		align-items: center;
	}

	label {
		display: flex;
		align-items: center;
		font-size: 1.5rem;
		font-weight: var(--strong);
		font-family: var(--heading-font);
	}
}

.search-toggled .search-panel {
	top: 0;
}

#app.newsletter_toggled {
	.newsletter_panel {
		top: 0;
		transition: var(--transition);
	}
}

@media(min-width: 768px) {
	.header_panel {
		display: grid;
		grid-template-columns: 80px 1fr 80px;

		form {
			flex-direction: row;
			justify-content: center;
			align-items: center;
			gap: var(--gap-small);
		}

		input[type="search"],
		input[type="email"] {
			max-width: 760px;
		}
	}

}

#search-close,
#newsletter_panel_close {
	display: flex;
	gap: 4px;
	cursor: pointer;
	margin-top: 0.5rem;
	background-color: transparent;
	border: 0;
	color: var(--white, #FFF);
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	line-height: 24px;
	/* 200% */
}

#search-close:hover,
#newsletter_panel_close:hover {
	text-decoration: underline;
}

.search_results_list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.search_result {
	border-bottom: 1px solid var(--grey-very-light);
	padding-bottom: 0.5rem;
}

.sr-title {
	font-size: 1.3125rem;
}

.wp_form input[type=text],
.wp_form input[type=email] {
	min-width: 300px;
}

/* some utils classes left over from wp */

figure {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	text-align: center;
	align-items: center;
	margin-block: var(--gap-small);
}

.text-measure figure {
	max-width: 72ch;
}

.align_center {
	text-align: center;
	display: flex;
	justify-content: center;
}

img.align_center {
	margin-inline: auto;
}

.aside_align {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: end;
	gap: var(--gap);
}

/* latest issue block for aside */
.aside_latest {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap);
	text-transform: uppercase;
	text-align: center;

}

.al_title {
	font-weight: 700;
	line-height: 120%;
	/* 19.2px */
	letter-spacing: 0.64px;
}

.aside_related {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap);

}

.aside_heading {
	font-size: 1rem;
	font-family: var(--font-sans);
	font-weight: var(--heavy);
	text-transform: uppercase;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	text-align: center;
}

/* Subscriptions table */

.subs_table_wrapper {
	margin-bottom: var(--gap-small);
	display: flex;
	flex-direction: column;
	gap: var(--gap-small);
}

.subs_table_wrapper h2 {
	font-size: var(--step-1);
	padding: var(--gap-small) 0;
	border-bottom: 1px solid var(--pale-dark, #CCC9BC);
	border-top: 1px solid var(--pale-dark, #CCC9BC);
	margin: 0 !important;
}

.st_table {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}

.st_sub_content p {
	margin-bottom: 0 !important;
}

.st_item {
	background: var(--light, #F7F5ED);
	padding: var(--gap-small);
	display: flex;
	flex-direction: row;
	gap: var(--gap-small);
	font-family: var(--font-sans);
	font-size: var(--step-0);
	font-weight: var(--heavy);
}

.st_title {
	line-height: 120%;
	/* 28.8px */
	display: flex;
	align-items: center;
	gap: var(--gap-small);
	flex: 1;
}

.st_price,
.st_link {
	display: flex;
	align-items: center;
}


/* advert panel */
.adp_layout {
	padding-block: var(--gap-small);
	display: flex;
	justify-content: center;
	align-items: center;
}

.adp_gutter {
	min-width: 0;
}

.adp_centre {
	display: flex;
	flex: 1;
	max-width: 910px;
	padding: 0;
	align-content: center;
	justify-content: center;
}

.adp_layout_billboard .adp_centre {
	max-width: 1095px;
}

.badvert_link {
	display: flex;
	padding: 0;
	align-content: center;
	justify-content: center;
	max-width: 970px;

}

.poem_wrapper {
	max-width: calc(100vw - 2rem);
	overflow-x: auto;
}

.poem_wrapper_inner {
	min-width: 73ch;
}

@media(min-width: 768px) {
	.poem_wrapper {
		max-width: 100%;
		overflow-x: auto;
	}

	.poem_wrapper_inner {
		min-width: 1ch;
	}
}

/* filters expando */

.was_filters {
	background-color: var(--dark);
	width: 100%;
}

.filters_expando {
	display: flex;
	flex-direction: column;
	width: 100%;

	summary {
		display: flex;
		gap: 6px;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 50px;
		padding: 0 16px;
		color: var(--white, #FFF);
		text-align: center;
		font-size: 16px;
		font-weight: 700;
		line-height: 160%;
		cursor: pointer;

		/* 25.6px */
		.fel_open {
			display: none;
		}

		.fel_closed {
			display: block;
		}
	}

}

.fe_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
	width: 24px;
	height: 24px;
	color: var(--accent);
}

.filters_expando[open] {
	.fel_closed {
		display: none;
	}

	.fel_open {
		display: block;
	}

	.fe_icon {
		transform: rotate(-180deg);
		transition: var(--transition);
	}
}

.filters_expando summary:hover {
	text-decoration: underline;

	.fe_icon {
		color: var(--white, #FFF);
	}
}

.fe_inner {
	width: 100%;
	max-width: 996px;
	display: flex;
	margin-inline: auto;
}


/** photoswipe */
picture:has(.mu_img) {
	display: flex;
	position: relative;
	cursor: pointer;
	width: fit-content;
	margin-inline: auto;
}

picture:has(.mu_img)::after {
	content: '';
	width: 32px;
	height: 32px;
	background-color: rgba(181, 30, 33, 0.4);
	position: absolute;
	top: 0;
	right: 0;
	pointer-events: none;
	background-image: url('/site/assets/images/icons/icn_zoom_in.svg');
	background-size: 24px;
	background-position: center;
	background-repeat: no-repeat;
}

picture:has(.mu_img):hover::after {
	background-color: var(--dark);
}

.pswp__custom-caption {
	width: calc(100% - 32px);
	max-width: 400px;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	border-radius: 4px;
	position: absolute;
}

.pswp__custom-caption a {
	color: #fff;
	text-decoration: underline;
}


.cap_innner {
	background: rgba(0, 0, 0, 0.80);
	font-size: 0.875rem;
	color: #fff;
	padding: 2px 8px;
	border-radius: 0.25rem;
	box-shadow: 8px 0px 16px 0px rgba(0, 0, 0, 0.32);
	text-align: center;
	text-wrap: balance;
}