h1.display span.post-title,
.display,
.title {
	font-family: 'trade-gothic-next-compressed', 'Arial Narrow', sans-serif;
	font-weight: 800;
	font-style: normal;
	height: var(--observed-height);
	text-transform: uppercase;
	font-style: bold;
	/* margin-bottom: var(--base-margin-3); */
	font-size: var(--tt-font-size-display-xxl);
}

#masthead {
	display: none;
}

body:not(.wp-admin),
.global-wrap,
html,
.standalone-hero-wrapper h1.display .post-title {
	background-color: var(--tt-background-colour);
}

.global-wrap {
	padding-top: 1.6rem;
	position: relative;
}

#page {
	min-height: calc(100vh - 3.2rem);
}

body.green {
	--secondary-accent-colour: var(--tt-violet-lighterer);
	--tertiary-colour: var(--tt-blue-lighterer);
	--text-secondary: var(--tt-mint-darkerish);
	--text-highlight: var(--tt-mint-lighterest);
	--neutral-ui: var(--tt-mint-525);
	--darker-ui: var(--tt-mint-725);
	--text-header: var(--tt-mint-50);
	--text-subheader: var(--tt-mint-250);
	--text-body-secondary: var(--tt-neutral-ui-light);
	--alert-red: var(--tt-apple-275);
	--accent-colour: var(--tt-violet-125);
}

body.blue {
	--accent-colour: var(--tt-highlight);
	--secondary-accent-colour: var(--tt-apple-light);
	--tertiary-colour: var(--tt-blue-lighterer);
	--text-secondary: var(--tt-blue-lighter);
	--text-highlight: var(--tt-apple-lighterest);
	--neutral-ui: var(--tt-blue-525);
	--darker-ui: var(--tt-blue-725);
	--text-header: var(--tt-apple-250);
	--text-subheader: var(--tt-blue-250);
	--text-body-secondary: var(--tt-neutral-ui-light);
	--alert-red: var(--tt-apple-275);
}

body.light-grey {
	--accent-colour: var(--tt-apple-light);
	--secondary-accent-colour: var(--tt-apple-main);
	--tertiary-colour: var(--tt-blue-lighterer);
	--text-secondary: var(--tt-grey-main);
	--text-highlight: var(--tt-black-main);
	--neutral-ui: var(--tt-cool-grey-125);
	--darker-ui: var(--tt-cool-grey-lighterish);
	--lighter-ui: var(--tt-warm-grey-75);
	--text-header: var(--tt-apple-dark);
	--text-subheader: var(--tt-neutral-ui-darkish);
	--text-body-secondary: var(--tt-neutral-ui-darkish);
	--alert-red: var(--tt-apple-300);
	--success-colour: var(--tt-blue-lighterish);
	--button-text: var(--tt-white-main);
	--text-colour: var(--tt-black-main);
	--bg-gradient: url(../../img/blurry-gradient-lightgrey-aerate.png) center
		center / cover no-repeat;
}

body.dark-grey {
	--accent-colour: var(--tt-mint-darkish);
	--secondary-accent-colour: var(--tt-mint-main);
	--tertiary-colour: var(--tt-blue-lighterer);
	--text-secondary: var(--tt-mint-lighterest);
	--text-highlight: var(--tt-mint-darkish);
	--neutral-ui: var(--tt-grey-lighterish);
	--darker-ui: var(--tt-grey-725);
	--text-header: var(--tt-mint-dark);
	--text-subheader: var(--tt-grey-dark);
	--text-body-secondary: var(--tt-neutral-ui-light);
	--alert-red: var(--tt-apple-lighter);
	--button-text: var(--tt-black-main);
}
.tt-global-container {
	padding-top: unset;
}

body.blue .tt-global-container,
body.red .tt-global-container,
body.violet .tt-global-container,
body.green .tt-global-container,
body.black .tt-global-container,
body.dark-grey .tt-global-container,
body.purple .tt-global-container body.blue .footer-none,
body.red .footer-none,
body.violet .footer-none,
body.green .footer-none,
body.black .footer-none,
body.blue .footer-none,
body.dark-grey .footer-none,
body.purple .footer-none {
	color: var(--tt-white-main);
	& .readmore {
		--text-colour: var(--tt-white-main);
		--hover-colour: var(--accent-colour);
	}
}

