/*
 * Atlas Arcadia - suggested Location edits: the Suggest an edit form, the
 * edit-your-submission screen, the suggestion receipt, and the Edit / Locked
 * chips on Your contributions.
 *
 * Design: "Location Edit Suggestions" (boards 2, 3, 4, 5). Token map, the same
 * one profile.css and player.css use:
 *   --aa-brown-light -> --aa-muted     --border-default -> --aa-rule
 *   --surface-card   -> #fff           --shadow-card    -> --aa-shadow-card
 *   --font-display   -> --aa-display   --font-body      -> --aa-text
 * Every var() carries a literal fallback so the form holds if tokens.css is absent.
 * The primary button is the site's own .aa-points__cta pill; the outline and
 * ghost buttons are its siblings (profile.css's .aa-profile__btn, same metrics).
 *
 * BREAKPOINT 767px (Elementor's phone boundary), 1023px for the two-column layout.
 * Works without JavaScript: every field is a plain control, the changed-state
 * badges are server-rendered, and form.js only adds live change tracking.
 */

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

.aa-le {
	--le-orange: var(--aa-orange, #db680b);
	--le-orange-dark: var(--aa-orange-dark, #b8560a);
	--le-brown: var(--aa-brown, #6a3306);
	--le-brown-dark: #4a2404;
	--le-ink: var(--aa-ink, #8a4a12);
	--le-muted: var(--aa-muted, #7d6f5a);
	--le-cream: var(--aa-cream, #fdf6e8);
	--le-yellow: var(--aa-yellow, #fae905);
	--le-yellow-light: var(--aa-yellow-light, #fff7b0);
	--le-rule: var(--aa-rule, #e2ded4);
	--le-line: #e8ddc4;
	--le-line-hover: #d6c49c;
	--le-red: #b8400f;
	--le-green-bg: #e3f1cc;
	--le-green: #3d5a12;
	--le-red-bg: #fbdcd2;
	--le-red-ink: #8a2a10;
	--le-shadow: var(--aa-shadow-card, 0 1px 3px rgba(60, 40, 20, .14));
	--le-display: var(--aa-display, 'Cartridge', ui-sans-serif, system-ui, sans-serif);
	--le-text: var(--aa-text, 'Poppins', ui-sans-serif, system-ui, sans-serif);

	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px 48px;
	color: var(--le-brown);
	font-family: var(--le-text);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: normal;
}

.aa-le a {
	color: var(--le-orange-dark);
}

.aa-le a:hover,
.aa-le a:focus-visible {
	color: var(--le-brown);
}

/* --- headings and lede --- */
.aa-le .aa-le__back {
	display: inline-block;
	margin: 8px 0 16px;
	font-size: 15px;
}

.aa-le__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 24px;
}

.aa-le__titlerow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.aa-le .aa-le__h1 {
	margin: 0;
	font-family: var(--le-display);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--le-brown);
}

.aa-le .aa-le__h2 {
	margin: 0;
	font-family: var(--le-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--le-brown);
}

.aa-le .aa-le__lede {
	margin: 0;
	max-width: 680px;
	font-size: 17px;
	line-height: 1.5;
}

.aa-le .aa-le__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

.aa-le .aa-le__muted {
	color: var(--le-muted);
}

/* --- cards and layout --- */
.aa-le__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: 8px;
	background: #fff;
	color: var(--le-brown);
	box-shadow: var(--le-shadow);
}

.aa-le__solo {
	max-width: 760px;
	margin: 32px auto;
	padding: 40px;
}

.aa-le__layout {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}

.aa-le__main {
	flex: 999 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.aa-le__side {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.aa-le__form {
	display: contents;
}

.aa-le__main > .aa-le__form,
.aa-le__form.aa-le__form--stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.aa-le__more {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.aa-le__more[hidden] {
	display: none;
}

/* --- notices --- */
.aa-le__notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 14px 20px;
	border-radius: 8px;
	background: var(--le-yellow-light);
	color: var(--le-brown-dark);
	font-size: 15px;
	line-height: 1.5;
}

.aa-le__notice--ok {
	background: var(--le-green-bg);
	color: var(--le-green);
}

.aa-le__notice p {
	margin: 0;
}

.aa-le__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
}

.aa-le__msg {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 8px;
	border-left: 4px solid var(--le-red);
	background: #fdece4;
	color: #7a2a08;
	font-size: 15px;
	line-height: 1.5;
}

.aa-le__msg:focus {
	outline: 2px solid var(--le-orange);
	outline-offset: 2px;
}

.aa-le__msg p,
.aa-le__msg ul {
	margin: 0;
	padding: 0;
	color: inherit;
}

.aa-le__msg ul {
	margin-top: 4px;
	padding-left: 20px;
}

.aa-le .aa-le__msg-head {
	font-weight: 700;
}

/* --- fields --- */
.aa-le__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.aa-le__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 10px;
	margin: -10px;
	border-radius: 6px;
}

.aa-le__grid .aa-le__field {
	margin: 0;
	padding: 10px;
}

.aa-le__field--wide {
	grid-column: 1 / -1;
}

.aa-le__field.is-changed {
	background: var(--le-yellow-light);
}

.aa-le__labelrow {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.aa-le .aa-le__label {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--le-brown-dark);
}

.aa-le .aa-le__badge {
	font-family: var(--le-display);
	font-size: 12px;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--le-brown-dark);
}

.aa-le .aa-le__badge[hidden] {
	display: none;
}

.aa-le .aa-le__input {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 2px solid var(--le-line);
	border-radius: 4px;
	background: #fff;
	color: var(--le-brown-dark);
	font-family: var(--le-text);
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
}

.aa-le .aa-le__input:hover {
	border-color: var(--le-line-hover);
}

.aa-le .aa-le__input:focus {
	outline: 3px solid var(--le-yellow);
	outline-offset: 0;
	border-color: var(--le-orange);
}

.aa-le .is-changed .aa-le__input {
	border-color: var(--le-orange);
}

.aa-le .aa-le__textarea {
	min-height: 110px;
	resize: vertical;
}

.aa-le select.aa-le__input {
	appearance: auto;
	-webkit-appearance: menulist;
}

.aa-le .aa-le__help {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--le-muted);
}

.aa-le .aa-le__hint {
	margin: 0;
	font-size: 13px;
	color: var(--le-brown-dark);
}

.aa-le__hint--full {
	grid-column: 1 / -1;
}

.aa-le__was {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	color: var(--le-brown-dark);
}

.aa-le__was[hidden] {
	display: none;
}

.aa-le .aa-le__undo,
.aa-le .aa-le__link {
	font: inherit;
	font-size: inherit;
	background: none;
	border: 0;
	padding: 0;
	color: var(--le-brown-dark);
	text-decoration: underline;
	cursor: pointer;
	min-height: 24px;
}

.aa-le .aa-le__link {
	align-self: flex-start;
	font-size: 15px;
	min-height: 44px;
	padding: 10px 0;
	color: var(--le-orange-dark);
}

.aa-le .aa-le__link[hidden] {
	display: none;
}

/* checkbox group */
.aa-le__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

.aa-le .aa-le__check {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--le-brown-dark);
	cursor: pointer;
}

.aa-le .aa-le__check input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--le-orange);
}

/* the "on the site now" static box */
.aa-le__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--le-rule);
}

