/* /collaborations/ — the stories of work done together with outside researchers and engineers (owner, 12.11.2026).
   Built by site/build-collab.py on top of site.css (the main-site look); this file only adds the reading layout. */
.cb { max-width: 820px; margin: 0 auto; padding: 70px 0 0; text-align: left; }
.cb-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.cb-kicker a { color: inherit; }
.cb h1 { margin: 10px 0 8px; font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.cb-with { font-size: 1.12rem; color: var(--muted); }
.cb-with b { color: var(--text); font-weight: 700; }
.cb-with a { color: var(--link); }
.cb-lead { margin-top: 18px; font-size: 1.12rem; line-height: 1.65; color: #dcdce6; }
.cb-sum { margin: 28px 0 0; padding: 22px 24px; border-radius: 18px; border: 1px solid rgb(78 205 196 / .35);
  background: linear-gradient(135deg, rgb(78 205 196 / .07), rgb(102 126 234 / .06)); }
.cb-sum > p:first-child { margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.cb-sum p, .cb-sum li { font-size: 1.02rem; line-height: 1.6; color: #e6e6ee; }
.cb-sum ul { margin: 6px 0 0; padding-left: 1.2em; list-style: disc; }
.cb-sum li + li { margin-top: 6px; }
.cb-toc { margin: 22px 0 0; padding: 16px 22px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .02); }
.cb-toc p { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cb-toc ol { list-style: decimal; padding-left: 1.4em; columns: 2 240px; column-gap: 30px; }
.cb-toc li { padding: 3px 0; break-inside: avoid; }
.cb-toc a { color: var(--link); }
.cb-body { margin-top: 10px; font-size: 1.04rem; line-height: 1.7; color: #e2e2ea; }
.cb-body h2 { margin: 46px 0 12px; font-size: 1.6rem; font-weight: 800; line-height: 1.25; text-align: left; scroll-margin-top: 20px; }
.cb-body h3 { margin: 26px 0 8px; font-size: 1.18rem; font-weight: 700; }
.cb-body p { margin: 12px 0; }
.cb-body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.cb-body ul { list-style: disc; padding-left: 1.3em; margin: 12px 0; }
.cb-body ol { list-style: decimal; padding-left: 1.4em; margin: 12px 0; }
.cb-body li { margin: 6px 0; }
.cb-body strong { color: #fff; }
.cb-body blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink); color: #f1e6ff; font-style: italic; }
.cb-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: 1px 5px; border-radius: 5px; background: rgb(255 255 255 / .07); }
.cb-body pre { margin: 16px 0; padding: 16px 18px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: #121218; line-height: 1.5; }
.cb-body pre code { padding: 0; background: none; font-size: .86rem; white-space: pre; }
.cb-body table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.cb-body th, .cb-body td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cb-body th { color: var(--muted); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.cb-body td:not(:first-child), .cb-body th:not(:first-child) { white-space: nowrap; }
.cb-fig { margin: 22px 0; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgb(255 255 255 / .02); }
.cb-fig svg { display: block; width: 100%; height: auto; }
.cb-fig figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.cb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.cb-tile { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .03); }
.cb-tile b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--teal); }
.cb-tile span { display: block; margin-top: 6px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.cb-time { list-style: none !important; padding-left: 0 !important; border-left: 2px solid rgb(102 126 234 / .4); margin-left: 6px !important; }
.cb-time li { position: relative; padding: 0 0 14px 20px; margin: 0 !important; }
.cb-time li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.cb-time time { display: block; font-weight: 700; color: var(--teal); font-size: .92rem; }
/* SVG diagrams: colours from the page, so they read on the dark site */
.sv-box { fill: rgb(255 255 255 / .04); stroke: rgb(255 255 255 / .22); stroke-width: 1.2; }
.sv-a { fill: rgb(102 126 234 / .16); stroke: var(--blue); stroke-width: 1.4; }
.sv-b { fill: rgb(240 147 251 / .13); stroke: var(--pink); stroke-width: 1.4; }
.sv-c { fill: rgb(78 205 196 / .14); stroke: var(--teal); stroke-width: 1.4; }
.sv-d { fill: rgb(255 159 67 / .14); stroke: var(--orange); stroke-width: 1.4; }
.sv-t { fill: #ececf4; font-family: Montserrat, system-ui, sans-serif; font-size: 14px; }
.sv-s { fill: #b8b8c8; font-family: Montserrat, system-ui, sans-serif; font-size: 12px; }
.sv-n { fill: #fff; font-family: Montserrat, system-ui, sans-serif; font-size: 22px; font-weight: 800; }
.sv-ar { stroke: #9a9ab0; stroke-width: 1.6; fill: none; }
.sv-hd { fill: #9a9ab0; }
.sv-ok { fill: var(--teal); }
.sv-no { fill: var(--pink); }
.sv-gr { fill: rgb(255 255 255 / .18); }
/* the index: cards */
.cb-cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 18px 0; }
.cb-card { padding: 24px; border-radius: 20px; border: 1px solid var(--line); border-top: 3px solid var(--ac, var(--blue)); background: rgb(255 255 255 / .03); }
.cb-card.c1 { --ac: var(--teal); } .cb-card.c2 { --ac: var(--pink); } .cb-card.c3 { --ac: var(--orange); }
.cb-card .hook { font-size: 1.08rem; line-height: 1.6; color: #f0f0f6; }
.cb-card h3 { margin: 12px 0 4px; font-size: 1.25rem; line-height: 1.3; }
.cb-card h3 a { color: var(--text); text-decoration: none; }
.cb-card .cb-who { font-size: .95rem; color: var(--muted); }
.cb-card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--ac); }
.cb .contact { padding-top: 60px; text-align: center; }
.cb .contact h2 { font-size: 2rem; margin-bottom: 14px; }
.cb .contact > p { max-width: 600px; margin: 0 auto 26px; color: var(--muted); line-height: 1.6; }
.cb-back { margin: 40px 0 0; font-size: .95rem; }
.cb-back a { color: var(--link); }
@media (max-width: 640px) { .cb { padding-top: 40px; } .cb-sum { padding: 18px 16px; } .cb-body h2 { font-size: 1.35rem; } }
/* the block on /duo/ (site/inject-duo-collab.py): three story fragments, then Read more */
.d-collab { max-width: 1100px; margin: 0 auto; padding-top: 70px; text-align: left; }
.d-collab h2 { text-align: left; }
.d-collab-lead { max-width: 72ch; font-size: 1.05rem; line-height: 1.6; color: var(--muted); margin-bottom: 22px; }
.d-collab .lc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-collab .lc-card p { color: #e4e4ec; font-size: 1rem; }
.d-collab .btns { justify-content: flex-start; margin-top: 22px; }
@media (max-width: 960px) { .d-collab .lc-grid { grid-template-columns: 1fr; } }
