/* ==========================================================================
   Africa Market Intelligence
   Identity: adire indigo and camwood red on white.
   Newsreader for reading and headlines, Public Sans for interface text.
   ========================================================================== */

:root {
  --indigo: #1F2B4D;
  --indigo-deep: #151D36;
  --indigo-tint: #E4E8F3;
  --camwood: #A3312B;
  --text: #23262D;
  --muted: #5B606C;
  --stone: #F2F2EF;
  --rule: #D8DBE1;
  --white: #FFFFFF;
  --error: #A3312B;
  --ok: #1E6B48;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --section: clamp(64px, 9vw, 128px);
}

/* Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--camwood); }
:focus-visible { outline: 2px solid var(--camwood); outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: var(--indigo-tint); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--indigo);
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 3.9vw, 5.1rem); line-height: 1.02; letter-spacing: -.022em; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -.015em; }
h3 { font-size: 1.45rem; line-height: 1.2; font-weight: 500; letter-spacing: -.005em; margin-bottom: var(--s1); }
p { margin: 0 0 var(--s2); max-width: 64ch; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
.break { overflow-wrap: anywhere; }

.deck {
  font-size: clamp(1.25rem, 1.1rem + .55vw, 1.5rem);
  line-height: 1.45;
  color: var(--text);
  max-width: 40ch;
}
.caption {
  font-family: var(--sans);
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: var(--s1);
}
.caption a { color: var(--muted); }
.caption a:hover { color: var(--camwood); }

.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.bg-stone { background: var(--stone); }
.section.bg-stone, .bg-stone + .section { padding-top: var(--section); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--camwood); color: var(--white); padding: 12px 16px;
  font-family: var(--sans); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* 12-column grid ------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); }
.grid > * { min-width: 0; }
@media (max-width: 899px) { .grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); } .grid > * { grid-column: 1 / -1 !important; } }

/* Buttons and links --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  border: 1.5px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--indigo); }
.btn-light:hover { background: var(--indigo-tint); color: var(--indigo); }
.btn-line { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-line:hover { background: var(--indigo); color: var(--white); }

.text-link {
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--indigo); text-decoration: underline; text-decoration-color: var(--camwood); text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: var(--s4); }

/* Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); transition: transform .35s cubic-bezier(.215,.61,.355,1); }
.site-header.is-hidden { transform: translateY(-100%); }
body.nav-open .site-header { transform: none; }
.utility { background: var(--indigo); color: #D5DBEA; font-family: var(--sans); font-size: .875rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 40px; }
.utility-desks { margin: 0; }
.utility-links { list-style: none; display: flex; gap: var(--s3); }
.utility-links a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.utility-links a:hover { color: #F3C9C6; }
@media (max-width: 760px) {
  .utility-desks, .utility-mail { display: none; }
  .utility-inner { justify-content: flex-start; }
}

.masthead { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--indigo); text-decoration: none; }
.brand:hover { color: var(--indigo); }
.mark { width: 44px; height: 44px; }
.mark-dot { fill: var(--camwood); }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.125rem; line-height: 1.05; letter-spacing: -.01em; }
.brand-light, .brand-light:hover { color: var(--white); }
.brand-light .mark-dot { fill: #E46A62; }

.site-nav { display: flex; align-items: center; gap: var(--s3); }
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav ul a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--sans); font-size: .96rem; font-weight: 500; color: var(--text); text-decoration: none;
}
.site-nav ul a:hover { color: var(--camwood); }
.site-nav ul a[aria-current="page"] { color: var(--indigo); text-decoration: underline; text-decoration-color: var(--camwood); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
    background: none; border: 0; color: var(--indigo); cursor: pointer;
    font-family: var(--sans); font-weight: 600; font-size: 1rem;
  }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s3);
    background: var(--white); padding: var(--s2) var(--gutter) var(--s4);
    border-bottom: 1px solid var(--rule); box-shadow: 0 24px 32px -24px rgba(21,29,54,.25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; padding: 8px 0; min-height: 52px; border-bottom: 1px solid var(--rule); }
  .site-nav ul a[aria-current="page"] { text-underline-offset: 6px; }
}

/* Lead story (home hero) ----------------------------------------------- */
.lead-story { padding-block: clamp(40px, 6vw, 88px) var(--s4); }
.lead-text { grid-column: 1 / span 6; align-self: end; padding-bottom: var(--s2); }
.lead-text h1 { margin-bottom: var(--s4); font-size: clamp(2.6rem, 1.7rem + 3.2vw, 4.6rem); }
.lead-figure { grid-column: 7 / span 6; margin: 0; }
.lead-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--indigo-tint); }
.lead-meta { display: flex; gap: var(--s5); margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .9375rem; color: var(--muted); }
.lead-meta p { margin: 0; }
.lead-meta strong { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 899px) {
  .lead-story .grid { row-gap: var(--s4); }
  .lead-figure { margin-inline: calc(var(--gutter) * -1); }
  .lead-figure img { aspect-ratio: 4 / 3; }
  .lead-figure .caption { padding-inline: var(--gutter); }
  .lead-meta { flex-direction: column; gap: var(--s2); }
}

