/* =========================================================
   KAUST Academy — About family pages (Design A "Pathways")
   About, Learning pathways and Partners. The rules between the "Ported"
   markers were taken from design-a-pathways/styles-about.css (selectors
   with .ab-) by the converter described in DESIGN.md; the glue below them
   maps the WordPress blocks onto the design.
   Loaded on every page except the home page (see functions.php).
   ========================================================= */

/* ---------- Ported: styles-about.css ---------- */
.ab-hero .p-hero-art img { object-position: 22% 50%; }
.ab-hero .container { padding-bottom: 136px; }
.ab-hero h1 { max-width: 720px; }
.ab-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ab-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 700; font-size: 14px; }
.ab-jump a:hover { background: #fff; color: var(--navy); text-decoration: none; }
.ab-jump .ic { width: 16px; height: 16px; }
.facts.ab-facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-stat-fact .fact-v { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin-top: 2px; }
.ab-stat-fact .fact-k { order: 2; margin-top: 6px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.ab-src { font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (max-width: 1100px) {
	.facts.ab-facts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts.ab-facts-4 .fact:nth-child(3) { border-inline-start: 0; }
	.facts.ab-facts-4 .fact:nth-child(4) { border-inline-start: 1px solid var(--line); }
	.facts.ab-facts-4 .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.ab-tabs { margin-top: 48px; }
.ab-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.ab-split .prose { margin-top: 22px; }
@media (max-width: 960px) {
	.ab-split { grid-template-columns: 1fr; gap: 36px; }
}
.ab-pillars { display: grid; gap: 14px; }
.ab-pillar { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ab-pillar .pp-ic { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--bg, var(--blue-50)); color: var(--c, var(--blue)); }
.ab-pillar .pp-ic .ic { width: 23px; height: 23px; }
.ab-pillar h3 { font-size: 17px; }
.ab-pillar p { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.ab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ab-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: inherit; transition: box-shadow .2s, transform .2s; }
.ab-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; }
.ab-card-media { aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.ab-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ab-card:hover .ab-card-media img { transform: scale(1.04); }
.ab-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ab-card-k { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.ab-card h3 { font-size: 20px; line-height: 1.25; }
.ab-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.ab-card ul { display: grid; gap: 6px; margin-top: 2px; }
.ab-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.ab-card li .ic { width: 16px; height: 16px; color: var(--teal-700); margin-top: 2px; }
.ab-card .link-arrow { margin-top: auto; padding-top: 10px; }
@media (max-width: 1000px) {
	.ab-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.ab-cards { grid-template-columns: 1fr; gap: 16px; }
}
.ab-reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.ab-reach-item { border-top: 3px solid var(--c, var(--orange)); padding-top: 18px; }
.ab-reach-item b { display: block; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 900; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.ab-reach-item strong { display: block; color: var(--ink); font-size: 17px; margin-top: 12px; }
.ab-reach-item p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.55; }
@media (max-width: 800px) {
	.ab-reach { grid-template-columns: 1fr; gap: 28px; }
}
.ab-miles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; margin-top: 12px; }
.ab-miles::before { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 23px; height: 2px; background: var(--line); }
.ab-mile { position: relative; padding-inline-end: 22px; }
.ab-mile-dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--c, var(--navy)); color: var(--navy); }
.ab-mile-dot .ic { width: 22px; height: 22px; }
.ab-mile.is-next .ab-mile-dot { border-style: dashed; }
.ab-mile-y { display: block; font-size: 28px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; margin-top: 18px; line-height: 1; }
.ab-mile h3 { font-size: 16.5px; margin-top: 8px; line-height: 1.3; }
.ab-mile ul { margin-top: 10px; display: grid; gap: 8px; }
.ab-mile li { font-size: 14.5px; color: var(--muted); line-height: 1.5; padding-inline-start: 14px; position: relative; }
.ab-mile li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--navy)); }
@media (max-width: 1100px) {
	.ab-miles { grid-template-columns: 1fr; gap: 0; }
	.ab-miles::before { inset-inline-start: 23px; inset-inline-end: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
	.ab-mile { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding: 0 0 28px; }
	.ab-mile-dot { grid-row: span 3; }
	.ab-mile-y { margin-top: 10px; font-size: 24px; }
}
.ab-teaser .ab-card-media { aspect-ratio: 16 / 8; }
.ab-teaser-cover { height: 100%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(7, 166, 170, .45), transparent 55%), var(--navy); }
.ab-teaser-cover .ic { width: 56px; height: 56px; }
.ab-teaser-cover b { font-size: 40px; font-weight: 900; letter-spacing: -.02em; }
.ab-cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.ab-cta::after { content: ""; position: absolute; inset-inline-end: 2%; top: -40px; width: 300px; height: 460px; z-index: -1; background: url(assets/img/beacon.png) no-repeat center / contain; opacity: .08; }
.ab-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 64px; flex-wrap: wrap; }
.ab-cta h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -.02em; }
.ab-cta p { color: rgba(255, 255, 255, .82); margin-top: 10px; max-width: 560px; }
.ab-cta p a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ab-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
	.ab-cta-actions { width: 100%; }
	.ab-cta-actions .btn { flex: 1 1 100%; }
}
.ab-partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ab-partner { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.ab-wordmark { min-height: 118px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 24px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--navy); }
.ab-wordmark small { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.ab-wordmark span { font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin-top: 3px; }
.ab-wordmark.serif span { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
.ab-partner-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ab-partner-body .ab-card-k { color: var(--teal-700); }
.ab-partner-body p { color: var(--text); font-size: 15px; line-height: 1.6; }
.ab-partner blockquote { margin: 0; padding: 14px 16px; border-inline-start: 3px solid var(--orange); background: var(--orange-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.ab-partner blockquote cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.ab-partner .link-arrow { margin-top: auto; padding-top: 4px; font-size: 15px; }
@media (max-width: 1000px) {
	.ab-partner-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.ab-partner-grid { grid-template-columns: 1fr; }
}
.ab-photo-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 280px; gap: 12px; margin-top: 32px; }
.ab-photo-strip figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ab-photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.ab-photo-strip figcaption { position: absolute; inset-inline-start: 10px; bottom: 10px; background: rgba(0, 26, 54, .82); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 6px; }
@media (max-width: 640px) {
	.ab-photo-strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
	.ab-photo-strip figure:first-child { grid-column: 1 / -1; grid-row: span 1; height: 220px; }
}
.ab-wordmark.long span { font-size: 21px; }
.ab-unis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 0 48px; counter-reset: u; }
.ab-unis li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.ab-unis li::before { counter-increment: u; content: counter(u); font-weight: 900; color: var(--muted); font-size: 14px; }
.ab-unis b { color: var(--ink); font-weight: 800; }
.ab-unis span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
	.ab-unis { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
.ab-media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ab-media-split.flip > :first-child { order: 2; }
.ab-media-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); position: relative; }
.ab-media-img img { width: 100%; height: 100%; object-fit: cover; }
.ab-media-img figcaption { position: absolute; inset-inline-start: 14px; bottom: 14px; background: rgba(0, 26, 54, .82); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 6px; }
.ab-ways { display: grid; gap: 12px; margin-top: 26px; }
.ab-way { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ab-way .pp-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); }
.ab-way h3 { font-size: 16.5px; }
.ab-way p { font-size: 14.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.ab-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.ab-note .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--blue); }
.ab-media-split .btn { margin-top: 22px; }
@media (max-width: 960px) {
	.ab-media-split { grid-template-columns: 1fr; gap: 28px; }
	.ab-media-split.flip > :first-child { order: 0; }
}
.ab-form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.ab-form-aside p { color: var(--muted); margin-top: 14px; }
.ab-contact { margin-top: 24px; display: grid; gap: 12px; }
.ab-contact div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ab-contact .ic { color: var(--blue); margin-top: 2px; }
.ab-contact strong { display: block; color: var(--ink); }
.ab-form { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: #fff; box-shadow: var(--shadow); }
.ab-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ab-field { display: flex; flex-direction: column; gap: 6px; }
.ab-field.full { grid-column: 1 / -1; }
.ab-field label, .ab-field legend { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.ab-field .req { color: var(--orange-ink); }
.ab-field input, .ab-field select, .ab-field textarea { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; }
.ab-field select { appearance: none; background: #fff var(--chev) no-repeat right 14px center / 16px; padding-inline-end: 40px; }
.ab-field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.ab-field input:focus, .ab-field select:focus, .ab-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17, 88, 158, .16); }
.ab-field.has-error input, .ab-field.has-error select, .ab-field.has-error textarea { border-color: #C0392B; }
.ab-err { display: none; font-size: 13.5px; color: #B0281A; font-weight: 700; }
.ab-field.has-error .ab-err { display: block; }
fieldset.ab-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.ab-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-check { position: relative; }
.ab-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ab-check span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer; background: #fff; user-select: none; }
.ab-check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #9AA6B6; flex: none; background: #fff; }
.ab-check input:checked + span { border-color: var(--navy); background: var(--blue-50); color: var(--navy); }
.ab-check input:checked + span::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 11px; border-color: var(--navy); }
.ab-check input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.ab-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.ab-form-foot p { font-size: 13.5px; color: var(--muted); max-width: 380px; }
.ab-success { text-align: center; padding: 28px 8px 8px; }
.ab-success .e-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--teal-50); color: var(--teal-700); }
.ab-success .e-ic .ic { width: 30px; height: 30px; }
.ab-success h3 { font-size: 22px; }
.ab-success p { color: var(--muted); margin: 10px auto 22px; max-width: 440px; }
@media (max-width: 960px) {
	.ab-form-wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
	.ab-form { padding: 22px 18px; }
	.ab-form-grid { grid-template-columns: 1fr; }
	.ab-form-foot .btn { width: 100%; }
}
.ab-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.ab-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ab-meta .ic { width: 16px; height: 16px; }
.ab-meta a { color: #fff; font-weight: 800; }
.ab-kpis { position: relative; z-index: 2; margin-top: -56px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.ab-kpi { padding: 24px 22px; border-inline-start: 1px solid var(--line); }
.ab-kpi:first-child { border-inline-start: 0; }
.ab-kpi-label { font-size: 14px; color: var(--muted); font-weight: 700; line-height: 1.4; min-height: 2.8em; }
.ab-kpi-value { font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 900; color: var(--ink); letter-spacing: -.02em; line-height: 1; margin-top: 10px; }
.ab-kpi-delta { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--teal-700); display: inline-flex; align-items: center; gap: 5px; }
.ab-kpi-delta .ic { width: 15px; height: 15px; }
.ab-kpi-sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) {
	.ab-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ab-kpi:nth-child(4) { border-inline-start: 0; }
	.ab-kpi:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
	.ab-kpis { grid-template-columns: 1fr 1fr; margin-top: -40px; }
	.ab-kpi { padding: 18px 16px; }
	.ab-kpi:nth-child(n) { border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); }
	.ab-kpi:nth-child(odd) { border-inline-start: 0; }
	.ab-kpi:nth-child(-n + 2) { border-top: 0; }
	.ab-kpi-label { min-height: 0; font-size: 13px; }
}
.ab-viz-section { padding-block: 72px 0; }
.ab-viz-section:last-of-type { padding-bottom: 96px; }
.ab-viz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.ab-viz-head .lede { max-width: 680px; margin-top: 10px; font-size: 16.5px; }
.ab-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ab-grid-2 .viz-card + .viz-card { margin-top: 0; }
.ab-grid-2 + .viz-card { margin-top: 20px; }
@media (max-width: 1000px) {
	.ab-grid-2 { grid-template-columns: 1fr; }
}
.ab-callout-num { display: flex; gap: 18px; align-items: center; margin-top: 18px; padding: 16px 20px; border-radius: var(--radius); background: var(--blue-50); }
.ab-callout-num b { font-size: 32px; font-weight: 900; color: var(--navy); letter-spacing: -.02em; line-height: 1; flex: none; }
.ab-callout-num span { color: var(--text); font-size: 15px; line-height: 1.5; }
.ab-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ab-rung { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.ab-rung:nth-child(1) { margin-top: 96px; }
.ab-rung:nth-child(2) { margin-top: 64px; }
.ab-rung:nth-child(3) { margin-top: 32px; }
.ab-rung-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); position: relative; }
.ab-rung-media img { width: 100%; height: 100%; object-fit: cover; }
.ab-rung-media .ab-rung-n { position: absolute; inset-inline-start: 12px; top: 12px; background: #fff; color: var(--navy); font-weight: 900; font-size: 13px; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.ab-rung-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 5px solid var(--c, var(--navy)); }
.ab-rung-k { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ab-rung h3 { font-size: 20px; }
.ab-rung p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.ab-rung ul { display: grid; gap: 0; margin-top: 6px; }
.ab-rung li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); font-weight: 800; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.ab-rung li a:hover { color: var(--blue); text-decoration: none; }
.ab-rung li .status { font-size: 11.5px; padding: 3px 9px; flex: none; }
.ab-ladder-foot { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 20px; border-radius: var(--radius); background: var(--blue-50); color: var(--text); font-size: 15px; }
.ab-ladder-foot .ic { color: var(--blue); }
@media (max-width: 1100px) {
	.ab-ladder { grid-template-columns: 1fr 1fr; align-items: stretch; }
	.ab-rung:nth-child(n) { margin-top: 0; }
}
@media (max-width: 640px) {
	.ab-ladder { grid-template-columns: 1fr; }
}
.ab-rules { display: grid; gap: 14px; position: sticky; top: calc(var(--masthead-h) + 76px); }
.ab-rules h3 { font-size: 18px; }
.ab-rule { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.ab-rule .pp-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg, var(--blue-50)); color: var(--c, var(--blue)); }
.ab-rule .pp-ic .ic { width: 20px; height: 20px; }
.ab-rule strong { display: block; color: var(--ink); font-size: 15.5px; }
.ab-rule p { font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.ab-stage-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
@media (max-width: 1024px) {
	.ab-stage-layout { grid-template-columns: 1fr; gap: 32px; }
	.ab-rules { position: static; }
}
.ab-certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.ab-cert { padding: 24px 22px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; position: relative; }
.ab-cert:first-child { border-inline-start: 0; }
.ab-cert-stack { display: flex; gap: 4px; }
.ab-cert-stack i { height: 8px; flex: 1; border-radius: 4px; background: var(--line-2); }
.ab-cert-stack i.on { background: var(--c, var(--navy)); }
.ab-cert .ic-wrap { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--c); }
.ab-cert .ic-wrap .ic { width: 24px; height: 24px; }
.ab-cert-k { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ab-cert h3 { font-size: 17.5px; line-height: 1.3; }
.ab-cert p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 1000px) {
	.ab-certs { grid-template-columns: 1fr 1fr; }
	.ab-cert:nth-child(3) { border-inline-start: 0; }
	.ab-cert:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
	.ab-certs { grid-template-columns: 1fr; }
	.ab-cert:nth-child(n) { border-inline-start: 0; }
	.ab-cert:nth-child(n + 2) { border-top: 1px solid var(--line); }
}
.ab-compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; font-size: 15px; }
.ab-compare th, .ab-compare td { padding: 18px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.ab-compare thead th { background: var(--surface); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding-block: 14px; }
.ab-compare tbody tr:last-child > * { border-bottom: 0; }
.ab-compare tbody th { width: 22%; }
.ab-compare tbody th a { font-weight: 900; color: var(--ink); font-size: 16px; line-height: 1.3; display: block; }
.ab-compare tbody th a:hover { color: var(--blue); }
.ab-compare tbody th small { display: block; font-weight: 700; color: var(--muted); font-size: 13px; margin-top: 4px; }
.ab-compare td { color: var(--text); line-height: 1.55; }
.ab-compare td .status { margin-bottom: 6px; }
.ab-compare td small { display: block; color: var(--muted); font-size: 13.5px; }
.ab-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-inline-end: 8px; vertical-align: 1px; }
@media (max-width: 900px) {
	.ab-compare, .ab-compare tbody, .ab-compare tr, .ab-compare th, .ab-compare td { display: block; width: 100%; }
	.ab-compare { border: 0; background: none; border-radius: 0; overflow: visible; }
	.ab-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ab-compare tbody tr { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
	.ab-compare tbody th { width: 100%; background: var(--surface); }
	.ab-compare td { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
	.ab-compare td::before { content: attr(data-k); grid-row: 1 / span 2; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--muted); padding-top: 2px; }
	.ab-compare td > * { grid-column: 2; }
	.ab-compare td .status { justify-self: start; margin-bottom: 0; }
	.ab-compare tbody tr > *:last-child { border-bottom: 0; }
}
.ab-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.ab-picker-q { padding: 32px; border-inline-end: 1px solid var(--line); display: grid; gap: 26px; align-content: start; }
.ab-picker-q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ab-picker-q legend { font-weight: 900; color: var(--ink); font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.ab-picker-q legend b { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-size: 13px; }
.ab-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-opt { position: relative; }
.ab-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ab-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 800; font-size: 14.5px; color: var(--text); cursor: pointer; background: #fff; }
.ab-opt span .ic { width: 17px; height: 17px; color: var(--muted); }
.ab-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.ab-opt input:checked + span .ic { color: var(--yellow); }
.ab-opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.ab-picker-a { padding: 32px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.ab-picker-a .ab-card-k { color: var(--muted); }
.ab-reco { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.ab-reco-media { background: var(--navy); min-height: 150px; }
.ab-reco-media img { width: 100%; height: 100%; object-fit: cover; }
.ab-reco-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ab-reco-body h3 { font-size: 18px; line-height: 1.3; }
.ab-reco-body h3 a { color: var(--ink); }
.ab-reco-body p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.ab-reco-body .status { align-self: flex-start; }
.ab-also { font-size: 14.5px; color: var(--muted); }
#ab-reco .ab-also { margin-top: 12px; }
.ab-also a { font-weight: 800; }
@media (max-width: 900px) {
	.ab-picker { grid-template-columns: 1fr; }
	.ab-picker-q { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
	.ab-picker-q, .ab-picker-a { padding: 22px 18px; }
	.ab-reco { grid-template-columns: 1fr; }
	.ab-reco-media { min-height: 0; aspect-ratio: 16 / 8; }
}
.ab-section { padding-block: 88px; }
.ab-section.tight-top { padding-top: 56px; }
@media (max-width: 768px) {
	.ab-section { padding-block: 60px; }
	.ab-section.tight-top { padding-top: 40px; }
}

/* ---------- End of ported rules ---------- */

[dir="rtl"] .ab-field select { background-position: left 14px center; }

/* Heroes are ordinary blocks (class ka-own-hero): the picture is an Image block. */
.p-hero-art .wp-block-image, .p-hero-art .wp-block-image img { block-size: 100%; margin: 0; }
.p-hero .breadcrumb { margin: 0; }
.p-hero .p-hero-tags .tag { margin: 0; }
.p-hero-actions.wp-block-buttons { gap: 12px; }
.facts-row .ab-src { margin-block-start: 14px; }
.fact .fact-ic { display: contents; }

/* Lists made with the List block keep the design's own markers only. */
:where(.ab-mile, .ab-card-body, .ab-rung-body) ul.wp-block-list { list-style: none; padding: 0; }

/* Cards that are one link: the link is on the heading. */
.ab-card { position: relative; }
.ab-card h3 a { color: var(--ink); }
.ab-card h3 a::after { content: ""; inset: 0; position: absolute; }
.ab-card h3 a:hover { color: var(--blue); text-decoration: none; }
.ab-card:focus-within { box-shadow: 0 0 0 3px var(--orange); }
.ab-card-media .wp-block-image { block-size: 100%; margin: 0; }
.ab-card-body .ab-ticks { display: grid; gap: 6px; margin-block-start: 14px; }
.ab-card-body .ab-ticks li { color: var(--ink); font-size: 14.5px; font-weight: 600; padding-inline-start: 24px; position: relative; }
.ab-card-body .ab-ticks li::before { color: var(--teal-700, #05696C); content: "✓"; font-weight: 900; inset-inline-start: 0; position: absolute; }
.ab-card-body .link-arrow { margin-block-start: auto; padding-block-start: 16px; }

/* Colour per item (the prototype sets these inline). */
.ab-pillar:nth-child(4n + 1), .ab-rule:nth-child(4n + 1) { --c: #11589E; --bg: #E6EEF8; }
.ab-pillar:nth-child(4n + 2), .ab-rule:nth-child(4n + 2) { --c: #05696C; --bg: #E3F5F5; }
.ab-pillar:nth-child(4n + 3), .ab-rule:nth-child(4n + 3) { --c: #8A4B00; --bg: #FEF5EA; }
.ab-pillar:nth-child(4n + 4), .ab-rule:nth-child(4n + 4) { --c: #0B3A6B; --bg: #EEF1F5; }
.ab-way:nth-child(3n + 1) { --c: #11589E; --bg: #E6EEF8; }
.ab-way:nth-child(3n + 2) { --c: #05696C; --bg: #E3F5F5; }
.ab-way:nth-child(3n + 3) { --c: #8A4B00; --bg: #FEF5EA; }
.ab-reach-item:nth-child(3n + 1) { --c: #F09021; }
.ab-reach-item:nth-child(3n + 2) { --c: #07A6AA; }
.ab-reach-item:nth-child(3n + 3) { --c: #11589E; }
.ab-mile:nth-child(5n + 1) { --c: #11589E; }
.ab-mile:nth-child(5n + 2) { --c: #E8831A; }
.ab-mile:nth-child(5n + 3) { --c: #079A9E; }
.ab-mile:nth-child(5n + 4) { --c: #7B5CC4; }
.ab-mile:nth-child(5n + 5) { --c: #F09021; }
.ab-cert:nth-child(4n + 1) { --c: #F09021; --bg: #FEF5EA; }
.ab-cert:nth-child(4n + 2) { --c: #C99200; --bg: #FDF6E0; }
.ab-cert:nth-child(4n + 3) { --c: #8E9015; --bg: #F5F5DC; }
.ab-cert:nth-child(4n + 4) { --c: #05696C; --bg: #E3F5F5; }
:is(.ab-pillar, .ab-way, .ab-rule) h3 { color: var(--ink); font-size: 16px; line-height: 1.3; }
:is(.ab-pillar, .ab-way, .ab-rule) p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-block-start: 4px; }
:is(.ab-pillar, .ab-way, .ab-rule) .pp-ic .ic { block-size: 20px; inline-size: 20px; }

/* Paragraphs where the prototype has inline elements. */
.ab-reach-item .ab-reach-n { color: var(--ink); display: block; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.ab-reach-item p strong { color: var(--ink); display: block; font-size: 17px; margin-block-start: 12px; }
.ab-reach-item p:has(strong) { margin: 0; }
.ab-mile-y { color: var(--ink); font-size: 26px; font-weight: 900; }
.ab-teaser-cover strong { font-size: 40px; font-weight: 900; letter-spacing: -.02em; }
.ab-teaser-cover.ka-icon-tile { display: grid; }
.ab-teaser-cover.ka-icon-tile .ic { block-size: 56px; inline-size: 56px; }
p.ab-teaser-cover { margin: 0; }
.ab-wordmark .ab-wm-small { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; margin: 0; text-transform: uppercase; }
.ab-wordmark .ab-wm-name { color: var(--ink); font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin: 3px 0 0; }
.ab-wordmark.serif .ab-wm-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
.ab-wordmark.long .ab-wm-name { font-size: 21px; }
:lang(ar) .ab-wordmark .ab-wm-small { letter-spacing: 0; }
.ab-cert-stack { display: flex; gap: 4px; margin: 0 0 14px; }
.ab-cert-stack :is(b, i) { background: var(--line-2); block-size: 8px; border-radius: 4px; flex: 1; font-size: 0; overflow: hidden; }
.ab-cert-stack b { background: var(--c, var(--navy)); }
.ab-jump p { margin: 0; }
.ab-contact-line { align-items: flex-start; display: flex; font-size: 15px; gap: 12px; margin-block-start: 24px; }
.ab-contact-line .ic { color: var(--blue); flex: none; margin-block-start: 2px; }

/* Quotes: the Quote block in the design's quote card / partner cards. */
.quote-block .wp-block-quote, .ab-partner-body .wp-block-quote { border: 0; margin: 0; padding: 0; }
.quote-block .wp-block-quote p { color: #fff; font-size: 19px; font-weight: 700; line-height: 1.5; }
.quote-block .wp-block-quote cite { color: rgba(255, 255, 255, .8); display: block; font-size: 14px; font-style: normal; margin-block-start: 18px; }
.quote-block .wp-block-quote cite strong { color: #fff; display: block; font-size: 15.5px; }
.ab-partner-body .wp-block-quote { border-inline-start: 3px solid var(--orange); margin-block: 14px; padding-inline-start: 14px; }
.ab-partner-body .wp-block-quote p { color: var(--ink); font-size: 15px; font-style: italic; line-height: 1.55; }
.ab-partner-body .wp-block-quote cite { color: var(--muted); display: block; font-size: 13px; font-style: normal; margin-block-start: 6px; }
/* Quotes with the speaker's portrait (global.css .quote-person). */
.quote-block .quote-person .wp-block-quote cite { margin-block-start: 0; }
.quote-block .quote-person__photo img { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.ab-partner-body .quote-person { background: var(--orange-50); border-end-end-radius: var(--radius-sm); border-inline-start: 3px solid var(--orange); border-start-end-radius: var(--radius-sm); margin-block: 14px; padding: 14px 16px; }
.ab-partner-body .quote-person .wp-block-quote cite { margin-block-start: 0; }
.ab-partner-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .ab-partner-grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* Pathways: the ladder's links and the start picker's button. */
.ab-rung-body ul a { align-items: center; color: var(--ink); display: flex; flex-wrap: wrap; font-weight: 700; gap: 6px 10px; justify-content: space-between; }
.ab-rung-body h3 a { color: inherit; }
.ab-picker-q > .btn { justify-self: start; margin-block-start: 8px; }
.ab-picker { grid-template-columns: minmax(0, 1fr); }
.ab-picker-q { display: grid; gap: 22px; }
.tl-card .stair-cert .ic { flex: none; }
.ab-split .link-arrow { margin-block-start: 18px; }
/* The section tabs span the page like the sections (the post content is a constrained layout). */
.ka-page-wide .wp-block-post-content > .tabs { margin-inline: 0 !important; max-inline-size: none !important; }
.ab-media-split .lede { margin-block-start: 14px; }
.ab-media-split .ab-ways + .wp-block-buttons { margin-block-start: 22px; }
/* Figures like "76%+" keep their reading order in Arabic. */
[dir="rtl"] :is(.ab-stat-fact .fact-v, .ab-reach-n, .ab-teaser-cover strong, .md-head-stats strong) { direction: ltr; text-align: right; unicode-bidi: isolate; }
.fact-v { overflow-wrap: anywhere; }

/* Our team (block ka/team): the three leaders side by side (photo, name,
   role, the bio's first paragraph, the rest on demand), then the team grid. */
.ka-team { display: grid; gap: 28px; margin-block-start: 32px; }
.ka-team ul { list-style: none; margin: 0; padding: 0; }
.ka-team-lead { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ka-team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.ka-team-card--lead { display: flex; flex-direction: column; }
.ka-team-media { aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.ka-team-card--lead .ka-team-media { aspect-ratio: 1 / 1; }
.ka-team-media img { block-size: 100%; display: block; inline-size: 100%; object-fit: cover; object-position: center 25%; }
.ka-team-body { padding: 20px 22px 22px; }
.ka-team-card--lead .ka-team-body { padding: 22px 24px 24px; }
.ka-team-name { color: var(--ink); font-size: 18.5px; line-height: 1.3; margin: 0; }
.ka-team-card--lead .ka-team-name { font-size: 21px; }
.ka-team-role { color: var(--teal-700); font-size: 14.5px; font-weight: 700; line-height: 1.4; margin-block: 6px 0; }
.ka-team-bio p { color: var(--text); font-size: 15px; line-height: 1.65; margin-block: 12px 0; }
.ka-team-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ka-team-more { margin-block-start: 12px; }
.ka-team-more summary { align-items: center; color: var(--navy); cursor: pointer; display: inline-flex; font-size: 14.5px; font-weight: 800; gap: 6px; list-style: none; }
.ka-team-more summary::-webkit-details-marker { display: none; }
.ka-team-more summary::after { background: var(--chev) no-repeat center / 14px; block-size: 14px; content: ""; inline-size: 14px; transition: transform .2s; }
.ka-team-more[open] summary::after { transform: rotate(180deg); }
.ka-team-more summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
/* No photo yet: the member's initials. */
.ka-team-initials { align-items: center; background: var(--blue-50); block-size: 100%; color: var(--navy); display: flex; font-size: 40px; font-weight: 900; justify-content: center; letter-spacing: .04em; opacity: .85; }
.ka-team-soon { color: var(--muted); font-size: 14px; font-weight: 600; margin-block: 12px 0; }
@media (max-width: 1000px) {
	.ka-team-lead { gap: 16px; }
	.ka-team-card--lead .ka-team-body { padding: 18px; }
	.ka-team-card--lead .ka-team-bio p { font-size: 14.5px; }
}
@media (max-width: 760px) {
	/* Phones: the leaders one under the other, photo beside the text. */
	.ka-team-lead { grid-template-columns: minmax(0, 1fr); }
	.ka-team-card--lead { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
	.ka-team-card--lead .ka-team-media { aspect-ratio: auto; min-block-size: 165px; }
	.ka-team-card--lead .ka-team-body { padding: 16px 18px 18px; }
	.ka-team-card--lead .ka-team-name { font-size: 18.5px; }
}

/* Partners (block ka/partners): logo cards; "kingdom" and "sponsors" are a logo wall. */
.ka-pt { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); list-style: none; margin: 32px 0 0; padding: 0; }
.ka-pt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.ka-pt-logo { align-items: center; background: #fff; block-size: 124px; border-block-end: 1px solid var(--line); display: flex; justify-content: center; padding: 22px 26px; }
.ka-pt-img { block-size: auto; inline-size: auto; max-block-size: 76px; max-inline-size: 100%; object-fit: contain; }
.ka-pt .ka-pt-logo .ka-pt-word { color: var(--navy); font-size: 19px; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; margin: 0; text-align: center; }
.ka-pt-body { padding: 16px 20px 20px; }
.ka-pt-name { color: var(--ink); font-size: 16.5px; line-height: 1.35; margin: 0; }
.ka-pt-note { color: var(--teal-700); font-size: 14px; font-weight: 700; line-height: 1.45; margin: 6px 0 0; }
.ka-pt-courses { display: grid; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.ka-pt-courses li { color: var(--text); font-size: 14.5px; line-height: 1.45; padding-inline-start: 16px; position: relative; }
.ka-pt-courses li::before { background: var(--teal); block-size: 6px; border-radius: 50%; content: ""; inline-size: 6px; inset-block-start: .58em; inset-inline-start: 2px; position: absolute; }
.ka-pt--trained { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ka-pt--wall { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.ka-pt--wall .ka-pt-card { box-shadow: none; }
.ka-pt--wall .ka-pt-logo { block-size: 108px; border-block-end: 0; padding: 20px 20px 8px; }
.ka-pt--wall .ka-pt-img { max-block-size: 64px; }
.ka-pt--wall .ka-pt-body { padding: 6px 14px 16px; text-align: center; }
.ka-pt--wall .ka-pt-name { color: var(--text); font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.ka-pt--wall .ka-pt-note { font-size: 13px; margin-block-start: 4px; }
@media (max-width: 760px) {
	.ka-pt { gap: 12px; margin-block-start: 24px; }
	.ka-pt--wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ka-pt--wall .ka-pt-logo { block-size: 92px; padding: 16px 14px 6px; }
	.ka-pt--wall .ka-pt-img { max-block-size: 54px; }
	.ka-pt:not(.ka-pt--wall) { grid-template-columns: minmax(0, 1fr); }
	.ka-pt:not(.ka-pt--wall) .ka-pt-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
	.ka-pt:not(.ka-pt--wall) .ka-pt-logo { block-size: auto; border-block-end: 0; border-inline-end: 1px solid var(--line); min-block-size: 96px; padding: 14px; }
	.ka-pt:not(.ka-pt--wall) .ka-pt-img { max-block-size: 52px; }
	.ka-pt .ka-pt-logo .ka-pt-word { font-size: 15px; }
	.ka-pt-body { padding: 14px 16px 16px; }
}
