/**
 * Resource4u Hub - theme additions.
 *
 * main.css carries the design as built. This file styles everything the
 * WordPress build adds on top: navigation dropdowns, the top bar, filters,
 * pagination, listing cards for the supporting post types, forms feedback,
 * widgets, comments and the utility overlays.
 *
 * Design tokens (--t, --tl, --a, --n, --mu, --br, --r, --rs) come from
 * main.css and the palette set in Theme Options.
 */

/* ==========================================================================
   Design parity
   --------------------------------------------------------------------------
   The HTML designs ship a demo "theme switcher" script that injects a handful
   of palette rules at runtime. That script is a prototyping tool and is not
   part of the theme, so the rules it supplied are baked in here instead and
   driven from the Theme Options palette.
   ========================================================================== */

/* Small heading / badge. main.css leaves this white, which is invisible on the
   light sections; the design paints it with the primary colour. */
.bdg {
	color: var(--t);
}

/* Dark-section variant. main.css has "color: #bcfff8 !;" which browsers drop. */
.bdgd {
	color: #bcfff8;
}

/* Comparison table row headers. The design marks the first column up as a <td>;
   the theme uses <th scope="row"> for accessibility, so it has to opt out of
   the white <thead> colour. */
.pc-table tbody th {
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--n);
	padding: 17px 24px;
	border-top: 1px solid var(--br);
	vertical-align: middle;
	white-space: normal;
}

@media (max-width: 768px) {
	.pc-table{
		min-width: auto;
	}
	.pc-table tbody th {
		padding: 14px 18px;
		/* white-space: nowrap; */
	}
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.r4u-grid.is-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.r4u-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--mu);
	padding: 40px 0;
	font-size: 16px;
}

.r4u-entry > * + * {
	margin-top: 1.15em;
}

.r4u-entry h2,
.r4u-entry h3,
.r4u-entry h4 {
	font-family: "Plus Jakarta Sans", "Inter", sans-serif;
	color: var(--n);
	line-height: 1.25;
	margin-top: 1.6em;
}

.r4u-entry h2 { font-size: clamp(24px, 3vw, 32px); }
.r4u-entry h3 { font-size: clamp(20px, 2.4vw, 25px); }

.r4u-entry p,
.r4u-entry li {
	color: #43536a;
	font-size: 17px;
	line-height: 1.75;
}

.r4u-entry ul,
.r4u-entry ol {
	padding-left: 1.35em;
}

.r4u-entry li + li {
	margin-top: 0.5em;
}

.r4u-entry a {
	color: var(--t);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.r4u-entry img {
	max-width: 100%;
	height: auto;
	border-radius: var(--rs);
}

.r4u-entry blockquote {
	border-left: 3px solid var(--t);
	padding: 6px 0 6px 22px;
	font-size: 19px;
	font-style: italic;
	color: var(--n);
}

.r4u-entry pre,
.r4u-entry code {
	background: #f1efea;
	border-radius: 8px;
	font-size: 15px;
}

.r4u-entry pre {
	padding: 18px;
	overflow-x: auto;
}

.r4u-entry code {
	padding: 2px 6px;
}

.r4u-entry table {
	width: 100%;
	border-collapse: collapse;
}

.r4u-entry th,
.r4u-entry td {
	border: 1px solid var(--br);
	padding: 10px 14px;
	text-align: left;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.r4u-topbar {
	background: var(--n);
	color: #cfd8e3;
	font-size: 14px;
	position: relative;
	z-index: 60;
}

.r4u-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 42px;
	flex-wrap: wrap;
}

.r4u-topbar-message {
	margin: 0;
	font-size: 14px;
}

.r4u-topbar-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: auto;
	flex-wrap: wrap;
}

.r4u-topbar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #cfd8e3;
	text-decoration: none;
	transition: color 0.2s ease;
}

.r4u-topbar-link:hover {
	color: #fff;
}

.r4u-topbar-link .material-symbols-outlined {
	font-size: 17px;
}

body.has-topbar #nav {
	top: 42px;
}

/* ==========================================================================
   Navigation additions
   ========================================================================== */

.nl-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.nl-caret {
	font-size: 18px;
	margin-left: 2px;
	transition: transform 0.2s ease;
	pointer-events: none;
}

.nl-wrap:hover .nl-caret,
.nl-wrap:focus-within .nl-caret {
	transform: rotate(180deg);
}

