/* =====================================================================
   KungfuPu — public.css
   Public-facing frontend only (home / lineage / directory / profile /
   tree). Loaded alongside base.css, which it deliberately overrides for
   full-bleed marketing-site layout (base.css assumes a padded admin
   screen). Never edit admin.css/member.css from here — this file is the
   one meant to be pulled apart again when this same design gets reused
   elsewhere, so it stays self-contained.
   ===================================================================== */

:root {
	--fe-maroon:       #8a1c2b;
	--fe-maroon-dark:  #5c131c;
	--fe-maroon-tint:  #fbe9ec;
	--fe-ink:          #2a2320;
	--fe-muted:        #6b625d;
	--fe-cream:        #faf8f6;
	--fe-line:         #ece6e1;
	--fe-gold:         #b78a2e;
}

.fe-body {
	padding: 0;
	margin: 0;
	background: #fff;
	color: var(--fe-ink);
	font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.fe-body a { color: inherit; text-decoration: none; }

/* --- Shared width container --- */
.fe-section-inner, .fe-topnav-inner, .fe-footer-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Top navigation --- */
.fe-topnav {
	border-bottom: 1px solid var(--fe-line);
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 20;
}
.fe-topnav-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 64px;
}
.fe-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--fe-maroon);
	font-weight: 700;
	flex-shrink: 0;
}
.fe-logo-seal { width: 34px; height: 34px; object-fit: contain; border-radius: 3px; }
.fe-logo-text { font-size: 15px; color: var(--fe-ink); }

.fe-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; flex: 1; }
.fe-nav a { color: var(--fe-ink); padding: 4px 0; border-bottom: 2px solid transparent; }
.fe-nav a:hover { color: var(--fe-maroon); }
.fe-nav a.active { color: var(--fe-maroon); border-bottom-color: var(--fe-maroon); }
.fe-lang-switch { font-weight: 600; }

.fe-search { display: flex; align-items: center; background: var(--fe-cream); border: 1px solid var(--fe-line); border-radius: 20px; padding: 6px 12px; gap: 6px; }
.fe-search input { border: none; background: transparent; outline: none; font-size: 13px; width: 140px; }
.fe-search button { background: none; border: none; color: var(--fe-muted); cursor: pointer; padding: 0; display: flex; }

