/* ==========================================================================
   SVES — About sub-pages add-on (Overview · Founder & Legacy · History & Milestones)
   Builds on the theme's sv-* inner-page system (tokens --svb, --svg, … are
   defined in the inline <style id="sves-inner-styles"> block in functions.php).
   Only classes prefixed .sv-ab- live here.
   ========================================================================== */

.sv-ab-list-reset { list-style: none; margin: 0; padding: 0; }
.sv-ab-wrap strong { color: var(--svtx); font-weight: 600; }

/* ── Breadcrumb + About sub-nav bar ─────────────────────────────────────── */
.sv-ab-bar { background: #fff; border-bottom: 1px solid var(--svbr); }
.sv-ab-bar .breadcrumbs { margin: 0; padding: 16px 0 4px; }
.sv-ab-bar .breadcrumbs__link { color: var(--svmu); }
.sv-ab-bar .breadcrumbs__link:hover { color: var(--svb); }
.sv-ab-bar .breadcrumbs__current { color: var(--svtx); }
.sv-ab-bar .breadcrumbs__sep { color: var(--svbr); margin: 0 4px; font-size: 13px; }

.sv-ab-subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.sv-ab-subnav ul::-webkit-scrollbar { display: none; }
.sv-ab-subnav a {
	display: block; white-space: nowrap; padding: 14px 16px 13px;
	font-size: 13.5px; font-weight: 500; color: var(--svmu);
	border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.sv-ab-subnav a:hover { color: var(--svb); }
.sv-ab-subnav a.is-current { color: var(--svb); font-weight: 600; border-bottom-color: var(--svb); }
.sv-ab-subnav a:focus-visible,
.sv-ab-explore-card:focus-visible,
.sv-ab-wrap .sv-btn:focus-visible { outline: 3px solid var(--svg); outline-offset: 2px; }

/* ── Type helpers ───────────────────────────────────────────────────────── */
.sv-ab-lead { font-size: 18px; line-height: 1.75; color: var(--svtx); }
.sv-ab-stack > * + * { margin-top: 14px; }
.sv-ab-stack > .sv-eye + .sv-h2 { margin-top: 0; }
.sv-pbody .sv-ptags { margin-top: 4px; }
.sv-ab-mt { margin-top: 26px; }
.sv-ab-center { text-align: center; }
.sv-ab-center .sv-eye { justify-content: center; }
.sv-ab-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.sv-ab-section-head { max-width: 720px; margin-bottom: 32px; }
.sv-ab-section-head .sv-body { margin-top: 10px; }
.sv-ab-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sv-ab-box-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--svb); margin: 0 0 12px; }
.sv-ab-box-title + * + .sv-ab-box-title { margin-top: 24px; }

/* Stat strip: keep real values in the HTML (no JS counters). */
.sv-strip .sv-stat-n { font-variant-numeric: tabular-nums; }

/* ── Location list (Overview) ───────────────────────────────────────────── */
.sv-ab-locs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-ab-locs li { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; background: #fff; border: 1px solid var(--svbr); border-radius: 8px; font-size: 14px; color: var(--svtx); }
.sv-ab-locs li span { font-size: 12.5px; color: var(--svmu); margin-left: auto; }

/* ── Leadership callout band (Overview) ─────────────────────────────────── */
.sv-ab-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--svl); border-radius: 14px; padding: 30px 34px; }
.sv-ab-callout .sv-la { margin: 0; width: 64px; height: 64px; }
.sv-ab-callout .sv-body { color: var(--svtx); }

