/*
 * Minimal structural styles so the blocks work with any theme.
 * The Tradebase theme provides the full design (assets/css/theme.css).
 */
.tb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tb-services--cards,
.tb-reviews__list,
.tb-accreditations,
.tb-profiles,
.tb-areas__list,
.tb-services--links {
	list-style: none;
	padding: 0;
}

.tb-services--cards,
.tb-reviews__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 1.5rem;
}

.tb-card {
	position: relative;
}

.tb-card img,
.tb-service img {
	display: block;
	width: 100%;
	height: auto;
}

.tb-form__form {
	display: grid;
	gap: 1rem;
}

.tb-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.tb-field input:not([type="checkbox"]),
.tb-field select,
.tb-field textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	font: inherit;
}

.tb-field__error {
	color: #b42318;
	font-weight: 700;
}

.screen-reader-text:not(:focus) {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Social icons inherit the site's colours; empty profiles never render. */
.tb-profiles { display:flex; flex-wrap:wrap; align-items:center; gap:0.5rem; }
.tb-profiles .wp-social-link { margin:0; padding:0; color:inherit; background:transparent; border-radius:0; }
.tb-profiles .wp-social-link a { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0; color:inherit; border-radius:6px; }
.tb-profiles .wp-social-link svg { display:block; width:24px; height:24px; fill:currentColor; }
.tb-profiles a:hover { opacity:0.8; }
.tb-profiles a:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.tb-profiles .wp-social-link .wp-block-social-link-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.tb-profiles__review a { display:inline-flex; align-items:center; min-height:44px; padding-inline:0.5rem; }
