/* Access Code Gate — front-end + light admin styling.
   Editorial "Off-Catalogue" look: warm ivory serif type on near-black.
   Screens render inside the theme's normal header/footer, so selectors
   are scoped to .acg-wrap and the theme's global PreTesto rules are
   overridden explicitly where the serif is wanted. */

.acg-wrap {
	--acg-ivory: #f7f5f2;
	--acg-ivory-soft: #e4e1dc;
	--acg-muted: #a8a49e;
	--acg-line: rgba(247, 245, 242, 0.8);
	--acg-serif: 'Cormorant Garamond', 'Libre Caslon Display', Georgia, serif;

	/* Astra's .ast-container is a flex row; without this the gate
	   shrinks to its content width and sits to the left. */
	flex: 1 1 100%;
	width: 100%;
	box-sizing: border-box;
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 72px 20px;
	/*background: radial-gradient(ellipse at 50% 40%, #1a1817 0%, #0d0c0b 60%, #010101 100%);*/
	color: var(--acg-ivory);
	font-family: var(--acg-serif);
}

.acg-card {
	width: 100%;
	max-width: 560px;
	text-align: center;
}

.acg-wrap .acg-eyebrow {
	font-family: var(--acg-serif);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--acg-ivory);
	margin: 0 0 36px;
}

.acg-wrap .acg-title {
	font-family: var(--acg-serif);
	font-weight: 600;
	color: var(--acg-ivory);
	font-size: 34px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
}

.acg-wrap .acg-title--display {
	font-weight: 400;
	font-size: clamp(46px, 11vw, 76px);
	line-height: 1;
	letter-spacing: -0.01em;
	margin: 0;
}

.acg-kicker {
	display: block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.42em;
	/* Optical centring: trailing letter-spacing would shift it left. */
	padding-left: 0.42em;
	text-transform: uppercase;
	color: var(--acg-ivory);
}

.acg-rule {
	display: block;
	width: 88px;
	height: 1px;
	margin: 34px auto 26px;
	background: var(--acg-line);
}

.acg-tagline {
	font-family: var(--acg-serif);
	font-size: clamp(21px, 4.4vw, 28px);
	line-height: 1.3;
	color: var(--acg-ivory);
	margin: 0 0 72px;
}

.acg-subtitle {
	font-family: var(--acg-serif);
	color: var(--acg-ivory-soft);
	font-size: 19px;
	line-height: 1.5;
	margin: 0 0 32px;
}

.acg-subtitle strong {
	color: var(--acg-ivory);
}

.acg-error {
	font-family: var(--acg-serif);
	color: #e8a598;
	font-size: 17px;
	font-style: italic;
	margin: -24px 0 28px;
}

.acg-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 466px;
	margin: 0 auto;
}

.acg-label {
	font-family: var(--acg-serif);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--acg-ivory-soft);
	margin-bottom: 4px;
}

.acg-wrap .acg-input {
	width: 100%;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--acg-line);
	border-radius: 2px;
	color: var(--acg-ivory);
	font-family: var(--acg-serif);
	font-size: 19px;
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
	padding: 15px 18px;
	transition: border-color 0.2s;
}

.acg-wrap .acg-input::placeholder {
	color: rgba(247, 245, 242, 0.85);
	opacity: 1;
}

.acg-wrap .acg-input:focus {
	outline: none;
	border-color: var(--acg-ivory);
	box-shadow: none;
}

.acg-wrap .acg-submit {
	width: 100%;
	background: var(--acg-ivory);
	color: #141210;
	border: none;
	border-radius: 2px;
	font-family: var(--acg-serif);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 15px 18px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.acg-wrap .acg-submit:hover,
.acg-wrap .acg-submit:focus {
	background: var(--acg-ivory);
	color: #141210;
	opacity: 0.88;
}

.acg-wrap .acg-submit--arrow {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 64px;
	padding-right: 64px;
}

.acg-submit-arrow {
	position: absolute;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.2s;
}

.acg-wrap .acg-submit--arrow:hover .acg-submit-arrow {
	transform: translate(3px, -50%);
}

.acg-wrap .acg-submit:disabled {
	opacity: 0.5;
	cursor: default;
}

.acg-sessions {
	border: 1px solid var(--acg-line);
	border-radius: 4px;
	padding: 8px;
	margin: 0 0 8px;
	text-align: left;
}

.acg-session-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 8px;
	color: var(--acg-ivory);
	font-family: var(--acg-serif);
	font-size: 17px;
	border-bottom: 1px solid rgba(243, 232, 216, 0.15);
	cursor: pointer;
}

.acg-session-row input {
	accent-color: var(--acg-ivory);
	margin-top: 5px;
}

.acg-session-row:last-child {
	border-bottom: none;
}

.acg-footnote {
	font-family: var(--acg-serif);
	margin: 28px 0 0;
	font-size: 15px;
	color: var(--acg-ivory-soft);
}

.acg-footnote a {
	color: var(--acg-ivory-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.acg-footnote a:hover {
	color: var(--acg-ivory);
}

@media (max-width: 480px) {
	.acg-wrap { padding: 56px 16px; }
	.acg-wrap .acg-eyebrow { letter-spacing: 0.26em; font-size: 11px; margin-bottom: 28px; }
	.acg-kicker { font-size: 12px; letter-spacing: 0.36em; padding-left: 0.36em; margin-top: 10px; }
	.acg-label { letter-spacing: 0.2em; font-size: 12px; }
	.acg-wrap .acg-input { font-size: 17px; }
	.acg-wrap .acg-submit { letter-spacing: 0.12em; font-size: 14px; }
	.acg-wrap .acg-submit--arrow { padding-left: 48px; padding-right: 48px; }
	.acg-submit-arrow { right: 18px; }
	.acg-tagline { margin-bottom: 56px; }
}