body.light-grey {
	color: var(--tt-black-main);
	& .readmore {
		--text-colour: var(--tt-text-secondary);
		--hover-colour: var(--accent-colour);
	}
}

body .standalone-hero-wrapper h1.display .post-title:not(.bg) {
	color: var(--accent-colour);
	background: unset;
}

h1.display span.post-title {
	color: transparent;
	position: static;
}

.tab-container:not(.simplified-form):not(.campaign-form),
.tab-container:not(.simplified-form):not(.campaign-form) .tab {
	background: transparent;
	box-shadow: none;
}

.standalone-hero-wrapper:has(.title-align-centre) .title-align-centre,
.standalone-hero-wrapper:has(.title-align-centre) + .subheading {
	text-align: center;
}
.standalone-hero-wrapper:has(+ .subheading) {
	margin-bottom: var(--base-margin-3);
}
.subheading {
	margin-bottom: var(--base-margin-4);
	color: var(--text-secondary);
}

.title-align-right {
	text-align: right;
	& + .subheading {
		text-align: right;
	}
}
.title-align-centre {
	text-align: center;
	& + .subheading {
		text-align: center;
	}
}
.title-align-left {
	text-align: left;
	& + .subheading {
		text-align: left;
	}
}

.post-title .emphasis {
	color: var(--secondary-accent-colour);
	z-index: 1;
	position: relative;
}

.footer-none {
	color: var(--text-secondary);
	background: var(--tt-background-colour);
	max-width: calc(
		var(--tt-global-target-width) -
			(2 * var(--tt-global-padding-left-right))
	);
	margin-inline: auto;
	padding: var(--base-margin);
	gap: var(--base-margin);
	border-top: 1px solid var(--darker-ui);
	display: flex;
	place-items: end center;
	& .footer-logo:not(:empty) {
		background: var(--accent-colour);
		mask: var(--tt-standalone-logo) center center / contain no-repeat;
		width: var(--base-margin-4);
		height: var(--base-margin-2);
		&:has(+ .footer-site-name) {
			/* margin-right: var(--base-margin-05); */
		}
		&:not(:has(+ .footer-site-name)) {
			margin-right: var(--base-margin);
		}
	}

	& p {
		text-align: right;
		text-wrap: balance;
		margin-inline: auto 0;

		margin-bottom: 0;
	}
	& .footer-site-name {
		color: var(--accent-colour);
		font-variation-settings: var(--fw-bold);
		font-size: var(--tt-font-size-base-sm);
		text-align: center;
	}
}

.input-container:has(+ .error-message-response) {
	margin-bottom: var(--base-margin-025);
	& + .error-message-response {
		margin-bottom: var(--tight-content-spacer);
		font-size: var(--tt-font-size-xs);
		color: var(--alert-red);
		text-align: center;
		margin-inline: auto;
		opacity: 1;
	}
}

.inner-floating.tt-button {
	position: fixed;
	bottom: var(--base-margin);
	width: var(--tt-form-width);
	transform: translateX(-50%);
	left: 50%;
	max-width: var(--tt-global-max-width);
	z-index: 5000;
}

.not-input-container-grid {
	margin-bottom: var(--tight-content-spacer);
	display: grid;
	grid-template-columns: 1fr 1fr;

	gap: var(--base-margin-05);
	& .not-input-container.result {
		width: 100%;
		margin-bottom: 0;
	}
	& .not-input-container.result .mp-radio-wrap {
		height: 100%;
	}
}
.not-input-container.result {
	margin-bottom: var(--tight-content-spacer);
}

