/**
 * Rafi Portfolio — base + component styles.
 * Depends on tokens.css. Keep every colour/font reference on a token.
 */

/* ---------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	/* Keeps anchor targets clear of the sticky header. */
	scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

body {
	margin: 0;
	background: var(--rp-bg);
	color: var(--rp-text);
	font-family: var(--rp-font-body);
	font-size: 16px;
	line-height: var(--rp-leading);
	text-wrap: pretty;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

figure { margin: 0; }

a {
	color: var(--rp-accent-700);
	text-decoration: none;
	text-underline-offset: 3px;
}

a:hover,
a:focus { color: var(--rp-accent-800); }

:focus { outline: none; }

:focus-visible {
	outline: 2px solid var(--rp-accent);
	outline-offset: 2px;
}

::selection { background: color-mix(in srgb, var(--rp-accent) 30%, transparent); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 var(--rp-space-2);
}

h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

p { margin: 0 0 var(--rp-space-3); }

hr {
	height: 1px;
	border: 0;
	margin: var(--rp-space-4) 0;
	background: var(--rp-divider);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	padding: 10px 18px;
	background: var(--rp-accent-900);
	color: var(--rp-bg);
	font-size: 14px;
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
}

/* ------------------------------------------------------------ container */

.rp-container {
	width: 100%;
	max-width: calc(var(--rp-container) + var(--rp-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--rp-gutter);
}

.rp-section { padding-block-end: var(--rp-section-gap); }

.rp-kicker {
	display: block;
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--rp-accent-700);
	margin: 0 0 12px;
}

.rp-rule {
	height: 1px;
	border: 0;
	margin: 0 0 32px;
	background: var(--rp-divider);
}

/* ------------------------------------------------ blueprint frame object */

.rp-blueprint {
	position: relative;
	border: 1px solid var(--rp-divider);
	border-radius: var(--rp-radius);
	background: transparent;
}

.rp-blueprint > .rp-corner {
	position: absolute;
	width: 11px;
	height: 11px;
	color: color-mix(in srgb, var(--rp-text) 55%, transparent);
	pointer-events: none;
}

.rp-blueprint > .rp-corner::before,
.rp-blueprint > .rp-corner::after {
	content: "";
	position: absolute;
	background: currentColor;
}

.rp-blueprint > .rp-corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.rp-blueprint > .rp-corner::after { top: 5px; left: 0; width: 100%; height: 1px; }

.rp-blueprint > .rp-corner.is-tl { top: -6px; left: -6px; }
.rp-blueprint > .rp-corner.is-tr { top: -6px; right: -6px; }
.rp-blueprint > .rp-corner.is-bl { bottom: -6px; left: -6px; }
.rp-blueprint > .rp-corner.is-br { bottom: -6px; right: -6px; }

/* ------------------------------------------------------------- controls */

.rp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	font-size: 14px;
	line-height: 1.2;
	color: var(--rp-text);
	background: transparent;
	border: 1px solid var(--rp-divider);
	border-radius: var(--rp-radius);
	padding: var(--rp-space-2) calc(var(--rp-space-3) * 1.2);
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rp-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.rp-btn--primary {
	background: var(--rp-accent);
	border-color: var(--rp-accent);
	color: var(--rp-bg);
}

.rp-btn--primary:hover,
.rp-btn--primary:focus { background: var(--rp-accent-600); border-color: var(--rp-accent-600); color: var(--rp-bg); }
.rp-btn--primary:active { background: var(--rp-accent-700); }

.rp-btn--secondary:hover,
.rp-btn--secondary:focus { background: color-mix(in srgb, var(--rp-text) 7%, transparent); color: var(--rp-text); }

.rp-btn--ghost { border-color: transparent; color: var(--rp-accent); }
.rp-btn--ghost:hover { background: color-mix(in srgb, var(--rp-accent) 10%, transparent); }

.rp-input {
	width: 100%;
	min-height: 36px;
	padding: 8px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--rp-text);
	caret-color: var(--rp-accent);
	background: var(--rp-surface);
	border: 1px solid var(--rp-divider);
	border-radius: var(--rp-radius);
}

.rp-input:hover { border-color: color-mix(in srgb, var(--rp-text) 45%, transparent); }
.rp-input:focus-visible { border-color: var(--rp-accent); outline-offset: 0; }

textarea.rp-input { min-height: 90px; resize: vertical; }

.rp-tag {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	letter-spacing: 0.02em;
	padding: 3px 10px;
	border-radius: var(--rp-radius);
}

.rp-tag--outline { border: 1px solid var(--rp-accent); color: var(--rp-accent); }
.rp-tag--accent { background: var(--rp-accent-100); color: var(--rp-accent-800); }
.rp-tag--neutral { background: var(--rp-neutral-100); color: var(--rp-neutral-800); }

