h1 {color:#004080;border-bottom:2px solid;font-size:35px;font-family:sans-serif;font-weight:normal}
h2 {color:#297c44;font-weight:bold;font-family:sans-serif;border-bottom:1px solid;font-weight:normal}
p,ul,td,div {color:#444444;font-family:sans-serif}
.smallergrey {color:#777777;font-size:0.8em}
div.event {}
.note{background-color:eee468}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    filter:alpha(opacity=50);
    -moz-opacity:0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
    z-index: 10000;
}

html, body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

* {
	box-sizing: border-box;
}

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

.site-container {
	width: 800px;
	max-width: calc(100% - 24px);
	margin: 0 auto;
}

.site-header-black {
	background-color: #000000;
	width: 100%;
	height: 20px;
	box-shadow: 0px 2px 5px #aaa;
}

.site-header-gold {
	background-color: #eac347;
	width: 100%;
	height: 120px;
	box-shadow: 0px 2px 5px #aaa;
}

.site-header {
	margin-top: -120px;
	position: relative;
	z-index: 2;
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 126px;
}

.site-header-logo {
	width: 106px;
	height: 126px;
	max-width: none;
	box-shadow: 0px 2px 5px #aaa;
}

.site-header-title {
	font-family: sans-serif;
	color: #004080;
	font-size: 38px;
	margin: 0;
}

.site-page {
	padding-bottom: 24px;
}

.site-layout {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin-top: 18px;
}

.site-sidebar {
	width: 150px;
	flex: 0 0 150px;
}

.site-content {
	width: calc(100% - 174px);
	min-width: 0;
}

.nav-sections {
	display: block;
}

.nav-section {
	background-color: #eac347;
	padding: 5px 3px;
	margin: 0;
}

.nav-section-current {
	background-color: #004080;
}

.nav-section-green {
	background-color: #008040;
}

.nav-section-link {
	color: #004080;
	font-weight: bold;
	text-decoration: none;
	display: block;
}

.nav-section-link-current,
.nav-section-link-green {
	color: #eac347;
}

.nav-subsections {
	margin: 0 0 4px 0;
}

.nav-subsection {
	padding: 4px 0 4px 10px;
	margin: 0;
}

.nav-subsection-link {
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
	color: #297c44;
}

.nav-subsection-link-active {
	color: #004080;
	text-decoration: underline;
}

.burger-btn {
	display: none;
	margin: 12px 0 0 0;
	background: #004080;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.burger-btn span {
	font-size: 15px;
	vertical-align: middle;
	margin-left: 8px;
}

.mobile-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 1400;
}

.mobile-overlay.open {
	display: block;
}

.mobile-sidebar {
	position: fixed;
	top: 0;
	left: -300px;
	width: 280px;
	max-width: 85vw;
	height: 100vh;
	overflow-y: auto;
	background: #ffffff;
	box-shadow: 2px 0 12px rgba(0,0,0,0.25);
	z-index: 1500;
	transition: left 0.25s ease;
	padding: 16px 0 24px 0;
}

.mobile-sidebar.open {
	left: 0;
}

.mobile-sidebar .close-btn {
	display: block;
	margin: 0 12px 12px auto;
	background: #004080;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 20px;
	cursor: pointer;
}

@media screen and (max-width: 820px) {
	.site-header-gold {
		height: 100px;
	}

	.site-header {
		margin-top: -100px;
	}

	.site-header-inner {
		min-height: 100px;
	}

	.site-header-title {
		font-size: 28px;
		line-height: 1.2;
	}

	.site-layout {
		display: block;
		margin-top: 10px;
	}

	.site-sidebar {
		display: none;
	}

	.site-content {
		width: 100%;
	}

	.burger-btn {
		display: inline-block;
	}

	p[style*="float:right"] {
		float: none !important;
		position: static !important;
		top: 0 !important;
		text-align: left !important;
	}
}

@media screen and (max-width: 600px) {
	.site-header-gold {
		height: 88px;
	}

	.site-header {
		margin-top: -88px;
	}

	.site-header-inner {
		gap: 10px;
		min-height: 88px;
	}

	.site-header-logo {
		width: 78px;
		height: auto;
	}

	.site-header-title {
		font-size: 22px;
	}
}

.home-featured {
	margin: 16px 0 20px 0;
}

.home-feature-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.home-feature-card {
	text-align: center;
	vertical-align: top;
}

.home-feature-card img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

.home-full-list-link {
	text-align: right;
	margin: 8px 0 20px 0;
}

.home-social-table {
	width: 100%;
	border-collapse: collapse;
}

.home-social-table td {
	padding: 6px 8px 6px 0;
	vertical-align: middle;
}

.home-social-table img {
	display: block;
	max-width: 24px;
	height: auto;
}

@media screen and (max-width: 820px) {
	.home-feature-table,
	.home-feature-table tbody,
	.home-feature-table tr {
		display: block;
		width: 100%;
	}

	.home-feature-table td.home-feature-card {
		display: block;
		width: 100% !important;
		margin-bottom: 12px;
	}

	.home-social-table,
	.home-social-table tbody,
	.home-social-table tr {
		display: block;
		width: 100%;
	}

	.home-social-table td {
		display: inline-block;
		width: auto;
	}

	.home-full-list-link {
		text-align: left;
		margin-top: 8px;
	}
}

.home-feature-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin: 16px 0 20px 0;
}

.home-feature-card {
	width: 100px;           /* same width as image */
	background: #FFFCA2;
	padding: 6px;
	text-align: center;
	box-sizing: border-box;
}

.home-feature-card img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 6px;
}

