/* content pages. Owned by the content surface group; shared components live in ../app.css.
   About, pricing (hub, members, institutional, enterprise), contact, terms,
   privacy, insights list + article, the sign-in page, and ORCID connect. */

/* ---- Shared type ---- */
.c-display {
    font-size: clamp(2.5rem, 1.5rem + 3.3vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.022em;
}
.c-title {
    font-size: clamp(2.1rem, 1.5rem + 2vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.018em;
}
.c-lede {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--c-ink-2);
}
@media (min-width: 640px) { .c-lede { font-size: 1.1875rem; } }

.c-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--c-ink-3);
}
.c-crumb a { color: var(--c-ink-2); font-weight: 500; }
.c-crumb a:hover { color: var(--c-primary); }
.c-crumb i { font-size: 1rem; color: var(--c-ink-3); }

.c-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
    background: var(--c-surface);
}

/* Short supporting points under a hero: a ruled colophon, not icon cards. */
.c-points {
    display: grid;
    gap: 1rem 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-line);
}
@media (min-width: 640px) { .c-points:not(.c-points-stack) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.c-points li { display: flex; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.55; color: var(--c-ink-2); }
.c-points i { flex: none; margin-top: 0.1rem; font-size: 1.15rem; color: var(--c-primary); }
.c-points-stack { gap: 1.1rem; }

/* Definition rows: term on the left, prose on the right. */
.c-rows > div {
    display: grid;
    gap: 0.5rem 2rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--c-line);
}
.c-rows > div:last-child { border-bottom: 1px solid var(--c-line); }
@media (min-width: 640px) { .c-rows > div { grid-template-columns: 13rem minmax(0, 1fr); } }
.c-rows dt {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--c-ink);
}
.c-rows dd { font-size: 1.0625rem; line-height: 1.7; color: var(--c-ink-2); }

/* Compact term list. */
.c-terms > div { padding: 0.95rem 0; border-top: 1px solid var(--c-line); }
.c-terms > div:last-child { border-bottom: 1px solid var(--c-line); }
.c-terms dt { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--c-ink); }
.c-terms dt i { font-size: 1.1rem; color: var(--c-primary); }
.c-terms dd { margin-top: 0.3rem; font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); }
.c-terms-icons dd { padding-left: 1.7rem; }

.c-checks { display: grid; gap: 0.55rem; }
.c-checks li { display: flex; gap: 0.6rem; font-size: 0.9375rem; line-height: 1.5; color: var(--c-ink-2); }
.c-checks i { flex: none; margin-top: 0.12rem; font-size: 1.05rem; color: var(--c-primary); }
.c-checks li.is-extra i { color: var(--c-ink-3); }
.c-checks strong { font-weight: 600; color: var(--c-ink); }


/* ---- Member plans ---- */
/* Stacked on mobile, a snap slider from md, all five plans in one row on
   wide screens (the arrow/dot bar then hides itself). */
@media (min-width: 768px) {
    #plans .pricing-slider-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding: 0.25rem 0.125rem 1rem;
    }
    .pricing-slider-track::-webkit-scrollbar { display: none; }
    .pricing-slider-track > article { width: 300px; flex: none; scroll-snap-align: start; }
}
@media (min-width: 1280px) {
    .pricing-slider-track > article { width: calc(20% - 1.2rem); }
}
.c-plan {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--c-line);
    border-radius: 0.75rem;
    background: var(--c-raised);
}
.c-plan { transition: border-color 0.15s ease; }
.c-plan:hover { border-color: var(--c-primary); }
.c-plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 600; color: var(--c-ink); }
.c-plan-desc { margin-top: 0.5rem; min-height: 3em; font-size: 0.875rem; line-height: 1.5; color: var(--c-ink-2); }
.c-plan-price { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 1.5rem; }
.c-plan-amount {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    font-variant-numeric: tabular-nums;
}
.c-plan-per { font-size: 0.875rem; color: var(--c-ink-3); }
.c-plan-list { flex: 1; margin-top: 1.25rem; }
.c-plan-list li { font-size: 0.875rem; }
.c-plan-cta { margin-top: 1.75rem; width: 100%; }

.c-plans-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--c-line-strong);
    border-radius: 999px;
    background: var(--c-raised);
    color: var(--c-ink-2);
}
.c-plans-arrow:hover { border-color: var(--c-primary); color: var(--c-primary); }
.c-plans-arrow:disabled { cursor: default; border-color: var(--c-line); color: var(--c-ink-3); opacity: 0.6; }



