/**
 * Shared component styles — buttons, cards, section headers, forms,
 * grids, badges. Loaded on every page so new templates (Chapters,
 * Leaders, Events, Opportunities, Projects, Resources, Academy,
 * profiles) stay visually consistent without repeating CSS.
 * Colors come from the CSS variables defined in header.php's :root.
 */
.wcn-section { padding: 90px 0; }
.wcn-section.tight { padding: 60px 0; }
.wcn-section.dark { background: var(--ink); color: var(--white); }
.wcn-section.cream { background: var(--cream); }
.wcn-inner { max-width: 1180px; margin: 0 auto; padding: 0 5vw; }
.wcn-inner.narrow { max-width: 820px; }

.wcn-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); text-align: center; margin-bottom: 10px; }
.wcn-eyebrow.gold { color: var(--gold); }
.wcn-eyebrow.light { color: var(--gold-light); }
.wcn-h2 { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(26px,3.6vw,42px); text-align: center; color: var(--ink); margin-bottom: 14px; }
.wcn-h2.light { color: var(--white); }
.wcn-h2 em { font-style: normal; color: var(--blue); }
.wcn-h2.light em { color: var(--gold-light); }
.wcn-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 44px; line-height: 1.7; font-size: 15px; }
.wcn-sub.light { color: rgba(255,255,255,0.68); }

.wcn-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 7px; font-size: 13px; font-weight: 700; letter-spacing: .02em; border: 2px solid transparent; cursor: pointer; }
.wcn-btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.wcn-btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.wcn-btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.wcn-btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.wcn-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.wcn-btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.wcn-btn-ghost.on-dark { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.9); }
.wcn-btn-ghost.on-dark:hover { border-color: var(--gold); color: var(--gold-light); }
.wcn-btn-sm { padding: 9px 18px; font-size: 12px; }
.wcn-btn:disabled { opacity: .5; cursor: not-allowed; }

.wcn-grid { display: grid; gap: 26px; }
.wcn-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wcn-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wcn-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wcn-grid.auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media screen and (max-width: 980px) { .wcn-grid.cols-3, .wcn-grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media screen and (max-width: 640px) { .wcn-grid.cols-2, .wcn-grid.cols-3, .wcn-grid.cols-4 { grid-template-columns: 1fr; } }

.wcn-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.wcn-card.accent::before { content: ''; display: block; height: 4px; margin: -28px -28px 22px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.wcn-card-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(44,62,140,.08); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.wcn-card-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.wcn-card-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.wcn-card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.wcn-card-photo { aspect-ratio: 4/3; border-radius: 10px; background: var(--cream) center/cover no-repeat; margin-bottom: 16px; }
.wcn-badge { display: inline-block; background: var(--cream); border: 1px solid var(--line); color: var(--blue); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

.wcn-stat { text-align: center; }
.wcn-stat-num { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(32px,4vw,48px); color: var(--gold); line-height: 1; margin-bottom: 8px; }
.wcn-stat-label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wcn-stat.light .wcn-stat-label { color: rgba(255,255,255,0.6); }

.wcn-journey-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; max-width: 1100px; margin: 0 auto; }
.wcn-journey-step { flex: 1 1 130px; text-align: center; padding: 20px 12px; }
.wcn-journey-num { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold-light); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.wcn-journey-label { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.wcn-journey-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.wcn-journey-arrow { align-self: center; color: var(--gold); font-size: 18px; padding: 0 4px; }
@media screen and (max-width: 900px) { .wcn-journey-arrow { display: none; } }

.wcn-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.wcn-form label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; display: block; }
.wcn-form input, .wcn-form select, .wcn-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; background: var(--white); color: var(--ink); }
.wcn-form input:focus, .wcn-form select:focus, .wcn-form textarea:focus { outline: none; border-color: var(--blue); }
.wcn-form-note { font-size: 12px; color: var(--muted); }
.wcn-form-success { background: rgba(44,62,140,.08); border: 1px solid var(--blue); color: var(--blue); padding: 16px; border-radius: 8px; font-size: 14px; }
.wcn-form-error { background: rgba(200,60,60,.08); border: 1px solid #C83C3C; color: #C83C3C; padding: 16px; border-radius: 8px; font-size: 14px; }

.wcn-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.wcn-filter-bar select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 13px; background: var(--white); }

.wcn-empty-state { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }

.wcn-page-hero { padding: 150px 5vw 60px; text-align: center; background: var(--ink); }
.wcn-page-hero .wcn-eyebrow { margin-bottom: 14px; }
.wcn-page-hero h1 { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(28px,4.4vw,48px); color: var(--white); margin-bottom: 14px; }
.wcn-page-hero p { color: rgba(255,255,255,0.65); max-width: 640px; margin: 0 auto; line-height: 1.7; }

.wcn-profile-header { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.wcn-profile-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--cream); overflow: hidden; flex-shrink: 0; }
.wcn-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wcn-profile-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 26px; }
.wcn-profile-meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
.wcn-profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