.nl-sub {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	transform: translate(-50%, 8px);
	min-width: 232px;
	background: #fff;
	border: 1px solid var(--br);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(24, 38, 56, 0.14);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 70;
}

.nl-wrap:hover > .nl-sub,
.nl-wrap:focus-within > .nl-sub {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.nl-sub-link {
	display: block;
	padding: 9px 14px;
	border-radius: 9px;
	font-size: 15px;
	font-weight: 500;
	color: var(--n);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.nl-sub-link:hover,
.nl-sub-link.on {
	background: var(--ts);
	color: var(--t);
}

/* ==========================================================================
   Current page states
   --------------------------------------------------------------------------
   main.css only styles the desktop link (.nl.on). The mobile menu and the
   footer menus use the same "on" class from the nav walker, so they get a
   matching current state here.
   ========================================================================== */

.ml.on {
	color: var(--t);
}

/* Matches the footer link hover colour from main.css, which sits on a dark panel. */
.ft-link.on {
	color: #5ee0d4;
}

/* Logo swapping for the sticky and mobile states. */
.nav-logo-sticky,
.nav-logo-mobile {
	display: none;
}

#nav.sc .nav-logo-sticky {
	display: block;
}

#nav.sc .nav-logo-sticky ~ .nav-logo-default,
#nav.sc .nav-logo-default:has(~ .nav-logo-sticky) {
	display: none;
}

.nav-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--br);
	background: #fff;
	color: var(--n);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-search-toggle:hover {
	border-color: var(--t);
	color: var(--t);
}

/* ==========================================================================
   Mobile menu additions
   ========================================================================== */

.mm-brand {
	display: block;
	margin-bottom: 26px;
}

.mm-logo {
	max-width: 168px;
	height: auto;
}

.mm-contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 28px;
}

.mm-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--n);
	font-weight: 600;
	text-decoration: none;
}

.mm-social {
	margin-top: 24px;
}

.mm-drawer {
	max-width: 380px;
	margin-left: auto;
}

/* ==========================================================================
   Social links
   ========================================================================== */

.r4u-social {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.r4u-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: currentColor;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.r4u-social-outline .r4u-social-link {
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.r4u-social-solid .r4u-social-link {
	background: rgba(255, 255, 255, 0.1);
}

.r4u-social-link:hover {
	transform: translateY(-2px);
	background: var(--t);
	border-color: var(--t);
	color: #fff;
}

.r4u-topbar-social .r4u-social-link {
	width: 30px;
	height: 30px;
}

.footer-social {
	margin-top: 22px;
}

/* ==========================================================================
   Header search panel
   ========================================================================== */

.r4u-search-panel {
	position: fixed;
	inset: 0 0 auto 0;
	background: #fff;
	border-bottom: 1px solid var(--br);
	box-shadow: 0 22px 50px rgba(24, 38, 56, 0.12);
	padding: 26px 0 30px;
	z-index: 120;
	opacity: 0;
	transform: translateY(-14px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.r4u-search-panel.is-open {
	opacity: 1;
	transform: translateY(0);
}

.r4u-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.r4u-search-icon {
	position: absolute;
	left: 16px;
	color: var(--mu);
	pointer-events: none;
}

.r4u-search-input {
	flex: 1;
	padding-left: 46px !important;
}

.r4u-search-close {
	background: none;
	border: 0;
	color: var(--mu);
	cursor: pointer;
	padding: 8px;
}

.r4u-search-results {
	margin-top: 18px;
	max-height: 52vh;
	overflow-y: auto;
}

.r4u-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.r4u-search-item a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--n);
	transition: background 0.15s ease;
}

.r4u-search-item a:hover {
	background: var(--ts);
}

.r4u-search-type {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--t);
	font-weight: 700;
	min-width: 82px;
}

.r4u-search-title {
	font-weight: 600;
}

.r4u-search-all,
.r4u-search-empty,
.r4u-search-loading {
	display: inline-block;
	margin-top: 12px;
	color: var(--t);
	font-weight: 600;
	font-size: 15px;
}

.r4u-searchform {
	display: flex;
	gap: 10px;
	max-width: 520px;
}

.r4u-searchform .ff {
	flex: 1;
}

/* ==========================================================================
   Filters
   ========================================================================== */

.r4u-filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	flex-wrap: wrap;
	margin-bottom: 42px;
}