/* --- Buttons --- */
.fe-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
}
.fe-btn-primary { background: var(--fe-maroon); color: #fff; }
.fe-btn-primary:hover { background: var(--fe-maroon-dark); }
.fe-btn-outline { background: transparent; color: var(--fe-maroon); border-color: var(--fe-maroon); padding: 9px 20px; }
.fe-btn-outline:hover { background: var(--fe-maroon-tint); }
.fe-btn-text { color: var(--fe-ink); font-weight: 600; padding: 11px 4px; }

/* --- Hero --- */
.fe-hero {
	background:
		linear-gradient(160deg, rgba(36,16,18,.72) 0%, rgba(21,10,11,.8) 60%, rgba(14,7,8,.88) 100%),
		url('../images/hero-banner.png') center center / cover no-repeat;
	color: #fff;
	padding: 96px 0;
}
.fe-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; }
.fe-hero-eyebrow {
	display: inline-block;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.25);
	color: #eadfba;
	font-size: 12px;
	letter-spacing: .04em;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 22px;
}
.fe-hero h1 { font-size: 48px; margin: 0 0 16px; font-weight: 700; letter-spacing: .02em; }
.fe-hero-subtitle { font-size: 16px; color: rgba(255,255,255,.78); line-height: 1.7; margin: 0 auto 32px; max-width: 560px; }
.fe-hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.fe-hero .fe-btn-text { color: #fff; }

/* --- Stats band --- */
.fe-stats { background: var(--fe-cream); border-bottom: 1px solid var(--fe-line); }
.fe-stats-inner { max-width: 1120px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.fe-stat-num { font-size: 30px; font-weight: 700; color: var(--fe-maroon); }
.fe-stat-label { font-size: 12px; color: var(--fe-muted); margin-top: 4px; }

/* --- Generic sections --- */
.fe-section { padding: 72px 0; }
.fe-section-alt { background: var(--fe-cream); }
.fe-section-tight { padding: 40px 0; }
.fe-section-title { text-align: center; font-size: 26px; margin: 0 0 10px; position: relative; }
.fe-section-title.fe-bar-heading { padding-left: 14px; border-left: 4px solid var(--fe-maroon); text-align: left; }
.fe-section-subtitle { text-align: center; color: var(--fe-muted); font-size: 14px; margin: 0 0 40px; max-width: 620px; margin-left: auto; margin-right: auto; }
.fe-align-left { text-align: left; margin-left: 0; margin-right: 0; }
.fe-section-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.fe-link-more { color: var(--fe-maroon); font-weight: 600; font-size: 13px; white-space: nowrap; }

.fe-page-header { padding: 48px 0 32px; border-bottom: 1px solid var(--fe-line); }
.fe-page-header h1 { font-size: 30px; margin: 0 0 8px; }
.fe-page-header p { color: var(--fe-muted); margin: 0; font-size: 14px; }

/* --- Card grids --- */
.fe-card-grid { display: grid; gap: 22px; }
.fe-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fe-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fe-card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Mission cards --- */
.fe-mission-card { background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.fe-mission-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--fe-maroon-tint); color: var(--fe-maroon); }
.fe-mission-card h3 { margin: 0 0 8px; font-size: 16px; }
.fe-mission-card p { margin: 0; color: var(--fe-muted); font-size: 13px; line-height: 1.7; }

/* --- Style / school cards --- */
.fe-style-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.fe-style-card-media { height: 130px; }
.fe-style-card-body { padding: 18px 20px; }
.fe-style-card-body h3 { margin: 0 0 4px; font-size: 16px; }
.fe-style-card-en { font-size: 12px; color: var(--fe-muted); margin-bottom: 8px; }
.fe-style-card-body p { margin: 0; font-size: 13px; color: var(--fe-muted); }

/* --- Site-wide search results --- */
.fe-search-group { margin-bottom: 32px; }

/* --- Schools (lineage page, one section per style) --- */
.fe-school-head { margin-bottom: 28px; }
.fe-school-facts { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--fe-muted); margin: 6px 0 12px; }
.fe-school-desc { font-size: 14px; line-height: 1.8; color: var(--fe-ink); max-width: 780px; margin: 0; }

.fe-master-block { padding: 22px 0; border-top: 1px solid var(--fe-line); }
.fe-master-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fe-master-head .fe-person-photo, .fe-master-head .fe-person-avatar { margin: 0; width: 52px; height: 52px; }
.fe-master-head .fe-person-name { font-size: 15px; }

