/* Resource Navigator – front end. Everything is scoped under .rnav. */

.rnav {
	--rnav-navy: #073b64;
	--rnav-teal: #078b96;
	--rnav-teal-dark: #06707a; /* teal for text and for white text on teal (AA) */
	--rnav-teal-text: var(--rnav-teal-dark);
	--rnav-soft: #4a5f73;
	--rnav-card-line: #d5e2ee;
	--rnav-stage: #f3f8fc;
	--rnav-ink: #1d2b3a;
	--rnav-muted: #5b6b7b;
	--rnav-line: #dde5ec;
	--rnav-pillbg: #eef2f6;
	--rnav-u: #3f6fb5; --rnav-u-l: #eef5fb;
	--rnav-f: #2f8a6e; --rnav-f-l: #eaf6f2;
	--rnav-d: #b4532a; --rnav-d-l: #fbefe8;
	--rnav-e: #6b4fa3; --rnav-e-l: #f1edf8;
	--rnav-b: #4a5568; --rnav-b-l: #eef1f4;
	--rnav-a: #8e2a63; --rnav-a-l: #f8ecf3;

	position: relative;
	box-sizing: border-box;
	margin: 0;
	padding: 34px 40px 36px;
	background: #fff;
	border-top: 5px solid var(--rnav-teal);
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(7, 59, 100, 0.16);
	color: var(--rnav-ink);
	font-family: inherit;
	text-align: left;
}

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

.rnav [hidden] {
	display: none !important;
}

.rnav p,
.rnav h2,
.rnav h3 {
	margin: 0;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
}

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

.rnav__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rnav :focus-visible {
	outline: 3px solid var(--rnav-teal);
	outline-offset: 2px;
}

/* Admin-only badge while switched off */
.rnav .rnav__badge {
	display: inline-block;
	margin: 0 0 16px;
	padding: 4px 10px;
	border-radius: 6px;
	background: #fff4d6;
	border: 1px solid #e6c55c;
	color: #5c4500;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

/* Head */
.rnav__head {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

/* 80px square from 700px up, to balance the eyebrow, heading and intro beside it (44px on phones, below). */
.rnav__icon {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--rnav-teal), #0aa6a0);
	display: grid;
	place-items: center;
}

.rnav__icon svg {
	display: block;
	width: 42px;
	height: 42px;
}

.rnav .rnav__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--rnav-teal-dark);
	line-height: 1.4;
}

.rnav .rnav__heading {
	margin: 4px 0 6px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--rnav-navy);
}

.rnav .rnav__intro {
	color: var(--rnav-muted);
	font-size: 16.5px;
	line-height: 1.5;
}

/* Ask box */
.rnav__ask {
	display: flex;
	gap: 10px;
	margin: 24px 0 0;
}

.rnav .rnav__q {
	flex: 1;
	min-width: 0;
	min-height: 58px;
	height: 58px;
	margin: 0;
	padding: 15px 16px;
	font: inherit;
	font-size: 17px;
	line-height: 1.4;
	color: var(--rnav-ink);
	background: #fff;
	border: 2px solid var(--rnav-line);
	border-radius: 10px;
	box-shadow: none;
	resize: none;
}

.rnav .rnav__q:focus {
	border-color: var(--rnav-teal);
	outline: none;
	box-shadow: 0 0 0 3px rgba(7, 139, 150, 0.25);
}

.rnav .rnav__q[aria-invalid="true"] {
	border-color: #b42318;
}

.rnav .rnav__q[readonly] {
	background: #f7f9fb;
}

.rnav .rnav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 58px;
	margin: 0;
	padding: 0 26px;
	background: var(--rnav-navy);
	color: #fff;
	border: 0;
	border-radius: 999px; /* buttons are pills */
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s;
}

.rnav .rnav__btn:hover {
	background: #0a4d82;
	color: #fff;
}

.rnav .rnav__btn:disabled {
	cursor: progress;
	opacity: 0.85;
}

.rnav .rnav__btn svg {
	flex-shrink: 0;
}

/* Chips */
.rnav__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
}

.rnav__chips-label {
	margin-right: 2px;
	font-size: 14px;
	color: var(--rnav-muted);
}

.rnav .rnav__chip {
	margin: 0;
	padding: 8px 14px;
	border: 1.5px solid #c9e6e3;
	border-radius: 999px;
	background: #f2fbfa;
	color: var(--rnav-navy);
	font: inherit;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s, border-color 0.15s;
}

