﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ABOUT â€” TEAM & GOVERNANCE  (tg-*)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.tg-section {
	padding: 3.5rem 0;
}

.tg-chart-section {
	padding: 2rem 0 4rem;
	background: #f9faf9;
}

/* â”€â”€ Generic level wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-level {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.tg-level-title {
	text-align: center;
	font-size: .88rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--gray-700);
	margin-bottom: 1.25rem;
}

/* â”€â”€ Connectors â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-connector {
	display: flex;
	justify-content: center;
	padding: 1rem 0;
}

.tg-connector--single {
	position: relative;
}

.tg-connector--single::before {
	content: '';
	display: block;
	width: 2px;
	height: 40px;
	background: var(--green-600);
	margin: 0 auto;
}

.tg-connector--branch {
	position: relative;
	height: 50px;
}

.tg-connector--branch::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 25px;
	background: var(--green-600);
}

.tg-connector--branch::after {
	content: '';
	position: absolute;
	top: 25px;
	left: 25%;
	width: 50%;
	height: 2px;
	background: var(--green-600);
}

/* ── T-connector (Executive Secretary) ────────────────────── */
.tg-connector-t {
	position: relative;
	height: 40px;
}

/* vertical line through center — short */
.tg-connector-t__line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--green-600);
	transform: translateX(-50%);
}

/* dashed horizontal arm: center to right edge minus card width */
.tg-connector-t__arm {
	position: absolute;
	top: 50%;
	left: 50%;
	right: 220px;
	height: 0;
	border-top: 2px dashed var(--green-600);
}

/* card pinned to the right, vertically centered */
.tg-connector-t .tg-card--secretary {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	z-index: 1;
}

/* fix hover: preserve translateY(-50%) on secretary card */
.tg-connector-t .tg-card--secretary:hover {
	transform: translateY(-50%) translateY(-3px);
}

@media (max-width: 1200px) {
	.tg-connector-t {
		height: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: .75rem 0 1.5rem;
	}
	.tg-connector-t__line {
		position: relative;
		left: auto;
		top: auto;
		bottom: auto;
		width: 2px;
		height: 28px;
		transform: none;
	}
	.tg-connector-t__arm {
		display: none;
	}
	.tg-connector-t .tg-card--secretary {
		position: relative;
		top: auto;
		right: auto;
		transform: none;
	}
	.tg-connector-t .tg-card--secretary:hover {
		transform: translateY(-3px);
	}
}