.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.rp-table th {
	text-align: left;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--rp-text) 60%, transparent);
	padding: 14px 16px;
	border-bottom: 1px solid var(--rp-divider);
}

.rp-table td {
	padding: 12px 16px;
	border-bottom: 1px solid color-mix(in srgb, var(--rp-text) 8%, transparent);
}

.rp-table tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------- image treatments */

.rp-media {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--rp-neutral-200);
}

.rp-media > img,
.rp-media > .rp-media__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rp-media__ph {
	display: grid;
	place-items: center;
	padding: 24px;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rp-neutral-600);
	background: repeating-linear-gradient(
		45deg,
		var(--rp-neutral-200) 0 8px,
		var(--rp-neutral-100) 8px 16px
	);
}

.rp-media--duotone::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: color;
	background: var(--rp-accent);
	opacity: 0.32;
}

.rp-media--flat::after { content: none; }

/* ---------------------------------------------------------- site header */

.rp-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--rp-bg);
	border-bottom: 1px solid var(--rp-divider);
}

.rp-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: calc(var(--rp-container) + var(--rp-gutter) * 2);
	margin-inline: auto;
	padding: 14px var(--rp-gutter);
}

.rp-brand {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
	margin-right: auto;
	color: inherit;
}

.rp-brand:hover { color: inherit; }

.rp-brand__name {
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	font-size: 20px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.rp-brand__tagline {
	font-family: var(--rp-font-body);
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rp-accent-700);
}

.rp-brand__logo { max-height: 48px; width: auto; }

.rp-nav ul {
	display: flex;
	align-items: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rp-nav li { position: relative; }

.rp-nav a {
	font-size: 14px;
	color: inherit;
}

.rp-nav a:hover,
.rp-nav .current-menu-item > a { color: var(--rp-accent); }

.rp-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 5;
	display: none;
	flex-direction: column;
	gap: 0;
	min-width: 200px;
	padding: 8px 0;
	background: var(--rp-bg);
	border: 1px solid var(--rp-divider);
}

.rp-nav li:hover > .sub-menu,
.rp-nav li:focus-within > .sub-menu { display: flex; }

.rp-nav .sub-menu a { display: block; padding: 8px 16px; }

.rp-header__inner .rp-nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rp-nav-toggle__bars {
	position: relative;
	width: 16px;
	height: 10px;
	flex: none;
}

.rp-nav-toggle__bars::before,
.rp-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
}

.rp-nav-toggle__bars::before { top: 0; }
.rp-nav-toggle__bars::after { bottom: 0; }

.rp-header__cta {
	padding: 9px 16px;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Two labels ship in the markup; the phone breakpoint swaps which one shows. */
.rp-header__cta-short { display: none; }

/* ---------------------------------------------------------- site footer */

.rp-footer { border-top: 1px solid var(--rp-divider); }

.rp-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 16px 32px;
	max-width: calc(var(--rp-container) + var(--rp-gutter) * 2);
	margin-inline: auto;
	padding: 32px var(--rp-gutter) 96px;
	font-size: 13px;
	color: var(--rp-neutral-700);
}

.rp-footer__brand {
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--rp-text);
	margin-right: auto;
}

.rp-footer__inner ul {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* -------------------------------------------------------- sticky CTA bar */

.rp-ctabar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 70;
	background: var(--rp-accent-900);
	color: var(--rp-bg);
	border-top: 1px solid var(--rp-accent-700);
	transform: translateY(110%);
	transition: transform 0.28s ease;
}

.rp-ctabar.is-visible { transform: translateY(0); }

.rp-ctabar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	max-width: calc(var(--rp-container) + var(--rp-gutter) * 2);
	margin-inline: auto;
	padding: 12px var(--rp-gutter);
}

.rp-ctabar__text {
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-right: auto;
}

.rp-ctabar .rp-btn--primary { border-color: var(--rp-accent); padding: 10px 20px; letter-spacing: 0.05em; text-transform: uppercase; }

.rp-ctabar__close {
	background: none;
	border: 0;
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	padding: 4px 8px;
}

.rp-ctabar__close:hover { opacity: 1; }

/* ------------------------------------------------------- content pages */

.rp-entry { padding-block: 56px var(--rp-section-gap); }

.rp-entry__title {
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.rp-entry__content { max-width: 72ch; font-size: 17px; line-height: 28px; }
.rp-entry__content > * + * { margin-top: 20px; }
.rp-entry__content h2 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; letter-spacing: 0.01em; margin-top: 40px; }
.rp-entry__content h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; margin-top: 32px; }
.rp-entry__content ul,
.rp-entry__content ol { padding-left: 20px; }
.rp-entry__content blockquote {
	margin: 0;
	padding-left: 20px;
	border-left: 2px solid var(--rp-accent);
	font-family: var(--rp-font-heading);
	font-size: 22px;
	line-height: 1.3;
}