.rnav .rnav__chip:hover {
	background: #e3f6f4;
	border-color: var(--rnav-teal);
	color: var(--rnav-navy);
}

.rnav .rnav__privacy {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rnav-muted);
}

.rnav .rnav__privacy a {
	color: var(--rnav-teal-text);
}

/* Errors and status */
.rnav .rnav__error {
	margin-top: 6px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #b42318;
}

.rnav .rnav__status {
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px solid #f1c0bb;
	border-radius: 10px;
	background: #fdf1f0;
	color: #8a1c12;
	font-size: 15px;
	line-height: 1.45;
}

/* Results: top row */
.rnav__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--rnav-line);
}

.rnav .rnav__asked {
	font-size: 15px;
	line-height: 1.45;
	color: var(--rnav-muted);
}

.rnav .rnav__asked b {
	color: var(--rnav-ink);
	font-weight: 600;
}

.rnav .rnav__again,
.rnav .rnav__link {
	display: inline;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--rnav-teal-text);
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.rnav .rnav__again {
	font-weight: 600;
}

.rnav .rnav__again:hover,
.rnav .rnav__link:hover {
	background: none;
	color: var(--rnav-navy);
	text-decoration: underline;
}

/* Results: heading */
.rnav .rnav__count {
	color: var(--rnav-navy);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
}

.rnav .rnav__sub {
	color: var(--rnav-muted);
	font-size: 15px;
	line-height: 1.45;
}

/* Results: grid. The first card ("Best fit") spans the row; the rest depend on how many there are. */
.rnav .rnav__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rnav .rnav__cards--rest-1,
.rnav .rnav__cards--rest-2,
.rnav .rnav__cards--rest-4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rnav .rnav__cards--rest-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rnav .rnav__card-item {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rnav .rnav__card-item--best {
	grid-column: 1 / -1;
}

.rnav .rnav__card-item::before {
	content: none;
}

/* Lane colours: --lc line and dot, --ll image panel, --lt text (AA on white). */
.rnav .rnav-lane--understand { --lc: var(--rnav-u); --ll: var(--rnav-u-l); --lt: var(--rnav-u); }
.rnav .rnav-lane--find       { --lc: var(--rnav-f); --ll: var(--rnav-f-l); --lt: #24735b; }
.rnav .rnav-lane--do         { --lc: var(--rnav-d); --ll: var(--rnav-d-l); --lt: var(--rnav-d); }
.rnav .rnav-lane--engage     { --lc: var(--rnav-e); --ll: var(--rnav-e-l); --lt: var(--rnav-e); }
.rnav .rnav-lane--bts        { --lc: var(--rnav-b); --ll: var(--rnav-b-l); --lt: var(--rnav-b); }
.rnav .rnav-lane--ai         { --lc: var(--rnav-a); --ll: var(--rnav-a-l); --lt: var(--rnav-a); }

/* Cards */
.rnav .rnav-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--rnav-card-line);
	border-top: 4px solid var(--lc);
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(7, 59, 100, 0.07);
	color: var(--rnav-ink);
	transition: transform 0.15s, box-shadow 0.15s;
}

.rnav .rnav-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(7, 59, 100, 0.13);
}

.rnav .rnav-card__img {
	--pad: 18px;
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	padding: var(--pad);
	background: var(--ll);
}

/* Fills the panel inside its padding, whole image visible. */
.rnav .rnav-card__img img {
	position: absolute;
	top: var(--pad);
	left: var(--pad);
	display: block;
	width: calc(100% - 2 * var(--pad));
	height: calc(100% - 2 * var(--pad));
	max-width: none;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
	box-shadow: none;
}

/* No image: the lane's light panel with a type icon. */
.rnav .rnav-card__img--icon {
	color: var(--lt);
}

.rnav .rnav-card__img--icon svg {
	display: block;
	width: 52px;
	height: 52px;
}

.rnav .rnav-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 20px 22px 20px;
}

.rnav .rnav-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
}

.rnav .rnav-card__best {
	padding: 4px 9px;
	border-radius: 6px;
	background: var(--rnav-teal-dark);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.rnav .rnav-card__pill {
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--rnav-pillbg);
	color: var(--rnav-navy);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.rnav .rnav-card__lane {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--lt);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.rnav .rnav-card__lane::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--lc);
}