/* â”€â”€ Card base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-card {
	background: #fff;
	border-radius: 14px;
	border: 1.5px solid rgba(0,0,0,.06);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.tg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* â”€â”€ Advisory Board card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-card--advisory {
	max-width: 500px;
	padding: 1.5rem 2rem;
	text-align: center;
	border: 2px solid var(--green-600);
}

.tg-card--advisory h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--green-900);
	margin-top: .35rem;
}

.tg-card--advisory p {
	font-size: .88rem;
	color: var(--gray-700);
	line-height: 1.5;
}

.tg-card-icons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	color: var(--green-600);
}

/* â”€â”€ Executive & Manager cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-card--exec,
.tg-card--manager {
	width: 280px;
	text-align: center;
}

.tg-card-photo {
	position: relative;
	overflow: hidden;
}

.tg-card-photo img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	object-position: top;
	display: block;
	transition: transform .4s ease;
}

.tg-card:hover .tg-card-photo img {
	transform: scale(1.08);
}

.tg-card-photo--sm img {
	height: 200px;
}

.tg-card-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 5px;
}

.tg-card-bar--green {
	background: var(--green-600);
}

.tg-card-bar--blue {
	background: #2563eb;
}

.tg-card-info {
	padding: 1rem;
}

.tg-card-info strong {
	display: block;
	font-size: .9rem;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: .25rem;
}

.tg-card-info span {
	display: block;
	font-size: .8rem;
	color: var(--gray-700);
	line-height: 1.4;
}

/* â”€â”€ Member cards (smaller) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-card--member {
	width: 220px;
	text-align: center;
}

.tg-card--member.tg-card--sm {
	width: 170px;
}

/* â”€â”€ Teams two-column layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-teams {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	margin-top: .5rem;
}

.tg-team-branch {
	text-align: center;
}

.tg-branch-title {
	font-size: .85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--green-600);
	margin-bottom: 1rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid var(--green-100);
}

.tg-branch-title--blue {
	color: #2563eb;
	border-bottom-color: rgba(37,99,235,.15);
}

.tg-team-grid {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

/* â”€â”€ Officers row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-officers {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	align-items: center;
}

.tg-officer {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .4rem .85rem;
	border-radius: 8px;
	background: rgba(0,0,0,.03);
	font-size: .82rem;
	color: var(--gray-700);
}

.tg-officer svg {
	color: var(--green-600);
	flex-shrink: 0;
}

/* â”€â”€ Intern row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tg-intern-row {
	border-top: 1px dashed rgba(0,0,0,.08);
	padding-top: 1.5rem;
	margin-top: 2rem;
}

.tg-intern-grid {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

/* â”€â”€ Team & Governance Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
	.tg-teams {
		grid-template-columns: 1fr;
	}
	.tg-card--exec,
	.tg-card--manager {
		width: 240px;
	}
	.tg-connector--branch::after {
		left: 15%;
		width: 70%;
	}
}

@media (max-width: 600px) {
	.tg-level {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	.tg-card--exec,
	.tg-card--manager,
	.tg-card--member,
	.tg-card--member.tg-card--sm {
		width: 280px;
		max-width: 90vw;
	}
	.tg-card-photo img {
		height: 280px;
	}
	.tg-card-photo--sm img {
		height: 280px;
	}
	.tg-connector--branch {
		display: none;
	}
	.tg-intern-grid {
		flex-direction: column;
		align-items: center;
	}
	.tg-section {
		padding: 2rem 0;
	}
	.tg-chart-section {
		padding: 1rem 0 2.5rem;
	}
}



/* ── Team / Advisory Board Modal ─────────────────────────── */

.tg-view-board-link{
  display: inline-flex;
  margin-top: .6rem;
  font-weight: 600;
  text-decoration: underline;
  color: #fff;
  opacity: .95;
}
.tg-view-board-link:hover{ opacity: 1; }

#advisoryBoardModal.contact-modal--xl .contact-modal-content{
  max-width: 80vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

#advisoryBoardModal .contact-modal-body{
  flex: 1;
  min-height: 0; /* flex children scrolling */
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 1.25rem;
}

#advisoryBoardModal .board-modal-title{
  margin: 0 0 .35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}
#advisoryBoardModal .board-modal-subtitle{
  margin: 0 0 1.25rem;
  color: #6b7280;
  font-size: .95rem;
  line-height: 1.5;
}

#advisoryBoardModal .board-table-wrap{
  width: 100%;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

#advisoryBoardModal .board-table{
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .95rem;
}

#advisoryBoardModal .board-table thead th{
  background: #f8fafc;
  color: #111827;
  font-weight: 700;
  padding: .9rem .95rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
}

#advisoryBoardModal .board-table tbody td{
  padding: .9rem .95rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #111827;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#advisoryBoardModal .board-table tbody tr:hover td{
  background: rgba(23,68,41,.04);
}
#advisoryBoardModal .board-table tbody tr:last-child td{
  border-bottom: 0;
}

#advisoryBoardModal .board-table th:nth-child(1),
#advisoryBoardModal .board-table td:nth-child(1){
  width: 60px;
}
#advisoryBoardModal .board-table th:nth-child(2),
#advisoryBoardModal .board-table td:nth-child(2){
  width: 120px;
}
#advisoryBoardModal .board-table th:nth-child(3),
#advisoryBoardModal .board-table td:nth-child(3){
  width: 30%;
}
#advisoryBoardModal .board-table th:nth-child(4),
#advisoryBoardModal .board-table td:nth-child(4){
  width: auto;
}

#advisoryBoardModal .board-avatar{
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  display: block;
  margin: 0 auto;
}