/* ------------------------------------------------------- case study CPT */

.rp-case-meta {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--rp-divider);
	border: 1px solid var(--rp-divider);
	margin-block: 40px 64px;
}

.rp-case-meta__cell { background: var(--rp-bg); padding: 18px 20px; }

.rp-case-meta__label {
	display: block;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rp-neutral-600);
}

.rp-case-meta__value {
	display: block;
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	font-size: 18px;
	text-transform: uppercase;
	margin-top: 4px;
}

.rp-case-hero { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 40px; }

.rp-case-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.rp-back-link {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}

.rp-case-archive {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(24px, 3vw, 48px);
}

/* ------------------------------------------------------------ utilities */

.rp-grid { display: grid; }
.rp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

/* ---------------------------------------------------------- breakpoints */

@media (max-width: 1024px) {
	.rp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-case-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.rp-cols-2,
	.rp-cols-3 { grid-template-columns: minmax(0, 1fr); }
	.rp-case-archive { grid-template-columns: minmax(0, 1fr); }

	.rp-header__inner .rp-nav-toggle { display: inline-flex; }

	.rp-header__inner { flex-wrap: wrap; row-gap: 0; position: relative; }

	/*
	 * The open menu drops out of flow and overlays the page. Left in flow it
	 * grew the sticky header past half the viewport and pushed every section
	 * down the moment the toggle was tapped.
	 */
	.rp-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 5;
		max-height: calc(100vh - 100%);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-inline: var(--rp-gutter);
		background: var(--rp-bg);
		border-bottom: 1px solid var(--rp-divider);
		box-shadow: var(--rp-shadow-md);
	}

	@supports (height: 100dvh) {
		.rp-nav { max-height: calc(100dvh - 100%); }
	}

	.rp-header__inner.is-open .rp-nav { display: block; }

	.rp-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-block: 8px 16px;
	}

	.rp-nav li { border-top: 1px solid var(--rp-divider); }
	.rp-nav a { display: block; padding: 12px 0; }
	.rp-nav .sub-menu { position: static; display: flex; border: 0; padding: 0 0 0 16px; }
}

@media (max-width: 620px) {
	.rp-cols-4 { grid-template-columns: minmax(0, 1fr); }
	.rp-case-meta { grid-template-columns: minmax(0, 1fr); }
	/* The widgets plugin also declares .rp-btn and its stylesheet loads after
	   this one, so bare .rp-header__cta rules lose the cascade. Keep the
	   two-class selectors below or the phone sizing silently reverts. */
	.rp-header .rp-header__cta {
		padding: 8px 12px;
		font-size: 12px;
		letter-spacing: 0.03em;
	}

	.rp-header .rp-header__cta-full { display: none; }
	.rp-header .rp-header__cta-short { display: inline; }
	.rp-ctabar__text { font-size: 13px; }
}

/* ------------------------------------------------------------ cards */

.rp-case-card,
.rp-post-card {
	display: flex;
	flex-direction: column;
	color: inherit;
}

.rp-case-card:hover,
.rp-case-card:focus-visible { color: inherit; }

.rp-case-card .rp-media,
.rp-post-card .rp-media { border-bottom: 1px solid var(--rp-divider); }

.rp-case-card__body,
.rp-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}

.rp-case-card__body > .rp-tag { align-self: flex-start; }

.rp-case-card__title,
.rp-post-card__title {
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	font-size: 26px;
	line-height: 28px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 14px 0 0;
}

.rp-post-card__title { margin-top: 8px; font-size: 24px; }
.rp-post-card__title a { color: inherit; }
.rp-post-card__title a:hover { color: var(--rp-accent-700); }

.rp-case-card__summary,
.rp-post-card__excerpt {
	font-size: 15px;
	line-height: 24px;
	margin: 10px 0 16px;
	color: var(--rp-neutral-800);
	flex: 1;
}

.rp-case-card__link {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--rp-accent-700);
}

.rp-case-card:hover .rp-case-card__link { color: var(--rp-accent-800); }

/* --------------------------------------------------------- case nav */

.rp-case-nav__link {
	display: block;
	padding: 20px 0;
	border-top: 1px solid var(--rp-divider);
	color: inherit;
}

.rp-case-nav__title {
	display: block;
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.rp-case-nav__link:hover .rp-case-nav__title { color: var(--rp-accent-700); }

/* ------------------------------------------------------- pagination */

.rp-theme .navigation.pagination {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.rp-theme .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.rp-theme .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-family: var(--rp-font-heading);
	font-weight: var(--rp-font-heading-weight);
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rp-text);
	border: 1px solid var(--rp-divider);
}