/* Tables */
.c-table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: 0.75rem; background: var(--c-raised); }
.c-table { min-width: 36rem; }
.c-table thead th { font-size: 0.8125rem; color: var(--c-ink-2); vertical-align: bottom; padding: 0.75rem 1rem; }
.c-table thead th span { display: block; margin-top: 0.15rem; font-size: 0.75rem; font-weight: 400; color: var(--c-ink-3); }
.c-table tbody th {
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-ink);
    background: transparent;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--c-line);
    vertical-align: top;
}
.c-table td { padding: 0.9rem 1rem; color: var(--c-ink-2); vertical-align: top; }
.c-table tbody tr:last-child > * { border-bottom: 0; }
.c-table .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-table .is-strong { font-weight: 600; color: var(--c-ink); }
.c-plans-table { min-width: 54rem; }
/* Monthly / yearly price labels, switched by the period buttons above. */
.c-table .c-period { display: inline; margin: 0; font: inherit; color: inherit; }
.c-table .c-period[hidden] { display: none; }
.c-table .c-was { margin-right: 0.375rem; font-weight: 400; color: var(--c-ink-3); text-decoration-thickness: 1px; }
/* Room for the yearly price (struck-out full year + price) so the columns
   do not jump when the period changes. */
@media (min-width: 768px) { .c-plans-table :is(th, td):last-child { width: 13rem; } }
.c-period-switch button { display: inline-flex; align-items: center; gap: 0.5rem; }
.c-period-switch button:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.c-period-switch .chip { height: 1.375rem; padding: 0 0.4375rem; font-weight: 600; }
/* Phones: each plan stacks as a block (name and price, best fit, then the
   two quotas with their column names), so nothing scrolls sideways. */
@media (max-width: 767px) {
    .c-table-wrap:has(.c-plans-table) { overflow: visible; }
    .c-plans-table { min-width: 0; }
    .c-plans-table, .c-plans-table tbody, .c-plans-table tr, .c-plans-table th, .c-plans-table td { display: block; }
    .c-plans-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .c-plans-table tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 1rem 1.125rem; border-bottom: 1px solid var(--c-line); }
    .c-plans-table tbody tr:last-child { border-bottom: 0; }
    .c-plans-table tbody tr > * { padding: 0; border: 0; }
    .c-plans-table tbody th { grid-column: 1; grid-row: 1; font-size: 1rem; }
    .c-plans-table tbody td:last-child { grid-column: 2; grid-row: 1; font-size: 1rem; }
    .c-plans-table tbody td:nth-of-type(1) { grid-column: 1 / -1; margin: 0.25rem 0 0.625rem; }
    .c-plans-table tbody td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
    .c-plans-table tbody td[data-label]::before { content: attr(data-label); font-weight: 400; color: var(--c-ink-3); }
}

/* ---- Pricing heroes: the homepage pattern. Institutional art is the Africa
   map (pricing-art): pale land, links in forest, campus hubs in gold. ---- */