.r4u-filter-chips {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.r4u-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid var(--br);
	background: #fff;
	color: var(--n);
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.r4u-chip:hover {
	border-color: var(--t);
	color: var(--t);
}

.r4u-chip.is-active {
	background: var(--t);
	border-color: var(--t);
	color: #fff;
}

.r4u-chip-count {
	font-size: 12px;
	opacity: 0.65;
}

.r4u-filter-search {
	position: relative;
	display: flex;
	align-items: center;
	margin-inline: auto;
	min-width: 260px;
	flex: 0 1 320px;
}

.r4u-filter-search .material-symbols-outlined {
	position: absolute;
	left: 14px;
	color: var(--mu);
	font-size: 20px;
	pointer-events: none;
}

.r4u-filter-search .ff {
	padding-left: 44px;
	width: 100%;
}

/* Filter animation states. */
.r4u-filter-item {
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.r4u-filter-item.is-filtered-out {
	display: none;
}

.r4u-filter-item.is-filtered-in {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Pagination and load more
   ========================================================================== */

.r4u-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
	flex-wrap: wrap;
}

.r4u-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--br);
	background: #fff;
	color: var(--n);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.r4u-pagination .page-numbers:hover {
	border-color: var(--t);
	color: var(--t);
}

.r4u-pagination .page-numbers.current {
	background: var(--t);
	border-color: var(--t);
	color: #fff;
}

.r4u-pagination .dots {
	border: 0;
	background: none;
}

.r4u-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.r4u-sentinel {
	height: 1px;
}

/* ==========================================================================
   Blog cards and layout
   ========================================================================== */

.r4u-blog-layout {
	display: grid;
	gap: 46px;
}

.r4u-blog-layout.has-sidebar {
	grid-template-columns: minmax(0, 1fr) 330px;
}

@media (max-width: 1024px) {
	.r4u-blog-layout.has-sidebar {
		grid-template-columns: 1fr;
	}
}

.r4u-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}

.r4u-post-media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #eceae5;
}

.r4u-post-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.r4u-post-card:hover .r4u-post-media img {
	transform: scale(1.05);
}

.r4u-post-media-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--mu);
}

.r4u-post-media-fallback .material-symbols-outlined {
	font-size: 46px;
}

.r4u-post-body {
	padding: 24px 26px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.r4u-post-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--mu);
	flex-wrap: wrap;
}

.r4u-post-cat {
	color: var(--t);
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 12px;
}

.r4u-post-title {
	font-size: 20px;
	line-height: 1.3;
	color: var(--n);
	margin: 0;
}

.r4u-post-title a {
	color: inherit;
	text-decoration: none;
}

.r4u-post-title a:hover {
	color: var(--t);
}

.r4u-post-excerpt {
	color: var(--mu);
	font-size: 15.5px;
	line-height: 1.65;
	flex: 1;
}

/* Single post */
.r4u-single-hero {
	padding-bottom: 40px;
}

.r4u-single-head {
	max-width: 820px;
}

.r4u-single-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 22px;
	color: var(--mu);
	font-size: 14.5px;
	flex-wrap: wrap;
}

.r4u-single-author {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	color: var(--n);
}

.r4u-avatar {
	border-radius: 50%;
}

.r4u-single-media {
	margin-bottom: -60px;
	position: relative;
	z-index: 4;
}

.r4u-single-image {
	width: 100%;
	height: auto;
	border-radius: var(--r);
	box-shadow: 0 26px 60px rgba(24, 38, 56, 0.16);
}

.r4u-single-tags {
	display: flex;
	gap: 9px;
	flex-wrap: wrap;
	margin-top: 34px;
}

.r4u-single-tags .sp-chip {
	text-decoration: none;
}

.r4u-author-box {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 30px;
}

.r4u-author-avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.r4u-author-name {
	font-size: 19px;
	color: var(--n);
	margin-bottom: 6px;
}

.r4u-author-bio {
	color: var(--mu);
	font-size: 15.5px;
	line-height: 1.7;
}

.r4u-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 40px 48px;
	flex-wrap: wrap;
}

.r4u-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	max-width: 46%;
}

.r4u-nav-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--t);
	font-weight: 700;
}

.r4u-nav-title {
	color: var(--n);
	font-weight: 600;
}

/* Share */
.r4u-share {
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid var(--br);
}

