/* ─────────────────────────────────────────────────────────────────────────────
   About page (template-parts/page-about.php) — design system layout.
   ───────────────────────────────────────────────────────────────────────────── */

.sxa { display: block; background: #fff; color: var(--sx-ink); font-family: var(--sx-font-body); }
.sxa *, .sxa *::before, .sxa *::after { box-sizing: border-box; }
.sxa ul, .sxa ol { margin: 0; padding: 0; list-style: none; }
.sxa li { margin: 0; }

.sxa-section { padding: clamp(56px, 7vw, 96px) 0; }
.sxa-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 44px); }
.sxa-head--center { margin-inline: auto; text-align: center; }
.sxa .sxa-h2 { margin: 0 0 14px; color: var(--sx-ink); font-size: clamp(30px, 3.4vw, 46px); }
.sxa .sxa-h3 { margin: 0 0 12px; font-family: var(--sx-font-title); font-size: 26px; font-weight: 400; color: var(--sx-ink); }
.sxa-lead { color: var(--sx-muted); font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.6; }
.sxa-lead p { margin: 0 0 10px; }

.sxa-prose { color: var(--sx-muted); font-size: 16.5px; line-height: 1.7; }
.sxa-prose p { margin: 0 0 14px; }
.sxa-prose p:last-child { margin-bottom: 0; }
.sxa-prose strong, .sxa-prose b { color: var(--sx-ink); }
.sxa-prose a { color: var(--sx-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sxa-prose ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }

.sxa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.sxa-actions--center { justify-content: center; }
.sxa-actions .sx-btn { height: 52px; font-size: 16px; }
.sxa-actions .sx-btn--main { padding: 0 15px 0 26px; font-weight: 700; }
.sxa-actions .sx-btn--ghost { padding: 0 24px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.sxa-hero { position: relative; isolation: isolate; padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 7vw, 96px); background: var(--sx-canvas); }
.sxa-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }

.sxa-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; color: var(--sx-muted); font-size: 13.5px; }
.sxa-crumbs a { color: var(--sx-muted) !important; text-decoration: none !important; }
.sxa-crumbs a:hover { color: var(--sx-brand) !important; }
.sxa-crumbs [aria-current] { color: var(--sx-ink); font-weight: 600; }

.sxa .sxa-hero__title { margin: 0 0 18px; color: var(--sx-ink); font-size: clamp(44px, 6vw, 88px); }
.sxa-hero__lead { max-width: 640px; margin: 0; color: var(--sx-muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }
.sxa-hero .sxa-actions { justify-content: center; margin-top: 32px; }

/* ── Intro rows ──────────────────────────────────────────────────────────── */

.sxa-intro__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sxa-intro__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--sx-ink); }
.sxa-intro__lead p { color: var(--sx-ink); }
.sxa-intro__cards { display: grid; gap: 14px; }

.sxa-note { position: relative; padding: 22px 24px 22px 28px; border-radius: var(--sx-radius); background: var(--sx-canvas); }
.sxa-note::before { content: ''; position: absolute; top: 22px; bottom: 22px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--sx-brand); }
.sxa-note--2::before { background: #9cab12; }
.sxa-note--3::before { background: var(--sx-brand-deep); }
.sxa-note .sxa-prose { font-size: 15.5px; }
.sxa .sxa-note__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--sx-ink); }

/* ── Results (stat rings) ────────────────────────────────────────────────── */

.sxa-results { background: var(--sx-canvas); }
.sxa-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sxa-stat__inner { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px 28px 30px; }
.sxa-stat__num { font-family: var(--sx-font-title); font-size: clamp(54px, 5vw, 72px); line-height: 1; color: var(--sx-ink); }
.sxa-stat--1 .sxa-stat__num { color: var(--sx-brand); }
.sxa-stat--3 .sxa-stat__num { color: var(--sx-brand-deep); }
.sxa-stat__label { color: var(--sx-muted); font-size: 16px; line-height: 1.5; }
.sxa-results__text { max-width: 820px; margin: 32px auto 0; text-align: center; }

/* ── Story timeline ──────────────────────────────────────────────────────── */

.sxa-timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 8px 0 clamp(36px, 5vw, 56px) !important; counter-reset: none; }
.sxa-timeline::before { content: ''; position: absolute; top: 19px; left: 20px; right: calc((100% - 64px) / 5 - 20px); height: 2px; background: linear-gradient(90deg, var(--sx-brand), var(--sx-lime)); }
.sxa-milestone { position: relative; display: flex; flex-direction: column; gap: 14px; }

.sxa-milestone__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--sx-brand-deep);
    color: #fff;
    font-family: var(--sx-font-title);
    font-size: 17px;
    box-shadow: 0 0 0 1px var(--sx-line);
}