.aa-le__pair:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.aa-le__pair .aa-le__field {
	margin: 0;
	padding: 0;
}

.aa-le__pair .aa-le__field.is-changed {
	background: none;
}

.aa-le__static {
	min-height: 44px;
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 4px;
	background: #f7efdf;
	color: var(--le-brown-dark);
	font-size: 16px;
}

.aa-le__static--proposed {
	background: var(--le-yellow-light);
}

/* --- summary (aside) --- */
.aa-le__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}

.aa-le__list li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--le-rule);
}

.aa-le__list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.aa-le__list li[hidden] {
	display: none;
}

.aa-le .aa-le__h1-place {
	display: block;
	font-family: var(--le-text);
	font-size: 16px;
	font-weight: 400;
	color: var(--le-muted);
	margin-top: 4px;
}

.aa-le__list .aa-le__list-label {
	color: var(--le-muted);
}

.aa-le .aa-le__empty {
	color: var(--le-muted);
}

/* --- history --- */
.aa-le__history {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 14px;
}

.aa-le__history li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.aa-le__withdraw {
	background: none;
	box-shadow: inset 0 0 0 2px var(--le-rule);
	gap: 12px;
}

/* --- status chips --- */
.aa-le .aa-le__chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 9999px;
	font-family: var(--le-display);
	font-size: 13px;
	letter-spacing: .6px;
	text-transform: uppercase;
	white-space: nowrap;
	background: var(--le-yellow-light);
	color: var(--le-brown-dark);
}

.aa-le .aa-le__chip--in_review {
	background: #f3e6cf;
}