/* --- Lineage cards (lineage page) --- */
.fe-lineage-card { background: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.fe-lineage-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fe-lineage-card-head h3 { margin: 0; font-size: 17px; }
.fe-lineage-card-en { font-size: 12px; color: var(--fe-muted); font-weight: 400; }
.fe-lineage-card-count { color: var(--fe-muted); font-size: 13px; margin: 10px 0 0; }

/* --- Badges --- */
.fe-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.fe-badge-verified { background: #eef6ee; color: #2c7a3d; }
.fe-badge-muted { background: #f1eeec; color: var(--fe-muted); font-weight: 600; }
.fe-badge-floating { position: absolute; top: 10px; right: 10px; }

/* --- Person cards (featured experts strip) --- */
.fe-person-card { background: #fff; border-radius: 8px; padding: 22px 16px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.fe-person-photo, .fe-person-avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; }
.fe-person-avatar { background: var(--fe-maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.fe-person-name { font-weight: 700; font-size: 14px; }
.fe-person-title { font-size: 12px; color: var(--fe-muted); margin-top: 2px; }

/* --- Filters (directory) --- */
.fe-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.fe-filters select, .fe-filters input[type=text] { width: auto; flex: 1; min-width: 180px; }
.fe-results-count { color: var(--fe-muted); font-size: 13px; margin-bottom: 18px; }

/* --- Member cards (directory grid) --- */
.fe-member-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); display: block; }
.fe-member-card-media { position: relative; height: 96px; background: linear-gradient(135deg,#241012,#0e0708); }
.fe-member-card-media img { width: 100%; height: 100%; object-fit: cover; }
.fe-member-card-body { padding: 16px 18px 20px; position: relative; }
.fe-member-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--fe-maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin-top: -44px; border: 3px solid #fff; margin-bottom: 8px; }
.fe-member-name { font-weight: 700; font-size: 15px; }
.fe-member-style { color: var(--fe-maroon); font-size: 12px; margin: 2px 0 10px; }
.fe-member-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--fe-muted); }

/* --- CTA band --- */
.fe-cta { background: var(--fe-maroon); color: #fff; padding: 56px 0; text-align: center; }
.fe-cta h2 { margin: 0 0 10px; font-size: 26px; }
.fe-cta p { margin: 0 0 26px; color: rgba(255,255,255,.85); }
.fe-cta .fe-btn-primary { background: #fff; color: var(--fe-maroon); }
.fe-cta .fe-btn-primary:hover { background: #f2e5e5; }

/* --- Public profile --- */
.fe-profile-card { display: flex; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--fe-line); margin-bottom: 32px; flex-wrap: wrap; }
.fe-profile-photo, .fe-profile-avatar { width: 140px; height: 140px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.fe-profile-avatar { background: var(--fe-maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; }
.fe-profile-info h1 { margin: 8px 0 2px; font-size: 26px; }
.fe-profile-code { color: var(--fe-muted); font-size: 13px; margin-bottom: 16px; }
.fe-profile-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin-bottom: 20px; }
.fe-profile-facts div { font-size: 13px; }
.fe-profile-facts span { display: block; color: var(--fe-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.fe-profile-section { margin-bottom: 32px; }
.fe-profile-section h2 { font-size: 16px; padding-left: 12px; border-left: 3px solid var(--fe-maroon); margin-bottom: 14px; }
.fe-plain-list { list-style: none; padding: 0; margin: 0; }
.fe-plain-list li { padding: 8px 0; border-bottom: 1px solid var(--fe-line); font-size: 14px; }
.fe-bio { font-size: 14px; line-height: 1.9; color: var(--fe-ink); white-space: pre-line; }
.fe-muted { color: var(--fe-muted); font-size: 13px; }

/* --- Public tree wrapper --- */
.fe-tree-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.05); padding: 24px; margin-top: 20px; }

/* --- Empty states --- */
.fe-empty-state { padding: 90px 0; text-align: center; }
.fe-empty-state p { color: var(--fe-muted); margin-bottom: 20px; }

/* --- Footer --- */
.fe-footer { background: #150c0d; color: rgba(255,255,255,.75); border-top: 3px solid var(--fe-maroon); }
.fe-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 24px 28px; }
.fe-footer-brand { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.fe-footer-col p { font-size: 13px; line-height: 1.8; margin: 0 0 14px; }
.fe-footer-tags { display: flex; gap: 8px; }
.fe-footer-tags span { border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); font-size: 11px; padding: 3px 10px; border-radius: 3px; }
.fe-footer-heading { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.fe-footer-col a, .fe-footer-contact-line { display: block; font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,.7); }
.fe-footer-col a:hover { color: #fff; }
.fe-footer-bottom { text-align: center; font-size: 12px; color: rgba(255,255,255,.45); padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.08); }

/* --- Responsive --- */
@media (max-width: 900px) {
	.fe-card-grid-3, .fe-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.fe-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.fe-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.fe-nav { display: none; }
	.fe-search { display: none; }
	.fe-card-grid-2, .fe-card-grid-3, .fe-card-grid-4 { grid-template-columns: 1fr; }
	.fe-hero h1 { font-size: 34px; }
	.fe-profile-card { flex-direction: column; }
}