/* ── Profiles (Founder & Legacy) ────────────────────────────────────────── */
.sv-ab-profile { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.sv-ab-profile--rev { grid-template-columns: 1fr 320px; }
.sv-ab-profile--rev .sv-ab-portrait { order: 2; }
.sv-ab-portrait { position: sticky; top: 96px; margin: 0; }
.sv-ab-portrait-img { position: relative; border-radius: 14px; overflow: hidden; background: var(--svsu); aspect-ratio: 4 / 5; box-shadow: 0 10px 34px rgba(26, 16, 24, .14); }
.sv-ab-portrait-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.sv-ab-portrait-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--svb), var(--svg)); }
.sv-ab-portrait figcaption { padding: 16px 4px 0; }
.sv-ab-portrait-name { font-size: 16px; font-weight: 600; color: var(--svdk); line-height: 1.35; }
.sv-ab-portrait-role { font-size: 13px; color: var(--svb); font-weight: 500; margin-top: 3px; }
.sv-ab-years { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--svmu); margin: 2px 0 18px; }
.sv-ab-honours { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.sv-ab-honour { display: flex; align-items: center; gap: 10px; background: var(--svgl); border: 1px solid rgba(232, 160, 32, .35); border-radius: 10px; padding: 10px 14px; }
.sv-ab-honour b { font-size: 20px; font-weight: 700; color: #8A5A00; line-height: 1; }
.sv-ab-honour span { font-size: 12.5px; font-weight: 600; color: var(--svtx); line-height: 1.3; }

/* ── Philosophy / pull quote band ───────────────────────────────────────── */
.sv-ab-quote { background: var(--svd); color: #fff; position: relative; overflow: hidden; }
.sv-ab-quote::before { content: '\201C'; position: absolute; left: 50%; top: -40px; transform: translateX(-50%); font-family: var(--serif, 'Alice', serif); font-size: 260px; line-height: 1; color: rgba(255, 255, 255, .06); pointer-events: none; }
.sv-ab-quote figure { position: relative; margin: 0 auto; max-width: 860px; text-align: center; }
.sv-ab-quote-intro { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 18px !important; }
.sv-ab-quote blockquote { margin: 0; }
.sv-ab-quote blockquote p { font-family: var(--serif, 'Alice', serif); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.45; color: #fff; }
.sv-ab-quote figcaption { margin-top: 22px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--svg); font-weight: 600; }

/* ── Focus cards (Founder & Legacy) — extends .sv-wc ────────────────────── */
.sv-ab-focus .sv-wc { display: flex; flex-direction: column; }
.sv-ab-focus .sv-wn { color: var(--svbr); }
.sv-ab-focus .sv-ab-year { align-self: flex-start; margin-top: auto; padding-top: 14px; }
.sv-ab-year { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--svb); background: var(--svl); border-radius: 4px; padding: 4px 9px; }

/* ── Two-generation continuity (Founder & Legacy) ───────────────────────── */
.sv-ab-gen { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; }
.sv-ab-gen-card { background: #fff; border: 1px solid var(--svbr); border-radius: 14px; padding: 30px; position: relative; overflow: hidden; }
.sv-ab-gen-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--svb); }
.sv-ab-gen-card--next::before { background: var(--svg); }
.sv-ab-gen-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--svb); }
.sv-ab-gen-card--next .sv-ab-gen-label { color: #8A5A00; }
.sv-ab-gen-name { font-size: 18px; font-weight: 600; color: var(--svdk); margin: 6px 0 12px; }
.sv-ab-gen-arrow { display: flex; align-items: center; justify-content: center; color: var(--svb); font-size: 26px; }
.sv-ab-closing { margin-top: 30px; padding: 26px 30px; border-radius: 14px; background: var(--svsu); border-left: 4px solid var(--svg); font-size: 17px; line-height: 1.75; color: var(--svtx); font-weight: 500; }

/* ── Phase timeline (History) ───────────────────────────────────────────── */
.sv-ab-tl { position: relative; list-style: none; margin: 0; padding: 0; }
.sv-ab-tl::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(var(--svbr), var(--svb) 50%, var(--svbr)); }
.sv-ab-tl-item { position: relative; width: 50%; padding: 0 44px 34px 0; }
.sv-ab-tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 34px 44px; }
.sv-ab-tl-item::before { content: ''; position: absolute; top: 22px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--svb); box-sizing: border-box; z-index: 1; }
.sv-ab-tl-item:nth-child(even)::before { right: auto; left: -8px; }
.sv-ab-tl-item.is-key::before { background: var(--svg); border-color: var(--svg); box-shadow: 0 0 0 4px var(--svgl); }
.sv-ab-tl-card { background: #fff; border: 1px solid var(--svbr); border-radius: 12px; padding: 20px 22px; transition: border-color .2s, box-shadow .2s; }
.sv-ab-tl-card:hover { border-color: var(--svm); box-shadow: 0 4px 20px rgba(139, 26, 107, .08); }
.sv-ab-tl-card .sv-ab-tl-year { font-size: 26px; font-weight: 700; color: var(--svb); line-height: 1; }
.sv-ab-tl-item.is-key .sv-ab-tl-card .sv-ab-tl-year { color: #8A5A00; }
.sv-ab-tl-title { font-size: 16px; font-weight: 600; color: var(--svdk); margin: 8px 0 8px; line-height: 1.35; }
.sv-ab-tl-card p { font-size: 14px; line-height: 1.7; color: var(--svmu); }
.sv-ab-tl-card p + p { margin-top: 8px; }

/* ── Institutions table (History) ───────────────────────────────────────── */
.sv-ab-table-wrap { border: 1px solid var(--svbr); border-radius: 14px; overflow: hidden; background: #fff; }
.sv-ab-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sv-ab-table caption { text-align: left; padding: 0 0 12px; font-size: 13px; color: var(--svmu); caption-side: bottom; padding: 12px 20px; background: var(--svow); border-top: 1px solid var(--svbr); }
.sv-ab-table thead th { background: var(--svb); color: #fff; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 14px 20px; }
.sv-ab-table tbody th,
.sv-ab-table td { padding: 14px 20px; border-top: 1px solid var(--svbr); vertical-align: top; text-align: left; }
.sv-ab-table tbody tr:nth-child(even) { background: var(--svow); }
.sv-ab-table tbody th { font-weight: 700; color: var(--svb); white-space: nowrap; width: 130px; }
.sv-ab-table td { color: var(--svtx); }
.sv-ab-table td small { display: block; color: var(--svmu); font-size: 12.5px; margin-top: 2px; }
.sv-ab-table td:last-child { color: var(--svmu); white-space: nowrap; }
.sv-ab-table tr.is-key th { color: #8A5A00; }
.sv-ab-table tr.is-key { background: var(--svgl) !important; }

/* ── Convictions list (History founder snapshot) ────────────────────────── */
.sv-ab-convictions { list-style: none; margin: 0; padding: 0; counter-reset: conv; display: grid; gap: 12px; }
.sv-ab-convictions li { counter-increment: conv; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--svbr); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--svtx); }
.sv-ab-convictions li::before { content: counter(conv, decimal-leading-zero); font-size: 18px; font-weight: 700; color: var(--svb); line-height: 1.3; }

/* ── Campus cards (History) ─────────────────────────────────────────────── */
.sv-ab-campus { background: #fff; border: 1px solid var(--svbr); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.sv-ab-campus-head { background: var(--svb); padding: 22px 22px 20px; position: relative; overflow: hidden; }
.sv-ab-campus-head::after { content: ''; position: absolute; right: -24px; bottom: -24px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.sv-ab-campus--bl .sv-ab-campus-head { background: var(--svbl); }
.sv-ab-campus--gr .sv-ab-campus-head { background: var(--svgr); }
.sv-ab-campus--dk .sv-ab-campus-head { background: #2A1240; }
.sv-ab-campus-head h3 { font-size: 19px; font-weight: 700; color: #fff !important; margin: 0 0 4px; }
.sv-ab-campus-loc { font-size: 13px; color: rgba(255, 255, 255, .75); }
.sv-ab-campus-body { padding: 20px 22px 22px; }
.sv-ab-campus-body p { font-size: 13.5px; line-height: 1.65; color: var(--svmu); }
.sv-ab-campus-body ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.sv-ab-campus-body li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--svtx); }
.sv-ab-campus-body li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--svb); }

/* ── Continue exploring ─────────────────────────────────────────────────── */
.sv-ab-explore { background: var(--svow); border-top: 1px solid var(--svbr); }
.sv-ab-explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.sv-ab-explore-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--svbr); border-radius: 12px; padding: 22px 52px 22px 22px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sv-ab-explore-card:hover { border-color: var(--svm); box-shadow: 0 6px 24px rgba(139, 26, 107, .09); transform: translateY(-2px); }
.sv-ab-explore-eye { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--svb); }
.sv-ab-explore-title { font-size: 17px; font-weight: 600; color: var(--svdk); }
.sv-ab-explore-text { font-size: 13.5px; line-height: 1.6; color: var(--svmu); }
.sv-ab-explore-go { position: absolute; right: 20px; top: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--svl); color: var(--svb); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s, color .2s; }
.sv-ab-explore-card:hover .sv-ab-explore-go { background: var(--svb); color: #fff; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.sv-ab-profile,
	.sv-ab-profile--rev { grid-template-columns: 1fr; gap: 28px; }
	.sv-ab-profile--rev .sv-ab-portrait { order: 0; }
	.sv-ab-portrait { position: static; max-width: 300px; }
	.sv-ab-gen { grid-template-columns: 1fr; gap: 0; }
	.sv-ab-gen-arrow { transform: rotate(90deg); height: 48px; }
	.sv-ab-explore-grid { grid-template-columns: 1fr; }
	.sv-ab-callout { grid-template-columns: 1fr; gap: 18px; padding: 26px; }

	.sv-ab-tl::before { left: 7px; margin-left: 0; }
	.sv-ab-tl-item,
	.sv-ab-tl-item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 24px 36px; }
	.sv-ab-tl-item::before,
	.sv-ab-tl-item:nth-child(even)::before { left: 0; right: auto; }
}

@media (max-width: 680px) {
	.sv-ab-lead { font-size: 16px; }
	/* Table → stacked rows */
	.sv-ab-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sv-ab-table tr { display: grid; grid-template-columns: 1fr; padding: 14px 18px; border-top: 1px solid var(--svbr); }
	.sv-ab-table tbody th,
	.sv-ab-table td { display: block; border: 0; padding: 0; width: auto; white-space: normal; }
	.sv-ab-table tbody th { font-size: 12px; letter-spacing: .06em; margin-bottom: 4px; }
	.sv-ab-table td:last-child { font-size: 12.5px; margin-top: 4px; }
	.sv-ab-table td:last-child::before { content: '\1F4CD\00a0'; }
}

@media (prefers-reduced-motion: reduce) {
	.sv-ab-explore-card,
	.sv-ab-tl-card { transition: none; }
	.sv-ab-explore-card:hover { transform: none; }
}

@media print {
	.sv-ab-bar, .sv-ab-explore { display: none; }
	.sv-ab-quote { background: none; color: #000; }
	.sv-ab-quote blockquote p { color: #000; }
}
