/*	Theme Name: TCA
	Description: Theme for TCA
	Author: Justin McCall
	Version: 1.0
*/

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
	html, body {
	min-height: 100%;
	margin: 0;
}

body {
	font-family: 'Roboto', sans-serif;
	background-size: 100% auto;
	color: #333;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 0 0 0;
	overflow-x: hidden;
	padding-top: 100px;
	min-height: 100vh;
}

body.admin-bar {
	padding-top: calc(100px + 32px);
}

/* Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background: rgba(0, 100, 0, 0.70);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	z-index: 1000;
}
body.admin-bar header {
	top: 32px;
}
header.small {
	height: 40px;
	background: rgba(0, 100, 0, 0.70);
}
header nav {
	display: flex;
	align-items: center;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 20px;
	height: 100%;
	gap: 60px;
}
header .site-branding {
	flex: 0 0 auto;
	padding-left: 0;
}
header #primary-menu {
	flex: 1;
	justify-content: flex-end;
	display: flex;
	margin: 0;
	padding: 0;
	height: 100%;
}
header #primary-menu > li:last-child {
	padding-right: 70px;
}
header .site-title {
	font-family: "Rossetti W00 Regular", "Brush Script MT", cursive;
	font-size: 2.5em;
	color: #fff;
	text-decoration: none;
	transition: font-size 0.3s ease;
	letter-spacing: 1px;
}
header .site-title span.site-title-smaller,
header .site-title span.site-title-smaller-of,
header .site-title span.site-title-smaller-ennis,
header .site-title span.site-title-smaller-ollectors {
	font-size: 0.7em;
	vertical-align: middle;
}
header .site-title span.site-title-smaller-of {
	font-size: 0.55em;
	margin-left: -4px;
	margin-right: -4px;
}
header .site-title span.site-title-smaller-ennis {
	margin-left: -8px;
}
header .site-title span.site-title-smaller-ollectors {
	margin-left: -4px;
}
header.small .site-title span.site-title-smaller-ennis {
	margin-left: -4px;
}
header.small .site-title span.site-title-smaller-ollectors {
	margin-left: -2px;
}
header.small .site-title {
	font-size: 1.5em;
}
header.small #primary-menu {
	margin-left: -50px;
}
header #primary-menu li {
	position: relative;
	margin: 0 15px;
	height: 100%;
	display: flex;
	align-items: center;
}
header #primary-menu li a {
	text-decoration: none;
	color: #fff;
	padding: 5px 10px;
	transition: all 0.3s;
	display: block;
	display: flex;
	align-items: center;
}
header.small #primary-menu li a {
	padding: 2px 10px;
}
header #primary-menu li a:hover {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
}
header #primary-menu > li.menu-item-has-children > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: rgba(0,100,0,0.9);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	border-radius: 4px;
	min-width: 200px;
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1001;
}
header #primary-menu > li.menu-item-has-children:hover > ul {
	display: block;
	opacity: 1;
	transform: translateY(0);
}
header #primary-menu > li.menu-item-has-children > ul li {
	display: block;
	margin: 0;
}
header #primary-menu > li.menu-item-has-children > ul li a {
	display: block;
	padding: 10px 15px;
	color: #fff;
	transition: all 0.3s;
}
header #primary-menu > li.menu-item-has-children > ul li a:hover {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
}
header #primary-menu > li.menu-item-has-children > a {
	position: relative;
	padding-right: 20px;
}
header #primary-menu > li.menu-item-has-children > a::after {
	content: ' ▾';
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
}
.hamburger {
	display: none;
	cursor: pointer;
	font-size: 30px !important;
	color: #fff;
	padding-top: 10px;
	flex: 0 0 auto;
}
header.small .hamburger {
	padding-top: 0;
	font-size: 24px !important;
}
header #primary-menu li a {
	white-space: nowrap;
}
header #primary-menu li a {
	white-space: nowrap;
}
header.small #primary-menu.active {
	top: 40px !important;
	height: calc(100vh - 40px) !important;
}
body.admin-bar header.small #primary-menu.active {
	top: 72px !important;
	height: calc(100vh - 72px) !important;
}



/* Main */
main {
	max-width: 80%;
	margin: 0 auto 40px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 10px;
	flex: 1 0 auto;
}