.rnav .rnav-card__title {
	color: var(--rnav-navy);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.rnav .rnav-card__title a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.rnav .rnav-card__title a:hover {
	color: inherit;
	text-decoration: underline;
}

.rnav .rnav-card__label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--rnav-teal-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.rnav .rnav-card__label svg {
	flex-shrink: 0;
}

.rnav .rnav-card__why {
	color: #33424f;
	font-size: 16px;
	line-height: 1.5;
}

.rnav .rnav-card__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 18px;
}

.rnav .rnav-card__from {
	flex: 1 1 160px;
	min-width: 0;
	color: var(--rnav-soft);
	font-size: 13.5px;
	line-height: 1.4;
}

.rnav .rnav-card__more {
	color: var(--rnav-teal-dark);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
}

.rnav .rnav-card__more:hover {
	color: var(--rnav-navy);
	text-decoration: underline;
}

/* Best fit: horizontal from 700px up (image panel ~46% on the left). */
.rnav .rnav-card--best {
	border-top-width: 5px;
}

.rnav .rnav-card--best .rnav-card__img {
	--pad: 24px;
}

.rnav .rnav-card--best .rnav-card__body {
	padding: 26px 30px 26px;
}

.rnav .rnav-card--best .rnav-card__title {
	font-size: 28px;
	line-height: 1.2;
}

.rnav .rnav-card--best .rnav-card__why {
	font-size: 18px;
}

.rnav .rnav-card__more--btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--rnav-navy);
	color: #fff;
}

.rnav .rnav-card__more--btn:hover {
	background: #0a4d82;
	color: #fff;
	text-decoration: none;
}

@media (min-width: 700px) {
	.rnav .rnav-card--best {
		display: grid;
		grid-template-columns: 46% minmax(0, 1fr);
	}

	.rnav .rnav-card--best .rnav-card__img {
		aspect-ratio: auto;
		min-height: 300px;
	}
}

/* Next steps */
.rnav__next {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 28px;
}

.rnav__nbox {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 22px 24px;
	border-radius: 16px;
}

.rnav__nbox svg {
	flex-shrink: 0;
}

.rnav__nbox--check {
	background: #e6f5f3;
	border: 1px solid #c9e6e3;
}

.rnav__nbox--ask {
	background: var(--rnav-navy);
	border: 1px solid var(--rnav-navy);
}

.rnav .rnav__nbox h3 {
	color: var(--rnav-navy);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.rnav .rnav__nbox p {
	color: #3d4e5e;
	font-size: 15px;
	line-height: 1.5;
}

.rnav .rnav__nbox--check .rnav__link {
	color: var(--rnav-teal-dark);
	font-size: 15px;
}

.rnav .rnav__nbox--ask h3 {
	color: #fff;
}

.rnav .rnav__nbox--ask p {
	color: #cfe0ee;
}

.rnav .rnav__nbox--ask :focus-visible {
	outline-color: #8fd9d6;
}

/* No match */
.rnav__nomatch {
	margin-top: 22px;
	padding: 26px 28px;
	border: 1px solid var(--rnav-card-line);
	border-radius: 14px;
	background: linear-gradient(135deg, #eef5fb, #f2fbfa);
}

.rnav .rnav__nomatch h3 {
	margin: 0 0 6px;
	color: var(--rnav-navy);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.rnav .rnav__nomatch p {
	color: #33424f;
	font-size: 16px;
	line-height: 1.5;
}

.rnav .rnav__browse {
	margin-top: 16px;
	color: var(--rnav-muted);
	font-size: 15px;
}

/* Contact form */
.rnav .rnav__form {
	margin-top: 16px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--rnav-line);
	border-radius: 12px;
}

.rnav__row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
}

.rnav__field--full {
	margin-top: 12px;
}

.rnav .rnav__field label {
	display: block;
	margin-bottom: 5px;
	color: var(--rnav-navy);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
}

.rnav .rnav__field label i {
	color: var(--rnav-muted);
	font-style: normal;
	font-weight: 400;
}

.rnav .rnav__field input,
.rnav .rnav__field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 11px 12px;
	background: #fff;
	border: 1.5px solid #c3ced8;
	border-radius: 8px;
	box-shadow: none;
	color: var(--rnav-ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
}

.rnav .rnav__field textarea {
	height: 78px;
	resize: vertical;
}

.rnav .rnav__field input:focus,
.rnav .rnav__field textarea:focus {
	border-color: var(--rnav-teal);
	outline: none;
	box-shadow: 0 0 0 3px rgba(7, 139, 150, 0.25);
}

.rnav .rnav__field [aria-invalid="true"] {
	border-color: #b42318;
}

.rnav__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: 14px;
}