.aa-le .aa-le__chip--accepted {
	background: var(--le-green-bg);
	color: var(--le-green);
}

.aa-le .aa-le__chip--declined {
	background: var(--le-red-bg);
	color: var(--le-red-ink);
}

.aa-le .aa-le__chip--withdrawn {
	background: var(--le-rule);
	color: var(--le-muted);
}

/* --- buttons: siblings of .aa-points__cta --- */
.aa-le .aa-le__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: .6em 1.2em;
	border: 0;
	border-radius: 999px;
	font-family: var(--le-display);
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.aa-le .aa-le__btn--block {
	display: flex;
	width: 100%;
}

.aa-le .aa-le__btn--sm {
	align-self: flex-start;
	min-height: 40px;
	font-size: .8rem;
}

.aa-le .aa-le__btn--outline {
	background: transparent;
	color: var(--le-brown);
	box-shadow: inset 0 0 0 2px var(--le-brown);
}

.aa-le .aa-le__btn--outline:hover,
.aa-le .aa-le__btn--outline:focus-visible {
	background: var(--le-brown);
	color: #fff;
}

.aa-le .aa-le__btn--ghost {
	background: transparent;
	color: var(--le-brown);
	text-decoration: underline;
}

.aa-le .aa-le__btn--ghost:hover,
.aa-le .aa-le__btn--ghost:focus-visible {
	color: var(--le-orange-dark);
}

.aa-le .aa-le__btn[disabled],
.aa-le .aa-points__cta[disabled] {
	opacity: .6;
	cursor: wait;
}

.aa-le__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

/* --- the receipt (board 3) --- */
.aa-le--receipt {
	max-width: 760px;
	padding-top: 24px;
}

.aa-le__receipt {
	gap: 24px;
	padding: 40px;
	align-items: flex-start;
}

.aa-le .aa-le__admin {
	margin: 0;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--le-cream);
	font-size: 13px;
	color: var(--le-ink);
}

.aa-le__tick {
	width: 56px;
	height: 56px;
	border-radius: 9999px;
	background: var(--le-yellow);
	color: var(--le-brown);
	display: flex;
	align-items: center;
	justify-content: center;
}

.aa-le__tick .aa-le__icon {
	width: 28px;
	height: 28px;
	margin: 0;
	stroke-width: 2.5;
}

.aa-le__receipt .aa-le__head {
	margin: 0;
}

.aa-le .aa-le__dl {
	margin: 0;
	width: 100%;
	padding: 20px 24px;
	border: 2px solid var(--le-rule);
	border-radius: 8px;
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 12px 16px;
	font-size: 15px;
}

.aa-le .aa-le__dl dt {
	color: var(--le-muted);
}

.aa-le .aa-le__dl dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.aa-le__actions-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.aa-le__links {
	width: 100%;
	padding-top: 20px;
	border-top: 1px solid var(--le-rule);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 15px;
}

/* --- Your contributions chips (board 4) --- */
.aa-history__chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: .4em;
	padding: 2px 10px;
	border: 1.5px solid var(--aa-orange-dark, #b8560a);
	border-radius: 9999px;
	color: var(--aa-orange-dark, #b8560a);
	font-size: 12px;
	line-height: 1.5;
	white-space: nowrap;
	text-decoration: none !important;
	vertical-align: middle;
}

.aa-history__chip .aa-le__icon {
	width: 12px;
	height: 12px;
	margin: 0;
	stroke-width: 2.5;
}

.aa-history__chip--edit:hover,
.aa-history__chip--edit:focus-visible {
	background: var(--aa-orange-dark, #b8560a);
	color: #fff !important;
}

.aa-history__chip--locked {
	border-color: var(--aa-muted, #7d6f5a);
	color: var(--aa-muted, #7d6f5a);
}

/* --- the receipt page's Edit submission note (aa-submission-receipt.php) --- */
.aa-sr .aa-sr__editnote {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--aa-muted, #7d6f5a);
}

/* --- phone --- */
@media (max-width: 767px) {
	.aa-le .aa-le__h1 {
		font-size: 28px;
	}

	.aa-le__grid,
	.aa-le__pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-le__card,
	.aa-le__receipt,
	.aa-le__solo {
		padding: 20px;
	}

	.aa-le .aa-le__dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px 0;
		padding: 16px;
	}

	.aa-le .aa-le__dl dd {
		margin-bottom: 10px;
	}

	.aa-le__actions .aa-le__btn,
	.aa-le__actions .aa-points__cta {
		width: 100%;
	}
}