.r4u-share-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--mu);
	font-weight: 700;
	margin-bottom: 12px;
}

.r4u-share-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.r4u-share-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--br);
	background: #fff;
	color: var(--n);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.r4u-share-link:hover {
	border-color: var(--t);
	color: var(--t);
}

/* ==========================================================================
   Team cards
   ========================================================================== */

.r4u-team-card {
	padding: 0;
	overflow: hidden;
	text-align: center;
}

.r4u-team-media {
	aspect-ratio: 4 / 5;
	background: linear-gradient(150deg, var(--ts), rgba(24, 38, 56, 0.06));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.r4u-team-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.r4u-team-initials {
	font-size: 44px;
	font-weight: 800;
	color: var(--t);
}

.r4u-team-body {
	padding: 22px 22px 26px;
}

.r4u-team-name {
	font-size: 18px;
	color: var(--n);
	margin-bottom: 4px;
}

.r4u-team-name a {
	color: inherit;
	text-decoration: none;
}

.r4u-team-role {
	color: var(--t);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}

.r4u-team-bio {
	color: var(--mu);
	font-size: 14.5px;
	line-height: 1.6;
}

.r4u-team-socials {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.r4u-team-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--br);
	color: var(--mu);
	transition: all 0.2s ease;
}

.r4u-team-socials a:hover {
	border-color: var(--t);
	color: var(--t);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.r4u-gallery-grid {
	display: grid;
	gap: 22px;
}

.r4u-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.r4u-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.r4u-gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.r4u-gallery-cols-3,
	.r4u-gallery-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
	.r4u-gallery-grid { grid-template-columns: 1fr; }
}

.r4u-gallery-masonry {
	display: block;
	column-count: 3;
	column-gap: 22px;
}

.r4u-gallery-masonry .r4u-gallery-item {
	break-inside: avoid;
	margin-bottom: 22px;
}

@media (max-width: 1024px) {
	.r4u-gallery-masonry { column-count: 2; }
}

@media (max-width: 620px) {
	.r4u-gallery-masonry { column-count: 1; }
}

.r4u-gallery-item {
	margin: 0;
	border-radius: var(--rs);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--br);
}

.r4u-gallery-link {
	display: block;
	position: relative;
	overflow: hidden;
}

.r4u-gallery-image {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}

.r4u-gallery-link:hover .r4u-gallery-image {
	transform: scale(1.05);
}

.r4u-gallery-zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(24, 38, 56, 0.42);
	color: #fff;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.r4u-gallery-link:hover .r4u-gallery-zoom {
	opacity: 1;
}

.r4u-gallery-caption {
	padding: 16px 18px 20px;
}

.r4u-gallery-title {
	font-size: 16px;
	color: var(--n);
	margin-bottom: 4px;
}

.r4u-gallery-text {
	font-size: 14px;
	color: var(--mu);
	line-height: 1.6;
}

.r4u-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(14, 27, 42, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	z-index: 9999;
}

.r4u-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: var(--rs);
}

