/* Four reading sizes across the site. Metadata shares the body size. */
:root {
  --ed-page-title: clamp(2.125rem, 1.55rem + 2.25vw, 3.25rem);
  --ed-section-title: clamp(1.625rem, 1.35rem + 1.15vw, 2.25rem);
  --ed-subtitle: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  --ed-body: 1rem;
  --ed-label: var(--ed-body);
  --ed-serif: Georgia, "Times New Roman", serif;
  --ed-sans: Arial, Helvetica, sans-serif;
  --ink: #202522;
  --muted: #535b55;
  --paper: #f5f4ef;
  --line: #d4d6ce;
  --accent: #796f4f;
  --ed-inset: clamp(1.25rem, 5vw, 4rem);
  --ed-width: min(70rem, calc(100% - var(--ed-inset) - var(--ed-inset)));
  --ed-section-space: clamp(2.5rem, 5vw, 4.5rem);
  --ed-card-gap: clamp(.875rem, 1.5vw, 1.375rem);
  --ed-card-pad: clamp(1rem, 1.8vw, 1.5rem);
}

body { font: 400 var(--ed-body)/1.6 var(--ed-sans); }
.home-v21 { --home-rule: var(--line); --home-quiet: var(--muted); }

/* A shared content edge also lines up header, footer and full-width bands. */
body > header, .wrap, .hero, .pagehead, .catalog, .breadcrumb, .articlelayout,
.subnav, .h21-wrap { width: var(--ed-width); margin-inline: auto; }
body > header { padding-inline: 0; }
.wordmark { font-size: var(--ed-subtitle); line-height: 1.25; letter-spacing: .015em; }
body > footer { padding-inline: max(var(--ed-inset), calc((100% - 70rem) / 2)); }
.wrap > .articlelayout { width: 100%; }
.featured-block { padding-inline: max(var(--ed-inset), calc((100vw - 70rem) / 2)); }
.h21-section, .section, .soft > .wrap:not(.section) { padding-block: var(--ed-section-space); }
.pagehead { padding-block: var(--ed-section-space) 2rem; }
.breadcrumb { padding-top: 1.5rem; }
.breadcrumb + .pagehead { padding-top: 1.5rem; }
.pagehead > :last-child { margin-bottom: 0; }