/* Statement + body copy ---------------------------------------------- */
.statement {
  grid-column: 1 / span 9;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.25; letter-spacing: -.012em; color: var(--indigo); margin: 0;
  max-width: 30ch;
}
.body-cols { grid-column: 4 / span 8; margin-top: var(--s5); columns: 2 22rem; column-gap: clamp(24px, 3vw, 48px); }
.body-cols p { break-inside: avoid; }
.dropcap::first-letter {
  float: left; font-size: 4.1em; line-height: .82; padding: .06em .08em 0 0; color: var(--camwood); font-weight: 500;
}

/* Side-headed sections ------------------------------------------------ */
.side-head { grid-column: 1 / span 4; }
.side-head p { color: var(--muted); font-size: 1.0625rem; }
.side-body { grid-column: 5 / span 8; }
@media (min-width: 900px) { .side-head.is-sticky { position: sticky; top: 32px; align-self: start; } }

/* Service list -------------------------------------------------------- */
.service-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) clamp(24px, 3vw, 48px); }
.service-list li p { margin: 0; color: var(--muted); }
.service-list .service-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; padding-bottom: var(--s5); border-bottom: 1px solid var(--rule); }
.service-lead h3 { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); font-weight: 400; }
.service-list .service-lead p { color: var(--text); margin-bottom: var(--s2); }
.service-lead figure { margin: 0; }
.service-lead img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--indigo-tint); }
@media (max-width: 680px) {
  .service-list, .service-list .service-lead { grid-template-columns: 1fr; }
}

/* Full-bleed photo band ----------------------------------------------- */
.band { margin: 0; }
.band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; background: var(--indigo-tint); }
.band .caption { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 680px) { .band img { aspect-ratio: 4 / 3; } }

/* Engagement codes ---------------------------------------------------- */
.codes { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5) clamp(20px, 2.4vw, 32px); margin-top: var(--s6); }
.codes li { border-top: 2px solid var(--indigo); padding-top: var(--s3); }
.code-word { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 1.6vw, 3.6rem); line-height: 1; letter-spacing: .02em; color: var(--camwood); margin-bottom: var(--s3); font-weight: 400; }
.codes h3 { font-size: 1.25rem; }
.codes p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 1000px) { .codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .codes { grid-template-columns: 1fr; } }

/* Cities -------------------------------------------------------------- */
.cities { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: var(--s5); }
.city figure { margin: 0; }
.city img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--indigo-tint); }
.city-name { font-family: var(--serif); font-size: 1.375rem; color: var(--indigo); margin: var(--s2) 0 0; line-height: 1.2; }
.city-country { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } .city:first-child { grid-column: 1 / -1; } .city:first-child img { aspect-ratio: 16 / 10; } }

/* Direct line block --------------------------------------------------- */
.direct { align-items: end; }
.direct-text { grid-column: 1 / span 6; }
.direct-lines { grid-column: 8 / span 5; list-style: none; }
.direct-lines li { border-top: 1px solid var(--rule); }
.direct-lines li:last-child { border-bottom: 1px solid var(--rule); }
.direct-lines a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: 18px 0; min-height: 56px; text-decoration: none;
  font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); color: var(--indigo);
}
.direct-lines a span { font-family: var(--sans); font-size: .875rem; color: var(--muted); }
.direct-lines a:hover { color: var(--camwood); }

