/* Greenwood team pages – scoped under .gwt */
.gwt { --green: #214244; --purple: #3E2463; --gold: #8A6A0E; --teal: #2E6E5A; --line: #9DB3A6; font-family: Inter, system-ui, Arial, sans-serif; color: #1E2321; max-width: 1280px; margin: 0 auto 64px; }
.gwt *, .gwt *::before, .gwt *::after { box-sizing: border-box; }
.gwt p, .gwt h2 { margin: 0; }
.gwt-head { background: var(--green); color: #fff; border-bottom: 5px solid #FAC912; border-radius: 20px 20px 0 0; padding: 32px 32px 0; }
.gwt .gwt-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F2D27A; }
.gwt .gwt-h { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; color: #fff; margin-top: 6px; }
.gwt .gwt-sub { font-size: 15px; color: #DDE9E1; margin-top: 6px; }
.gwt-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
.gwt-tabs a { color: #DDE9E1; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 18px; }
.gwt-tabs a:hover { color: #fff; }
.gwt-tabs a.is-active { background: #F6F7F5; color: #1E2321; font-weight: 700; border-radius: 12px 12px 0 0; }
.gwt-body { background: #F6F7F5; border-radius: 0 0 20px 20px; padding: 40px 28px 48px; }

.gwt-chain { display: flex; flex-direction: column; align-items: center; }
.gwt-v { display: block; width: 2px; height: 26px; background: var(--green); margin: 0 auto; }
.gwt-v-s { height: 16px; }
.gwt-v-purple { background: #B7A6CF; }
.gwt-v-gold { background: #D6C58F; }

.gwt-card { background: #fff; border-radius: 16px; border-top: 4px solid var(--green); box-shadow: 0 8px 24px rgba(20,40,30,.10); padding: 20px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; width: 100%; max-width: 290px; margin: 0 auto; }
.gwt-card.gwt-purple { border-top-color: var(--purple); }
.gwt-card.gwt-gold { border-top-color: var(--gold); }
.gwt-card.gwt-teal { border-top-color: var(--teal); }
.gwt-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); border: 1px solid currentColor; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.gwt-teal .gwt-tag { color: var(--teal); }
.gwt img.gwt-ph-lg { width: 96px; height: 116px; object-fit: cover; object-position: 50% 20%; border-radius: 14px; display: block; margin: 0 0 8px; max-width: none; }
.gwt img.gwt-ph-sm { width: 48px; height: 58px; object-fit: cover; object-position: 50% 20%; border-radius: 8px; display: block; flex-shrink: 0; max-width: none; }
.gwt-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; color: #1E2321; }
.gwt-title { display: block; font-size: 13px; line-height: 1.4; color: #4D6157; }
.gwt-row { background: #fff; border: 1px solid #E1E7E3; border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; height: 100%; box-shadow: 0 2px 8px rgba(20,40,30,.06); }
.gwt-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.gwt-row.gwt-gold::before { background: var(--gold); }
.gwt-row .gwt-name { font-size: 14px; }
.gwt-row .gwt-title { font-size: 12.5px; }

/* Academic */
.gwt-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; position: relative; }
.gwt-branches::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--green); }
.gwt-branch { display: flex; flex-direction: column; min-width: 0; }
.gwt-campus { align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; background: #E8F0EB; border: 1px solid #C9D9CF; border-radius: 999px; padding: 8px 18px; }
.gwt-campus strong { font-size: 13px; color: var(--green); }
.gwt-campus span { font-size: 11.5px; color: #4D6157; }
.gwt-teachers { background: #fff; border: 1px solid #D9E3DC; border-radius: 16px; padding: 14px; }
.gwt-teachers-head { display: flex; justify-content: space-between; padding: 0 4px 12px; font-size: 12px; color: #4D6157; }
.gwt-teachers-head span:first-child { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.gwt-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }

/* Admin */
.gwt-agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; position: relative; padding-top: 26px; max-width: 1100px; margin: 0 auto; }
.gwt-agrid::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 2px; background: #D6C58F; }
.gwt-aitem { position: relative; }
.gwt-aitem::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: #D6C58F; }

@media (max-width: 860px) {
	.gwt-head { padding: 24px 18px 0; }
	.gwt-body { padding: 28px 14px 36px; }
	.gwt-branches, .gwt-agrid { grid-template-columns: 1fr; }
	.gwt-branches::before, .gwt-agrid::before, .gwt-aitem::before { display: none; }
	.gwt-agrid { padding-top: 0; gap: 12px; }
}
@media print { .gwt-tabs { display: none; } }
.gwt img.gwt-ph-xl { width: 110px; height: 132px; object-fit: cover; border-radius: 35px; display: block; margin: 10px 0 0; max-width: none; }

/* Team pages: let the chart use the full content width, centred */
.gw-prose:has(.gwt), body.gwt-page .gw-prose { max-width: none !important; }
.gwt { max-width: 1280px; margin: 0 auto 64px; }
.gwt img.gwt-ph-xl, .gwt img.gwt-ph-lg, .gwt img.gwt-ph-sm { object-position: 50% 50%; }