.rnav .rnav__btn--teal {
	min-height: 46px;
	padding: 0 22px;
	background: var(--rnav-teal-dark);
	color: #fff;
}

.rnav .rnav__btn--teal:hover {
	background: #055a62;
	color: #fff;
}

.rnav__actions small {
	color: var(--rnav-muted);
	font-size: 12.5px;
	line-height: 1.4;
}

.rnav .rnav__error--form {
	margin-top: 12px;
}

/* Sent */
.rnav__sent {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 16px;
	padding: 14px 16px;
	background: #eaf6f2;
	border: 1px solid #bfe3d6;
	border-radius: 10px;
}

.rnav__sent svg {
	flex-shrink: 0;
}

.rnav .rnav__sent p {
	font-size: 15px;
	line-height: 1.5;
}

.rnav .rnav__sent .rnav__again {
	margin-left: 6px;
}

.rnav__asked:focus,
.rnav__sent p:focus {
	outline: none;
}

.rnav__asked:focus-visible,
.rnav__sent p:focus-visible {
	outline: 3px solid var(--rnav-teal);
	outline-offset: 2px;
}

/* Compact size: for topic pages */
.rnav--compact {
	padding: 24px 26px 26px;
}

.rnav--compact .rnav__heading {
	font-size: 22px;
}

.rnav--compact .rnav__intro {
	font-size: 15.5px;
}

.rnav--compact .rnav__ask {
	margin-top: 16px;
}

/* Phone width */
@media (max-width: 699px) {
	.rnav {
		padding: 24px 18px 26px;
	}

	.rnav__icon {
		flex-basis: 44px;
		height: 44px;
	}

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

	.rnav .rnav__heading {
		font-size: 22px;
	}

	.rnav__ask {
		flex-direction: column;
	}

	.rnav .rnav__cards,
	.rnav__next,
	.rnav__row {
		grid-template-columns: 1fr;
	}

	.rnav--compact .rnav-card__img {
		display: none;
	}

	.rnav__nomatch {
		padding: 20px 18px;
	}
}

/* Off topic (AI only) */
.rnav .rnav__offtopic {
	padding: 18px 20px;
	border: 1px solid var(--rnav-line);
	border-radius: 12px;
	background: #f4f6f8;
	color: #33424f;
	font-size: 16px;
	line-height: 1.5;
}

.rnav .rnav__offtopic-ask {
	color: var(--rnav-muted);
	font-size: 14.5px;
	line-height: 1.5;
}

.rnav .rnav__offtopic-ask .rnav__link {
	margin-left: 2px;
}

/*
 * Spacing. Theme content styles (Kadence gives paragraphs and headings
 * large margins) must not leak in, so every text element is reset and
 * then spaced as in the mockup. ".rnav.rnav" raises specificity above
 * the theme's ".entry-content p"-style selectors.
 */
.rnav.rnav :is(p, h1, h2, h3, h4, ul, ol, li, figure) {
	margin: 0;
}

/* Only lists lose their padding: paragraphs styled as boxes (badge, status, off-topic) keep theirs. */
.rnav.rnav :is(ul, ol, li) {
	padding: 0;
}