.home-feature-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.3;
}

@media screen and (max-width: 820px) {
	.home-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 520px) {
	.home-feature-grid {
		grid-template-columns: 1fr;
	}
}

.event {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	border: 1px solid #aaa;
	padding: 10px;
	margin-bottom: 14px;
}

.event-date {
	width: 80px;
	background: #297c44;
	border-radius: 5px;
	color: white;
	font-family: sans-serif;
	font-weight: bold;
	text-align: center;
	padding: 6px 0;
	flex-shrink: 0;
}

.event-dow,
.event-moy {
	font-size: 18px;
	line-height: 1.1;
	color: white;
}

.event-dom {
	font-size: 30px;
	line-height: 1;
	margin: 2px 0;
	color: white;
}

.event-details {
	flex: 1;
	min-width: 0;
}

.event-logo {
	float: right;
	margin-left: 10px;
	margin-bottom: 6px;
	max-width: 100px;
	height: auto;
}

.event-desc {
	color: #666;
}


.membership-form {
	max-width: 100%;
}

.membership-section {
	margin: 0 0 24px 0;
}

.membership-grid {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 10px 14px;
	align-items: start;
	width: 100%;
}

.membership-label {
	text-align: right;
	padding-top: 8px;
}

.membership-input,
.membership-textarea,
.membership-select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font: inherit;
	padding: 8px;
}

.membership-input-short {
	max-width: 140px;
}

.membership-textarea {
	resize: vertical;
	min-height: 80px;
}

.membership-name-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.membership-options {
	display: grid;
	gap: 10px;
	margin-bottom: 16px;
}

.membership-option {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
}

.membership-box {
	border: 1px solid #ddd;
	padding: 12px;
	margin: 0 0 12px 0;
	background: #fafafa;
}

.membership-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.membership-note {
	color: #666;
	font-size: 0.92em;
}

.membership-warning {
	background: #ffb3b3;
	padding: 12px;
}

.membership-submit {
	text-align: center;
	margin-top: 24px;
}

.membership-submit input[type="button"],
.membership-submit input[type="submit"] {
	padding: 10px 18px;
	font: inherit;
}

#total_displayer {
	text-align: center;
	margin-top: 18px;
}

@media screen and (max-width: 820px) {
	.membership-grid {
		grid-template-columns: 1fr;
	}

	.membership-label {
		text-align: left;
		padding-top: 0;
	}

	.membership-two-col {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 520px) {
	.membership-name-row {
		grid-template-columns: 1fr;
	}

	.membership-option {
		grid-template-columns: 22px minmax(0, 1fr);
	}
}

.page-hero {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 0 18px 0;
	border-radius: 4px;
}