/* ch-socialent: the clips of Amazing Companies' chapter on "a social enterprise that wins public tenders". Every size below is a
   design pixel of the clip's canvas (1200 by 515 for the opening, 600 square for the steps), scaled by clips.css. What is
   drawn is a picture of the product, so it wears the product's own colours: Atlas's (CARTA: white paper, indigo), on the
   site's black. Needs base.css, motion.css, clips.css, ../chapter-kit/chapter-kit.css (the shared pieces, and the --s-* tokens set here). */
.gt-frame{
  --s-panel:#fff;--s-panel2:oklch(98.2% .006 290);--s-inset:oklch(95.4% .012 290);--s-soft:oklch(93.5% .05 288);
  --s-ink:oklch(21% .012 280);--s-ink2:oklch(37% .012 280);--s-ink3:oklch(50% .014 280);
  --s-hair:oklch(28% .03 292/.09);--s-hair2:oklch(28% .03 292/.16);
  --s-accent:#4c59e6;--s-accent-ink:#3a46c4;--s-on-accent:#fff;--s-info-bg:oklch(93.5% .05 288);--s-info-ink:#3a46c4;
}

/* ---------- the opening ---------- */
.gt-f{width:176px;height:52px;display:flex;align-items:center;gap:9px;padding:0 11px 0 9px;border-radius:11px;background:var(--s-panel);box-shadow:var(--s-ring);color:var(--s-ink);transition:box-shadow .25s var(--e-ui)}
.gt-f>span:last-child{display:grid;min-width:0}
.gt-f b{font-size:12.5px;font-weight:620;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gt-f small{font-size:11.5px;color:var(--s-ink3)}
.gt-f{animation:gt-float 4.6s ease-in-out infinite alternate}
.gt-f:nth-child(2n){animation-duration:5.4s;animation-delay:-1.3s}
.gt-f:nth-child(3n){animation-duration:6.2s;animation-delay:-2.6s}
@keyframes gt-float{from{translate:0 0}to{translate:0 -5px}}
@media (prefers-reduced-motion:reduce){.gt-f{animation:none}}
.gt-f.lit{box-shadow:0 0 0 2px var(--s-accent),0 0 26px rgb(76 89 230/.55)}
.gt-head{display:flex;align-items:center;gap:8px;width:172px;padding:6px 12px 6px 6px;border-radius:24px;border:1.5px dashed rgb(255 255 255/.3);font-size:12px;line-height:1.25;color:rgb(255 255 255/.72);transition:border-color .25s var(--e-ui),box-shadow .25s var(--e-ui)}
.gt-head img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:none}
.gt-head.lit{border-color:#fff;box-shadow:0 0 24px rgb(255 255 255/.25)}
.gt-scan{left:20px;top:0;width:360px;height:2px;border-radius:2px;background:#fff;box-shadow:0 0 18px 4px rgb(255 255 255/.4)}

.gt-rec{left:440px;top:78px;width:380px;height:424px}
.gt-rec .sb-hd{height:52px}
.gt-stat{margin-left:auto;display:inline-flex;align-items:center}
.gt-lane{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:6px;height:67px;padding:0 14px;border-bottom:1px solid var(--s-hair)}
.gt-lab{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;line-height:1.2;color:var(--s-ink2)}
.gt-lab svg{width:15px;height:15px;flex:none;color:var(--s-ink3)}
.gt-slots{display:grid;gap:4px}
.gt-slot{display:block;height:25px;border-radius:7px;border:1px dashed var(--s-hair2)}
.gt-slot.fill{border:0}
.gt-chip{display:flex;align-items:center;gap:7px;height:25px;padding:0 8px 0 4px;border-radius:7px;background:var(--s-panel2);box-shadow:inset 0 0 0 1px var(--s-hair);font-size:12px}
.gt-chip b{font-weight:600;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gt-chip small{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--s-ink3);font-variant-numeric:tabular-nums}
.gt-chip small svg{width:11px;height:11px}
.gt-chip.note{background:var(--s-soft);box-shadow:none}
.gt-chip.note img{width:18px;height:18px;border-radius:50%;object-fit:cover;margin-left:2px}
.gt-foot{display:flex;align-items:center;gap:7px;padding:0 14px;height:38px;font-size:12px;color:var(--s-ink3)}
.gt-foot svg{width:13px;height:13px;flex:none}

.gt-call{left:580px;top:78px;width:530px;height:118px}
.gt-call .sb-hd{height:46px}
.gt-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0 12px;padding:12px 16px}
.gt-grid>span{display:grid;gap:2px}
.gt-grid small{font-size:11.5px;color:var(--s-ink3)}
.gt-grid i{display:block;font-style:normal;font-size:13px;min-height:19px}
.gt-grid b{font-weight:620}
.gt-draft{left:580px;top:208px;width:530px;height:294px}
.gt-draft .sb-hd{height:46px}
.gt-state{margin-left:auto;display:inline-flex}
.gt-dr{display:flex;align-items:center;justify-content:space-between;gap:10px;height:40px;padding:0 16px;border-bottom:1px solid var(--s-hair);font-size:13.5px}
.gt-dr b{font-weight:620}
.gt-from{display:inline-flex;align-items:center}
.gt-ask{display:flex;align-items:center;justify-content:space-between;gap:10px;height:48px;padding:0 12px 0 16px;font-size:12.5px;color:var(--s-ink3)}
.gt-ask>span{display:inline-flex;align-items:center;gap:6px}
.gt-ask svg{width:13px;height:13px;flex:none}

/* ---------- ask the record ---------- */
.gt-stage{left:0;top:0;width:600px;height:600px;display:grid;place-items:center}
.gt-win{position:relative;width:540px;overflow:hidden;display:flex;flex-direction:column}
.gt-win.q1{min-height:452px}
.gt-win.q2{min-height:350px}
.ga-lock{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--s-ink3)}
.ga-lock svg{width:13px;height:13px}
.ga-body{flex:1;padding:18px 18px 8px;display:grid;align-content:start;gap:16px}
.ga-me{justify-self:end;max-width:80%;padding:10px 14px;border-radius:14px 14px 4px 14px;background:var(--s-accent);color:#fff;font-size:15px;line-height:1.4}
.ga-ans>b{display:block;font-size:16px;font-weight:640;letter-spacing:-.01em}
.ga-ans>p{margin-top:2px;font-size:13.5px;color:var(--s-ink3)}
.ga-tb{margin-top:12px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--s-hair);overflow:hidden}
.ga-r{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;height:62px;padding:0 14px;border-top:1px solid var(--s-hair)}
.ga-r:first-child{border-top:0}
.ga-i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--s-soft);color:var(--s-accent-ink)}
.ga-i svg{width:16px;height:16px}
.ga-n{display:grid;gap:4px;justify-items:start;min-width:0}
.ga-n b{font-weight:620;font-size:14.5px}
.ga-n small{font-size:12.5px;color:var(--s-ink3)}
.ga-miss{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:13px;color:var(--s-ink3)}
.ga-miss svg{width:15px;height:15px;color:var(--s-att)}
.ga-in{margin:0 14px 14px;display:flex;align-items:center;height:44px;padding:0 16px;border-radius:12px;background:var(--s-inset);font-size:14px;color:var(--s-ink3)}
.ga-act{display:grid;gap:12px;padding:16px;border-radius:14px;background:var(--s-panel2);box-shadow:inset 0 0 0 1px var(--s-hair2)}
.ga-act>small{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:620;color:var(--s-att-ink)}
.ga-act>small svg{width:14px;height:14px}
.ga-act.done>small{color:var(--s-ok-ink)}
.ga-l{display:flex;align-items:center;gap:10px;font-size:15px}
.ga-l svg{width:17px;height:17px;color:var(--s-accent-ink);flex:none}
.ga-l b{font-weight:660}
.ga-btns{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}