@media (max-width: 900px){
  #advisoryBoardModal.contact-modal--xl .contact-modal-content{
    width: min(980px, 96vw);
  }
  #advisoryBoardModal .board-table{
    font-size: .92rem;
  }
  #advisoryBoardModal .board-avatar{
    width: 76px;
    height: 76px;
  }
  #advisoryBoardModal .board-table th:nth-child(2),
  #advisoryBoardModal .board-table td:nth-child(2){
    width: 104px;
  }
}

@media (max-width: 640px){
  #advisoryBoardModal.contact-modal--xl .contact-modal-content{
    width: 96vw;
  }
  #advisoryBoardModal .board-table th:nth-child(1),
  #advisoryBoardModal .board-table td:nth-child(1){
    width: 52px;
  }
  #advisoryBoardModal .board-table th:nth-child(2),
  #advisoryBoardModal .board-table td:nth-child(2){
    width: 92px;
  }
  #advisoryBoardModal .board-table th:nth-child(3),
  #advisoryBoardModal .board-table td:nth-child(3){
    width: 38%;
  }
  #advisoryBoardModal .board-avatar{
    width: 64px;
    height: 64px;
  }
}

/* ── Clickable team cards ──────────────────────────────── */
.tg-card--clickable {
	cursor: pointer;
}

/* ── Person Detail Modal (glassmorphism) ──────────────── */

/* override display:none — use visibility+pointer-events for transitions */
#personModal {
	display: flex;
	visibility: hidden;
	pointer-events: none;
}
#personModal.active {
	visibility: visible;
	pointer-events: auto;
}

/* backdrop: blur + fade-in */
#personModal .contact-modal-backdrop {
	background: rgba(0, 0, 0, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	transition: background .35s ease, backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease;
}
#personModal.active .contact-modal-backdrop {
	background: rgba(0, 0, 0, .35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.person-modal-content {
	max-width: 1000px;
	padding: 0;
	overflow: hidden;
	/* glassmorphism */
	background: rgba(255, 255, 255, .72);
	backdrop-filter: blur(20px) saturate(1.4);
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .45);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .18), inset 0 0 0 .5px rgba(255, 255, 255, .25);
	/* open animation */
	opacity: 0;
	transform: scale(.92) translateY(12px);
	transition: opacity .3s cubic-bezier(.4,0,.2,1),
	            transform .3s cubic-bezier(.4,0,.2,1);
}

#personModal.active .person-modal-content {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.person-modal-body {
	display: flex;
	align-items: stretch;
}

.person-modal-photo {
	flex: 0 0 300px;
	background: rgba(241, 245, 249, .6);
}

/* close button — glassmorphism pill */
#personModal .contact-modal-close {
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	background: rgba(255, 255, 255, .55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .4);
	transition: background .2s;
}
#personModal .contact-modal-close:hover {
	background: rgba(255, 255, 255, .85);
}

.person-modal-photo img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	object-position: top;
	display: block;
}

.person-modal-details {
	flex: 1;
	padding: 2.5rem 2rem 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.person-modal-name {
	margin: 0 0 .35rem;
	font-size: 1.3rem;
	font-weight: 800;
	color: #111827;
	line-height: 1.3;
}

.person-modal-role {
	margin: 0 0 1.25rem;
	font-size: .95rem;
	font-weight: 500;
	color: var(--green-600);
	line-height: 1.4;
}

.person-modal-bio {
	text-align: justify;
	font-size: .92rem;
	color: #4b5563;
	line-height: 1.7;
}

@media (max-width: 600px) {
	.person-modal-content {
		max-width: 94vw;
		max-height: 90vh;
		overflow-y: auto;
	}
	.person-modal-body {
		flex-direction: column;
	}
	.person-modal-photo {
		flex: none;
		height: 280px;
	}
	.person-modal-photo img {
		min-height: auto;
		height: 280px;
	}
	.person-modal-details {
		padding: 1.5rem;
	}
	.person-modal-name {
		font-size: 1.1rem;
	}
}