/* Inner page head ----------------------------------------------------- */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.page-head-text { grid-column: 1 / span 8; }
.page-head-text h1 { margin-bottom: var(--s3); }
.page-head-aside { grid-column: 10 / span 3; align-self: end; font-family: var(--sans); font-size: .9375rem; color: var(--muted); }
.page-head-aside p { margin: 0 0 4px; }
.crumbs { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--muted); }
.crumbs span { margin-inline: 6px; }
.page-head + .section { padding-top: var(--s3); }
.page-photo { margin: 0; }
.page-photo img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; background: var(--indigo-tint); }
@media (max-width: 680px) { .page-photo img { aspect-ratio: 4 / 3; } }

/* Long-form service entries ------------------------------------------ */
.entry { padding-block: var(--s6); border-top: 1px solid var(--rule); }
.entry:first-child { border-top: 2px solid var(--indigo); }
.entry-head { grid-column: 1 / span 4; }
.entry-code { font-family: var(--sans); font-size: .875rem; font-weight: 600; color: var(--camwood); margin-bottom: var(--s1); display: block; letter-spacing: .02em; }
.entry-head h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.entry-body { grid-column: 5 / span 7; }
.entry-body h3 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--text); margin-top: var(--s3); }
.qa { list-style: none; }
.qa li { position: relative; padding-left: 1.25em; margin-bottom: 6px; color: var(--muted); }
.qa li::before { content: ""; position: absolute; left: 0; top: .78em; width: .55em; height: 1px; background: var(--camwood); }

/* Process (real sequence) -------------------------------------------- */
.steps { list-style: none; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); padding-block: var(--s4); border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before { content: counter(step); font-family: var(--serif); font-size: 3.5rem; line-height: .9; color: var(--camwood); }
.step p { margin: 0; color: var(--muted); }
.step .deliver { margin-top: var(--s2); font-family: var(--sans); font-size: .9375rem; color: var(--text); }
@media (max-width: 560px) { .step { grid-template-columns: 56px minmax(0, 1fr); gap: var(--s2); } .step::before { font-size: 2.5rem; } }

.sources { list-style: none; display: grid; gap: 12px; margin-top: var(--s3); }
.sources li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.sources .icon { color: var(--camwood); margin-top: .35em; }

.pull { margin: 0; grid-column: 3 / span 8; }
.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.3; color: var(--indigo); max-width: 32ch; margin: 0; }
.pull::before { content: ""; display: block; width: 64px; height: 2px; background: var(--camwood); margin-bottom: var(--s4); }

/* Team ---------------------------------------------------------------- */
.team { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) clamp(20px, 3vw, 40px); }
.person-photo { aspect-ratio: 4 / 5; background: var(--indigo-tint); display: grid; place-items: center; margin-bottom: var(--s3); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials { font-family: var(--serif); font-size: clamp(3rem, 2rem + 3vw, 5rem); color: var(--indigo); letter-spacing: .02em; }
.person h3 { margin-bottom: 2px; }
.person .role { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--camwood); margin-bottom: var(--s1); }
.person p { color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } .person-photo { aspect-ratio: 16 / 10; } }

.principles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) clamp(24px, 3vw, 48px); }
.principles p { color: var(--muted); margin: 0; }
@media (max-width: 680px) { .principles { grid-template-columns: 1fr; } }

/* NDPC register entry ------------------------------------------------- */
.register { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--indigo); padding: clamp(24px, 4vw, 40px); }
.register-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.register-head .icon { width: 36px; height: 36px; color: var(--indigo); }
.register-head h3 { margin: 0; font-size: 1.25rem; }
.register dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px var(--s4); margin: 0 0 var(--s4); font-family: var(--sans); font-size: .9688rem; }
.register dt { color: var(--muted); }
.register dd { margin: 0; color: var(--text); font-weight: 500; }
@media (max-width: 520px) { .register dl { grid-template-columns: 1fr; gap: 0; } .register dd { margin-bottom: 12px; } }

