/* Embed badge + ?embed=1 mode. Shared by every Works, lab and hub page. */
.embedbtn{position:relative;margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:2px solid var(--item,var(--brand,#0B6575));border-radius:50%;background:var(--surface,#F8FAFB);color:var(--ink,#14202B);cursor:pointer;font:700 14px "Public Sans",system-ui,sans-serif;transition:background .15s,transform .15s,border-color .15s}
.embedbtn svg.eico{width:30px;height:26px;flex:none;pointer-events:none}
.embedbtn .eico circle{transform-box:fill-box;transform-origin:center}
.embedbtn:hover .eico circle,.embedbtn:focus-visible .eico circle{animation:embhop .5s ease both}
.embedbtn:hover .e2,.embedbtn:focus-visible .e2{animation-delay:.06s}
.embedbtn:hover .e3,.embedbtn:focus-visible .e3{animation-delay:.12s}
.embedbtn:hover .e4,.embedbtn:focus-visible .e4{animation-delay:.18s}
@keyframes embhop{50%{transform:translateY(-3px)}}
.embedbtn:hover{background:color-mix(in srgb,var(--item,#0B6575) 14%,var(--surface,#F8FAFB));transform:translateY(-1px)}
.embedbtn:focus-visible{outline:3px solid var(--item,#0B6575);outline-offset:2px}
.embedbtn.done{background:#FFC247;border-color:var(--ink,#14202B)}
.embedbtn .elbl{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);white-space:nowrap;background:var(--ink,#14202B);color:#fff;border-radius:999px;padding:5px 12px;font:700 13px "Public Sans",system-ui,sans-serif;opacity:0;pointer-events:none;transition:opacity .15s}
.embedbtn:hover .elbl,.embedbtn:focus-visible .elbl{opacity:1}
.embedbtn.done .elbl,.embedbtn.open .elbl{opacity:0}
.embedpop{position:absolute;right:0;top:56px;z-index:30;width:min(320px,calc(100vw - 32px));background:var(--surface,#F8FAFB);border:2px solid var(--ink,#14202B);border-radius:14px;padding:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);display:none;text-align:left;color:var(--ink,#14202B);font:500 14px/1.4 "Public Sans",system-ui,sans-serif;cursor:default}
.embedbtn.open .embedpop{display:block}
.embedpop b{display:block;margin-bottom:6px}
.embedpop code{display:block;background:var(--bg,#EDF1F4);border:1px solid var(--line,#CBD6DD);border-radius:8px;padding:8px;font:12px/1.4 ui-monospace,Menlo,monospace;word-break:break-all;color:var(--ink-2,#51636F);user-select:all}
.embedpop small{display:block;margin-top:6px;color:var(--ink-2,#51636F)}
.bwb.has-embed{position:relative}
.bwb.has-embed h1{min-width:0}
@media(max-width:520px){.bwb.has-embed{gap:10px}.bwb.has-embed .bwlogo{width:48px;height:48px}.bwb.has-embed h1{font-size:clamp(26px,8.6vw,38px)}.bwb .embedbtn{width:42px;height:42px}}
.tbar .embedbtn{margin-left:auto;width:38px;height:38px}.tbar .embedbtn svg.eico{width:26px}
@media(prefers-reduced-motion:reduce){.embedbtn:hover .eico circle{animation:none}}

/* ---- embed mode (?embed=1) ---- */
html.embed .embedbtn,html.embed header .tbar,html.embed header.top,html.embed .lede,html.embed .trk,html.embed .foot,html.embed section.seo,html.embed .certban,html.embed #cert-banner,html.embed #cert-modal,html.embed #support,html.embed .labsnote{display:none!important}
html.embed body{padding-top:10px}
.embcredit{margin:18px 0 6px;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;justify-content:flex-end;font:600 13px "Public Sans",system-ui,sans-serif;color:var(--ink-2,#51636F)}
.embcredit a{color:var(--brand,#0B6575);text-decoration:none;border:2px solid var(--item,var(--brand,#0B6575));border-radius:999px;padding:5px 14px;font-weight:700;background:var(--surface,#F8FAFB)}
.embcredit a:hover{background:color-mix(in srgb,var(--item,#0B6575) 14%,var(--surface,#F8FAFB))}
