/* Same back-pill markup, icon, typography, and position as the case studies. */
body:has(.collection-back) .tab-bar{display:none!important}
.back-pill.collection-back{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;display:inline-flex;align-items:center;gap:6px;padding:8px 18px 8px 8px;background:#fff;border-radius:999px;box-shadow:0 8px 16px #0000001a;text-decoration:none;color:#1b1b1b;min-height:44px;transition:transform 160ms cubic-bezier(.23,1,.32,1)}
.collection-back .back-pill-icon{display:block;width:24px;height:24px;background:#1b1b1b;mask:url('/images/back.svg') center/contain no-repeat;-webkit-mask:url('/images/back.svg') center/contain no-repeat;pointer-events:none}
.collection-back .back-pill-label{font-family:'Hershey Noailles Times',Georgia,serif;font-size:22px;line-height:1;color:#1b1b1b;white-space:nowrap;pointer-events:none}
html.dark .back-pill.collection-back{background:#202020;color:#e8e8e8;box-shadow:0 8px 16px #0004}
html.dark .collection-back .back-pill-icon{background:#e8e8e8}
html.dark .collection-back .back-pill-label{color:#e8e8e8}
.collection-back:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(hover:hover) and (pointer:fine){.back-pill.collection-back:hover{transform:translateX(-50%) scale(1.03)}}
.back-pill.collection-back:active{transform:translateX(-50%) scale(.97)}
@media(prefers-reduced-motion:reduce){.back-pill.collection-back{transition:none}}
/* The visible pill contracts; the link keeps its full 44px touch height. */
.back-pill.collection-back{box-sizing:border-box;background:transparent!important;box-shadow:none!important;isolation:isolate;width:104px!important;height:44px!important;padding:8px 18px 8px 8px!important;gap:6px!important}
.collection-back .back-pill-icon{width:24px!important;height:24px!important;flex-shrink:0}
.collection-back .back-pill-label{font-size:22px!important;max-width:80px!important}
.back-pill.collection-back::before{content:'';position:absolute;left:50%;top:50%;width:104px;height:44px;border-radius:999px;background:#fff;box-shadow:0 8px 16px #0000001a;z-index:-1;pointer-events:none;transform:translate(-50%,-50%);transition:width 180ms cubic-bezier(.23,1,.32,1),height 180ms cubic-bezier(.23,1,.32,1)}
.back-pill.collection-back::after{content:'';position:absolute;left:50%;top:50%;width:6px;height:6px;background:#1b1b1b66;border-radius:50%;transform:translate(-50%,-50%) scale(.95);opacity:0;pointer-events:none;transition:opacity 125ms cubic-bezier(.23,1,.32,1),transform 180ms cubic-bezier(.23,1,.32,1)}
.collection-back .back-pill-icon,.collection-back .back-pill-label{transition:opacity 125ms cubic-bezier(.23,1,.32,1),transform 180ms cubic-bezier(.23,1,.32,1)}
/* Resize rather than scale so the corners stay fully round: a true 20px circle. */
.collection-back.is-mini:not(.is-back-engaged):not(:focus-visible)::before{width:20px;height:20px}
.collection-back.is-mini:not(.is-back-engaged):not(:focus-visible)::after{opacity:1;transform:translate(-50%,-50%) scale(1)}
.collection-back.is-mini:not(.is-back-engaged):not(:focus-visible) .back-pill-icon,.collection-back.is-mini:not(.is-back-engaged):not(:focus-visible) .back-pill-label{opacity:0;transform:scale(.95)}
html.dark .collection-back::before{background:#202020;box-shadow:0 8px 16px #0004}
html.dark .collection-back::after{background:#e8e8e899}
.collection-back:focus-visible,.collection-back:focus-visible::before,.collection-back:focus-visible::after,.collection-back:focus-visible .back-pill-icon,.collection-back:focus-visible .back-pill-label{transition:none}
@media(prefers-reduced-motion:reduce){.collection-back::before,.collection-back::after,.collection-back .back-pill-icon,.collection-back .back-pill-label{transition:none}}