/* Forms --------------------------------------------------------------- */
.form-col { grid-column: 1 / span 7; }
.form-aside { grid-column: 9 / span 4; }
.form-fields { display: grid; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }
.field label { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font-family: var(--sans); font-size: 1rem; color: var(--text);
  background: var(--white); border: 1px solid #A9AEB9; border-radius: 2px;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.field textarea { min-height: 176px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--indigo); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-tint); }
.field .hint { font-family: var(--sans); font-size: .875rem; color: var(--muted); }
.field .err { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--error); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); border-width: 2px; }
.field-check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; accent-color: var(--indigo); flex: none; }
.field-check label { font-weight: 400; font-size: .9688rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: var(--s2); }
.form-submit p { margin: 0; font-family: var(--sans); font-size: .9375rem; color: var(--muted); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; margin-bottom: var(--s4); font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
.notice .icon { margin-top: 3px; width: 20px; height: 20px; }
.notice p { margin: 0; }
.notice-ok { background: #E6F2EB; color: #10402A; border-left: 3px solid var(--ok); }
.notice-err { background: #F7E7E5; color: #5E1A16; border-left: 3px solid var(--error); }

.aside-block { padding-block: var(--s3); border-top: 1px solid var(--rule); }
.aside-block:first-child { border-top: 2px solid var(--indigo); }
.aside-block h2 { font-size: 1.5rem; margin-bottom: var(--s1); }
.aside-block h3 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.aside-block p { margin: 0; }
.aside-block ul { list-style: none; display: grid; gap: 4px; }
.aside-block a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }

/* Sample report document ---------------------------------------------- */
.doc-col { grid-column: 5 / span 8; }
.doc {
  background: var(--white); border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(21,29,54,.06), 0 28px 48px -32px rgba(21,29,54,.35);
  padding: clamp(24px, 5vw, 56px);
}
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); flex-wrap: wrap; padding-bottom: var(--s3); margin-bottom: var(--s4); border-bottom: 2px solid var(--indigo); }
.doc-head .brand-name { font-size: .95rem; }
.doc-head .mark { width: 32px; height: 32px; }
.doc-stamp { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--camwood); border: 1.5px solid var(--camwood); padding: 4px 10px; transform: rotate(-2deg); }
.doc h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: 4px; }
.doc h3 { font-size: 1.2rem; margin-top: var(--s4); }
.doc-sub { font-family: var(--sans); font-size: .9375rem; color: var(--muted); margin-bottom: var(--s4); }
.doc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: var(--s2) var(--s3); }
.doc table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9375rem; min-width: 560px; }
.doc caption { text-align: left; font-size: .8125rem; color: var(--muted); padding-bottom: 8px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc thead th { font-weight: 600; color: var(--indigo); border-bottom: 1.5px solid var(--indigo); }
.doc td.num { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.doc th.num { text-align: right; }
.redact { background: var(--text); color: transparent; user-select: none; padding: 0 .2em; }
.toc { list-style: none; counter-reset: toc; columns: 2 16rem; column-gap: var(--s5); font-size: 1.0625rem; }
.toc li { counter-increment: toc; break-inside: avoid; display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dotted #B9BDC6; }
.toc li::before { content: counter(toc); font-family: var(--sans); font-size: .875rem; font-weight: 600; color: var(--camwood); min-width: 1.2em; padding-top: 3px; }
.doc-foot { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .8125rem; color: var(--muted); }

/* Prose --------------------------------------------------------------- */
.prose { grid-column: 3 / span 8; }
.prose h2 { font-size: 1.75rem; margin-top: var(--s6); margin-bottom: var(--s2); }
.prose ul { padding-left: 1.2em; margin-bottom: var(--s2); }
.prose li { margin-bottom: 8px; }

.credits { list-style: none; display: grid; gap: var(--s3); }
.credits li { display: grid; grid-template-columns: 160px 1fr; gap: var(--s3); align-items: center; }
.credits img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--indigo-tint); }
.credits p { margin: 0; font-family: var(--sans); font-size: .9375rem; }
@media (max-width: 520px) { .credits li { grid-template-columns: 1fr; } }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--indigo-deep); color: #C4CBDD; font-family: var(--sans); font-size: .9375rem; line-height: 1.6; }
.site-footer a { color: #E8EBF4; }
.site-footer a:hover { color: #F3C9C6; }
.site-footer .btn-light { color: var(--indigo); }
.site-footer .btn-light:hover { color: var(--indigo); }
.footer-top { padding-block: var(--s7) var(--s6); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-statement { font-family: var(--serif); font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.7rem); line-height: 1.2; color: var(--white); letter-spacing: -.012em; max-width: 28ch; margin-bottom: var(--s4); }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.link-light { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: var(--s5); padding-block: var(--s6); }
.footer-brand p { margin-top: var(--s3); max-width: 34ch; }
.footer-heading { font-family: var(--sans); font-size: .875rem; font-weight: 600; color: var(--white); margin-bottom: var(--s2); letter-spacing: 0; }
.footer-grid address { margin-bottom: var(--s2); }
.footer-list { list-style: none; display: grid; gap: 6px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px var(--s4); padding-block: var(--s3) var(--s4); border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; }
.footer-base p { margin: 0; }
.footer-base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px var(--s3); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1E7A4C; color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
  transition: background-color .18s ease-out;
}
.wa-float:hover { background: #17633D; color: var(--white); }
.wa-float .icon { width: 28px; height: 28px; }
@media (max-width: 560px) { .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; } }

/* Utilities ----------------------------------------------------------- */
.muted { color: var(--muted); }
.error-page { min-height: 55vh; display: grid; align-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .wa-float { display: none; }
}

/* ==========================================================================
   v3: motion, interactive components and new sections
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-soft: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Motion guard: hidden only until the script has set its starting states */
html.motion:not(.motion-started) [data-split],
html.motion:not(.motion-started) [data-hero-fade],
html.motion:not(.motion-started) [data-hero-img] { visibility: hidden; }
.split-line { padding-bottom: .06em; }

/* Cross-page fade between pages, in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out-soft) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Reading progress (insight pages) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--camwood); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; pointer-events: none; display: none; }
.page-insight .read-progress { display: block; }

/* Header details */
.utility-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-nav ul a span { position: relative; }
@media (min-width: 1181px) {
  .nav-only-mobile { display: none; }
  .site-nav ul a span::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--camwood);
    transform: scaleX(0); transform-origin: 100% 50%; transition: transform .3s var(--ease-out-soft);
  }
  .site-nav ul a:hover span::after { transform: scaleX(1); transform-origin: 0 50%; }
  .site-nav ul a[aria-current] { text-decoration: none; }
  .site-nav ul a[aria-current] span::after { transform: scaleX(1); }
}
@media (max-width: 1180px) { .utility-report { display: none; } }
.btn:active { transform: scale(.97); }