.rnav.rnav .rnav__badge      { margin: 0 0 16px; }
.rnav.rnav .rnav__eyebrow    { margin: 0; }
.rnav.rnav .rnav__heading    { margin: 4px 0 6px; }
.rnav.rnav .rnav__intro      { margin: 0; }
.rnav.rnav .rnav__ask        { margin: 24px 0 0; }
.rnav.rnav .rnav__error      { margin: 6px 0 0; }
.rnav.rnav .rnav__privacy    { margin: 14px 0 0; }
.rnav.rnav .rnav__status     { margin: 16px 0 0; }
.rnav.rnav .rnav__asked      { margin: 0; }
.rnav.rnav .rnav__cards      { margin: 0; padding: 0; list-style: none; }
.rnav.rnav .rnav__card-item  { margin: 0; padding: 0; list-style: none; }
.rnav.rnav .rnav__thinking   { margin: 24px 0 0; }
.rnav.rnav .rnav__think-h    { margin: 0 0 14px; }
.rnav.rnav .rnav__steps      { margin: 0; padding: 0; list-style: none; }
.rnav.rnav .rnav__rhead      { margin: 22px 0 22px; }
.rnav.rnav .rnav__count      { margin: 0; }
.rnav.rnav .rnav__sub        { margin: 4px 0 0; }
.rnav.rnav .rnav-card__meta  { margin: 0 0 10px; }
.rnav.rnav .rnav-card__title { margin: 0; }
.rnav.rnav .rnav-card__label { margin: 14px 0 6px; }
.rnav.rnav .rnav-card__title + .rnav-card__why { margin-top: 8px; }
.rnav.rnav .rnav-card__from  { margin: 0; }
.rnav.rnav .rnav-card__why   { margin: 0; }
.rnav.rnav .rnav__nbox h3    { margin: 0 0 4px; }
.rnav.rnav .rnav__nbox p     { margin: 0 0 12px; }
.rnav.rnav .rnav__nomatch h3 { margin: 0 0 6px; }
.rnav.rnav .rnav__nomatch p  { margin: 0; }
.rnav.rnav .rnav__browse     { margin: 16px 0 0; }
.rnav.rnav .rnav__offtopic   { margin: 22px 0 0; }
.rnav.rnav .rnav__offtopic-ask { margin: 16px 0 0; }
.rnav.rnav .rnav__sent p     { margin: 0; }
.rnav.rnav .rnav__error--form { margin: 12px 0 0; }

.rnav.rnav .rnav__card-item::before,
.rnav.rnav .rnav__card-item::marker {
	content: none;
}

/* Phone: icon above the eyebrow, taller question box (3 lines). */
@media (max-width: 699px) {
	.rnav .rnav__head {
		flex-direction: column;
		gap: 12px;
	}

	.rnav .rnav__icon {
		flex: 0 0 auto;
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.rnav.rnav .rnav__q {
		height: 84px;
		min-height: 84px;
	}
}

/* Thinking panel (shown while a search runs) */
.rnav__think-card {
	display: flex;
	gap: 24px;
	align-items: center;
	padding: 24px 28px;
	background: #fff;
	border: 1px solid var(--rnav-card-line);
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(7, 59, 100, 0.06);
}

.rnav__ring {
	position: relative;
	flex: 0 0 74px;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--rnav-teal), var(--rnav-u), var(--rnav-f), #8fd9d6, var(--rnav-teal));
	animation: rnav-spin 1.4s linear infinite;
}

.rnav__ring::after {
	content: "";
	position: absolute;
	inset: 9px;
	border-radius: 50%;
	background: #fff;
}

.rnav__think-body {
	flex: 1;
	min-width: 0;
}

.rnav .rnav__think-h {
	color: var(--rnav-navy);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.rnav .rnav__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
}

.rnav .rnav__step {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--rnav-soft);
	font-size: 15px;
	line-height: 1.3;
}

.rnav .rnav__step::before,
.rnav .rnav__step::marker {
	content: none;
}

.rnav__step-dot {
	display: grid;
	flex: 0 0 20px;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 2px solid #c8d6e3;
	border-radius: 50%;
}

.rnav__step-dot svg {
	display: none;
}

.rnav .rnav__step.is-current {
	color: var(--rnav-navy);
	font-weight: 600;
}

.rnav__step.is-current .rnav__step-dot {
	border-color: var(--rnav-teal);
	border-top-color: transparent;
	animation: rnav-spin 0.8s linear infinite;
}

.rnav__step.is-done .rnav__step-dot {
	background: var(--rnav-f);
	border-color: var(--rnav-f);
}

.rnav__step.is-done .rnav__step-dot svg {
	display: block;
}

