/**
 * HomeRunner Toolkit — AI-Ready guest entry point.
 *
 * Theme-neutral: inherits the site's fonts and colors, draws its own
 * structure only. Overridable through the custom properties on the section.
 */
.hrtk-aic-guest {
	/* Fixed accent pair so hover/focus never becomes white-on-white on a dark
	   theme (currentColor + #fff did). Both are overridable by the theme. */
	--hrtk-aic-accent: #1d4ed8;
	--hrtk-aic-on-accent: #fff;
	--hrtk-aic-border: rgba(0, 0, 0, 0.12);
	--hrtk-aic-surface: rgba(0, 0, 0, 0.03);
	--hrtk-aic-radius: 12px;
	box-sizing: border-box;
	margin: 2.5rem 0;
	padding: 1.75rem 1.5rem;
	border: 1px solid var(--hrtk-aic-border);
	border-radius: var(--hrtk-aic-radius);
	background: var(--hrtk-aic-surface);
}

.hrtk-aic-guest *,
.hrtk-aic-guest *::before,
.hrtk-aic-guest *::after {
	box-sizing: inherit;
}

.hrtk-aic-guest__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.7;
}

.hrtk-aic-guest__heading {
	margin: 0 0 1rem;
}

.hrtk-aic-guest__copy {
	margin: 0 0 1.25rem;
	padding-left: 1.2em;
}

.hrtk-aic-guest__copy li {
	margin: 0 0 0.35rem;
}

.hrtk-aic-guest__cannot {
	opacity: 0.85;
}

.hrtk-aic-guest__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.hrtk-aic-guest__links li {
	margin: 0;
}

.hrtk-aic-guest__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--hrtk-aic-accent);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.hrtk-aic-guest__btn:hover,
.hrtk-aic-guest__btn:focus-visible {
	background: var(--hrtk-aic-accent);
	color: var(--hrtk-aic-on-accent);
	outline: none;
}

.hrtk-aic-guest__btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
}

.hrtk-aic-guest__btn--small {
	min-height: 36px;
	padding: 0.4rem 0.9rem;
	font-size: 0.9em;
	margin: 0.5rem 0;
}

.hrtk-aic-guest__prompt-wrap {
	margin: 0 0 1rem;
}

.hrtk-aic-guest__prompt-wrap summary {
	cursor: pointer;
	font-weight: 600;
}

.hrtk-aic-guest__prompt {
	margin: 0.5rem 0 0;
	padding: 1rem;
	border: 1px solid var(--hrtk-aic-border);
	border-radius: calc(var(--hrtk-aic-radius) / 2);
	background: #fff;
	color: #222;
	font-size: 0.85em;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
	user-select: all;
	-webkit-user-select: all;
}

.hrtk-aic-guest__prompt:focus-visible {
	outline: 2px solid var(--hrtk-aic-accent);
	outline-offset: 2px;
}

.hrtk-aic-guest__trust {
	margin: 0;
	font-weight: 600;
	font-style: italic;
}

.hrtk-aic-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;
}

/* Relocated section (moved into the theme layout by aic-guest-entry.js):
   a content-width wrapper so it lines up with the builder's own sections. */
.hrtk-aic-guest-wrap {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.hrtk-aic-guest-wrap > .hrtk-aic-guest {
	margin: 0;
}

/* Content-path section that is a direct child of the main landmark: the
   same box as the relocated wrapper produces (its 1200px minus 20px side
   padding = 1160px, auto margins, 20px gutters), so both placements match. */
main > .hrtk-aic-guest,
#tm-main > .hrtk-aic-guest,
[role="main"] > .hrtk-aic-guest {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1160px;
	margin: 40px auto;
}

.hrtk-aic-guest-footer {
	padding: 0.75rem 1rem;
	text-align: center;
	font-size: 0.9em;
}

/* Not relocated (no JS, or no footer found): a plain white strip. */
.hrtk-aic-guest-footer:not([data-hrtk-aic-relocated]) {
	background: #fff;
	color: #222;
}

/* Relocated into the theme footer: inherit its colours. */
.hrtk-aic-guest-footer[data-hrtk-aic-relocated] {
	background: transparent;
	color: inherit;
	font-size: 0.85em;
	padding: 0.75rem 1rem 0;
}

.hrtk-aic-guest-footer__link {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hrtk-aic-guest-footer[data-hrtk-aic-relocated] .hrtk-aic-guest-footer__link {
	color: currentColor;
}

.hrtk-aic-guest-main {
	max-width: 52rem;
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
}

@media (max-width: 600px) {
	.hrtk-aic-guest {
		padding: 1.25rem 1rem;
	}

	.hrtk-aic-guest__links li,
	.hrtk-aic-guest__links .hrtk-aic-guest__btn {
		width: 100%;
		justify-content: center;
	}
}
