/* ---------- Reset ---------- */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ---------- Helpers ---------- */
.grid {
	display: grid;
	gap: 2em;
}
.grid-2-3 { grid-template-columns: 2fr 3fr }

/* ---------- Base ---------- */
body {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	font-family: Montserrat, sans;
	color: #2E3440;
	background-color: #ECEFF4;
	overflow-x: hidden;
}

main {
	padding: 2em 1em 5em 1em;
	width: 100%;
}

p,
h1, h2 {
	margin-bottom: 1rem;
}

/* ---------- Wrapper ---------- */
.wrapper,
.wrapper-narrow {
	margin: 0 auto;
}
.wrapper { max-width: 60em; }
.wrapper-narrow { max-width: 40em; }

/* ---------- Lists ---------- */
ul { list-style: none; }

/* ---------- Tables ---------- */
table {
	width: 100%;
	background: #fff;
	border-radius: 10px;
	padding: 1.25rem;
	margin-bottom: 1rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	line-height: 1;
}
table td {
	padding: .5em;
}
table td:first-child { padding-left: 0; }
table td:nth-child(2) { padding-left: 0; }
table td:last-child { padding-right: 0; }

/* ---------- Event / Registration Cards ---------- */
li {
	background: #fff;
	border-radius: 10px;
	padding: 1.25rem;
	margin-bottom: 1rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.event-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.event-info {
	flex: 1;
}
.event-info strong {
	font-size: 1.05rem;
	display: block;
	margin-bottom: 0.25rem;
}
.event-meta {
	font-size: 0.9rem;
	color: #6b7280;
}

/* ---------- Buttons ---------- */
a {
	color: #2563eb;
	text-decoration: none;
}

.register-btn,
main button {
	background: #16a34a;
	color: #fff;
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.1s ease;
	margin-top: 0.75rem; /* merged button spacing */
}
.register-btn:hover,
main button:hover { background: #15803d }

/* ---------- Forms ---------- */
form p { margin-bottom: 0.75rem; }

input,
select {
	width: 100%;
	padding: 0.55rem 0.6rem;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	font-size: 0.95rem;
}

form .helptext {
	color: #6b7280;
	font-size: .85em;
}

/* ---------- Misc ---------- */
hr {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 2rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
	.event-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.register-btn { width: 100%; text-align: center; }

	.grid { grid-template-columns: 1fr; }
}