.not-input-container.result .mp-radio-wrap {
	height: unset;
	color: var(--text-colour);
	background: var(--neutral-ui);
	padding: var(--base-margin-05);
	border: none;
	left: 0;
	justify-content: space-between;
	gap: var(--base-margin-05);
	border-radius: var(--b-rad-md);
	width: 100%;
	animation: animateToAuto forwards var(--quick-ease);
	display: grid;
	grid-template-columns: auto var(--tt-img-thumbnail);
	&::before {
		content: unset;
	}
	& .image-container {
		position: relative;
	}
}

.mp-radio-wrap:has(input[type='radio']:checked),
.mp-radio-wrap:has(input[type='checkbox']:checked) {
	box-shadow: 0 0 4px 2px var(--darker-ui);
	background: var(--neutral-ui);
	transition: var(--quick-ease-out);
	&:hover {
		background: transparent;
	}
}
.mp-radio-wrap:has(input[type='radio']:not(:checked)),
.mp-radio-wrap:has(input[type='checkbox']:not(:checked)) {
	box-shadow: none;
	background: unset;
	transition: var(--quick-ease-out);
	&:hover {
		background: var(--neutral-ui);
	}
}
.not-input-container.result .overline {
	color: var(--text-secondary);
	overflow-wrap: anywhere;
	font-size: var(--tt-font-size-xxxs);
}
.mp-text-wrap {
	display: flex;
	flex-direction: column;
	gap: var(--base-margin-025);
}
.mp-text-wrap p {
	margin-bottom: 0;
	line-height: var(--semicondensed-line-height);
}

.mp-text-wrap .party {
	color: var(--text-body-secondary);
}

.mp-thumbnail {
	height: 100%;
	width: var(--tt-img-thumbnail);
	border-radius: var(--b-rad-sm);
	position: relative;
}
.image-container:has(.mp-thumbnail) {
	position: relative;
	&::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 60%;
		opacity: 0.5;
		background: var(--linear-gradient-transparent-to-black);
		pointer-events: none;
		z-index: 1;
		border-radius: var(--b-rad-sm);
	}
}

.input-container.awaiting-response:has(.soapbox-postcode)::before {
	height: 100%;
	width: unset;
	aspect-ratio: 1;
	right: 0;
	top: 50%;
	left: unset;
	transform: translateY(-50%);
}
.input-container.awaiting-response:has(.soapbox-postcode)::after {
	right: 0;
	left: unset;
}

.mp-text-wrap {
	place-self: center;
}

#fixed-button-observer-wrap {
	position: relative;
	display: none;
}

#fixed-button-observer-wrap:not(.hide)::before {
	content: '';
	position: fixed;
	height: calc(5.8rem + var(--base-margin) + 1.6rem + 1px);
	background: var(--tt-background-colour);
	width: 100%;
	bottom: -1px;
	left: 50%;
	opacity: 0;
	z-index: 100;

	border-top: 1px solid var(--darker-ui);
}

#fixed-button-observer-wrap:not(.hide)::before {
	animation: fadeUpBG forwards var(--quick-ease);
}

#fixed-button-observer-wrap.hide::before {
	animation: fadeDownBG forwards var(--quick-ease);
}

#fixed-button-observer-wrap.hide .inner-floating.tt-button {
	animation: fadeDown forwards var(--quick-ease);
}

#fixed-button-observer-wrap:not(.hide) .inner-floating.tt-button {
	animation: fadeUp forwards var(--quick-ease);
}
svg.email-status-svg,
div.email-status-svg svg {
	height: var(--base-margin);
	color: var(--button-text);
	position: absolute;
	bottom: var(--base-margin-025);
	right: var(--base-margin-025);
	z-index: 2;
}
.email-error-icon {
	color: var(--alert-red);
}
.email-success-icon {
	color: var(--success-colour);
}

@keyframes fadeDown {
	0% {
		opacity: 1;
		bottom: 1.6rem;
		transform: translateY(0) translateX(-50%);
	}
	90% {
		opacity: 0;
	}
	99% {
		opacity: 0;
		bottom: -1.6rem;
		transform: translateY(100%) translateX(-50%);
	}
	100% {
		display: none;
		opacity: 0;
		bottom: -1.6rem;
		transform: translateY(100%) translateX(-50%);
	}
}

