/* ============================================================
   Spiritual Team — Public Styles
   ============================================================ */

/* --- Reset / Base --- */
.st-page *, .st-page *::before, .st-page *::after { box-sizing: border-box; }
.st-page { font-family: inherit; color: inherit; }

/* --- Hero --- */
.st-hero {
    position: relative; overflow: hidden;
    background:
      linear-gradient(rgba(30,24,10,0.72), rgba(30,24,10,0.72)),
      url('https://images.unsplash.com/photo-1567591414240-e9c1e59f3b6f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    border: 1px solid #6f5a2d;
    border-radius: 14px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
.st-mandala {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 220px; height: 220px;
    color: #534AB7;
    opacity: 0.06;
    pointer-events: none;
}
.st-hero-eyebrow {
    font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e8d9a8; margin: 0 0 0.5rem;
}
.st-hero-title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 600; color: #fff;
    margin: 0 0 0.5rem; line-height: 1.25;
}
.st-hero-subtitle {
    font-size: 14px; color: #f5f0df;
    max-width: 420px; margin: 0 auto;
    line-height: 1.7;
}
.st-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 1.2rem auto 0; width: fit-content;
}
.st-divider-line { width: 48px; height: 1px; background: rgba(255,255,255,.45); }
.st-divider-sym  { font-size: 16px; color: #f1d27a; }

/* --- Section --- */
.st-section { margin-bottom: 2.5rem; }
.st-section-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 1.25rem;
}
.st-section-icon {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid #e5e5e5;
    background: #f5f4f0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.st-section-icon svg { width: 16px; height: 16px; color: #555; }
.st-section-title {
    font-size: 17px; font-weight: 600;
    color: #1a1a1a; margin: 0;
}
.st-section-rule { flex: 1; height: 1px; background: #e8e5de; }

/* Section icon tints */
.st-icon-founders   { border-color: #AFA9EC; background: #EEEDFE; }
.st-icon-founders   svg { color: #534AB7; }
.st-icon-advisors   { border-color: #5DCAA5; background: #E1F5EE; }
.st-icon-advisors   svg { color: #0F6E56; }
.st-icon-associations { border-color: #EF9F27; background: #FAEEDA; }
.st-icon-associations svg { color: #854F0B; }

/* --- Cards Grid --- */
.st-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

/* --- Person Card --- */
.st-card {
    background: #fff;
    border: 1px solid #e8e5de;
    border-radius: 12px;
    padding: 1.2rem 1rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    display: flex; flex-direction: column; align-items: center;
    font-family: inherit;
    width: 100%;
}
.st-card:hover {
    border-color: #b8b3e8;
    box-shadow: 0 4px 14px rgba(83,74,183,0.08);
    transform: translateY(-2px);
}
.st-card:focus-visible {
    outline: 2px solid #534AB7;
    outline-offset: 2px;
}

/* Card avatar */
.st-card-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}
.st-card-avatar-img img { width: 56px; height: 56px; object-fit: cover; }
.st-init-founders     { background: #EEEDFE; color: #534AB7; }
.st-init-advisors     { background: #E1F5EE; color: #0F6E56; }
.st-init-associations { background: #FAEEDA; color: #854F0B; }

/* Role badge */
.st-role-badge {
    display: inline-block;
    font-size: 10px; letter-spacing: 0.06em;
    padding: 2px 9px; border-radius: 20px;
    margin-bottom: 7px; font-weight: 500;
}
.st-badge-founders     { background: #EEEDFE; color: #534AB7; }
.st-badge-advisors     { background: #E1F5EE; color: #0F6E56; }
.st-badge-associations { background: #FAEEDA; color: #854F0B; }

.st-card-name { font-size: 13px; font-weight: 600; color: #fff; margin: 0 0 3px; }
.st-card-role { font-size: 11px; color: #777; margin: 0; line-height: 1.4; }

/* --- Featured Card --- */
.st-featured-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.st-featured-card {
    background: #faf9f7;
    border: 1px solid #e8e5de;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex; gap: 14px; align-items: center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: left;
    font-family: inherit;
    width: 100%;
}
.st-featured-card:hover {
    border-color: #EF9F27;
    box-shadow: 0 4px 14px rgba(133,79,11,0.08);
}
.st-featured-card:focus-visible { outline: 2px solid #854F0B; outline-offset: 2px; }
.st-featured-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 600; flex-shrink: 0;
    overflow: hidden;
}
.st-featured-avatar img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.st-featured-name  { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 3px; }
.st-featured-role  { font-size: 12px; color: #777; margin: 0 0 5px; }
.st-featured-quote { font-size: 12px; color: #888; font-style: italic; margin: 0; line-height: 1.5; }

/* --- Modal Overlay --- */
.st-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.st-modal-overlay.st-visible { opacity: 1; }

/* --- Modal Box --- */
.st-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(12px);
    transition: transform 0.2s ease;
}
.st-modal-overlay.st-visible .st-modal { transform: translateY(0); }

/* Close button */
.st-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 32px; height: 32px;
    background: #f3f3f3; border: none;
    border-radius: 50%; font-size: 18px; line-height: 1;
    cursor: pointer; color: #444;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.st-modal-close:hover { background: #e5e5e5; }
.st-modal-close:focus-visible { outline: 2px solid #534AB7; }

/* Modal header */
.st-modal-header {
    display: flex; gap: 16px; align-items: center;
    margin-bottom: 1.25rem;
}
.st-modal-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    flex-shrink: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 600;
}
.st-modal-avatar img { width: 80px; height: 80px; object-fit: cover; }
.st-modal-name {
    font-size: 18px; font-weight: 700; color: #1a1a1a;
    margin: 0 0 4px;
}
.st-modal-badge {
    display: inline-block; font-size: 10px; letter-spacing: 0.06em;
    padding: 2px 9px; border-radius: 20px; font-weight: 500;
    margin-bottom: 5px;
}
.st-modal-role { font-size: 13px; color: #666; margin: 0; }

/* Modal body */
.st-modal-body {
    font-size: 14px; color: #444; line-height: 1.75;
    border-top: 1px solid #eee; padding-top: 1rem;
}
.st-modal-body p { margin: 0 0 0.75em; }

/* Modal footer */
.st-modal-footer {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid #eee;
}
.st-modal-meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #555;
}
.st-modal-meta-item svg { width: 15px; height: 15px; flex-shrink: 0; color: #999; }
.st-modal-meta-item a { color: #534AB7; text-decoration: none; }
.st-modal-meta-item a:hover { text-decoration: underline; }

/* --- Dark mode support --- */
@media (prefers-color-scheme: dark) {
    .st-hero { background: #1a1916; border-color: #2e2c27; }
    .st-hero-title { color: #f0ede5; }
    .st-hero-subtitle, .st-hero-eyebrow { color: #aaa; }
    .st-divider-line { background: #333; }
    .st-section-title { color: #f0ede5; }
    .st-section-rule { background: #2e2c27; }
    .st-section-icon { background: #221f1a; border-color: #333; }
    .st-card { background: #1c1a17; border-color: #2e2c27; }
    .st-card:hover { border-color: #534AB7; }
    .st-card-name { color: #f0ede5; }
    .st-card-role { color: #888; }
    .st-featured-card { background: #1a1916; border-color: #2e2c27; }
    .st-featured-name { color: #f0ede5; }
    .st-featured-role, .st-featured-quote { color: #888; }
    .st-modal { background: #1c1a17; }
    .st-modal-name { color: #f0ede5; }
    .st-modal-role { color: #aaa; }
    .st-modal-body { color: #ccc; border-color: #2e2c27; }
    .st-modal-footer { border-color: #2e2c27; }
    .st-modal-close { background: #2e2c27; color: #ccc; }
    .st-modal-close:hover { background: #3a3730; }
}