.r4u-lightbox-close {
	position: absolute;
	top: 24px;
	right: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

/* ==========================================================================
   Jobs
   ========================================================================== */

.r4u-job-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.r4u-job-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.r4u-job-title {
	font-size: 20px;
	color: var(--n);
	margin: 0;
}

.r4u-job-title a {
	color: inherit;
	text-decoration: none;
}

.r4u-job-title a:hover {
	color: var(--t);
}

.r4u-job-closed {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #b42318;
	background: rgba(180, 35, 24, 0.08);
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.r4u-job-meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.r4u-job-excerpt {
	color: var(--mu);
	font-size: 15.5px;
	line-height: 1.65;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.r4u-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.r4u-required {
	color: #e11d48;
	margin-left: 2px;
}

.ff.has-error {
	border-color: #e11d48 !important;
}

.r4u-field-error {
	font-size: 13.5px;
	color: #e11d48;
	min-height: 1px;
}

.r4u-form-message {
	font-size: 13.5px;
	margin: 0px 0 0;
	min-height: 1px;
}

/* Privacy consent
   -------------------------------------------------------------------------- */

/*
 * The box and its sentence share a label, so the whole line is a hit target.
 * align-items: flex-start keeps the box level with the first line when the
 * sentence wraps, rather than drifting to the vertical middle of a tall block.
 */
.r4u-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
}

.r4u-consent-box {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	/* Nudge onto the cap height of the first line of text beside it. */
	margin-top: 2px;
	accent-color: #e11d48;
	cursor: pointer;
}

.r4u-consent-box.has-error {
	outline: 2px solid #e11d48;
	outline-offset: 2px;
}

.r4u-consent-text a {
	text-decoration: underline;
}

/* reCAPTCHA
   -------------------------------------------------------------------------- */

.r4u-captcha {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/*
 * The widget is a fixed 304px iframe that cannot reflow, so on narrow screens
 * it is scaled down instead of being allowed to push the layout sideways.
 * transform-origin keeps it aligned with the fields above it.
 */
@media (max-width: 360px) {
	.r4u-captcha-box {
		transform: scale(0.86);
		transform-origin: 0 0;
		height: 66px;
	}
}

.r4u-form-message.is-error {
	color: #e11d48;
}

.r4u-form-message.is-success {
	color: #0f7b53;
}

/*
 * The contact layout styles this message as a panel, so main.css keeps it
 * hidden until there is something to say. Without these it stays hidden for
 * good and the visitor never learns why a submission was refused.
 */
.r4u-form-message.ct-error.is-error,
.r4u-form-message.ct-error.is-success {
	display: flex;
}

.r4u-form-message.ct-error.is-success {
	color: #0f7b53;
	background: rgba(15, 123, 83, 0.07);
	border-color: rgba(15, 123, 83, 0.18);
}

.form-submit.is-loading,
.ct-submit.is-loading {
	opacity: 0.75;
	cursor: progress;
}

/* Honeypot - visually removed but not display:none so bots still fill it. */
.r4u-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.r4u-form-wrap {
	max-width: 760px;
}

/* Newsletter */
.r4u-newsletter {
	display: grid;
	gap: 20px;
	align-items: center;
	padding: 32px 34px;
	border-radius: var(--r);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	margin: 40px 0 12px;
}

.r4u-newsletter-block {
	background: #fff;
	border-color: var(--br);
}

@media (min-width: 860px) {
	.r4u-newsletter {
		grid-template-columns: 1fr 1fr;
	}
}

.r4u-newsletter-h {
	font-size: 21px;
	margin-bottom: 6px;
}

.r4u-newsletter-p {
	font-size: 15px;
	opacity: 0.78;
	line-height: 1.6;
}

.r4u-newsletter-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.r4u-newsletter-row .ff {
	flex: 1;
	min-width: 200px;
}

.r4u-form-note {
	font-size: 13px;
	opacity: 0.7;
	margin-top: 10px;
}

/* ==========================================================================
   Footer additions
   ========================================================================== */

.footer.has-bg {
	background-size: cover;
	background-position: center;
}

.footer-col-inline {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-inline .footer-links {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-contact-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.footer-contact-row .material-symbols-outlined {
	font-size: 20px;
	color: var(--t);
	flex-shrink: 0;
}

.footer-contact-value {
	color: rgba(255, 255, 255, 0.76);
	font-size: 15px;
	font-style: normal;
	line-height: 1.65;
	text-decoration: none;
}

a.footer-contact-value:hover {
	color: #fff;
}

.footer-hours-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.7);
}

.footer-hours-note {
	font-size: 13px;
	opacity: 0.6;
	margin-top: 8px;
}

.footer-bottom-menu {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-widgets {
	margin-top: 34px;
}

.r4u-to-top {
	position: fixed;
	right: 26px;
	bottom: 26px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--t);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(13, 110, 112, 0.35);
	z-index: 90;
	transition: transform 0.2s ease;
}

.r4u-to-top:hover {
	transform: translateY(-3px);
}

.r4u-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.r4u-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ==========================================================================
   Widgets, sidebar and comments
   ========================================================================== */

.r4u-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-self: start;
	position: sticky;
	top: 110px;
}

.widget {
	padding: 26px 28px;
}

.widget-title {
	font-size: 18px;
	color: var(--n);
	margin-bottom: 16px;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.widget li a {
	color: #43536a;
	text-decoration: none;
	font-size: 15px;
	transition: color 0.15s ease;
}

.widget li a:hover {
	color: var(--t);
}

.r4u-comments {
	max-width: 820px;
}

.r4u-comments-title {
	font-size: 24px;
	color: var(--n);
	margin-bottom: 24px;
}

.r4u-comment-list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.r4u-comment-list .children {
	list-style: none;
	margin: 22px 0 0 34px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.r4u-comment-list .comment-body {
	background: #fff;
	border: 1px solid var(--br);
	border-radius: var(--rs);
	padding: 22px 24px;
}

.r4u-comment-form .ff,
.r4u-comment-form input[type="text"],
.r4u-comment-form input[type="email"],
.r4u-comment-form input[type="url"] {
	width: 100%;
}

.r4u-comment-form p {
	margin-bottom: 16px;
}

/* ==========================================================================
   404, search results, legal, tables
   ========================================================================== */

.r4u-404 {
	position: relative;
	text-align: center;
	padding-top: 170px;
}

.r4u-404-inner {
	max-width: 720px;
	margin: 0 auto;
}

.r4u-404-code {
	font-size: clamp(90px, 16vw, 170px);
	line-height: 1;
	font-weight: 900;
	background: linear-gradient(135deg, var(--t), var(--tl));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 18px;
}

.r4u-404-image img {
	max-width: 420px;
	height: auto;
	margin: 0 auto 26px;
}

.r4u-404-actions {
	margin-top: 30px;
}

.r4u-404-search {
	margin: 28px auto 0;
	max-width: 480px;
}

.r4u-404-search .r4u-searchform {
	margin: 0 auto;
}

.r4u-404-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 26px;
}

.r4u-404-links .sp-chip {
	text-decoration: none;
}

.r4u-results-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.r4u-result {
	display: flex;
	gap: 22px;
	align-items: center;
	padding: 22px 24px;
}

.r4u-result-media img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	border-radius: var(--rs);
}

.r4u-result-type {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--t);
	font-weight: 700;
}

.r4u-result-title {
	font-size: 20px;
	margin: 6px 0 8px;
}

.r4u-result-title a {
	color: var(--n);
	text-decoration: none;
}

.r4u-result-title a:hover {
	color: var(--t);
}

.r4u-result-excerpt {
	color: var(--mu);
	font-size: 15.5px;
	line-height: 1.6;
	margin-bottom: 10px;
}

.r4u-search-page-form {
	margin-bottom: 40px;
}

.r4u-no-results {
	text-align: center;
	padding: 48px 32px;
	grid-column: 1 / -1;
}

.r4u-no-results-ico {
	font-size: 46px;
	color: var(--t);
	margin-bottom: 12px;
}

.r4u-no-results-h {
	font-size: 22px;
	color: var(--n);
	margin-bottom: 8px;
}

.r4u-no-results-p {
	color: var(--mu);
	margin-bottom: 22px;
}

.r4u-no-results .r4u-searchform {
	margin: 0 auto;
}

/* Legal pages - the .lg-* design carries the layout; only free-form editor
   content dropped below the clauses needs spacing. */
.lg-doc .r4u-entry {
	margin-top: 32px;
}

/* The design always ships a reviewer photo; initials stand in when one is
   missing so the testimonial layout never collapses. */
.ts-avatar-initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ts);
	color: var(--t);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.02em;
	box-sizing: border-box;
}