.sxa-milestone:last-child .sxa-milestone__num { background: var(--sx-lime); color: var(--sx-brand-deep); }
.sxa-milestone__card { flex: 1; padding: 18px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); background: #fff; }
.sxa-milestone__logo { display: flex; align-items: center; height: 40px; margin-bottom: 12px; }
.sxa-milestone__logo img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.sxa-milestone__date { margin: 0 0 6px; color: var(--sx-brand); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sxa-milestone__text { color: var(--sx-ink); font-size: 14.5px; line-height: 1.5; }
.sxa-milestone__text p { margin: 0; }
.sxa-story__main { max-width: 820px; }

/* ── Values ──────────────────────────────────────────────────────────────── */

.sxa-values { background: var(--sx-canvas); }
.sxa-values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sxa-value { padding: 30px 28px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(35, 28, 80, .05), 0 24px 48px -36px rgba(35, 28, 80, .35); }
.sxa-value__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; background: var(--sx-tint); color: var(--sx-brand-deep); }
.sxa-value__svg { width: 26px; height: 26px; }
.sxa .sxa-value__title { margin: 0 0 10px; font-family: var(--sx-font-title); font-size: 24px; font-weight: 400; line-height: 1.15; color: var(--sx-ink); }
.sxa-value__text { font-size: 15.5px; }

/* ── Team ────────────────────────────────────────────────────────────────── */

.sxa-team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.sxa-member {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sx-line);
    border-radius: 22px;
    background: #fff;
    transition: transform .3s var(--sx-ease), box-shadow .3s ease;
}

.sxa-member:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(35, 28, 80, .55); }
.sxa-member__photo { aspect-ratio: 4 / 5; overflow: hidden; padding-top: 9%; background: radial-gradient(70% 60% at 50% 62%, #fff 0%, var(--sx-tint) 100%); }
.sxa-member__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sxa-member__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 18px; }
.sxa .sxa-member__name { margin: 0; font-family: var(--sx-font-title); font-size: 22px; font-weight: 400; line-height: 1.15; color: var(--sx-ink); }
.sxa-member__desc { color: var(--sx-muted); font-size: 14px; line-height: 1.55; }
.sxa-member__desc p { margin: 0 0 6px; }
.sxa-member__links { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }

.sxa .sxt-badge {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sx-tint);
    color: var(--sx-brand-deep) !important;
    transition: background-color .2s ease, color .2s ease;
}

.sxa .sxt-badge:hover { background: var(--sx-brand-deep); color: #fff !important; }
.sxa-team .sxa-actions { margin-top: 40px; }

/* Collapsed team: first row only (about-2026.js adds .is-collapsed). */
.sxa-team__grid.is-collapsed .sxa-member:nth-child(n+5) { display: none; }
.sxa-team__grid:not(.is-collapsed) .sxa-member:nth-child(n+5) { animation: sxa-in .45s var(--sx-ease) both; }

@keyframes sxa-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sxa-more { display: flex; justify-content: center; margin-top: 28px; }

.sxa-more__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 12px 0 24px;
    border: 1.5px solid var(--sx-line);
    border-radius: 999px;
    background: #fff;
    color: var(--sx-ink);
    font: inherit;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sxa-more__btn[hidden] { display: none; }
.sxa-more__btn:hover { border-color: var(--sx-brand); box-shadow: 0 12px 24px -18px rgba(35, 28, 80, .5); }
.sxa-more__btn:focus-visible { outline: 3px solid var(--sx-lime); outline-offset: 3px; }

.sxa-more__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sx-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%232f2753' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
    transition: transform .25s var(--sx-ease), background-color .2s ease;
}

.sxa-more__btn:hover .sxa-more__icon { background-color: var(--sx-lime); }
.sxa-more__btn[aria-expanded="true"] .sxa-more__icon { transform: rotate(180deg); }

/* ── Join (tutor recruitment) ────────────────────────────────────────────── */

.sxa-join { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--sx-radius-lg); background: radial-gradient(120% 140% at 0% 0%, #6d5fae 0%, var(--sx-brand-mid) 35%, var(--sx-brand-deep) 100%); color: #fff; }
.sxa-join .sx-eyebrow { color: var(--sx-lime); }
.sxa-join .sxa-h2 { color: #fff !important; }
.sxa-join .sxa-prose { color: rgba(255, 255, 255, .82); }
.sxa-join .sxa-prose strong, .sxa-join .sxa-prose a { color: #fff; }
.sxa-join__media img { display: block; width: 100%; height: auto; border-radius: 22px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .sxa-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sxa-team__grid.is-collapsed .sxa-member:nth-child(4) { display: none; }
    .sxa-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sxa-timeline::before { display: none; }
}

@media (max-width: 900px) {
    .sxa-intro__grid, .sxa-join { grid-template-columns: minmax(0, 1fr); }
    .sxa-stats, .sxa-values__grid { grid-template-columns: minmax(0, 1fr); }
    .sxa-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sxa-team__grid.is-collapsed .sxa-member:nth-child(4) { display: flex; }
}

@media (max-width: 640px) {
    .sxa-timeline { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .sxa-milestone { flex-direction: row; align-items: flex-start; }
    .sxa-team__grid { gap: 12px; }
    .sxa-member__body { padding: 14px; }
    .sxa .sxa-member__name { font-size: 19px; }
    .sxa-member__desc { font-size: 13px; }
    .sxa-actions .sx-btn { width: 100%; justify-content: center; }
    .sxa-actions .sx-btn--main { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .sxa * { transition: none !important; }
}

/* Team member names link to their author archive when set. */
.sxa-member__name a { color: var(--sx-ink) !important; text-decoration: none !important; transition: color .2s ease; }
.sxa-member__name a:hover { color: var(--sx-brand) !important; }