/* ---------- go or no-go ---------- */
.gg-card{left:40px;top:40px;width:520px;overflow:hidden}
.gg-card .sb-hd{height:52px}
.gg-f{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;height:46px;padding:0 18px;border-bottom:1px solid var(--s-hair)}
.gg-f small{font-size:13px;color:var(--s-ink3)}
.gg-f i{font-style:normal;font-size:15px}
.gg-f b{font-weight:620}
.gg-crit{top:30px}
.gg-c{display:flex;align-items:center;justify-content:space-between;gap:10px;height:42px;padding:0 16px;border-bottom:1px solid var(--s-hair);font-size:14.5px}
.gg-c b{font-weight:600;display:flex;align-items:baseline;gap:8px}
.gg-c em{font-style:normal;font-weight:500;font-size:12px;color:var(--s-ink3)}
.gg-dec{left:40px;top:448px;width:520px;height:132px;padding:14px 18px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px 16px}
.gg-who{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--s-ink2)}
.gg-who svg{width:15px;height:15px;color:var(--s-ink3)}
.gg-btns{display:flex;gap:14px}
.gg-b{display:grid;justify-items:center;gap:5px;font-size:13px;font-weight:620;color:var(--s-ink2)}
.gg-b svg{width:44px;height:44px;padding:11px;border-radius:50%;background:var(--s-inset);transition:background-color .25s var(--e-ui),color .25s var(--e-ui),transform .3s var(--e-molla)}
.gg-b{transition:opacity .3s var(--e-ui)}
.gg-b.hover svg{background:var(--s-soft)}
.gg-b.go.hover svg,.gg-b.go.on svg{background:var(--s-ok);color:#fff}
.gg-b.no.hover:not(.off) svg{background:var(--s-att);color:#fff}
.gg-b.on svg{transform:scale(1.08)}
.gg-b.off{opacity:.35}
.gg-done{grid-column:1 / -1;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--s-ok-ink)}
.gg-done svg{width:16px;height:16px}

/* ---------- report as you spend ---------- */
.gr-card{position:relative;width:520px;overflow:hidden}
.gr-card.bud{min-height:476px}
.gr-card .sb-hd{height:52px}
.gr-state{display:inline-flex}
.gr-bars{display:grid;gap:14px;padding:16px 18px 14px}
.gr-bar{display:grid;grid-template-columns:86px 1fr;align-items:center;gap:12px;font-size:13.5px;color:var(--s-ink2)}
.gr-bar i{position:relative;height:10px;border-radius:99px;background:var(--s-inset)}
.gr-bar u{position:absolute;inset:0 auto 0 0;width:var(--v);border-radius:inherit;background:var(--s-accent);transform-origin:0 50%;transition:width .7s var(--e-esce)}
.gr-bar s{position:absolute;left:var(--g);top:-4px;bottom:-4px;width:2px;border-radius:2px;background:var(--s-ink)}
.gr-spends{display:grid;gap:8px;padding:6px 14px 14px}
.gr-s{display:flex;align-items:center;gap:12px;height:56px;padding:0 12px;border-radius:12px;background:var(--s-panel2);box-shadow:inset 0 0 0 1px var(--s-hair);transition:box-shadow .3s var(--e-ui)}
.gr-s.ok{box-shadow:inset 0 0 0 1px rgb(34 164 90/.45)}
.gr-t{display:grid;flex:1;min-width:0}
.gr-t b{font-size:14.5px;font-weight:620}
.gr-t small{display:flex;align-items:center;gap:5px;font-size:12.5px;color:var(--s-ink3)}
.gr-s.ok .gr-t small{color:var(--s-ok-ink)}
.gr-t small svg{width:13px;height:13px}
.gr-p{display:inline-flex}
.gr-sec{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;gap:2px 10px;padding:14px 18px;border-bottom:1px solid var(--s-hair)}
.gr-sec b{font-size:16px;font-weight:620}
.gr-sec small{grid-column:1;font-size:13px;color:var(--s-ink3)}
.gr-sec .gr-from{grid-column:2;grid-row:1 / span 2;display:inline-flex}
.gr-sign{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px 18px 18px;font-size:13px;color:var(--s-ink3)}
.gr-sign>span{display:inline-flex;align-items:center;gap:7px}
.gr-sign svg{width:14px;height:14px;flex:none}