.ts-avatar-initials.ts-avatar-lg {
	font-size: 18px;
}

/* Comparison table */
.r4u-table-scroll {
	overflow-x: auto;
	margin-top: 32px;
}

.r4u-compare-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--rs);
	overflow: hidden;
}

.r4u-compare-table th,
.r4u-compare-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--br);
	text-align: left;
	font-size: 15px;
}

.r4u-compare-table thead th {
	background: var(--n);
	color: #fff;
	font-weight: 700;
}

.r4u-compare-table tbody th {
	font-weight: 600;
	color: var(--n);
}

.r4u-table-heading {
	font-size: clamp(24px, 3vw, 32px);
	color: var(--n);
}

/* Pricing toggle */
.r4u-price-toggle {
	display: inline-flex;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: rgba(24, 38, 56, 0.06);
	margin: 0 auto 40px;
}

.r4u-price-toggle {
	display: flex;
	width: fit-content;
}

.r4u-price-option {
	border: 0;
	background: none;
	padding: 9px 22px;
	border-radius: 999px;
	font-weight: 600;
	color: var(--n);
	cursor: pointer;
	transition: all 0.2s ease;
}

.r4u-price-option.is-active {
	background: #fff;
	color: var(--t);
	box-shadow: 0 4px 14px rgba(24, 38, 56, 0.1);
}