.rp-theme .page-numbers:hover { border-color: var(--rp-accent); color: var(--rp-accent-700); }

.rp-theme .page-numbers.current {
	background: var(--rp-accent);
	border-color: var(--rp-accent);
	color: var(--rp-bg);
}

.rp-theme .page-numbers.dots { border-color: transparent; }

/* --------------------------------------------------- footer widgets */

.rp-footer__widget-title {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 6px;
}

/* ------------------------------------------------------------ phone tuning */

@media (max-width: 767px) {
	.rp-section { padding-block-end: 48px; }

	.rp-header__inner { gap: 12px; padding-block: 12px; }
	.rp-brand__name { font-size: 18px; }
	.rp-brand__tagline { font-size: 10px; letter-spacing: 0.08em; }

	.rp-entry { padding-block: 32px 48px; }
	.rp-entry__content { font-size: 16px; line-height: 26px; }
	.rp-entry__content h2 { margin-top: 32px; }
	.rp-entry__content h3 { margin-top: 24px; }

	.rp-case-meta { margin-block: 28px 40px; }
	.rp-case-meta__cell { padding: 14px 16px; }
	.rp-case-hero { margin-bottom: 28px; }
	.rp-case-nav__link { padding: 16px 0; }
	.rp-case-nav__title { font-size: 20px; }

	.rp-case-card__body,
	.rp-post-card__body { padding: 16px; }
	.rp-case-card__title,
	.rp-post-card__title { font-size: 22px; line-height: 24px; }

	.rp-footer__inner { padding-block: 24px 104px; gap: 12px 20px; }
	.rp-footer__brand { margin-right: 0; flex-basis: 100%; }

	.rp-ctabar__inner { padding-block: 10px; gap: 8px 12px; }
	.rp-ctabar__text { margin-right: 0; flex: 1 1 100%; }
}

@media (max-width: 480px) {
	.rp-brand__tagline { display: none; }
	.rp-header__inner { gap: 10px; }
	.rp-header__inner .rp-nav-toggle { padding: 8px 10px; }
	.rp-header .rp-header__cta { padding: 8px 10px; font-size: 11px; }
	.rp-footer__inner { font-size: 12px; }
}

/* --------------------------------------------------------------- badge */

/*
 * The hero's availability badge, reusable anywhere: add the CSS class
 * `rp-badge` to an Elementor container (or any element) holding the label.
 * On a container the key is `css_classes`, not `_css_classes`.
 * The blip is drawn with ::before so no extra markup is needed.
 * `.e-con.rp-badge` outranks Elementor's own `.e-con { width: var(--width) }`,
 * which is what stops the badge stretching the full column width.
 */
.rp-badge {
	gap: 8px;
	align-items: center;
	font-family: var(--rp-font-body);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--rp-accent-700);
	background: transparent;
	border: 1px solid var(--rp-divider);
	border-radius: var(--rp-radius);
	padding: 5px 10px;
}

.e-con.rp-badge {
	width: fit-content;
	max-width: 100%;
	align-self: flex-start;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	/* Elementor's own .e-con padding block loads after this file, so the
	   badge padding has to ride on the two-class selector to survive. */
	padding: 5px 10px;
}

.rp-badge::before,
.e-con.rp-badge::before {
	content: "";
	flex: none;
	display: block;
	width: 6px;
	min-width: 6px;
	max-width: 6px;
	height: 6px;
	background: var(--rp-accent);
	animation: rp-badge-blip 2s infinite;
}

.rp-badge p,
.rp-badge .elementor-widget-container > p:last-child { margin: 0; }

@keyframes rp-badge-blip {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
	.rp-badge::before,
	.e-con.rp-badge::before { animation: none; }
}

/* ------------------------------------------------------------- tidycal */

/*
 * TidyCal renders its "Make your own booking page" upsell as the last block of
 * the embed, inside a cross-origin iframe — no selector from this side can
 * reach it, so it is cropped instead. The block is 281px tall whenever the
 * embed is narrower than 768px, which is every layout we use it in (the
 * booking column is ~560-640px on desktop, ~330px on a phone). If the embed is
 * ever made wider than 768px, TidyCal switches to a 207px version and this
 * value has to come down with it.
 * Raise it to 308px to drop the "Powered by TidyCal" strip as well.
 */
.rp-tidycal,
.rp-tidycal > .elementor-widget-container {
	overflow: hidden;
}

.rp-tidycal iframe.tidycal-embed {
	display: block;
	margin-bottom: -281px;
}