/* Animated underline for text links */
.text-link { text-decoration: none; background: linear-gradient(var(--camwood), var(--camwood)) 0 100% / 100% 2px no-repeat; transition: background-size .35s var(--ease-out-soft); padding-bottom: 2px; min-height: 0; }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { background-size: 0 2px; background-position: 100% 100%; }
}

/* Image hover zoom on linked cards */
.zoom { overflow: hidden; }
.zoom img { transition: transform .9s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a:hover .zoom img, .zoom:hover img { transform: scale(1.045); }
}

/* Marquee of markets and sectors */
.marquee { border-block: 1px solid var(--rule); overflow: hidden; padding-block: 18px; background: var(--white); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; display: flex; gap: 48px; padding-right: 48px; }
.marquee li { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--indigo); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--camwood); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Figures row */
.figures { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.figures li { border-top: 1px solid var(--indigo); padding-top: var(--s3); }
.figure-num { display: block; font-family: var(--serif); font-size: clamp(3rem, 2.2rem + 3vw, 5.25rem); line-height: 1; color: var(--indigo); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.figure-label { font-family: var(--sans); font-size: .9375rem; color: var(--muted); margin: var(--s2) 0 0; }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Desk map section */
.desks { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.africa-map { width: 100%; height: auto; overflow: visible; }
.map-grid line { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 6; }
.map-land { fill: var(--indigo-tint); stroke: var(--indigo); stroke-width: 1.4; stroke-linejoin: round; }
.map-arc { fill: none; stroke: var(--camwood); stroke-width: 1.3; opacity: .45; transition: opacity .3s ease, stroke-width .3s ease; }
.map-arc.is-active { opacity: 1; stroke-width: 2.2; }
.map-hub { cursor: pointer; }
.map-hub-dot { fill: var(--camwood); stroke: var(--white); stroke-width: 3; transition: transform .3s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.map-hub-ring { fill: none; stroke: var(--camwood); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-hub.is-active .map-hub-dot { transform: scale(1.35); }
.map-hub.is-active .map-hub-ring, .map-hub.is-home .map-hub-ring { animation: ping 2.6s var(--ease-out) infinite; }
.map-hub-label { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--indigo); paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
@keyframes ping { 0% { opacity: .9; transform: scale(.45); } 80%, 100% { opacity: 0; transform: scale(1.8); } }

.desk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.desk-tab {
  font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--indigo);
  min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.desk-tab:hover { border-color: var(--indigo); }
.desk-tab[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.desk-tab time { font-weight: 400; font-variant-numeric: tabular-nums; opacity: .75; }
.desk-panel h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 400; margin-bottom: 4px; }
.desk-role { font-family: var(--sans); font-size: .9375rem; color: var(--camwood); font-weight: 600; margin-bottom: var(--s2); }
.desk-time { font-family: var(--sans); font-size: .9375rem; color: var(--muted); margin-bottom: var(--s3); }
.desk-time strong { color: var(--text); font-variant-numeric: tabular-nums; }
.desk-panel .qa { margin: var(--s2) 0 var(--s3); }
@media (max-width: 899px) { .desks { grid-template-columns: 1fr; } }

/* Service cards (home + finder) */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) clamp(20px, 2.4vw, 32px); }
.card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-img { aspect-ratio: 4 / 3; background: var(--indigo-tint); margin-bottom: var(--s3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-code { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--camwood); letter-spacing: .04em; display: block; margin-bottom: 6px; }
.card h3 { transition: color .2s ease; }
.card a:hover h3 { color: var(--camwood); }
.card p { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.card-more { display: inline-block; margin-top: var(--s2); font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--indigo); border-bottom: 2px solid var(--camwood); padding-bottom: 2px; }
.card[hidden] { display: none; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Finder */
.finder { margin-bottom: var(--s6); }
.finder fieldset { border: 0; padding: 0; margin: 0 0 var(--s3); }
.finder legend { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); color: var(--indigo); margin-bottom: var(--s3); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  font-family: var(--sans); font-size: .9688rem; font-weight: 500; color: var(--text);
  border: 1.5px solid #A9AEB9; border-radius: 999px; background: var(--white);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip input:hover + span { border-color: var(--indigo); }
.chip input:checked + span { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--camwood); outline-offset: 3px; }
.finder-status { font-family: var(--sans); font-size: .9375rem; color: var(--muted); min-height: 1.5em; margin: 0; }

/* Filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s5); }
.filters button {
  font-family: var(--sans); font-size: .9375rem; font-weight: 500; min-height: 44px; padding: 8px 16px;
  background: none; border: 1.5px solid var(--rule); border-radius: 999px; color: var(--text); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.filters button:hover { border-color: var(--indigo); }
.filters button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--white); }

/* Insight list */
.posts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) clamp(20px, 2.4vw, 32px); }
.posts li[hidden] { display: none; }
.post a { display: block; text-decoration: none; color: inherit; }
.post-img { aspect-ratio: 3 / 2; background: var(--indigo-tint); margin-bottom: var(--s3); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { font-family: var(--sans); font-size: .8438rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.post-meta .topic { color: var(--camwood); font-weight: 600; }
.post h3 { font-size: 1.4rem; font-weight: 400; transition: color .2s ease; }
.post a:hover h3 { color: var(--camwood); }
.post p { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.post-lead { grid-column: 1 / -1; }
.post-lead a { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.post-lead .post-img { margin: 0; aspect-ratio: 16 / 10; }
.post-lead h3 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } .post-lead a { grid-template-columns: 1fr; } }

/* Article */
.article-head { padding-block: clamp(40px, 6vw, 88px) var(--s5); }
.article-head .wrap { max-width: 900px; }
.article-head .post-meta { font-size: .9375rem; margin-bottom: var(--s3); }
.article-photo { margin: 0 auto; max-width: var(--shell); padding-inline: var(--gutter); }
.article-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--indigo-tint); }
.article-body { max-width: 68ch; margin: var(--s6) auto 0; padding-inline: var(--gutter); font-size: 1.25rem; line-height: 1.65; }
.article-body h2 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.85rem); margin: var(--s5) 0 var(--s2); }
.article-body > p:first-child::first-letter { float: left; font-size: 4em; line-height: .82; padding: .06em .08em 0 0; color: var(--camwood); font-weight: 500; }
.article-foot { max-width: 68ch; margin: var(--s6) auto 0; padding: var(--s4) var(--gutter) 0; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .9688rem; color: var(--muted); }

