/* Africa Policy Institute — single job detail page */
.api-job-detail-wrapper {
    --api-job-forest: #12352b;
    --api-job-forest-deep: #0b261f;
    --api-job-gold: #d9b875;
    --api-job-ink: #1b2924;
    --api-job-muted: #617069;
    --api-job-line: #e2e9e4;
    --api-job-soft: #f5f8f5;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 64px;
    color: var(--api-job-ink);
    font-size: 16px;
    line-height: 1.7;
}
.api-job-detail-wrapper * { box-sizing: border-box; }
.api-job-detail-wrapper a { text-underline-offset: 3px; }
.api-job-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; color: var(--api-job-muted); font-size: 13px; }
.api-job-breadcrumbs a { color: var(--api-job-forest); font-weight: 700; text-decoration: none; }
.api-job-detail { overflow: hidden; border: 1px solid var(--api-job-line); border-radius: 18px; background: #fff; box-shadow: 0 14px 42px rgba(18,53,43,.07); }
.api-job-detail-hero { position: relative; padding: clamp(28px, 5vw, 58px); color: #fff; background: radial-gradient(circle at 88% 10%, rgba(217,184,117,.18), transparent 31%), linear-gradient(135deg, var(--api-job-forest), var(--api-job-forest-deep)); }
.api-job-detail-brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.api-job-detail-brand-mark { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(217,184,117,.8); border-radius: 10px; color: var(--api-job-gold); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.api-job-detail-brandline strong, .api-job-detail-brandline small { display: block; }
.api-job-detail-brandline strong { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.api-job-detail-brandline small { margin-top: 2px; color: var(--api-job-gold); font-size: 12px; }
.api-job-detail-eyebrow { margin: 0 0 10px; color: var(--api-job-gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.api-job-detail-wrapper .api-job-detail-title { max-width: 900px; margin: 0 0 12px; color: #fff; font-size: clamp(30px, 4.2vw, 48px); font-weight: 750; line-height: 1.12; letter-spacing: -.035em; }
.api-job-detail-employer { margin: 0; color: rgba(255,255,255,.88); font-size: 17px; font-weight: 600; }
.api-job-detail-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 24px; }
.api-job-detail-hero-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; background: rgba(255,255,255,.07); font-size: 13px; }
.api-job-detail-hero-meta span span { padding: 0; border: 0; background: transparent; color: var(--api-job-gold); font-size: 16px; }
.api-job-apply-button, .api-job-courses-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--api-job-gold); border-radius: 9px; color: var(--api-job-forest-deep) !important; background: var(--api-job-gold); font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none !important; transition: transform .18s ease, filter .18s ease; }
.api-job-apply-button:hover, .api-job-courses-button:hover { transform: translateY(-1px); filter: brightness(.97); }
.api-job-detail-hero .api-job-apply-button { margin-top: 2px; }
.api-job-detail-disclaimer { margin: 16px 0 0; color: rgba(255,255,255,.7); font-size: 12px; }
.api-job-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(26px, 4vw, 48px); padding: clamp(22px, 4vw, 44px); align-items: start; }
.api-job-detail-main { min-width: 0; }
.api-job-detail-section { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--api-job-line); scroll-margin-top: 30px; }
.api-job-detail-section:last-child { margin-bottom: 0; }
.api-job-detail-wrapper .api-job-detail-section h2, .api-job-detail-wrapper .api-job-sidebar-card h2 { margin: 0 0 15px; color: var(--api-job-forest); font-size: 23px; font-weight: 750; line-height: 1.25; }
.api-job-about-section { padding: 22px 24px; border: 1px solid #e6eee7; border-left: 4px solid var(--api-job-gold); border-radius: 10px; background: var(--api-job-soft); }
.api-job-detail-section p { margin-top: 0; }
.api-job-description, .api-job-application { overflow-wrap: anywhere; }
.api-job-description > :first-child, .api-job-application > :first-child { margin-top: 0; }
.api-job-description h2, .api-job-description h3, .api-job-description h4, .api-job-application h2, .api-job-application h3 { margin: 24px 0 10px; color: var(--api-job-forest); line-height: 1.3; }
.api-job-description ul, .api-job-description ol, .api-job-application ul, .api-job-application ol { padding-left: 1.4em; }
.api-job-description li, .api-job-application li { margin: 0 0 7px; }
.api-job-description a, .api-job-application a { color: #155c45; font-weight: 650; overflow-wrap: anywhere; }
.api-job-detail-sidebar { display: grid; gap: 18px; }
.api-job-sidebar-card { padding: 22px; border: 1px solid var(--api-job-line); border-radius: 13px; background: #fff; }
.api-job-overview-card { background: #fbfcfb; }
.api-job-detail-wrapper .api-job-sidebar-card h2 { margin-bottom: 18px; font-size: 19px; }
.api-job-overview-item { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--api-job-line); }
.api-job-overview-item:first-of-type { padding-top: 0; }
.api-job-overview-item span { color: var(--api-job-muted); font-size: 12px; }
.api-job-overview-item strong { color: var(--api-job-ink); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.api-job-sidebar-apply { display: flex; width: 100%; margin-top: 18px; }
.api-job-courses-card { border-color: #dfe9e1; background: linear-gradient(155deg, #f4f8f3, #fff); }
.api-job-courses-kicker { display: block; margin-bottom: 9px; color: #7b622b; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.api-job-detail-wrapper .api-job-courses-card h2 { margin-bottom: 10px; font-size: 21px; }
.api-job-courses-card p { margin: 0 0 17px; color: var(--api-job-muted); font-size: 14px; }
.api-job-courses-button { width: 100%; padding: 11px 12px; border-color: var(--api-job-forest); color: #fff !important; background: var(--api-job-forest); }
.api-job-source-card p { margin: 0 0 12px; color: var(--api-job-muted); font-size: 13px; }
.api-job-source-card > a { color: var(--api-job-forest); font-size: 13px; font-weight: 750; }
.api-job-detail-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px clamp(22px, 4vw, 44px); border-top: 1px solid var(--api-job-line); background: #fbfcfb; }
.api-job-detail-footer .api-jobs-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 15px; border-radius: 8px; color: #fff; background: var(--api-job-forest); font-weight: 700; text-decoration: none; }
.api-job-original-link { color: var(--api-job-forest); font-size: 13px; font-weight: 700; }
.api-job-detail-wrapper .api-jobs-empty { padding: 32px; border: 1px solid var(--api-job-line); border-radius: 12px; background: #fff; }
@media (max-width: 900px) { .api-job-detail-layout { grid-template-columns: minmax(0, 1fr); } .api-job-detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .api-job-overview-card { grid-row: span 2; } }
@media (max-width: 620px) { .api-job-detail-wrapper { padding: 14px 12px 38px; } .api-job-detail { border-radius: 12px; } .api-job-detail-hero { padding: 26px 20px; } .api-job-detail-brandline { margin-bottom: 26px; } .api-job-detail-wrapper .api-job-detail-title { font-size: 31px; } .api-job-detail-employer { font-size: 15px; } .api-job-detail-hero-meta { align-items: flex-start; flex-direction: column; } .api-job-detail-layout { padding: 24px 18px; } .api-job-detail-wrapper .api-job-detail-section h2 { font-size: 21px; } .api-job-detail-sidebar { grid-template-columns: minmax(0, 1fr); } .api-job-overview-card { grid-row: auto; } .api-job-detail-footer { align-items: stretch; flex-direction: column; padding: 18px; } .api-job-detail-footer .api-jobs-button { width: 100%; } }