article { margin-bottom: 30px; }
article h2 a { color: #2c3e50; text-decoration: none; }
article h2 a:hover { color: #1abc9c; }
main p, main ul, main ol { margin-bottom: 8px; }
main ul, main ol { padding-left: 40px; }
main li { margin-bottom: 10px; }


/* Footer */
footer {
	background: rgba(0, 100, 0, 0.7);
	color: #fff;
	text-align: center;
	font-size: 11px;
	padding: 4px;
	width: 100%;
	margin-top: auto;
}

/* Parallax BG (for smoothness, though set via JS) */
#parallax-bg {
        backface-visibility: hidden;
        transform: translateZ(0);
}


/* Mobile menu/header */
@media (max-width: 1100px) {
	body {
		padding-top: 40px;
	}
	body.admin-bar {
		padding-top: calc(40px + 32px);
	}
	main { 
		max-width: 95%;
		padding: 15px;
	}
	header {
		height: 40px !important;
	}
	header nav {
		justify-content: space-between;
		gap: 0;
	}
	header .site-title {
		font-size: 1.5em !important;
	}
	.hamburger {
		display: block !important;
		padding-top: 0 !important;
		font-size: 24px !important;
	}

	header #primary-menu { display: none; }

	header #primary-menu.active {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		position: fixed !important;
		left: 0;
		width: 100%;
		padding: 30px 20px 80px !important;
		background: rgba(0,80,0,0.98);
		overflow-y: auto;
		z-index: 9999;
	}

	header #primary-menu.active > li,
	header #primary-menu.active .sub-menu li {
		all: unset !important;
		display: block !important;
		width: 100% !important;
		text-align: center !important;
	}

	header #primary-menu.active > li > a {
		display: block !important;
		font-size: 28px !important;
		font-weight: 700 !important;
		color: #fff !important;
		padding: 12px 0 !important;
		margin: 8px 0 !important;
	}

	header #primary-menu.active .sub-menu li a {
		display: block !important;
		font-size: 24px !important;
		font-weight: 500 !important;
		color: #d1f7d1 !important;
		padding: 10px 0 !important;
		margin: 6px 0 !important;
	}

	header #primary-menu.active .sub-menu {
		all: unset !important;
		display: block !important;
	}

	header #primary-menu.active li.menu-item-has-children > a {
		pointer-events: none !important;
		cursor: default !important;
	}

	header #primary-menu > li.menu-item-has-children > a::after {
		display: none;
	}
}


/* Mobile pages */
@media (max-width: 768px) {
	main {
		max-width: 95%;
		padding: 15px;
		margin: 0 auto 40px;
	}

	.annual-meeting-container,
	.entry-content > div,
	.post div, .page div {
		font-size: 18px;
		line-height: 1.65 !important;
	}

	.annual-meeting-container h2,
	.entry-content h2,
	.entry-content h3 {
		font-size: 26px !important;
		margin: 0 0 20px 0 !important;
	}

	.annual-meeting-container p,
	.entry-content p {
		margin-bottom: 20px !important;
	}

	.annual-meeting-container a,
	.entry-content a {
		word-break: break-word;
	}
}


/* Base TCA content styles for consistency */
.tca-content {
	color: #222;
	line-height: 1.5;
	max-width: 900px;
	margin: 0 auto 24px;
}

.tca-content h2,
.tca-content h3 {
	color: #0b486b;
	margin: 24px 0 12px;
}

.tca-content h2 {
	font-size: 1.8em;
	text-align: center;
}

