/* Version 4, 2026-12-01. Loaded after v3.css.
   1. The band of calls to action, and the form each one opens.
   2. The CFBD Consortium as a site of its own: its menu, the working groups, the projects. */

button.btn{cursor:pointer;-webkit-appearance:none;appearance:none}
button.btn-line{background:none}
.btn[disabled]{opacity:.6;cursor:default}

/* ---- 1. Take part: one column for each way in. A thin rule between the columns, nothing else. ---- */
.take-list{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:clamp(30px,4.2vw,56px) 0 0;padding:0}
.take-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.take-list li{display:flex;flex-direction:column;align-items:flex-start;padding:2px clamp(20px,3.2vw,48px);border-left:1px solid rgba(255,255,255,.2)}
.take-list li:first-child{padding-left:0;border-left:0}
.take-list li:last-child{padding-right:0}
.take-who{margin:0 0 10px;color:#aeb8d8;font:600 var(--t-m)/1.3 var(--sans)}
.take-list h3{margin:0 0 clamp(22px,2.6vw,32px);max-width:17ch;color:#fff;font:600 clamp(1.45rem,2.4vw,2rem)/1.12 var(--display);letter-spacing:-.028em}
.take-list .btn{margin-top:auto}
@media(max-width:820px){
  .take-list,.take-2{grid-template-columns:1fr}
  .take-list li{padding:26px 0;border-left:0;border-top:1px solid rgba(255,255,255,.2)}
  .take-list li:first-child{padding-top:0;border-top:0}
  .take-list li:last-child{padding-bottom:0}
  .take-list h3{max-width:none;margin-bottom:18px}
}

/* ---- The form. A sheet over the page on a desktop, the whole screen on a phone. ---- */
.ask{width:min(580px,calc(100% - 32px));max-width:none;max-height:min(calc(100dvh - 32px),920px);padding:0;border:0;border-radius:24px;background:var(--sheet);color:var(--ink);box-shadow:0 24px 80px rgba(16,28,63,.3);overflow:auto;overscroll-behavior:contain}
.ask::backdrop{background:rgba(16,28,63,.55)}
.ask-in{padding:clamp(22px,3.4vw,36px)}
.ask-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ask h2{margin:4px 0 0;max-width:19ch;font:600 clamp(1.4rem,2.4vw,1.75rem)/1.14 var(--display);letter-spacing:-.025em;outline:0}
.ask-x{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:-6px -8px 0 0;padding:0;border:0;border-radius:50%;background:none;color:var(--ink-2);cursor:pointer}
.ask-x:hover{background:var(--wash);color:var(--ink)}
.ask-sub{margin:10px 0 0;max-width:44ch;color:var(--ink-2);line-height:1.5}
.f-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.f{display:block;min-width:0;margin:16px 0 0;padding:0;border:0}
.f>span,.f>legend{display:block;margin:0 0 7px;padding:0;color:var(--ink);font:600 var(--t-m)/1.3 var(--sans)}
.f-opt{color:var(--ink-3);font-weight:400}
.f input[type="text"],.f input[type="email"],.f input[type="url"],.f textarea{display:block;width:100%;min-height:48px;margin:0;padding:12px 14px;border:1px solid var(--rule-2);border-radius:12px;background:#fff;color:var(--ink);font:400 1rem/1.4 var(--sans);-webkit-appearance:none;appearance:none}
.f textarea{min-height:76px;resize:vertical}
.f input::placeholder{color:var(--ink-3)}
.f input:focus-visible,.f textarea:focus-visible{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue);border-radius:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip-in{position:relative;display:inline-flex}
.chip-in input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.chip-in span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--rule-2);color:var(--ink);font:500 var(--t-m)/1.2 var(--sans)}
.chip-in input:hover+span{box-shadow:inset 0 0 0 1.5px var(--ink)}
.chip-in input:checked+span{background:var(--ink);box-shadow:none;color:#fff}
.chip-in input:focus-visible+span{outline:2px solid var(--blue);outline-offset:2px}
.ask-send{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:22px}
.ask-msg{margin:0;color:#a3261c;font-size:var(--t-m);font-weight:500;line-height:1.4}
.ask-msg:empty{display:none}
.ask-form[hidden],.ask-done[hidden]{display:none}
.ask-done{padding-top:clamp(18px,2.4vw,26px)}
.ask-done-t{display:flex;align-items:center;gap:.5em;margin:0;color:var(--ink);font:600 1.35rem/1.2 var(--display);letter-spacing:-.02em}
.ask-done-t::before{content:"";flex:none;width:.7em;height:.7em;border-radius:50%;background:var(--mark);box-shadow:0 0 0 1.5px rgba(20,35,74,.3)}
.ask-done-s{margin:8px 0 24px;color:var(--ink-2);line-height:1.5;overflow-wrap:anywhere}
.ask-done-s strong{color:var(--ink);font-weight:600}
@media(max-width:560px){
  .ask{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
  .f-row{grid-template-columns:1fr}
}

/* ---- 2. The Consortium's own pages ---- */
/* Four menu items share the phone's one row. The current page is underlined there, to leave room for the words. */
@media(max-width:640px){
  .mast-org .mast-nav{gap:0 16px}
  .mast-org .mast-nav a[aria-current="page"]::before{content:none}
  .mast-org .mast-nav a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--blue);text-decoration-thickness:2px;text-underline-offset:.4em}
}
@media(max-width:380px){.mast-org .mast-nav{gap:0 13px}}
@media(max-width:352px){.mast-org .mast-nav{gap:0 11px}}
@media(max-width:326px){.mast-org .mast-nav{gap:0 9px}.mast-org .mast-nav a{font-size:.72rem}}
.foot-credit{max-width:62ch}

/* What the Consortium does: four cards where the landing page has three. */
.three.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.four .card3-fig{min-height:clamp(118px,10.5vw,146px)}
.sec .card3 h3{margin:0;font:600 clamp(1.25rem,1.7vw,1.5rem)/1.14 var(--display);letter-spacing:-.025em}
@media(max-width:1080px){.three.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.three.four{grid-template-columns:1fr}}

/* The working groups as a plate: one well for each group, one row for each region. */
.wgp{container-type:inline-size;margin:0}
.wgp-grid{--gap:clamp(4px,1.5cqw,9px);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gap);align-items:center;padding:clamp(18px,5.4cqw,34px);border-radius:28px;background:var(--wash)}
.wgp-grid span{grid-column:1/-1;margin-top:clamp(8px,2.4cqw,14px);color:var(--ink-2);font:600 var(--t-s)/1.2 var(--sans)}
.wgp-grid span:first-child{margin-top:0}
.wgp-grid i{aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px rgba(20,35,74,.2),inset 0 0 0 calc(var(--gap)*.62) #fff,inset 0 0 0 99px var(--blue)}
.wgp-bare .wgp-grid{padding:0;border-radius:0;background:none}

/* The list of groups: a region's name on the left, its countries on the right. */
.wg-region{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:8px clamp(18px,2.6vw,40px);align-items:start;margin-top:clamp(26px,3.6vw,44px)}
.sec-kicker+.wg-region{margin-top:0}
.wg-region h3{margin:0;padding-top:16px;font:600 clamp(1.2rem,1.8vw,1.45rem)/1.2 var(--display);letter-spacing:-.02em}
.wg-list{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 clamp(18px,2.6vw,40px);margin:0;padding:0;border-top:1px solid var(--rule-2)}
.wg-list a{display:flex;align-items:center;gap:.7em;min-height:56px;border-bottom:1px solid var(--rule);color:var(--ink);font-weight:600;line-height:1.25;text-decoration:none}
.wg-list a::before{content:"";flex:none;width:.62em;height:.62em;border-radius:50%;background:var(--blue)}
.wg-list a:hover{color:var(--blue-ink);text-decoration:underline;text-underline-offset:.25em}
@media(max-width:900px){.wg-region{grid-template-columns:1fr}.wg-region h3{padding-top:0}}
@media(max-width:560px){.wg-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}}

/* One group's page. */
.crumb{margin:0 0 clamp(6px,1vw,12px)}
.crumb a{display:inline-flex;align-items:center;gap:.5em;min-height:44px;font-size:var(--t-m);font-weight:600}
.crumb a::before{content:"";width:.5em;height:.5em;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.wg-two{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(36px,6vw,96px);align-items:start}
.wg-what{margin:0 0 clamp(16px,2vw,22px);max-width:46ch;color:var(--ink-2);font-size:var(--t-lede);line-height:1.5}
.wg-what strong{color:var(--ink);font-weight:600}
.wg-steps{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule-2)}
.wg-steps li{display:grid;grid-template-columns:minmax(0,9.5rem) minmax(0,1fr);gap:2px 20px;padding:14px 0;border-bottom:1px solid var(--rule)}
.wg-steps b{color:var(--ink);font:600 1.0625rem/1.4 var(--display)}
.wg-steps span{display:grid;gap:2px}
.wg-steps a{justify-self:start;display:inline-flex;align-items:center;min-height:32px;font-size:var(--t-m);line-height:1.35}
@media(max-width:900px){.wg-two{grid-template-columns:1fr}}
@media(max-width:480px){.wg-steps li{grid-template-columns:1fr}.wg-steps a{min-height:40px}}

/* A project: its picture on one side, what it is and who leads it on the other. */
.proj{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:hidden;border-radius:28px;background:var(--sheet);box-shadow:inset 0 0 0 1px var(--rule)}
.proj-fig{container-type:inline-size;display:grid;align-items:center;min-height:clamp(180px,24vw,340px);padding:clamp(22px,4vw,56px);background:var(--wash)}
.proj-fig .hrow{display:block;margin:0}
.proj-fig .hrow-grid{--gap:clamp(5px,2.4cqw,14px);--pitch:calc((100cqw - 3*var(--gap))/12);--well:calc(var(--pitch)*.78);justify-content:center}
.proj-fig .hrow-note,.proj-fig .hrow-c{display:none}
.proj-body{display:flex;flex-direction:column;align-items:flex-start;padding:clamp(24px,3.8vw,56px)}
.sec .proj h3{margin:0;font:600 clamp(1.7rem,3vw,2.5rem)/1.08 var(--display);letter-spacing:-.032em}
.proj-what{margin:12px 0 0;max-width:36ch;color:var(--ink-2);font-size:var(--t-lede);line-height:1.5}
.proj-facts{display:flex;flex-wrap:wrap;gap:10px clamp(28px,4vw,56px);margin:clamp(20px,2.6vw,30px) 0 clamp(22px,3vw,34px)}
.proj-facts dt{color:var(--ink-3);font-size:var(--t-s);line-height:1.3}
.proj-facts dd{margin:3px 0 0;color:var(--ink);font-weight:600}
@media(max-width:820px){.proj{grid-template-columns:1fr}}