/* Detail pages: service and market */
.detail-grid { align-items: start; }
.detail-main { grid-column: 1 / span 7; }
.detail-side { grid-column: 9 / span 4; position: sticky; top: 140px; }
.detail-main h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-top: var(--s6); }
.detail-main h2:first-child { margin-top: 0; }
.ticks { list-style: none; display: grid; gap: 14px; margin: var(--s3) 0; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.ticks .icon { color: var(--camwood); margin-top: .3em; width: 20px; height: 20px; }
.side-card { border-top: 3px solid var(--indigo); background: var(--stone); padding: var(--s4); }
.side-card h2 { font-size: 1.35rem; margin-bottom: var(--s2); }
.side-card p { font-size: 1.0625rem; }
.side-card .btn { width: 100%; margin-top: var(--s2); }
.side-card .text-link { margin-top: var(--s2); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; font-family: var(--sans); font-size: .9688rem; }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { color: var(--muted); padding-right: var(--s4); }
.facts dd { color: var(--text); font-weight: 500; }
.method { list-style: none; counter-reset: m; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s4); margin-top: var(--s3); }
.method li { counter-increment: m; display: flex; gap: 12px; font-family: var(--sans); font-size: 1rem; padding: 14px 0; border-top: 1px solid var(--rule); }
.method li::before { content: counter(m); font-weight: 600; color: var(--camwood); }
.pager { display: flex; justify-content: space-between; gap: var(--s4); border-top: 1px solid var(--rule); padding-top: var(--s4); margin-top: var(--s6); }
.pager a { text-decoration: none; font-family: var(--serif); font-size: 1.3rem; color: var(--indigo); display: flex; flex-direction: column; gap: 4px; max-width: 45%; }
.pager a span { font-family: var(--sans); font-size: .875rem; color: var(--muted); }
.pager a:last-child { text-align: right; margin-left: auto; }
.pager a:hover { color: var(--camwood); }
@media (max-width: 899px) { .detail-side { position: static; } .method { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Sector list */
.sector-list { list-style: none; border-top: 2px solid var(--indigo); }
.sector { border-bottom: 1px solid var(--rule); }
.sector[hidden] { display: none; }

/* Accordion (details) */
.acc { border-bottom: 1px solid var(--rule); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: 22px 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); color: var(--indigo);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--camwood); }
.acc-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; transition: transform .3s var(--ease-out-soft); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease-out-soft); }
.acc[open] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-body { overflow: hidden; }
.acc-body > div { padding-bottom: var(--s4); max-width: 68ch; }
.acc-body p { color: var(--text); }
.acc-meta { font-family: var(--sans); font-size: .9375rem; color: var(--muted); }
.acc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 680px) { .acc-cols { grid-template-columns: 1fr; } }