@keyframes fadeUp {
	0% {
		display: block;
		opacity: 0;
		bottom: calc(var(--base-margin) * -1);
		transform: translateY(100%) translateX(-50%);
	}
	100% {
		opacity: 1;
		bottom: var(--base-margin);
		transform: translateY(0) translateX(-50%);
	}
}

@keyframes fadeUpBG {
	0% {
		display: block;
		opacity: 0;
		bottom: calc(var(--base-margin) * -1 - 1px);
		transform: translateY(100%) translateX(-50%);
	}
	100% {
		opacity: 1;
		bottom: -1px;
		transform: translateY(0) translateX(-50%);
	}
}

@keyframes fadeDownBG {
	0% {
		opacity: 1;
		bottom: -1px;
		transform: translateY(0) translateX(-50%);
	}
	99% {
		display: block;
		opacity: 1;
		bottom: calc(var(--base-margin) * -1 - 1px);
		transform: translateY(100%) translateX(-50%);
	}
	100% {
		display: none;
	}
}
.textarea-container:has(+ .description-after) + .description-after,
.success-message-container p {
	color: var(--text-body-secondary);
}

.inline-article-img-lg img {
	height: var(--tt-img-md);
	object-fit: cover;
}

.expandable-section-content.base {
	padding-top: var(--base-margin);
	border-top: 1px solid var(--darker-ui);
	& h1 strong {
		font-weight: normal;
		font-variation-settings: revert;
	}
	& h2 strong {
		font-weight: normal;
		font-variation-settings: revert;
	}
	& h3 strong {
		font-weight: normal;
		font-variation-settings: revert;
	}
	& .header-1:has(+ p),
	& :not(.header-1) + .header-2:has(+ p),
	& :not(.header-1, .header-2) + .header-3:has(+ p),
	& :not(.header-1, .header-2, .header-3) + .header-4:has(+ p),
	& :not(.header-1, .header-2, .header-3, .header-4) + .header-5:has(+ p),
	&
		:not(.header-1, .header-2, .header-3, .header-4, .header-5)
		+ .header-6:has(+ p) {
		margin-bottom: var(--base-margin-075);
	}
	& .header-1:not(:has(+ p)),
	& .header-2:not(:has(+ p)),
	& .header-3:not(:has(+ p)),
	& .header-4:not(:has(+ p)),
	& .header-5:not(:has(+ p)),
	& .header-6:not(:has(+ p)) {
		margin-bottom: var(--base-margin-075);
	}
	& .header-1 + .header-2:has(+ p),
	& :where(.header-1, .header-2) + .header-3:has(+ p),
	& :where(.header-1, .header-2, .header-3) + .header-4:has(+ p),
	& :where(.header-1, .header-2, .header-3, .header-4) + .header-5:has(+ p),
	&
		:where(.header-1, .header-2, .header-3, .header-4, .header-5)
		+ .header-6:has(+ p) {
		margin-bottom: var(--base-margin-125);
	}
}
.expandable-section-content h1,
.expandable-section-content:not(:has(h1)) h2,
.expandable-section-content:not(:has(h1, h2)) h3,
.expandable-section-content:not(:has(h1, h2, h3)) h4,
.expandable-section-content:not(:has(h1, h2, h3, h4)) h5,
.expandable-section-content:not(:has(h1, h2, h3, h4, h5)) h6 {
	font-size: var(--tt-font-size-base-lg);
	font-variation-settings: var(--fw-medium);
	color: var(--text-header);
}
.expandable-section-content:has(h1) h2,
.expandable-section-content:has(h2):not(:has(h1)) > h3,
.expandable-section-content:has(h3):not(:has(h1, h2)) > h4,
.expandable-section-content:has(h4):not(:has(h1, h2, h3)) > h5,
.expandable-section-content:has(h5):not(:has(h1, h2, h3, h4)) > h6 {
	font-size: var(--tt-font-size-base);
	font-variation-settings: var(--fw-medium);
	color: var(--text-subheader);
}
.expandable-section-content:has(h1):has(h2) > h3,
.expandable-section-content:has(h3):has(h2):not(:has(h1)) > h4,
.expandable-section-content:has(h4):has(h3):not(:has(h1, h2)) > h5,
.expandable-section-content:has(h5):has(h4):not(:has(h1, h2, h3)) > h6 {
	font-size: var(--tt-font-size-base-xs);
	font-variation-settings: var(--fw-semibold);
	text-transform: uppercase;
}

