/* ==========================================================================
   Exeter & District Tennis League — site-wide styles
   ========================================================================== */

:root {
	--green-dark: #0d3b2a;
	--green-mid: #1f5c40;
	--green-deep-text: #16321f;
	--lime: #c6e94a;
	--lime-soft: #e7f5c5;
	--cream: #f8f9f2;
	--card: #ffffff;
	--ink: #1c2b22;
	--muted: #5c6d60;
	--border: #e1e6da;
	--red: #c1272d;
	--blue: #1a4fa0;
	--radius: 14px;
	--max-width: 1100px;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: linear-gradient(180deg, #eef4e4 0%, var(--cream) 320px, var(--cream) 100%);
	font-family: "Segoe UI", "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink);
	margin: 0;
	min-height: 100%;
}

h1, h2, h3, h4, h5 {
	margin: 0 0 0.5em;
	color: var(--green-dark);
	font-weight: 700;
	line-height: 1.25;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--green-mid);
	text-decoration: none;
}

a:hover {
	color: var(--red);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 1.5em 0;
}

/* ==========================================================================
   Banner
   ========================================================================== */

.site-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 22px 24px;
	background: linear-gradient(120deg, #061a12 0%, var(--green-dark) 55%, var(--green-mid) 100%);
	border-radius: var(--radius) var(--radius) 0 0;
	box-sizing: border-box;
}

.site-banner__ball {
	width: 52px;
	height: 52px;
	flex: 0 0 auto;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.site-banner__text {
	text-align: left;
}

.site-banner h1 {
	margin: 0;
	color: #ffffff;
	font-size: 26px;
	letter-spacing: 0.2px;
}

.site-banner .site-banner__tagline {
	margin: 2px 0 0;
	color: var(--lime);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

@media (max-width: 560px) {
	.site-banner {
		flex-direction: column;
		text-align: center;
		padding: 20px 16px;
	}
	.site-banner__text {
		text-align: center;
	}
	.site-banner h1 {
		font-size: 21px;
	}
}

/* ==========================================================================
   Page shell
   ========================================================================== */

#content,
#content2,
#content3,
#content4 {
	width: auto;
	max-width: var(--max-width);
	height: auto;
	margin: 24px auto;
	padding: 0;
	border: none;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: 0 4px 24px rgba(13, 59, 42, 0.12), 0 1px 3px rgba(13, 59, 42, 0.08);
	overflow: hidden;
}

/* Body padding for the two working columns */

#colOne {
	float: left;
	width: 220px !important;
	height: auto !important;
	margin: 0;
	padding: 22px 16px 22px 22px;
	box-sizing: border-box;
}

#colTwo {
	float: right;
	width: calc(100% - 220px);
	margin: 0;
	padding: 24px 28px 28px 16px;
	box-sizing: border-box;
	overflow-x: auto;
}

#colThree {
	float: right;
	margin-top: 0;
	width: calc(100% - 220px);
	padding: 24px 28px 28px 16px;
	box-sizing: border-box;
	font-size: 13px;
	overflow-x: auto;
}

#colFour {
	float: right;
	margin-top: 0;
	width: calc(100% - 220px);
	padding: 24px 28px 28px 16px;
	box-sizing: border-box;
	overflow-x: auto;
}

#colFive {
	float: left;
	width: 220px;
	margin: 0;
	padding: 22px 16px 22px 22px;
	box-sizing: border-box;
}

#content h2,
#content2 h2,
#content3 h2,
#content4 h2 {
	margin-bottom: 16px;
	font-size: 22px;
	letter-spacing: -0.2px;
	color: var(--green-dark);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

#menu1 {
	float: none;
	width: auto !important;
	height: auto !important;
	margin: 0;
	padding-bottom: 0;
	text-transform: none;
	font-weight: 600;
	font-size: 13px;
	color: var(--green-deep-text);
}

#menu1 ul {
	margin: 0;
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

#menu1 a {
	display: block;
	width: auto;
	padding: 9px 12px;
	background-color: var(--cream);
	border: 1px solid var(--border);
	border-radius: 8px;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	font-weight: 600;
	color: var(--green-deep-text);
	transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

#menu1 a:hover {
	background-color: var(--lime-soft);
	border-color: var(--lime);
	color: var(--green-dark);
}

#menu1 li.cur a:link,
#menu1 li.cur a:visited {
	color: #ffffff;
	background-color: var(--green-mid);
	border-color: var(--green-mid);
}

#menu1 li.cur a:hover {
	color: #ffffff;
	background-color: var(--green-dark);
	border-color: var(--green-dark);
}

/* ==========================================================================
   Tables — leave inline colours/borders from individual pages alone
   (they're often meaningful, e.g. postponed/highlighted rows) but tidy
   spacing, font and make them scroll instead of overflowing on mobile.
   ========================================================================== */

table {
	border-collapse: collapse;
	font-size: inherit;
}

td, th {
	padding: 5px 9px;
}

/* ==========================================================================
   Misc helpers already used across pages
   ========================================================================== */

#footer {
	max-width: var(--max-width);
	margin: 0 auto 32px;
	padding: 16px 0 0;
	text-align: center;
	font-size: 11px;
	color: var(--muted);
	border-top: 1px solid var(--border);
}

#imagebrd {
	border: 6px solid #ffffff;
	box-shadow: 0 1px 6px rgba(13, 59, 42, 0.15);
}

#bgcell {
	background: var(--lime-soft);
}

#bgcell2 {
	background: var(--lime-soft);
	border: 1px solid var(--green-mid);
	text-align: center;
}

/* ==========================================================================
   Small screens: stack the sidebar above the content
   ========================================================================== */

@media (max-width: 800px) {
	#content,
	#content2,
	#content3,
	#content4 {
		margin: 12px;
		max-width: none;
	}

	.site-banner {
		border-radius: 0;
	}

	#colOne,
	#colTwo,
	#colThree,
	#colFour,
	#colFive {
		float: none;
		width: 100%;
		padding: 18px 18px 0;
	}

	#colOne {
		padding-bottom: 6px;
	}

	#menu1 ul {
		flex-direction: row;
		flex-wrap: wrap;
	}

	#menu1 a {
		width: auto;
	}
}