.r4u-price-note {
	text-align: center;
	color: var(--mu);
	margin-top: 30px;
	font-size: 15px;
}

/* Map */
.r4u-map-sec {
	line-height: 0;
}

.r4u-map {
	width: 100%;
	display: block;
}

/* Video poster */
.r4u-video-poster {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
}

.r4u-video-image {
	width: 100%;
	height: auto;
	display: block;
}

.r4u-video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.r4u-video-play .material-symbols-outlined {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: var(--t);
	color: #fff;
	font-size: 40px;
	box-shadow: 0 14px 40px rgba(13, 110, 112, 0.45);
	transition: transform 0.25s ease;
}

.r4u-video-poster:hover .r4u-video-play .material-symbols-outlined {
	transform: scale(1.08);
}

/* Bespoke nodes positioned by CSS custom property */
.bsp-node {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: rotate(var(--bsp-angle, 0deg)) translate(150px) rotate(calc(-1 * var(--bsp-angle, 0deg))) translate(-50%, -50%);
	transform-origin: 0 0;
}

@media (max-width: 620px) {
	.bsp-node {
		transform: rotate(var(--bsp-angle, 0deg)) translate(112px) rotate(calc(-1 * var(--bsp-angle, 0deg))) translate(-50%, -50%);
	}
}

/* Chat additions */
.chat-msg.chat-user {
	margin-left: auto;
	background: var(--t);
	color: #fff;
}

.chat-typing {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

.chat-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.4;
	animation: r4u-typing 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes r4u-typing {
	0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
	30% { opacity: 1; transform: translateY(-3px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.rv {
		opacity: 1 !important;
		transform: none !important;
	}
}
@media (max-width: 767px){
.r4u-to-top {
    bottom: 15px;
    width: 40px;
    height: 40px;
}
}

@media (max-width: 400px){
	.r4u-to-top {
    right: 15px;
    bottom: 15px;
    width: 35px;
    height: 35px;
}
}

@media (max-width: 330px){
.r4u-to-top {
    right: 10px;
    bottom: 38px;
    width: 30px;
    height: 30px;
}
}

/* ==========================================================================
   Hero panel small print
   --------------------------------------------------------------------------
   template-parts/components/console.php prints an optional note beneath the
   AI Agents / Bespoke / Industries hero panel. <small> is inline, so it needs
   a block box of its own to sit under the card rather than beside it.
   ========================================================================== */
.ag-console-note,
.bs-console-note,
.in-board-note {
	display: block;
	margin-top: 16px;
	padding: 0 4px;
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--mu);
	text-align: center;
	text-wrap: pretty;
}

@media (max-width: 991px) {
	.ag-console-note,
	.bs-console-note,
	.in-board-note {
		font-size: 12px;
		margin-top: 14px;
	}
}

/* ==========================================================================
   Feature card small print
   --------------------------------------------------------------------------
   template-parts/components/feature-cards.php prints an optional note under
   each card's button. The foot it lives in is already pushed down with
   margin-top:auto, so the note travels with the button and the buttons stay
   aligned across the row whether or not a card carries a note.
   ========================================================================== */
.ag-card-note,
.bs-card-note {
	margin-top: 12px;
	font-size: 12.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.45);
	text-align: center;
	text-wrap: pretty;
}

.ag-card-note a,
.bs-card-note a {
	color: var(--tl);
	text-decoration: underline;
}

@media (max-width: 991px) {
	.ag-card-note,
	.bs-card-note {
		margin-top: 10px;
		font-size: 12px;
	}
}

/* ==========================================================================
   Plan card small print
   --------------------------------------------------------------------------
   template-parts/components/plans.php prints an optional note under each
   plan's button, separate from the single .ag-plan-note / .bs-plan-note line
   that sits below the whole grid. The plan sections are light, so this one
   takes the muted body colour rather than the dark-card white.
   ========================================================================== */
.ag-plan-foot-note,
.bs-plan-foot-note {
	margin-top: 12px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--mu);
	text-align: center;
	text-wrap: pretty;
}

.ag-plan-foot-note a,
.bs-plan-foot-note a {
	color: var(--t);
	text-decoration: underline;
}

@media (max-width: 991px) {
	.ag-plan-foot-note,
	.bs-plan-foot-note {
		margin-top: 10px;
		font-size: 12px;
	}
}