.rnav__shimmers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.rnav__shimmer {
	display: block;
	height: 210px;
	border-radius: 16px;
	background: linear-gradient(90deg, #e6edf3 0%, #f3f6f9 50%, #e6edf3 100%);
	background-size: 200% 100%;
	animation: rnav-shimmer 1.4s ease-in-out infinite;
}

@keyframes rnav-spin {
	to { transform: rotate(360deg); }
}

@keyframes rnav-shimmer {
	from { background-position: 100% 0; }
	to { background-position: -100% 0; }
}

/* Smaller teal button (Ask Digital Fusion) */
.rnav .rnav__btn--small {
	min-height: 44px;
	padding: 0 20px;
	font-size: 15px;
}

/* Compact size keeps the small horizontal cards: no "Best fit" layout. */
.rnav.rnav--compact .rnav__cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.rnav.rnav--compact .rnav__card-item--best {
	grid-column: auto;
}

.rnav.rnav--compact .rnav-card,
.rnav.rnav--compact .rnav-card.rnav-card--best {
	display: flex;
	flex-direction: row;
	border-top-width: 4px;
	border-radius: 12px;
	box-shadow: none;
}

.rnav.rnav--compact .rnav-card:hover {
	transform: none;
	box-shadow: 0 6px 18px rgba(7, 59, 100, 0.12);
}

.rnav.rnav--compact .rnav-card .rnav-card__img {
	flex: 0 0 120px;
	aspect-ratio: auto;
	min-height: 0;
	--pad: 14px;
}

.rnav.rnav--compact .rnav-card .rnav-card__img--icon svg {
	width: 40px;
	height: 40px;
}

.rnav.rnav--compact .rnav-card .rnav-card__body {
	padding: 16px 18px;
}

.rnav.rnav--compact .rnav-card__best {
	display: none;
}

.rnav.rnav--compact .rnav-card .rnav-card__title {
	font-size: 18px;
}

.rnav.rnav--compact .rnav-card .rnav-card__why {
	font-size: 15px;
}

.rnav.rnav--compact .rnav-card .rnav-card__foot {
	padding-top: 12px;
}

.rnav.rnav--compact .rnav-card .rnav-card__more--btn {
	min-height: 0;
	padding: 0;
	background: none;
	color: var(--rnav-teal-dark);
}

.rnav.rnav--compact .rnav-card .rnav-card__more--btn:hover {
	color: var(--rnav-navy);
	text-decoration: underline;
}

.rnav.rnav--compact .rnav__count {
	font-size: 20px;
}

/*
 * Hero size: the page header. A navy band (heading and question box) and
 * a light stage under it for everything after a search.
 */
.rnav.rnav--hero {
	--rnav-gutter: var(--global-content-edge-padding, 24px);
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.rnav__band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	overflow: clip; /* clips like hidden, but focus inside can never scroll the band (no empty strip after results) */
	padding: 64px var(--rnav-gutter) 72px;
	background: var(--rnav-navy);
	color: #fff;
}

/* Two soft glows, decoration only. */
.rnav__band::before,
.rnav__band::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}

.rnav__band::before {
	top: -200px;
	right: -160px;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(7, 139, 150, 0.3) 0%, rgba(7, 139, 150, 0) 70%);
}

.rnav__band::after {
	bottom: -240px;
	left: -180px;
	width: 640px;
	height: 640px;
	background: radial-gradient(circle, rgba(63, 111, 181, 0.28) 0%, rgba(63, 111, 181, 0) 70%);
}

.rnav__band-inner,
.rnav__stage-inner {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
}

.rnav__stage {
	padding: 44px var(--rnav-gutter) 56px;
	background: var(--rnav-stage);
}

.rnav__stage-inner {
	max-width: 1180px;
}

.rnav__band :focus-visible {
	outline-color: #8fd9d6;
}

.rnav.rnav--hero .rnav__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #8fd9d6;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rnav__eyebrow-icon {
	display: grid;
	flex: 0 0 34px;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--rnav-teal);
}