.tca-content p {
	margin-bottom: 12px;
	font-size: 15px;
}

.tca-content ul {
	margin: 0 0 12px 20px;
	padding: 0;
}

.tca-content ul li {
	margin-bottom: 8px;
	font-size: 14px;
	color: #333;
}

.tca-content hr {
	border: 0;
	border-top: 1px solid #f0f0f0;
	margin: 18px 0;
}

/* Common file list for downloads/articles/newsletters/etc. */
.file-list {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
}

.file-list li {
	margin: 0.4em 0;
	font-size: 14px;
	color: #333;
}

.file-list img {
	vertical-align: middle;
	margin-right: 0.5em;
	width: 20px;
	height: 20px;
}

/* Common table styles (adapt for Board Minutes and About) */
.tca-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 20px;
	table-layout: auto;
	font-size: 14px;
	color: #333;
}

.tca-table th {
	text-align: left;
	font-weight: 600;
	padding: 8px;
	color: #0b486b;
	background-color: #f2f2f2;
}

.tca-table td {
	padding: 8px;
	border-top: 1px solid #f0f0f0;
}

.tca-table.past {
	table-layout: fixed;
}

.tca-table.past th:first-child,
.tca-table.past td:first-child {
	width: 110px;
	white-space: nowrap;
}

.tca-table.past th:nth-child(2),
.tca-table.past td:nth-child(2) {
	padding: 8px 12px;
}

.tca-table a {
	text-decoration: none;
	color: #0073aa;
}

.tca-table a:hover {
	text-decoration: underline;
}

/* Board-specific link above table */
.tca-board-link {
	margin: 20px 0;
	font-size: 14px;
}

.tca-board-link img {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin-right: 0.5em;
}

.tca-board-link a {
	text-decoration: none;
	color: #0073aa;
}

/* Common list for boards/links (flex for badges) */
.tca-list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.tca-list li {
	padding: 0;
	border-top: 1px dashed #f2f2f2;
	color: #333;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: flex-start;
	margin-bottom: 4px;
}

.tca-name {
	font-weight: 600;
	color: #0b486b;
}

.tca-badge {
	background: #e6f2fb;
	color: #0b486b;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	white-space: nowrap;
}

/* Membership button */
.tca-join-btn {
	display: inline-block;
	padding: 12px 20px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 15px;
}

.tca-join-btn:hover {
	background: #005a87;
}

.button-container {
	text-align: center;
	margin: 20px 0;
}

/* Images and figures (common responsive) */
.tca-images-container,
.books-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin: 20px 0;
}

.tca-images-container figure,
.book {
	flex: 1 1 calc(50% - 20px);
	text-align: center;
	margin: 0;
}

.tca-images-container img,
.book img {
	max-width: 100%;
	height: auto;
	width: 400px;
}

.tca-images-container figcaption,
.book p {
	font-size: 14px;
	color: #555;
}

.tca-section {
	margin-bottom: 40px;
}

/* Links-specific ul (indented with descriptions) */
.tca-links ul {
	margin-left: 20px;
}

.tca-links li {
	font-size: 14px;
	margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.tca-content {
		padding: 0 12px;
		font-size: 14px;
	}

	.tca-content h2 {
		font-size: 1.5em;
	}

	.tca-content p,
	.tca-content ul li {
		font-size: 14px;
	}

	.tca-images-container,
	.books-row {
		flex-direction: column;
		gap: 20px;
	}

	.tca-images-container figure,
	.book {
		flex: 1 1 100%;
	}

	.tca-images-container img,
	.book img {
		width: 100%;
		max-width: 400px;
	}

	.tca-table {
		font-size: 13px;
	}

	.tca-table th,
	.tca-table td {
		padding: 6px;
	}

	.tca-table.past {
		table-layout: auto;
	}

	.tca-list li {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

@media (max-width: 520px) {
	.tca-table.past {
		table-layout: auto;
	}
}