.faq-search { position: relative; max-width: 520px; margin-bottom: var(--s5); }
.faq-search input { width: 100%; min-height: 52px; padding: 12px 16px 12px 44px; font-family: var(--sans); font-size: 1rem; border: 1px solid #A9AEB9; border-radius: 2px; }
.faq-search input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-tint); }
.faq-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.faq-group + .faq-group { margin-top: var(--s6); }
.faq-group h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; color: var(--camwood); margin-bottom: 0; padding-bottom: var(--s2); border-bottom: 2px solid var(--indigo); }

/* Process line */
.steps { position: relative; }
.steps-line { position: absolute; left: 28px; top: 40px; bottom: 40px; width: 2px; background: var(--rule); }
.steps-line i { position: absolute; inset: 0; background: var(--camwood); transform-origin: 50% 0; transform: scaleY(0); }
html:not(.motion) .steps-line i { transform: none; }
.step::before { transition: color .3s ease; position: relative; z-index: 1; background: var(--white); }
.bg-stone .step::before { background: var(--stone); }
html.motion .step:not(.is-current)::before { color: #C7A8A5; }
@media (max-width: 560px) { .steps-line { left: 18px; } }

/* Score bars */
.bar-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.bar { width: 90px; height: 6px; background: var(--indigo-tint); position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--indigo); transform-origin: 0 50%; }