.pricing-art { position: relative; margin: 0; pointer-events: none; }
.pricing-art .africa-map { max-height: 32rem; }
.pricing-art .africa-map path { fill: #e6efe9; transition: none; }
.pricing-art[data-art="institutional"] .africa-map path:is([data-country="South Africa"], [data-country="Nigeria"], [data-country="Kenya"], [data-country="Egypt"], [data-country="Morocco"]) { fill: #c2e0cd; }
.pricing-art-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pricing-art-overlay path { fill: none; stroke-linecap: round; }
.pricing-art .pa-links path { stroke: #23805a; stroke-width: 1.6; stroke-opacity: 0.7; }
.pricing-art .pa-spokes path { stroke: #55a57c; stroke-width: 1.1; stroke-opacity: 0.75; }
.pricing-art .pa-node { fill: #0D5F43; stroke: #fff; stroke-width: 2; }
.pricing-art .pa-hub { fill: #FFB707; stroke: #fff; stroke-width: 3; }
.pricing-art .pa-pulse { fill: #FFB707; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pa-pulse 2.8s var(--ease-out) infinite; }
.pricing-art .pa-pulse:nth-of-type(2n) { animation-delay: 1.4s; }
@keyframes pa-pulse { 0% { opacity: 0.45; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@media (prefers-reduced-motion: reduce) { .pricing-art .pa-pulse { animation: none; } }
html.dark .pricing-art .africa-map path { fill: #1d2a24; }
html.dark .pricing-art[data-art="institutional"] .africa-map path:is([data-country="South Africa"], [data-country="Nigeria"], [data-country="Kenya"], [data-country="Egypt"], [data-country="Morocco"]) { fill: #235c43; }
html.dark .pricing-art .pa-links path { stroke: #5fae86; }
html.dark .pricing-art .pa-spokes path { stroke: #3d9068; }
html.dark .pricing-art .pa-node { fill: #5fae86; stroke: var(--c-bg); }
html.dark .pricing-art .pa-hub { stroke: var(--c-bg); }
/* /pricing hero illustration (pricing-illustration): flat brand colours,
   restyled for dark mode; the two floating cards drift gently. */
.pr-il { margin: 0; }
.pr-il svg { display: block; width: 100%; height: auto; max-height: 32rem; margin: 0 auto; }
.pr-il .il-bg { fill: #e8f3ec; }
.pr-il .il-dot { fill: #b9dfca; }
.pr-il .il-card { fill: #fff; }
.pr-il .il-ink { fill: #0D5F43; }
.pr-il .il-line { fill: #e1e5e2; }
.pr-il .il-line-2 { fill: #b9dfca; }
.pr-il .il-soft { fill: #f1f8f4; }
.pr-il .il-stroke { stroke: #0D5F43; }
.pr-il .il-chip { fill: #fff0c2; }
.pr-il .il-chip-ink { fill: #a87400; }
.pr-il .il-gold { fill: #FFB707; }
.pr-il .il-gold-2 { fill: #db9b00; }
.pr-il .il-wrap-dot { fill: #0D5F43; }
.pr-il .il-chair { fill: #0B5039; }
.pr-il .il-shirt { fill: #c45d36; }
.pr-il .il-shirt-2 { fill: #a5421c; }
.pr-il .il-skin { fill: #8a5534; }
.pr-il .il-skin-2 { fill: #74452a; }
.pr-il .il-eye { fill: #141a16; }
.pr-il .il-glasses { fill: #fff; fill-opacity: 0.18; stroke: #141a16; }
.pr-il .il-glasses-line { stroke: #141a16; }
.pr-il .il-laptop { fill: #dfe5e1; }
.pr-il .il-laptop-base { fill: #c9d0cb; }
.pr-il .il-desk { fill: #0D5F43; }
.pr-il .il-desk-2 { fill: #09412f; }
.pr-il .il-pot { fill: #c45d36; }
.pr-il .il-leaf { fill: #4fa57b; }
.pr-il .il-leaf-2 { fill: #23805a; }
.pr-il .il-steam { stroke: #b9dfca; }
.pr-il .il-mug { fill: #fff; stroke: #c9d0cb; stroke-width: 2; }
.pr-il .il-mug-line { stroke: #c9d0cb; }
.pr-il .il-book-1 { fill: #23805a; }
.pr-il .il-book-2 { fill: #FFB707; }
.pr-il .il-book-3 { fill: #a5421c; }
.pr-il .il-float { animation: pr-il-float 6s ease-in-out infinite; }
.pr-il .il-float-2 { animation-delay: -3s; }
@keyframes pr-il-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .pr-il .il-float { animation: none; } }
html.dark .pr-il .il-bg { fill: #16201b; }
html.dark .pr-il .il-dot { fill: #235c43; }
html.dark .pr-il .il-card { fill: #1e2722; }
html.dark .pr-il .il-ink { fill: #6dbb93; }
html.dark .pr-il .il-line { fill: #303b36; }
html.dark .pr-il .il-line-2 { fill: #2c7655; }
html.dark .pr-il .il-soft { fill: #18201c; }
html.dark .pr-il .il-stroke { stroke: #6dbb93; }
html.dark .pr-il .il-chip { fill: #3a2f10; }
html.dark .pr-il .il-chip-ink { fill: #FFB707; }
html.dark .pr-il .il-laptop { fill: #c9d0cb; }
html.dark .pr-il .il-mug { fill: #e1e5e2; stroke: #97a19b; }
html.dark .pr-il .il-mug-line { stroke: #97a19b; }
html.dark .pr-il .il-steam { stroke: #2c7655; }

/* Three facts under the institutional hero, in a row on desktop. */
.pricing-facts { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 768px) { .pricing-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pricing-facts dt { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--c-ink); }
.pricing-facts dt i { font-size: 1.15rem; color: var(--c-primary); }
.pricing-facts dd { margin-top: 0.375rem; padding-left: 1.75rem; font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); }

/* ---- Contact ---- */
.c-contact > div { padding: 1.1rem 0; border-top: 1px solid var(--c-line); }
.c-contact > div:last-child { border-bottom: 1px solid var(--c-line); }
.c-contact dt { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; font-weight: 600; color: var(--c-ink); }
.c-contact dt i { font-size: 1.05rem; color: var(--c-primary); }
.c-contact dd { margin-top: 0.3rem; padding-left: 1.65rem; font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); }

/* Fields */
.c-label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 500; color: var(--c-ink); }
.c-field {
    display: block;
    width: 100%;
    height: 2.75rem;
    padding: 0 0.875rem;
    border: 1px solid var(--c-line-strong);
    border-radius: 0.5rem;
    background: var(--c-raised);
    color: var(--c-ink);
    font-size: 0.9375rem;
}
textarea.c-field { height: auto; min-height: 9rem; padding: 0.75rem 0.875rem; line-height: 1.55; resize: vertical; }
.c-field::placeholder { color: var(--c-ink-3); }
.c-field.otp-single { height: 3.25rem; font-size: 1.35rem; letter-spacing: 0.45em; text-align: center; font-variant-numeric: tabular-nums; }

.c-status {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}
.c-status.hidden { display: none; }
.c-status i { margin-top: 0.1rem; font-size: 1rem; }
.c-status-ok { background: var(--c-primary-soft); color: #09412f; }
.c-status-error { background: #fef3f2; color: #912018; border: 1px solid #fecdca; }
html.dark .c-status-ok { color: #8fd1ad; }
html.dark .c-status-error { background: #2a1518; border-color: #5f2430; color: #fca5a5; }

/* ---- Terms + privacy ---- */
.legal-toc h2 { font-size: 0.875rem; font-weight: 600; color: var(--c-ink); }
.legal-toc ol { margin-top: 0.75rem; border-left: 1px solid var(--c-line); }
.legal-toc a {
    display: block;
    margin-left: -1px;
    padding: 0.35rem 0 0.35rem 0.875rem;
    border-left: 1px solid transparent;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--c-ink-2);
}
.legal-toc a:hover { color: var(--c-ink); border-left-color: var(--c-primary); }
@media (max-width: 1023px) {
    .legal-toc { padding-bottom: 1.5rem; border-bottom: 1px solid var(--c-line); }
}
@media (min-width: 1024px) {
    .legal-toc { position: sticky; top: calc(var(--site-bar-h) + 2rem); align-self: start; }
}
.legal-doc section { scroll-margin-top: calc(var(--site-bar-h) + 1.5rem); }
.legal-doc section + section { margin-top: 2.75rem; }
.legal-doc h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--c-ink);
}
.legal-doc p { margin-top: 0.875rem; font-size: 1.0625rem; line-height: 1.75; color: var(--c-ink-2); }
.legal-doc strong { font-weight: 600; color: var(--c-ink); }

/* ---- Insights list ---- */
.insight-search {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 2.875rem;
    border: 1px solid var(--c-line);
    border-radius: 0.375rem;
    background: var(--c-raised);
}
.insight-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: var(--c-ink-3); pointer-events: none; }
#insightsSearch {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    padding: 0 0.75rem 0 2.75rem;
    font-size: 0.9375rem;
    color: var(--c-ink);
}
#insightsSearch::placeholder { color: var(--c-ink-3); }
#insightsSearch::-webkit-search-decoration,
#insightsSearch::-webkit-search-cancel-button,
#insightsSearch::-webkit-search-results-button,
#insightsSearch::-webkit-search-results-decoration { -webkit-appearance: none; }
.insight-search-clear { display: inline-flex; align-items: center; padding: 0 0.9rem; font-size: 1.1rem; color: var(--c-ink-3); }
.insight-search-clear:hover { color: var(--c-ink); }

.insight-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.insight-topics a {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    padding: 0 0.875rem;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-ink-2);
    white-space: nowrap;
}
.insight-topics a:hover { border-color: var(--c-line-strong); color: var(--c-ink); }
.insight-topics a[aria-current="page"] { border-color: #0D5F43; background: #0D5F43; color: #fff; }
html.dark .insight-topics a[aria-current="page"] { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary-hover); }

.insight-grid { display: grid; gap: 3rem 2rem; }
@media (min-width: 768px) { .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.insight-card a, .insight-related-item { display: flex; flex-direction: column; height: 100%; color: inherit; }
.insight-card-media { display: block; overflow: hidden; border-radius: 0.75rem; background: var(--c-surface); aspect-ratio: 16 / 10; }
.insight-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.insight-card a:hover .insight-card-media img,
.insight-related-item:hover .insight-card-media img { transform: scale(1.025); }
.insight-card-placeholder { position: relative; display: block; width: 100%; height: 100%; background: var(--c-primary-soft); }
.insight-card-placeholder::after {
    content: "";
    position: absolute;
    inset: 22% 0;
    background: var(--c-primary);
    opacity: 0.28;
    -webkit-mask: url(/static/images/africa-mark.svg) center / contain no-repeat;
    mask: url(/static/images/africa-mark.svg) center / contain no-repeat;
}
.insight-card-body { display: flex; flex: 1; flex-direction: column; padding-top: 1.25rem; }
.insight-meta { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--c-primary); }
.insight-card-title {
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    transition: color 0.15s ease;
}
.insight-card a:hover .insight-card-title,
.insight-related-item:hover .insight-card-title { color: var(--c-primary); }
.insight-card-excerpt {
    display: -webkit-box;
    margin-top: 0.75rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--c-ink-2);
}
.insight-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.25rem; font-size: 0.8125rem; color: var(--c-ink-3); }
.insight-card-read { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; color: var(--c-primary); }
.insight-card-read i { transition: transform 0.25s var(--ease-out); }
.insight-card a:hover .insight-card-read i { transform: translateX(3px); }

/* The newest article leads, set wide beside its image. */
@media (min-width: 1024px) {
    .insight-grid > .insight-card:first-child { grid-column: 1 / -1; }
    .insight-grid > .insight-card:first-child a {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 3rem;
        align-items: center;
        padding-bottom: 3rem;
        border-bottom: 1px solid var(--c-line);
    }
    .insight-grid > .insight-card:first-child .insight-card-body { padding-top: 0; }
    .insight-grid > .insight-card:first-child .insight-card-title { font-size: clamp(1.9rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.15; }
    .insight-grid > .insight-card:first-child .insight-card-excerpt { font-size: 1.0625rem; -webkit-line-clamp: 4; }
    .insight-grid > .insight-card:first-child .insight-card-foot { margin-top: 0; padding-top: 1.75rem; }
}

.insight-empty { display: flex; flex-direction: column; align-items: center; padding: 4rem 1.5rem; border: 1px solid var(--c-line); border-radius: 0.75rem; text-align: center; }
.insight-empty svg { width: 4rem; height: 4rem; color: var(--c-primary); }
.insight-empty h2 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--c-ink); }
.insight-empty p { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--c-ink-2); }

/* ---- Insight article ---- */
.insight-measure { max-width: 990px; margin-inline: auto; }
.insight-title {
    font-size: clamp(2.1rem, 1.5rem + 2vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.018em;
    color: var(--c-ink);
}
/* Title, image, and body share one column so the text runs exactly as wide as the picture. */
.insight-figure { max-width: 990px; margin-inline: auto; }
.insight-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.75rem; background: var(--c-surface); }

.insights-body.insight-measure { font-size: 1.0625rem; line-height: 1.75; color: var(--c-ink-2); }
@media (min-width: 640px) { .insights-body.insight-measure { font-size: 1.125rem; } }
.insights-body.insight-measure > * + * { margin-top: 1.2rem; }
.insights-body.insight-measure p { margin: 0; }
.insights-body.insight-measure > * + p { margin-top: 1.2rem; }
.insights-body.insight-measure h2,
.insights-body.insight-measure h3,
.insights-body.insight-measure h4 {
    margin-top: 2.75rem;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: var(--c-ink);
}
.insights-body.insight-measure > :first-child { margin-top: 0; }
.insights-body.insight-measure h2 { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2rem); }
.insights-body.insight-measure h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.65rem); }
.insights-body.insight-measure h4 { font-size: 1.2rem; }
.insights-body.insight-measure strong { font-weight: 600; color: var(--c-ink); }
.insights-body.insight-measure a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: 0.2em;
}
.insights-body.insight-measure a:hover { text-decoration-color: currentColor; }
.insights-body.insight-measure ul { list-style: disc; margin: 1.2rem 0 0; padding-left: 1.4rem; }
.insights-body.insight-measure ol { list-style: decimal; margin: 1.2rem 0 0; padding-left: 1.4rem; }
.insights-body.insight-measure li { margin: 0.5rem 0 0; padding-left: 0.25rem; }
.insights-body.insight-measure li::marker { color: var(--c-ink-3); }
.insights-body.insight-measure blockquote {
    margin: 2rem 0;
    padding-left: 1.25rem;
    border-left: 1px solid var(--c-line-strong);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--c-ink);
}
.insights-body.insight-measure img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.insights-body.insight-measure figure { margin: 2rem 0; }
.insights-body.insight-measure figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--c-ink-3); }

.insight-related { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 768px) { .insight-related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.insight-related .insight-card-title { font-size: 1.3rem; }
.insight-related .insight-card-excerpt { -webkit-line-clamp: 2; font-size: 0.875rem; }

/* ---- Sign in / sign up (auth layout) ---- */
.auth-panel > * + * { margin-top: 1.5rem; }
.auth-panel.hidden { display: none; }
.auth-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.012em;
    color: var(--c-ink);
}
.auth-sub { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.55; color: var(--c-ink-2); }
.auth-form > * + * { margin-top: 1.125rem; }
.auth-form .btn { margin-top: 1.5rem; }
.auth-form .btn + p { margin-top: 0.875rem; }
.auth-link { font-weight: 600; color: var(--c-primary); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; }
.auth-link:hover { text-decoration-color: currentColor; }
.auth-eye { position: absolute; inset-block: 0; right: 0; display: inline-flex; align-items: center; padding: 0 0.875rem; color: var(--c-ink-3); }
.auth-eye:hover { color: var(--c-ink); }
.auth-field-error { margin-top: 0.375rem; font-size: 0.8125rem; color: #b42318; }
.auth-field-error.hidden { display: none; }
html.dark .auth-field-error { color: #fca5a5; }
.auth-reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 1rem; margin-top: 0.625rem; }
.auth-reqs li { font-size: 0.8125rem; color: var(--c-ink-3); }
.auth-reqs li.valid { color: var(--c-primary); }
.auth-switch { padding-top: 1.25rem; border-top: 1px solid var(--c-line); font-size: 0.875rem; color: var(--c-ink-2); }

/* The auth layout's side panel carries the continent as quiet section art. */
body:has(.auth-panel) aside { overflow: hidden; }
body:has(.auth-panel) aside > * { position: relative; z-index: 1; }
body:has(.auth-panel) aside::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    bottom: -2.5rem;
    width: 22rem;
    height: 23rem;
    background: var(--c-primary);
    opacity: 0.07;
    -webkit-mask: url(/static/images/africa-mark.svg) center / contain no-repeat;
    mask: url(/static/images/africa-mark.svg) center / contain no-repeat;
    pointer-events: none;
}
html.dark body:has(.auth-panel) aside::after { opacity: 0.1; }

/* ---- ORCID connect ---- */
.orcid-wrap { width: 100%; max-width: 34rem; }
.orcid-logo { display: flex; justify-content: center; margin-bottom: 1.75rem; color: var(--c-ink); }
.orcid-card { padding: 2rem 1.5rem; }
@media (min-width: 640px) { .orcid-card { padding: 2.5rem; } }
.orcid-title { font-size: 1.85rem; line-height: 1.15; color: var(--c-ink); }
.orcid-state { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: 999px; font-size: 1.6rem; }
.orcid-state-ok { background: var(--c-primary-soft); color: var(--c-primary); }
.orcid-state-warn { background: #fff0c2; color: #7f5800; }
.orcid-state-error { background: #fef3f2; color: #b42318; }
html.dark .orcid-state-warn { background: rgba(255, 183, 7, 0.14); color: #ffd04d; }
html.dark .orcid-state-error { background: #2a1518; color: #fca5a5; }
.orcid-id { display: inline-flex; padding: 0.4rem 0.75rem; border: 1px solid var(--c-line); border-radius: 0.375rem; background: var(--c-surface); font-family: var(--font-display); font-size: 0.875rem; color: var(--c-ink); }
.orcid-steps { list-style: decimal; padding-left: 1.25rem; }
.orcid-steps li { margin-top: 0.4rem; padding-left: 0.25rem; font-size: 0.875rem; line-height: 1.55; color: var(--c-ink-2); }
.orcid-steps li::marker { color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
