/* LoudMemories — adding a concert. Page-only rules; the design system and the
   form controls (.lg-field, .lg-submit, .li-hint, .li-flash) live in
   core/css/lm-base.css, so a field here looks like a field on the login and
   password pages. */

:root {
	--h1: 2.375rem;
	--form-cols: 1fr;
	--form-gap: 1.75rem;
	--next-cols: 1fr;
}
@media (min-width: 480px) {
	:root { --h1: 3rem; }
}
@media (min-width: 768px) {
	:root { --h1: 4rem; --form-gap: 2.25rem; --next-cols: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	:root { --h1: 5rem; --form-cols: minmax(0, 1.15fr) minmax(0, 1fr); --form-gap: 3rem; }
}
@media (min-width: 1280px) {
	:root { --h1: 5.75rem; }
}

/* ------------------------------------------------------------ the hero */

.ac-title {
	margin: 0;
	font-family: var(--lm-sans);
	font-size: var(--h1);
	font-weight: 700;
	line-height: .92;
	letter-spacing: -.01em;
	text-transform: uppercase;
}
.ac-lead {
	margin: 16px 0 0;
	max-width: 36rem;
	font-size: clamp(0.9375rem, 3.2vw, 1.0625rem);
	line-height: 1.6;
	color: var(--lm-muted);
	text-wrap: pretty;
}

/* ------------------------------------------------------- logged out */

.ac-gate {
	padding: clamp(1.5rem, 5vw, 2.5rem);
	border: 1px solid var(--lm-line-strong);
	border-radius: 3px;
	background: var(--lm-panel);
	max-width: 38rem;
}
.ac-gate p { margin: 0 0 20px; font-size: 0.9375rem; line-height: 1.65; color: var(--lm-muted); text-wrap: pretty; }
.ac-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-gate-foot { margin: 20px 0 0 !important; font-family: var(--lm-mono); font-size: 0.75rem; }
.ac-gate-foot a { border-bottom: 1px solid rgba(var(--lm-gold-rgb), .5); }

/* -------------------------------------------------------- 01 the night */

.ac-cols {
	display: grid;
	grid-template-columns: var(--form-cols);
	gap: var(--form-gap);
	align-items: start;
}
.ac-forms { min-width: 0; }

.ac-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: clamp(1.25rem, 4vw, 1.75rem);
	border: 1px solid var(--lm-line-strong);
	border-radius: 3px;
	background: var(--lm-panel);
}
.ac-form-title {
	margin: 0;
	font-family: var(--lm-sans);
	font-size: clamp(1.25rem, 5vw, 1.625rem);
	font-weight: 700;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--lm-ink);
}
.ac-form-lead { margin: -6px 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--lm-muted); text-wrap: pretty; }

/* The fields come from lm-base.css; these are the types that page does not
   already carry, plus the failed state. */
.ac-form .lg-field input[type="search"],
.ac-form .lg-field input[type="date"],
.ac-form .lg-field input[type="url"],
.ac-form .lg-field select {
	width: 100%;
	height: 3rem;
	padding: 0 14px;
	border: 1px solid var(--lm-line-strong);
	border-radius: 3px;
	background: var(--lm-panel-2);
	color: var(--lm-ink);
	font-family: var(--lm-mono);
	font-size: 0.875rem;
	-webkit-appearance: none;
	appearance: none;
}
.ac-form .lg-field input:focus,
.ac-form .lg-field select:focus { outline: none; border-color: var(--lm-green-lt); }
.ac-form .lg-field select {
	/* The arrow the appearance reset takes away, drawn back in the ink colour
	   rather than the browser's. */
	background-image: linear-gradient(45deg, transparent 50%, var(--lm-muted) 50%), linear-gradient(135deg, var(--lm-muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) 1.375rem, calc(100% - 13px) 1.375rem;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 34px;
}
.ac-form .lg-field input[type="date"] { font-variant-numeric: tabular-nums; }
.ac-form .lg-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .55; cursor: pointer; }
.ac-form .lg-field.is-bad input,
.ac-form .lg-field.is-bad select { border-color: var(--lm-red); }

.ac-field-error {
	margin: 7px 0 0;
	font-family: var(--lm-mono);
	font-size: 0.6875rem;
	line-height: 1.5;
	color: var(--lm-red);
}

/* venue or festival */

.ac-where { margin: 0; padding: 0; border: none; min-width: 0; }
.ac-where legend {
	padding: 0;
	margin: 0 0 9px;
	font-family: var(--lm-mono);
	font-size: 0.625rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lm-muted);
}
.ac-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-switch-opt {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 2.75rem;
	padding: 0 16px 0 13px;
	border: 1px solid var(--lm-line-strong);
	border-radius: 3px;
	background: var(--lm-panel-2);
	cursor: pointer;
	font-family: var(--lm-mono);
	font-size: 0.75rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--lm-muted);
	transition: border-color .16s, color .16s;
}
.ac-switch-opt:hover { border-color: var(--lm-green-lt); color: var(--lm-green-lt); }
.ac-switch-opt input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--lm-green); cursor: pointer; margin: 0; }
.ac-switch-opt:has(input:checked) {
	border-color: var(--lm-green-lt);
	background: rgba(var(--lm-green-dk-rgb), .5);
	color: var(--lm-on-green);
}

/* actions */

.ac-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-actions .lg-submit { flex: 1 1 10rem; }

.ac-missing {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	padding-top: 4px;
	border-top: 1px dashed var(--lm-line);
}
.ac-link {
	/* Ten-pixel type on its own is a target well under the 44px minimum. The
	   padding grows it and the matching negative margin puts the text back
	   where the layout drew it. */
	background: none;
	border: 0;
	cursor: pointer;
	padding: 14px 8px;
	margin: -14px -8px;
	font-family: var(--lm-mono);
	font-size: 0.6875rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lm-gold);
	text-align: left;
}
.ac-link:hover { color: var(--lm-ink); }

/* the aside */

.ac-side { min-width: 0; }
.ac-aside-card {
	padding: clamp(1.25rem, 4vw, 1.75rem);
	border: 1px dashed var(--lm-line-strong);
	border-radius: 3px;
}
.ac-aside-eyebrow {
	margin: 0 0 18px;
	font-family: var(--lm-mono);
	font-size: 0.625rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lm-green-lt);
}
.ac-steps { margin: 0; padding: 0; list-style: none; counter-reset: ac-step; }
.ac-steps li {
	position: relative;
	padding: 0 0 18px 2.25rem;
	margin: 0 0 18px;
	border-bottom: 1px solid var(--lm-line);
	counter-increment: ac-step;
}
.ac-steps li::before {
	content: counter(ac-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 1px;
	font-family: var(--lm-mono);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--lm-green-lt);
}
.ac-steps h3 {
	margin: 0 0 5px;
	font-family: var(--lm-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lm-ink);
}
.ac-steps p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--lm-muted); text-wrap: pretty; }

.ac-aside-note { margin: 0; font-size: 0.8125rem; line-height: 1.6; color: var(--lm-muted); text-wrap: pretty; }

/* -------------------------------------------------- 02 what happens next */

.ac-next {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: var(--next-cols);
	gap: 2px;
}
.ac-next li {
	padding: 18px 12px;
	border-top: 2px solid var(--lm-line-strong);
	border-bottom: 1px solid var(--lm-line);
}
.ac-next-when {
	display: inline-block;
	margin-bottom: 10px;
	font-family: var(--lm-mono);
	font-size: 0.5625rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lm-on-green);
	background: rgba(var(--lm-green-dk-rgb), .5);
	border: 1px solid rgba(var(--lm-green-lt-rgb), .45);
	border-radius: 2px;
	padding: 3px 8px;
}
.ac-next h3 {
	margin: 0 0 8px;
	font-family: var(--lm-sans);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--lm-ink);
}
.ac-next p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--lm-muted); text-wrap: pretty; }

/* The type-ahead panel this page used to skin lived here, as .ui-autocomplete.
   It moved to lm-base.css as .lm-suggest-* when jQuery UI's autocomplete was
   replaced — the same colours, but reaching the concert page and the profile
   too, which had been getting jquery-ui.css's own pale theme on the same
   interaction. */