/* Contact service select prefilled message */
.prefill { font-family: var(--sans); font-size: .9375rem; background: var(--indigo-tint); color: var(--indigo); padding: 12px 16px; margin-bottom: var(--s4); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .map-hub.is-active .map-hub-ring, .map-hub.is-home .map-hub-ring { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .site-header { transition: none; }
}
.desk-time .icon, .page-head-aside .icon { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.step::before { width: 56px; text-align: center; }
@media (max-width: 560px) { .step::before { width: 36px; } .steps-line { left: 18px; } }
.footer-list a, .footer-brand a { text-decoration: none; }
.footer-list a:hover, .footer-brand a:hover { text-decoration: underline; }

/* v4: West and East Africa map */
.africa-map { overflow: hidden; }
.map-regions text { font-family: var(--serif); font-style: italic; font-size: 20px; fill: var(--muted); }
.map-link { stroke: var(--indigo); stroke-width: 1.6; stroke-dasharray: 4 5; stroke-opacity: .5; transition: stroke-opacity .3s ease; }
.map-link.is-active { stroke-opacity: .9; }
.map-partner { fill: var(--white); stroke: var(--indigo); stroke-width: 2; }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-family: var(--sans); font-size: .875rem; color: var(--muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.key-desk { background: var(--camwood); }
.key-partner { background: var(--white); border: 2px solid var(--indigo); }
/* Team portraits keep faces in frame at every size */
.person-photo img { object-position: 50% 20%; }
@media (max-width: 520px) { .person-photo { aspect-ratio: 4 / 5; } }

/* Team: photo cards, plus a text-only list for people without a portrait yet */
.team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) clamp(20px, 3vw, 40px); }
.team-list > ul { list-style: none; display: grid; gap: 0; }
.team-list.is-row { grid-column: 1 / -1; }
.team-list.is-row > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
.person-text { border-top: 2px solid var(--indigo); padding: var(--s3) 0 var(--s4); }
.team-list.is-column .person-text + .person-text { border-top-width: 1px; border-top-color: var(--rule); }
.person-text h3 { margin-bottom: 2px; }
.person-text .role { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--camwood); margin-bottom: var(--s1); }
.person-text p { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.person-text p.role { color: var(--camwood); }
@media (max-width: 860px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-list.is-column { grid-column: 1 / -1; }
  .team-list > ul, .team-list.is-row > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
  .team-list.is-column .person-text + .person-text { border-top-width: 2px; border-top-color: var(--indigo); }
}
@media (max-width: 600px) {
  .team-list > ul, .team-list.is-row > ul { grid-template-columns: 1fr; }
  .team-list.is-column .person-text + .person-text, .team-list.is-row .person-text + .person-text { border-top-width: 1px; border-top-color: var(--rule); }
}
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }
