/* GraceHub registration form, gate pass and standalone notices.
   Everything is scoped under .ghr so it sits safely inside any theme.
   A theme can set --ghr-font and --ghr-page (page background) to blend it in. */

.ghr {
	--ghr-ink: #17181c;
	--ghr-muted: #565e6b;
	--ghr-line: #d6d9df;
	--ghr-field: #8a919c;
	--ghr-go: #0b7a3b;
	--ghr-stop: #b3141d;
	max-width: 560px;
	font-family: var(--ghr-font, "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	font-size: 17px;
	line-height: 1.5;
	color: var(--ghr-ink);
	text-align: left;
}

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

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

/* The flier sits beside the form when there is room, and above it on a phone */
.ghr.ghr-register {
	container-type: inline-size;
}

.ghr.ghr-register.has-flyer {
	max-width: 1080px;
}

.ghr .ghr-register-main,
.ghr .ghr-flyer {
	max-width: 560px;
}

.ghr .ghr-flyer {
	margin: 0 0 28px;
}

.ghr .ghr-flyer a {
	display: block;
}

.ghr .ghr-flyer img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 14px 34px rgba(16, 24, 40, 0.14);
}

@container (min-width: 820px) {
	.ghr .ghr-register-grid {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 52px;
		align-items: start;
	}

	.ghr .ghr-flyer {
		position: sticky;
		top: 24px;
		max-width: none;
		margin: 0;
	}
}

/* Meeting details above the form */
.ghr .ghr-event {
	margin: 0 0 24px;
	padding: 0 0 20px;
	border-bottom: 1px solid var(--ghr-line);
}

.ghr .ghr-event-title {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: clamp(26px, 6.4vw, 34px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--ghr-ink);
}

.ghr .ghr-event-theme {
	margin: 0 0 12px;
	font-size: clamp(20px, 5vw, 24px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--ghr-accent, #c00000);
}

.ghr .ghr-event-theme span {
	display: block;
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ghr-muted);
}

.ghr .ghr-help-line {
	margin: 14px 0 0;
	font-size: 15px;
	color: var(--ghr-muted);
}

.ghr .ghr-help-line a {
	font-weight: 650;
	color: var(--ghr-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ghr .ghr-event-when {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 650;
}

.ghr .ghr-event-time {
	color: var(--ghr-accent, #c00000);
}

.ghr .ghr-event-where {
	margin: 0;
	color: var(--ghr-muted);
}

.ghr .ghr-event-where a {
	font-weight: 650;
	color: var(--ghr-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* Form */
.ghr .ghr-field {
	margin: 0 0 18px;
}

.ghr .ghr-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 650;
	color: var(--ghr-ink);
}

.ghr .ghr-optional {
	margin-left: 4px;
	font-size: 15px;
	font-weight: 400;
	color: var(--ghr-muted);
}

.ghr .ghr-field input,
.ghr .ghr-field textarea {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px;
	font: inherit;
	color: var(--ghr-ink);
	background: #fff;
	border: 2px solid var(--ghr-field);
	border-radius: 12px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.ghr .ghr-field textarea {
	min-height: 96px;
	resize: vertical;
}

.ghr .ghr-field.has-error input {
	border-color: var(--ghr-stop);
}

.ghr .ghr-hint {
	margin: 6px 0 0;
	font-size: 15px;
	color: var(--ghr-muted);
}

.ghr .ghr-field-error,
.ghr .ghr-form-error {
	margin: 6px 0 0;
	font-size: 15px;
	font-weight: 650;
	color: var(--ghr-stop);
}

.ghr .ghr-form-error {
	margin: 0 0 14px;
}

.ghr .ghr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ghr .ghr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 12px 24px;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ghr-on-accent, #fff);
	background: var(--ghr-accent, #c00000);
	border: 2px solid var(--ghr-accent, #c00000);
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
}

.ghr .ghr-btn:hover {
	color: var(--ghr-on-accent, #fff);
	filter: brightness(0.92);
}

.ghr .ghr-form .ghr-btn {
	width: 100%;
}

.ghr .ghr-btn[disabled] {
	opacity: 0.65;
	cursor: progress;
}

.ghr .ghr-btn-quiet {
	min-height: 46px;
	padding: 8px 16px;
	font-size: 16px;
	color: var(--ghr-ink);
	background: #fff;
	border-color: var(--ghr-field);
}

.ghr .ghr-btn-quiet:hover {
	color: var(--ghr-ink);
	border-color: var(--ghr-ink);
	filter: none;
}

.ghr .ghr-link {
	padding: 8px 0;
	font: inherit;
	font-weight: 650;
	color: var(--ghr-ink);
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ghr a:focus-visible,
.ghr button:focus-visible,
.ghr input:focus-visible,
.ghr textarea:focus-visible {
	outline: 3px solid #1a56db;
	outline-offset: 2px;
}

.ghr .ghr-privacy {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--ghr-muted);
}

.ghr .ghr-closed p {
	margin: 0 0 10px;
}

/* Gate pass: meeting on top, tear-off stub with the QR and access code below. */
.ghr .ghr-pass-status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 750;
}

.ghr .ghr-pass-status::before {
	content: "";
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ghr-go);
}

.ghr .ghr-pass {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 2px solid var(--ghr-ink);
	border-radius: 18px;
}

.ghr .ghr-pass-top {
	padding: 20px 20px 22px;
	color: #fff;
	background: var(--ghr-ink);
}

.ghr .ghr-pass-title {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
	color: #fff;
}

.ghr .ghr-pass-when {
	margin: 0 0 4px;
	font-weight: 650;
	color: #fff;
}

.ghr .ghr-pass-where {
	margin: 0;
	font-size: 15px;
	color: #d5d8de;
}

.ghr .ghr-pass-stub {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	border-top: 2px dashed var(--ghr-field);
}

.ghr .ghr-pass-stub::before,
.ghr .ghr-pass-stub::after {
	content: "";
	position: absolute;
	top: -13px;
	width: 24px;
	height: 24px;
	background: var(--ghr-page, #fff);
	border: 2px solid var(--ghr-ink);
	border-radius: 50%;
}

.ghr .ghr-pass-stub::before {
	left: -14px;
}

.ghr .ghr-pass-stub::after {
	right: -14px;
}

.ghr .ghr-pass-qr {
	flex-shrink: 0;
	line-height: 0;
}

.ghr .ghr-pass-qr svg {
	display: block;
	width: 136px;
	height: 136px;
}

.ghr .ghr-pass-id {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ghr .ghr-pass-label {
	font-size: 14px;
	color: var(--ghr-muted);
}

.ghr .ghr-pass-code {
	font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
	font-size: clamp(21px, 5.6vw, 26px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--ghr-accent, #c00000);
	overflow-wrap: anywhere;
}

.ghr .ghr-pass-name {
	font-weight: 650;
	overflow-wrap: anywhere;
}

.ghr .ghr-pass-note {
	margin: 14px 0 0;
	color: var(--ghr-muted);
}

.ghr .ghr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 0;
}

.ghr .ghr-another {
	margin: 14px 0 0;
}

@media (max-width: 420px) {
	.ghr .ghr-pass-stub {
		flex-direction: column;
		align-items: flex-start;
	}

	.ghr .ghr-actions .ghr-btn {
		flex: 1 1 100%;
	}
}

/* Compact "next meeting" block */
.ghr.ghr-next .ghr-event {
	margin-bottom: 16px;
	padding-bottom: 0;
	border-bottom: 0;
}

/* Standalone pages: gate pass link, notices, holding page */
body.ghr-standalone {
	margin: 0;
	background: #fff;
}

.ghr-standalone-head {
	padding: 16px 20px;
	border-bottom: 1px solid #d6d9df;
}

.ghr-standalone-head a {
	display: inline-block;
	text-decoration: none;
}

.ghr-standalone-head img {
	display: block;
	max-height: 44px;
	width: auto;
}

.ghr-standalone-head .ghr-wordmark {
	font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 19px;
	font-weight: 800;
	color: #17181c;
}

.ghr.ghr-standalone-main {
	margin: 0 auto;
	padding: 28px 20px 56px;
}

.ghr .ghr-notice h1 {
	margin: 0 0 12px;
	font-size: clamp(26px, 6.4vw, 34px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.ghr .ghr-notice p {
	margin: 0 0 14px;
}

.ghr .ghr-holding-next {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--ghr-line);
	color: var(--ghr-muted);
}

.ghr .ghr-holding-next strong {
	font-size: 20px;
	color: var(--ghr-ink);
}

@media (prefers-reduced-motion: reduce) {
	.ghr * {
		transition: none !important;
		animation: none !important;
	}
}

/* Invite friends on WhatsApp (Evening Church): under the pass, the first thing to do next. */
.ghr-invite { margin: 22px 0 6px; text-align: center; }
.ghr-invite-lead { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.ghr-invite-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 15px 20px; border-radius: 999px; background: #1f8f4e; color: #fff !important; font-weight: 700; font-size: 17px; text-decoration: none !important; box-shadow: 0 8px 20px rgba(31, 143, 78, .28); transition: transform .15s ease, box-shadow .15s ease; }
.ghr-invite-btn:hover, .ghr-invite-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(31, 143, 78, .34); }
.ghr-invite-btn svg { flex: 0 0 auto; }
