/* LoudMemories — support. 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,
   password and add-concert pages.

   The page also loads content/policy/css/policy.css, because the strip at the
   foot of it is the same include the three policy documents carry and its
   rules live there. Nothing below reuses a variable that file sets — the
   heading scale here is --sp-h1 rather than --h1 — so the two cannot fight
   over which loaded last. */

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

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

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

/* ------------------------------------------------------ 01 do it yourself */

.sp-self { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
@media (min-width: 640px) { .sp-self { grid-template-columns: 1fr 1fr; } }
.sp-self a {
	color: inherit;
	height: 100%;
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 15px 12px;
	border-top: 2px solid var(--lm-line-strong);
	border-bottom: 1px solid var(--lm-line);
	transition: background .16s;
}
.sp-self a:hover { background: rgba(var(--lm-panel-rgb), .85); color: inherit; }
.sp-self i {
	flex: 0 0 auto;
	font-style: normal;
	font-family: var(--lm-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--lm-green-lt);
}
.sp-self span { min-width: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--lm-muted); }
.sp-self b {
	display: block;
	margin-bottom: 5px;
	font-family: var(--lm-sans);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--lm-ink);
}

.sp-aside-line {
	margin: 18px 0 0;
	font-family: var(--lm-mono);
	font-size: 0.75rem;
	line-height: 1.7;
	color: var(--lm-muted);
	text-wrap: pretty;
}
.sp-aside-line a { border-bottom: 1px solid rgba(var(--lm-gold-rgb), .5); }
.sp-aside-line a:hover { border-bottom-color: var(--lm-ink); }

/* --------------------------------------------------------- 02 the form */

.sp-cols {
	display: grid;
	grid-template-columns: var(--sp-cols);
	gap: var(--sp-gap);
	align-items: start;
}

.sp-form {
	min-width: 0;
	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);
}

/* The two control types lm-base.css does not already carry. */
.sp-form .lg-field select,
.sp-form .lg-field textarea {
	width: 100%;
	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;
}
.sp-form .lg-field select { height: 3rem; }
.sp-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;
}
.sp-form .lg-field textarea {
	padding: 12px 14px;
	min-height: 11rem;
	line-height: 1.65;
	resize: vertical;
}
.sp-form .lg-field select:focus,
.sp-form .lg-field textarea:focus { outline: none; border-color: var(--lm-green-lt); }
.sp-form .lg-field.is-bad select,
.sp-form .lg-field.is-bad textarea { border-color: var(--lm-red); }

.sp-count { float: right; margin-left: 12px; font-variant-numeric: tabular-nums; }
.sp-count.is-close { color: var(--lm-gold); }

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

/* Off the screen rather than display:none — something that fills every box on
   a page tends to skip the ones it can see are hidden. */
.sp-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sp-fineprint {
	margin: 0;
	padding-top: 14px;
	border-top: 1px dashed var(--lm-line);
	font-family: var(--lm-mono);
	font-size: 0.6875rem;
	line-height: 1.7;
	color: var(--lm-muted);
	text-wrap: pretty;
}

/* ----------------------------------------------------------- the aside */

.sp-side { min-width: 0; display: grid; gap: 2px; }

.sp-card {
	padding: clamp(1.25rem, 4vw, 1.625rem);
	border: 1px solid var(--lm-line-strong);
	border-radius: 3px;
	background: var(--lm-panel);
}
.sp-card.is-quiet { background: none; border-style: dashed; }
.sp-card-eyebrow {
	margin: 0 0 16px;
	font-family: var(--lm-mono);
	font-size: 0.625rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lm-green-lt);
}

.sp-only { margin: 0; padding: 0; list-style: none; }
.sp-only li {
	padding: 0 0 14px;
	margin: 0 0 14px;
	border-bottom: 1px solid var(--lm-line);
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--lm-muted);
	text-wrap: pretty;
}
.sp-only li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.sp-only b {
	display: block;
	margin-bottom: 4px;
	font-family: var(--lm-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lm-ink);
}
.sp-only a { border-bottom: 1px solid rgba(var(--lm-gold-rgb), .5); }

.sp-direct {
	margin: 0 0 8px;
	font-family: var(--lm-mono);
	font-size: clamp(0.8125rem, 3.4vw, 0.9375rem);
	word-break: break-word;
}
.sp-direct a { border-bottom: 1px solid rgba(var(--lm-gold-rgb), .5); }
.sp-direct a:hover { border-bottom-color: var(--lm-ink); }
.sp-card-note { margin: 0 0 18px; font-size: 0.8125rem; line-height: 1.6; color: var(--lm-muted); text-wrap: pretty; }

.sp-social { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sp-social a {
	/* Twelve-pixel type on its own is a target under the 44px minimum. The
	   padding grows it and the matching negative margin puts the text back
	   where the layout drew it. */
	padding: 13px 4px;
	margin: -13px -4px;
	font-family: var(--lm-mono);
	font-size: 0.6875rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}