/* Page, section and card titles keep the site's existing serif family. */
.hero h1, .pagehead h1, .wrap.section > h1 {
  font: 400 var(--ed-page-title)/1.12 var(--ed-serif);
  letter-spacing: -.025em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.h21-title, .sectionheading h2, .featured-block .sectionheading h2,
.archive-heading h2, .related-section > h2, .wrap.section > h2 {
  font: 400 var(--ed-section-title)/1.18 var(--ed-serif);
  letter-spacing: -.018em;
  margin-block: 0 1.35rem;
}
.h21-group > h3, .h21-role h3, .h21-role h4, .h21-card :is(h3,h4),
:is(.card-grid, .threecol, .related-grid) .item h3, .linkitem h3,
.prose > h3, .prose > section > h3, .h21-fintech > h3 {
  font: 400 var(--ed-subtitle)/1.26 var(--ed-serif);
  letter-spacing: -.012em;
}
.h21-group > h3 { margin-block: 0 1rem; }
.h21-group + .h21-group { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.h21-role-context > .h21-group { margin-top: 0; }
:is(.card-grid, .threecol, .related-grid) .item h3 { margin-block: .875rem .5rem; }
.h21-card :is(h3,h4), .h21-role :is(h3,h4) { margin-block: 0 .5rem; }
.h21-card :is(h3,h4), .item h3, .h21-role h3 { overflow-wrap: break-word; }
.h21-quote blockquote { font: 400 var(--ed-subtitle)/1.48 var(--ed-serif); max-width: 62ch; margin-inline: 0 auto; }

/* Titles and reading copy align at the same edge within each grid. */
.h21-grid, .card-grid, .related-grid { gap: var(--ed-card-gap); }
.h21-card, :is(.card-grid, .threecol, .related-grid) .item { padding: var(--ed-card-pad); }
:is(.card-grid, .threecol, .related-grid) .video-cover {
  margin: calc(0rem - var(--ed-card-pad)) calc(0rem - var(--ed-card-pad)) .875rem;
}

.hero .lead, .pagehead .lead, .wrap.section > .lead,
.h21-card p:where(:not(.h21-meta)), .h21-role p, .h21-role-context :is(p,li), .h21-fintech p,
:is(.card-grid, .threecol, .related-grid) .item p:where(:not(.eyebrow)), .item > p {
  font-size: var(--ed-body);
  line-height: 1.6;
  color: var(--v-card-ink, var(--muted));
}
.home-v21 .home-hero .lead { max-width: 60ch; }
.pagehead .lead, .wrap.section > .lead { max-width: 72ch; }
.home-v21 .home-hero-fact {
  font: 400 var(--ed-subtitle)/1.35 var(--ed-sans);
  margin: 1.25rem 0;
}

body > header nav, .nav-dropdown-menu a, .footergrid a, .h21-more, .h22-group-links,
.h22-group-more summary, .h21-all, .subnav, .outline, .itemfoot .textlink,
.filters .search input, .filters select, .articlelayout > aside, .facts {
  font-size: var(--ed-body);
  line-height: 1.5;
}
.h21-card .h21-meta, .h21-meta, .eyebrow, .breadcrumb, .resultbar, .resultbar button,
.tags span, .participation-tags span, .itemtop .meta, .itemfoot, .facts dt,
.copyright, .articlelayout aside .related-projects-all, .related-projects-all a {
  font-size: var(--ed-label);
  line-height: 1.45;
  color: var(--v-card-ink, var(--muted));
}
.eyebrow, .articlelayout aside h2, :is(.card-grid, .threecol, .related-grid) .itemtop .eyebrow {
  font: 600 var(--ed-label)/1.35 var(--ed-sans);
  letter-spacing: .012em;
  text-transform: none;
  color: var(--v-card-ink, var(--muted));
}
.h21-card .h21-meta { margin-block: 0 .375rem; }
:is(.card-grid, .threecol, .related-grid) .itemfoot { padding-top: .625rem; }
.tags span, .participation-tags span { background: var(--paper); color: var(--muted); }
.footergrid .eyebrow { margin-bottom: .625rem; }
.footergrid a { margin-block: .5rem; }
body > footer { padding-block: var(--ed-section-space) 1.5rem; }
.featured-block { background: var(--paper); }
.h21-role { border-top-color: var(--line); }

/* Readable text width without constraining charts, slides or reader embeds. */
.articlelayout { gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: var(--ed-section-space); }
.articlelayout .prose > :is(p,ul,ol), .articlelayout .prose > section > :is(p,ul,ol) {
  max-width: 72ch;
  margin-block: 0 1em;
}
.articlelayout .prose > p, .articlelayout .prose > section > p,
.articlelayout .prose > :is(ul,ol) > li, .articlelayout .prose > section > :is(ul,ol) > li {
  color: var(--ink);
  line-height: 1.7;
}
.articlelayout .prose > :is(ul,ol) > li + li,
.articlelayout .prose > section > :is(ul,ol) > li + li { margin-top: .35rem; }
.prose > h2, .prose > section > h2 {
  font: 400 var(--ed-section-title)/1.2 var(--ed-serif);
  letter-spacing: -.018em;
  margin-block: 1.5em .45em;
}
.prose > :is(h2,h3):first-child, .prose > section > :is(h2,h3):first-child { margin-top: 0; }
.articlelayout aside :is(.facts dt, .eyebrow) { margin-bottom: .375rem; }
.articlelayout .related-projects li + li { margin-top: .5rem; }

@media (min-width: 701px) and (max-width: 960px) {
  .h21-grid, .card-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .home-v21 .home-hero { padding-block: 1.5rem var(--ed-section-space); }
  .pagehead { padding-block: 2rem 1.5rem; }
  .breadcrumb + .pagehead { padding-top: 1rem; }
  .articlelayout { gap: 2rem; }
}

/* Keep the full credit and language control on the same line on narrow phones. */
@media (max-width: 23rem) {
  footer .copyright { gap: .25rem; margin-inline: -.5rem; }
  footer .copyright .site-language > summary { min-width: 44px; gap: 5px; padding-inline: 2px; }
}
@media (max-width: 21.25rem) {
  footer .copyright { margin-inline: -.875rem; }
}
@media (max-width: 19.99rem) {
  footer .copyright > .site-copyright-text { white-space: normal; }
}

/* Shared surfaces for the homepage, catalogues and cross-catalogue search. */
:root {
  --v-card-active: #5a635f;
  --v-card-active-ink: #fff;
  --v-card-focus: #615737;
}
main.home-v21 { --home-hover: var(--v-card-active); }

main :is(.h21-card, article.item) {
  background-color: var(--v-card-surface, #fff);
  color: var(--v-card-ink, var(--ink, #13161a));
}
main .related-grid > article.item {
  background-color: var(--v-card-surface, var(--paper, #f5f4ef));
}
main :is(.h21-card, article.item):is(:focus-visible, :has(:focus-visible)) {
  --v-card-surface: var(--v-card-active);
  --v-card-ink: var(--v-card-active-ink);
  --v-card-mark: #fff;
  --v-card-mark-halo: 0 0 0 3px #fff;
  background-color: var(--v-card-surface);
  color: var(--v-card-ink);
  border-color: var(--v-card-active);
  outline: 2px solid var(--v-card-focus);
  outline-offset: 3px;
}
@media (hover: hover) {
  main :is(.h21-card, article.item):hover {
    --v-card-surface: var(--v-card-active);
    --v-card-ink: var(--v-card-active-ink);
    --v-card-mark: #fff;
    --v-card-mark-halo: 0 0 0 3px #fff;
    background-color: var(--v-card-surface);
    color: var(--v-card-ink);
    border-color: var(--v-card-active);
  }
  main .related-projects a:hover {
    background-color: var(--v-card-active);
    color: var(--v-card-active-ink);
    box-shadow: 0 0 0 3px var(--v-card-active);
  }
}
/* Keep the type hierarchy at rest. The inherited state also covers compound cards. */
main .h21-card p { color: var(--v-card-ink, var(--home-quiet, #505751)); }
main .h21-card .h21-meta { color: var(--v-card-ink, var(--muted)); }
main .h21-card :is(h3, h4, a) { color: var(--v-card-ink, inherit); }
main :is(.card-grid, .related-grid, .threecol) article.item p { color:var(--v-card-ink, var(--muted)); }
main :is(.card-grid, .related-grid, .threecol) article.item .itemtop .eyebrow { color:var(--v-card-ink, var(--muted)); }
main article.item .itemtop .meta { color:var(--v-card-ink, var(--muted, #62645f)); }
main article.item .itemfoot { color:var(--v-card-ink, var(--muted)); }
main article.item .itemfoot .textlink { color:var(--v-card-ink, var(--ink)); }
main .h21-card .h21-logos {
  background-color: var(--v-card-mark, transparent);
  box-shadow: var(--v-card-mark-halo, none);
}
main article.item .card-logos > :is(a, span) {
  background-color:var(--v-card-mark, transparent);
  box-shadow:var(--v-card-mark-halo, none);
  color:var(--ink, #13161a);
}
/* This wordmark is white and uses its own ink-coloured plate. */
main article.item .card-logos > :is(.forum-logo, a:has(img[src*="silk-road-finance-technology-forum-2026"])) {
  background-color:#23334a;
  color:#fff;
}
main .related-projects a:focus-visible {
  background-color:var(--v-card-active);
  color:var(--v-card-active-ink);
  outline:2px solid var(--v-card-focus);
  outline-offset:4px;
  box-shadow:0 0 0 2px var(--v-card-active);
}
main :is(.h21-card, article.item) a:focus-visible {
  outline:2px solid #fff;
  outline-offset:2px;
  box-shadow:0 0 0 2px #27302c;
}
main article.item :is(h3 a,.textlink):hover,
.home-v21 .h22-compound .h22-secondary:hover { text-decoration:none; }

.experience-map-details .h23-country-groups {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.15rem, 2.6vw, 2.4rem);
    max-width: none;
    margin: .65rem 0 .25rem;
}
.h23-country-group + .h23-country-group, .h23-fintech-column + .h23-fintech-column {
    border-left: 1px solid var(--home-rule, #d2d3cb);
    padding-left: clamp(1.15rem, 2.6vw, 2.4rem);
}
.experience-map-details .h23-country-group dt { margin: 0 0 .55rem; line-height: 1.4; }
.experience-map-details .h23-country-group dd { margin: 0; }
.h23-fintech-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.15rem, 2.6vw, 2.4rem);
}
.h23-fintech-column h4 {
    margin: 0 0 .55rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}
.h23-fintech-column p:last-child { margin-bottom: 0; }
.h23-fintech-column .h23-fintech-link { color: var(--ink); }
@media (max-width: 700px) {
    .experience-map-details .h23-country-groups, .h23-fintech-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
    .h23-country-group + .h23-country-group, .h23-fintech-column + .h23-fintech-column {
        border-left: 0;
        border-top: 1px solid var(--home-rule, #d2d3cb);
        padding: 1rem 0 0;
    }
}

/* The three primary navigation labels share the second header row on tablets. */
@media (min-width: 681px) and (max-width: 1060px) {
  body > header nav { gap: 1rem; }
}
@media (min-width: 1001px) and (max-width: 1060px) {
  body > header { gap: 1rem; }
}

/* Keep long dates and labels readable alongside multiple organization marks. */
article.item.compact:has(.itemtop .card-logos > :nth-child(2)) {
  container: catalog-marks / inline-size;
}
@container catalog-marks (max-width: 19rem) {
  article.item.compact .itemtop:has(.card-logos > :nth-child(3)) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .5rem;
  }
  article.item.compact .itemtop .card-logos:has(> :nth-child(3)) { justify-self: start; }
}
@container catalog-marks (max-width: 15rem) {
  article.item.compact .itemtop:has(.card-logos > :nth-child(2)) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .5rem;
  }
  article.item.compact .itemtop .card-logos:has(> :nth-child(2)) { justify-self: start; }
}

/* At portrait-tablet widths sidebar links otherwise get about 150px of text. */
@media (min-width: 681px) and (max-width: 800px) {
  .articlelayout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .articlelayout > aside { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

.bio24 {
  --bio-ink: #172a48;
  --bio-quiet: #394957;
  background: #faf9f6;
  color: var(--bio-ink);
  padding-block: clamp(1.9rem, 3.8vw, 3.5rem) clamp(2rem, 3.8vw, 3.5rem);
}
.bio24-inner {
  width: var(--ed-width);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 32%);
  grid-template-areas: "heading portrait" "roles portrait" "actions stats" "previous previous";
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: clamp(1.1rem, 2vw, 1.75rem);
  align-items: start;
  margin-inline: auto;
}
.bio24-heading { grid-area: heading; align-self: end; }
.bio24-heading h1 {
  color: var(--bio-ink);
  font: 600 var(--ed-page-title)/1.02 var(--ed-sans);
  letter-spacing: -.055em;
  margin: 0 0 .55rem;
}
.bio24-heading p {
  margin: 0;
  color: var(--bio-ink);
  font: 600 var(--ed-section-title)/1.2 var(--ed-sans);
  letter-spacing: -.025em;
}
.bio24-roles { grid-area: roles; }
.bio24-roles ul, .bio24-previous ul, .bio24-community ul { list-style: none; padding: 0; margin: 0; }
.bio24-roles > ul > li + li { margin-top: clamp(.7rem, 1.5vw, 1.35rem); }
.bio24-roles strong {
  display: block;
  font: 600 var(--ed-subtitle)/1.26 var(--ed-sans);
  letter-spacing: -.016em;
}
.bio24-roles p, .bio24-previous p {
  color: var(--bio-quiet);
  font: 400 var(--ed-body)/1.46 var(--ed-sans);
  margin: .15rem 0 0;
}
.bio24-roles .bio24-businesses {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .65rem;
  row-gap: .2rem;
  margin-top: .4rem;
  color: var(--bio-quiet);
  font: 400 var(--ed-body)/1.45 var(--ed-sans);
}
.bio24-businesses li:not(:last-child)::after {
  content: "";
  display: inline-block;
  vertical-align: .17em;
  width: .17em;
  height: .17em;
  margin-left: .65rem;
  border-radius: 50%;
  background: #7d817d;
}
.bio24-roles a, .bio24-previous a, .bio24-community a { color: inherit; text-decoration: none; }
.bio24 :is(.bio24-roles, .bio24-previous) a:is(:hover,:focus-visible),
.bio24-community a:is(:hover,:focus-visible) { color: #514d37; text-decoration: none; }
.bio24 a:focus-visible, .bio24-community a:focus-visible { outline: 2px solid currentColor; outline-offset: .18rem; }
.bio24-portrait {
  grid-area: portrait;
  justify-self: center;
  width: min(100%, clamp(13.5rem, 20vw, 18rem));
}
.bio24-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 732;
  object-fit: contain;
  object-position: center top;
}
.bio24-stats {
  grid-area: stats;
  justify-self: center;
  align-self: center;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.15rem;
  width: min(100%, clamp(13.5rem, 20vw, 18rem));
}
.bio24-stats p { margin: 0; color: var(--bio-quiet); font: 400 var(--ed-body)/1.3 var(--ed-sans); }
.bio24-stats strong, .bio24-country span::first-line {
  color: var(--bio-ink);
  font-size: var(--ed-section-title);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.bio24-stats strong, .bio24-stats span { display: block; }
.bio24-country span { width: min-content; }
.bio24-inner > .home-actions { grid-area: actions; align-self: center; }
.bio24-previous { grid-area: previous; margin-top: .4rem; border-top: 1px solid #c1c5c4; padding-top: 1.15rem; }
.bio24-previous h2 {
  margin: 0 0 .9rem;
  font: 600 var(--ed-body)/1.3 var(--ed-sans);
  letter-spacing: .105em;
  text-transform: uppercase;
  color: var(--bio-quiet);
}
.bio24-previous ul, .bio24-community ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.bio24-previous h3 { margin: 0; font: 600 var(--ed-subtitle)/1.35 var(--ed-sans); color: var(--bio-ink); }
.bio24-previous h3 span { color: var(--bio-quiet); }
.bio24-previous p { margin-top: .3rem; }
.bio24-community ul { margin-top: 1rem; }
.bio24-community li { line-height: 1.5; }
.bio24-community li a { font-weight: 600; }
#professional-community .h21-fintech { margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 0; border: 0; }
#professional-community .h23-fintech-column > h3 { font: 600 var(--ed-body)/1.4 var(--ed-sans); margin: 0 0 .55rem; }

.home-v21 .experience-map-section,
.home-v21 .experience-map-details,
.home-v21 .experience-map-key li,
.home-v21 .experience-map-details .h23-country-group + .h23-country-group {
  border: 0;
}
.experience-map-details .h23-country-group + .h23-country-group { padding: 0; }
@media (max-width: 760px) {
  .bio24-inner {
    grid-template-columns: minmax(0,1fr) minmax(6rem,32%);
    grid-template-areas: "heading portrait" "stats portrait" "roles roles" "actions actions" "previous previous";
    column-gap: clamp(.75rem, 2vw, 1.2rem);
    row-gap: 1.15rem;
  }
  .bio24-heading { align-self: end; }
  .bio24-heading p { font-size: var(--ed-subtitle); }
  .bio24-portrait { width: min(100%, 10.5rem); justify-self: end; align-self: center; }
  .bio24-stats { justify-content: start; justify-self: start; align-self: start; gap: clamp(.7rem, 2.6vw, 1.6rem); width: 100%; }
  .bio24-stats strong, .bio24-country span::first-line { font-size: var(--ed-subtitle); }
  .bio24-roles { margin-top: .25rem; }
  .bio24-previous ul, .bio24-community ul { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .bio24-previous { margin-top: .25rem; }
}
@media (max-width: 360px) {
  .bio24-inner { grid-template-columns: minmax(0, 1fr) 5.5rem; }
}