/* .standalone-hero-img {
	position: absolute;
	height: calc(24vh + var(--base-margin-2) + var(--tt-font-size-display-xxl));
	object-fit: cover;
	z-index: -1;
	display: block;
	top: calc(
		(12vh + var(--base-margin) + var(--tt-font-size-display-xl)) * -1
	);
	left: 58%;
	transform: translateX(-50%);
	width: 80%;
} */

.standalone-content-wrapper {
	display: grid;
	column-gap: var(--base-margin-4);
	grid-template-columns: 1fr var(--tt-form-width);
}

.standalone-hero-img {
	height: 50vh;
	object-fit: cover;
	object-position: center;
	width: 100%;
}
.standalone-hero-wrapper {
	position: relative;
	margin-bottom: var(--base-margin-5);
}
.standalone-hero-wrapper h1.display {
	position: relative;
	bottom: 0;
	/* transform: translateY(12.5%); */
	margin-bottom: 0;
	/* max-width: calc(100% - 3.2rem); */
}

.standalone-hero-wrapper h1.display.title-align-centre {
	/* transform: translateY(33.3%) translateX(-50%); */
	/* left: 50%; */
	width: 100%;
	margin-top: calc(var(--observed-height) * -0.5);
	margin-bottom: var(--base-margin-2);
}
.input-description {
	color: var(--text-body-secondary);
	line-height: var(--semicondensed-line-height);
	text-wrap: balance;
	text-align: center;
	margin-top: 0;
}
.standalone-hero-wrapper:not(.no-img) h1.display .post-title {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	left: -0.2em;
	margin-right: -0.2em;
	margin-left: -0.2em;
	padding: 0 0.2em 0.04em;
	display: inline;
}
/* .standalone-hero-wrapper h1.display.title-align-centre .post-title {
	left: 0;
	margin-right: unset;
	margin-left: unset;
} */
.standalone-hero-wrapper h1.display.title-align-centre .post-title-bg {
	position: static;
}

.standalone-hero-wrapper:not(.no-img) h1 div:has(> .post-title) {
	max-width: calc(100% - 3.2rem);
}

.standalone-hero-wrapper h1.display .post-title::before,
.standalone-hero-wrapper h1.display .post-title::after {
	content: none;
}

.standalone-hero-wrapper.no-img h1.display {
	margin-bottom: var(--base-margin-2);
}

.display.oversize .post-title.bg,
.display.oversize .post-title {
	position: static;
}
.standalone-hero-wrapper:not(.no-img) .display.oversize .post-title-bg-outer,
.standalone-hero-wrapper:not(.no-img) .display.oversize .post-title-bg-inner {
	top: 0;
	position: absolute;
	height: fit-content;
	transform: translateX(-50%);
	left: 50%;
	width: 100%;
	z-index: 1;
}

.textarea-container:not(:has(textarea[data-is-touched='true'])) {
	overflow: hidden;
	&::after {
		content: '';
		bottom: 0;
		position: absolute;
		height: 50%;
		width: 100%;
		left: 0;
		background: linear-gradient(to bottom, var(--transparent-to-white));
		z-index: 1;
		pointer-events: none;
	}
}
.textarea-container {
	display: flex;
}

.textarea-container textarea {
	min-height: unset;
	flex-grow: 0;
	margin-top: calc(5.6rem + 2px - var(--tt-font-size-base-sm) - 0.75em);
	align-self: start;
	padding-top: 0;
	height: calc(
		100% - (5.6rem + 2px - var(--tt-font-size-base-sm) - 0.75em) - 0.8rem
	);
	top: 0;
	margin-bottom: 0.8rem;
	opacity: 0;
	transition: none;
	&:has(+ .hide) {
		opacity: 1;
	}
}

form .tab-par {
	color: var(--text-body-secondary);
}

.subheading-sm.tab-subhead {
	color: var(--accent-colour);
}

.tt-button-accent {
	background-color: var(--accent-colour);
	&:hover {
		background-color: var(--secondary-accent-colour);
		color: initial;
	}
}
#message-pseudo {
	margin-top: calc(5.6rem + 2px - var(--tt-font-size-base-sm) - 0.75em);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(
		100% - (5.6rem + 2px - var(--tt-font-size-base-sm) - 0.75em) - 0.8rem
	);
	padding: 0 0.8rem;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.28571429;
	margin-bottom: 0.8rem;
	color: inherit;
	white-space: pre-wrap;
	overflow-y: auto;
	pointer-events: none;
	box-sizing: border-box;
	transition: none;
	&.hide {
		opacity: 0;
	}
}
.main-carousel-wrapper {
	position: relative;
	overflow: hidden;
	display: flex;
	& .swiper-button-prev-custom,
	& .swiper-button-next-custom {
		content: url(../../img/arrow-nofill-circle.svg);
		width: 0;
		visibility: hidden;
		place-self: center;
		height: 1em;
		transition: var(--quick-ease-out);

		background: var(--neutral-ui);
		border-radius: 50%;
		&:hover {
			background: var(--tt-white-main);
			transition-delay: 0;
			cursor: pointer;
		}
		&:active {
			margin-top: 4px;
		}
	}
	&:has(.main-carousel.overflow-left) {
		& .swiper-button-prev-custom {
			transform: rotate(-90deg);
			margin-right: var(--base-margin-05);
			visibility: visible;
			width: 1em;
		}
	}
	&:has(.main-carousel.overflow-right) {
		& .swiper-button-next-custom {
			transform: rotate(90deg);
			margin-left: var(--base-margin-05);
			visibility: visible;
			width: 1em;
		}
	}
	.swiper-button-next-custom {
		transform: rotate(90deg);
		margin-left: var(--base-margin-05);
	}

	& .placeholder_button-container {
		border-radius: var(--b-rad-md);
		border: 1px solid var(--text-body-secondary);
		padding: var(--base-margin-025);

		& .swiper-slide {
			flex: 0 0 auto;
			width: auto;
		}
		& .placeholder_button {
			padding: var(--base-margin-025) var(--base-margin-05);
			border-radius: var(--b-rad-sm);
			font-size: var(--tt-font-size-xs);
			place-content: center;
			text-align: center;
			white-space: nowrap;
			border: 1px solid var(--text-body-secondary);
			padding-left: calc(
				1em + var(--base-margin-05) + var(--base-margin-0375)
			);
			transition: var(--quick-ease-out);
			&:hover {
				box-shadow: var(--card-shadow-sm);
			}
			&::before {
				content: '';
				background: var(--button-text);
				mask: url(../../img/plus.svg);
				display: inline-block;
				height: 100%;
				width: 1em;
				aspect-ratio: 1;
				mask-size: 100%;
				mask-repeat: no-repeat;
				mask-position: center;
				margin-right: var(--base-margin-0375);
				place-self: center;
				position: absolute;
				top: 50%;
				left: var(--base-margin-05);
				transform: translateY(-50%);
			}
		}
	}
}

.tt-button-accent.form-submit,
.restart-button,
.restart-button .svg-icon {
	color: var(--button-text);
	&.awaiting-response::after {
		mask: url(../../img/spinner-awaiting-response.svg);
		background: var(--tertiary-colour);
	}
	&.svg-icon.svg-em {
		color: var(--button-text);
	}
	&:hover {
		color: var(--button-text);
	}
	&:disabled {
		background: var(--accent-colour);
		filter: grayscale(0.5);
	}
}
.success-icon.mint-darker {
	color: var(--success-colour);
}

.placeholder-recipient_name,
button.recipient_name {
	background-color: var(--tt-blue-lighterest);
	color: var(--text-colour);
}
.placeholder-recipient_party,
button.recipient_party {
	background-color: var(--tt-violet-lighterest);
	color: var(--text-colour);
}
.placeholder-Your_first_name,
button.firstname {
	background-color: var(--tt-mint-lighterest);
	color: var(--text-colour);
}
.placeholder-Your_name,
button.fullname {
	background-color: var(--tt-mint-lighterest);
	color: var(--text-colour);
}
.placeholder-recipient_electorate,
button.recipient_electorate {
	background-color: var(--tt-apple-lighterest);
	color: var(--text-colour);
}
.placeholder-Your_surname,
button.surname {
	background-color: var(--tt-mint-lighterer);
	color: var(--text-colour);
}
.placeholder-Your_email,
button.email {
	background-color: var(--tt-mint-lighterer);
	color: var(--text-colour);
}

.soapbox-header {
	color: var(--secondary-accent-colour);
	font-variation-settings: var(--fw-bold);
	position: relative;
	font-family: 'trade-gothic-next-compressed', 'Arial Narrow', sans-serif;
	text-transform: uppercase;
	font-size: var(--tt-font-size-header);
	text-align: center;
}

body:not(.admin-bar)
	.standalone-content-wrapper
	.standalone-action
	form.tt-form {
	position: sticky;
	top: var(--base-margin);
}

body.admin-bar .standalone-content-wrapper .standalone-action form.tt-form {
	position: sticky;
	top: calc(var(--base-margin-05) + 32px);
}

.soapbox-header {
	line-height: var(--condensed-line-height);
}

a {
	text-decoration-color: var(--secondary-accent-colour);
}
a:hover {
	color: var(--secondary-accent-colour);
}

::marker {
	text-indent: -4px !important;
}

input[type='checkbox']:checked + .checkbox-label,
input[type='checkbox']:checked + label,
.checkbox-label:has(input[type='checkbox']:checked),
label:has(input[type='checkbox']:checked) {
	color: var(--text-body-secondary);
}
input[type='checkbox']:checked + label::before,
label:has(input[type='checkbox']:checked)::before {
	background-color: var(--accent-colour);
}
input[type='checkbox']:not(.circle-checkbox) + label::before,
label:has(input[type='checkbox']:not(.circle-checkbox))::before,
.circle-checkbox + input[type='checkbox']:not(.circle-checkbox) + label::before,
.circle-checkbox-wrapper
	+ input[type='checkbox']:not(.circle-checkbox)
	+ label::before {
	background-color: var(--text-secondary);
}

input[type='checkbox']:not(:checked) + .checkbox-label,
input[type='checkbox']:not(:checked) + label,
.checkbox-label:has(input[type='checkbox']:not(:checked)),
label:has(input[type='checkbox']:not(:checked)) {
	color: var(--secondary-text);
	opacity: 0.8;
}

.awaiting-response.tt-button-accent {
	background-color: var(--secondary-accent-colour);
}

form.simplified-form .input-container:has(input:disabled) {
	background-color: var(--tt-mint-525);
	& label.floating-label {
		color: var(--tt-mint-450);
	}
	& input:disabled {
		color: var(--tt-mint-375);
	}
}

/* Expandable Section Styles */
.expandable-section-wrapper {
	display: grid;
	background-color: var(--neutral-ui);
	overflow: hidden;
	transition: var(--quick-ease);
	place-content: start;
	padding: var(--base-margin);
	border-radius: var(--b-rad-md);
	cursor: pointer;
	grid-template-columns: 1fr;
	&:has(.expand-icon) {
		grid-template-rows: auto 0fr;
	}
	&:has(.collapse-icon) {
		grid-template-rows: auto 1fr;
	}
}

.expandable-section-wrapper:not(:last-of-type) {
	margin-bottom: var(--base-margin);
}
.expandable-section-wrapper:has(.expand-icon) .expandable-content-wrapper {
	opacity: 0;
	grid-template-rows: 0fr;
}
.expandable-section-header-wrapper {
	display: flex;
	transition: inherit;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--base-margin);
	&:has(.expand-icon) > .header-3 {
		margin-bottom: 0;
		transition: inherit;
	}
}
.expand-icon,
.collapse-icon {
	mask-size: 75%;
	aspect-ratio: 1;
}

.tab-container.simplified-form {
	width: 100%;
}

.expandable-section-header-wrapper:has(.collapse-icon) {
	margin-bottom: var(--base-margin);
}

.standalone-text {
	overflow: hidden;
	max-width: min(var(--prose-width), 100%);
	margin-inline: auto;
}

.standalone-text p:has(+ .expandable-section-wrapper) {
	margin-bottom: var(--base-margin-2);
}
.header-4 {
	color: var(--text-highlight);
}

.overline.soapbox {
	text-align: center;
	color: var(--text-secondary);
	margin-inline: auto;
	margin-bottom: var(--base-margin-05);
	position: relative;
	display: table;
	white-space: nowrap;
	&::before {
		right: var(--base-margin);
	}
	&::after {
		left: var(--base-margin);
	}
}

.overline.soapbox::before,
.overline.soapbox::after {
	border-top: 1px solid var(--text-body-secondary);
	content: '';
	position: relative;
	display: table-cell;
	width: 50%;
	opacity: 0.2;
	top: 0.5em;
}

.expandable-section-div1 p.expandable-section-subheading,
.expandable-content-wrapper p.expandable-section-subheading {
	color: var(--text-secondary);
	position: relative;
}

.expandable-section-div1 :last-child {
	margin-bottom: 0;
}

.expandable-section-div1 *:not(:last-child) {
	margin-bottom: var(--base-margin);
}
.expand-icon {
	background-color: var(--text-header);
}
.collapse-icon {
	background-color: var(--text-subheader);
}
.expandable-content-wrapper {
	transition: var(--quick-ease);
	min-height: 0;
	display: grid;
	overflow: hidden;
}

.expandable-section-wrapper:has(.collapse-icon) .expandable-content-wrapper {
	visibility: visible;
	grid-template-rows: 1fr;
}

.expandable-thumbnail {
	width: 100%;
	display: block;
	margin-bottom: var(--base-margin-15);
}

@keyframes animateToAuto {
	0% {
		grid-template-rows: 0fr;
		overflow: hidden;
		min-height: 0;
	}
	1% {
		grid-template-rows: 1fr;
	}
	100% {
		overflow: auto;
		min-height: unset;
	}
}

@media (max-width: 1100px) {
	:root {
		--tt-form-width: min(38.8rem, 100%);
	}
}
@media (max-width: 899px) {
	:root {
		--tt-form-width: min(45.6rem, 100%);
	}
	.standalone-content-wrapper {
		grid-template-columns: 1fr;
		column-gap: unset;
		row-gap: var(--base-margin-2);
		display: flex;
		flex-direction: column;
	}
	.soapbox-header {
		font-size: var(--tt-font-size-display);
	}

	#fixed-button-observer-wrap {
		display: block;
	}
}

@media (max-width: 440px) {
	h1 div:has(> .post-title) {
		max-width: 100%;
	}
	h1.display span.post-title,
	.display,
	.title {
		font-size: var(--tt-font-size-display-xl);
	}
	.global-wrap {
		padding-top: 0;
		& .standalone-hero-img {
			width: calc(100% + (2 * var(--tt-global-padding-left-right)));
			margin-left: calc(-1 * var(--tt-global-padding-left-right));
		}
	}
}

/* Style for selected placeholder spans in the pseudo-element */
.placeholder-preview span.pseudo-selected {
	background-color: rgba(
		0,
		123,
		255,
		0.3
	); /* Example: Light blue highlight */
	/* background-color: AccentColor; */ /* Try using system accent colour */
	/* background-color: Highlight; */ /* Standard system highlight colour */
	border-radius: var(--b-rad-sm);
	box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.5); /* Optional subtle border */
}