.rnav__eyebrow-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.rnav.rnav--hero .rnav__heading {
	margin: 18px 0 16px;
	color: #fff;
	font-size: 54px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.rnav.rnav--hero .rnav__intro {
	max-width: 760px;
	color: #d6e6f3;
	font-size: 20px;
	line-height: 1.5;
}

/* The question box: one white bar with the field and the button inside. */
.rnav.rnav--hero .rnav__ask {
	align-items: stretch;
	gap: 8px;
	margin: 32px 0 0;
	padding: 8px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.rnav.rnav--hero .rnav__ask:focus-within {
	box-shadow: 0 0 0 3px #8fd9d6, 0 18px 50px rgba(0, 0, 0, 0.25);
}

.rnav.rnav--hero .rnav__ask:has(.rnav__q[aria-invalid="true"]) {
	box-shadow: 0 0 0 3px #ff9d92, 0 18px 50px rgba(0, 0, 0, 0.25);
}

.rnav.rnav--hero .rnav__q,
.rnav.rnav--hero .rnav__q:focus,
.rnav.rnav--hero .rnav__q[readonly] {
	min-height: 60px;
	padding: 17px 14px;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-size: 18px;
}

.rnav.rnav--hero .rnav__ask .rnav__btn {
	min-height: 60px;
	padding: 0 28px;
	background: var(--rnav-teal-dark);
	border-radius: 999px;
	font-size: 17px;
}

/* Side by side (700px and wider): keep the button a 60px pill, centred beside
   the question box, instead of stretching to the box's full height. */
@media (min-width: 700px) {
	.rnav.rnav--hero .rnav__ask .rnav__btn {
		align-self: center;
		height: 60px;
	}
}

.rnav.rnav--hero .rnav__ask .rnav__btn:hover {
	background: #055a62;
}

.rnav.rnav--hero .rnav__ask .rnav__btn:focus-visible {
	outline-color: var(--rnav-navy);
}

.rnav.rnav--hero .rnav__error--q {
	margin: 10px 0 0;
	color: #ffcbc4;
}

.rnav.rnav--hero .rnav__chips {
	margin-top: 20px;
}

.rnav.rnav--hero .rnav__band .rnav__chips-label {
	color: #b9cfe2;
	font-size: 14.5px;
}

.rnav.rnav--hero .rnav__band .rnav__chip {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	color: #fff;
}

.rnav.rnav--hero .rnav__band .rnav__chip:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.rnav.rnav--hero .rnav__privacy {
	margin: 22px 0 0;
	color: #b9cfe2;
	font-size: 13px;
	text-align: center;
}

.rnav.rnav--hero .rnav__privacy a {
	color: #b9cfe2;
	text-decoration: underline;
}

.rnav.rnav--hero .rnav__privacy a:hover {
	color: #fff;
}

/* In the stage, the first thing shown sits at the top. */
.rnav.rnav--hero .rnav__top {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.rnav.rnav--hero .rnav__thinking,
.rnav.rnav--hero .rnav__status,
.rnav.rnav--hero .rnav__sent {
	margin-top: 0;
}

/* Tablet */
@media (max-width: 1023px) {
	.rnav.rnav--hero .rnav__heading {
		font-size: 44px;
	}

	.rnav .rnav__cards--rest-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phone */
@media (max-width: 699px) {
	.rnav.rnav .rnav__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.rnav .rnav__count {
		font-size: 24px;
	}

	.rnav .rnav-card--best .rnav-card__body {
		padding: 20px 20px 22px;
	}

	.rnav .rnav-card--best .rnav-card__title {
		font-size: 22px;
	}

	.rnav .rnav-card--best .rnav-card__why {
		font-size: 16px;
	}

	.rnav__think-card {
		gap: 16px;
		padding: 20px;
	}

	.rnav__ring {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}

	.rnav__ring::after {
		inset: 7px;
	}

	.rnav .rnav__think-h {
		font-size: 19px;
	}

	.rnav__shimmers {
		grid-template-columns: minmax(0, 1fr);
	}

	.rnav__shimmer:nth-child(n + 2) {
		display: none;
	}

	.rnav__band {
		padding: 44px var(--rnav-gutter) 52px;
	}

	.rnav.rnav--hero .rnav__heading {
		font-size: 34px;
	}

	.rnav.rnav--hero .rnav__intro {
		font-size: 17px;
	}

	.rnav.rnav--hero .rnav__ask .rnav__btn {
		width: 100%;
	}

	.rnav.rnav--hero .rnav__q,
	.rnav.rnav--hero .rnav__q:focus,
	.rnav.rnav--hero .rnav__q[readonly] {
		height: 112px; /* three lines, so the example text fits without a scrollbar */
		min-height: 112px;
	}

	.rnav.rnav--hero .rnav__privacy {
		font-size: 12.5px;
	}

	.rnav__stage {
		padding: 28px var(--rnav-gutter) 36px;
	}
}

/* Reduced motion: no spinning or shimmer; the steps still tick. */
@media (prefers-reduced-motion: reduce) {
	.rnav *,
	.rnav *::before,
	.rnav *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}

	.rnav__step.is-current .rnav__step-dot {
		border-color: var(--rnav-teal);
	}

	.rnav .rnav-card:hover {
		transform: none;
	}
}
