/* Site navigation, shared by every page: section bar ("On this page"), current section, Back button.
   Uncrypto The Crypto™ by Borghi Consulting™ */
.pnav{position:sticky;top:var(--gnav-h,60px);z-index:50;background:rgba(245,247,250,.97);border-bottom:1px solid rgba(0,0,0,.09);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-family:'DM Sans',system-ui,sans-serif}
.pnav ul{display:flex;align-items:center;gap:.25rem 1.3rem;max-width:1100px;margin:0 auto;padding:.7rem 2rem;overflow-x:auto;white-space:nowrap;list-style:none;scrollbar-width:thin}
.pnav li{flex-shrink:0;margin:0;padding:0}
.pnav li::before,.pnav li::after{content:none!important}
.pnav a{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;text-decoration:none;color:#5f5f5f;border-bottom:2px solid transparent;padding:.2rem 0;line-height:1.4}
.pnav a:hover,.pnav a[aria-current="true"]{color:#111;border-bottom-color:#FFD100}
.pnav a:focus-visible{outline:3px solid #00A3E0;outline-offset:3px}
.pnav .pnav-up a{color:#111;border:1.5px solid #111;padding:.3rem .65rem}
.pnav .pnav-up a:hover{background:#111;color:#FFD100;border-color:#111}
.pnav .pnav-sep{width:1px;height:1.2rem;background:rgba(0,0,0,.2)}
.pnav .pnav-ext a{color:#0081b3}
.pnav .pnav-ext a::after{content:" \2192"}
.pnav .pnav-k{font-size:.62rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#9a9a9a}
@media(max-width:780px){.pnav ul{padding:.6rem 1.25rem;gap:.25rem 1.1rem}}
/* Back: returns to the exact point before an in-page jump */
.sc-back{position:fixed;left:1rem;bottom:1rem;z-index:90;padding:.7rem 1.1rem;background:#FFD100;color:#000;border:2px solid #000;font-family:'Bebas Neue',Impact,sans-serif;font-size:1.05rem;letter-spacing:.12em;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.sc-back:hover{background:#000;color:#FFD100}
.sc-back:focus-visible{outline:3px solid #00A3E0;outline-offset:3px}
.sc-back[hidden]{display:none}
/* Terms pages: the contents column starts under the two bars */
@media(min-width:901px){.toc-sidebar{top:var(--sc-top,106px)!important;height:calc(100vh - var(--sc-top,106px))!important}}
/* Terms pages force their own anchor offset: align it with the two bars */
.legal-section,.part-header,#toc{scroll-margin-top:calc(var(--sc-top,106px) + 14px)!important}
/* One invitation per visit (newsletter or Quick Check) */
.nudge{position:fixed;right:1rem;bottom:5.2rem;z-index:95;width:min(340px,calc(100vw - 2rem));padding:1.15rem 1.25rem 1.2rem;background:#fff;border:1px solid rgba(0,0,0,.1);border-top:4px solid #FFD100;box-shadow:0 12px 36px rgba(0,0,0,.18);font-family:'DM Sans',system-ui,sans-serif;opacity:0;transform:translateY(16px);transition:opacity .3s,transform .3s}
.nudge.on{opacity:1;transform:none}
.nudge-x{position:absolute;top:.35rem;right:.45rem;width:2rem;height:2rem;border:0;background:none;font-size:1.4rem;line-height:1;color:#6f6f6f;cursor:pointer}
.nudge-x:hover{color:#111}
.nudge-k{display:block;font-size:.64rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#6f6f6f;margin:0 1.6rem .35rem 0}
.nudge-t{margin:0 0 .35rem;font-family:'Bebas Neue',Impact,sans-serif;font-size:1.45rem;letter-spacing:.04em;line-height:1.1;color:#111}
.nudge-p{margin:0 0 .9rem;font-size:.85rem;line-height:1.55;color:#3a3a3a}
.nudge-cta{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#111;color:#fff;font-family:'Bebas Neue',Impact,sans-serif;font-size:1.1rem;letter-spacing:.1em;text-decoration:none;border:2px solid #111}
.nudge-cta:hover{background:#FFD100;color:#111;border-color:#FFD100}
.nudge-x:focus-visible,.nudge-cta:focus-visible{outline:3px solid #00A3E0;outline-offset:2px}
.nudge-ctas{display:grid;gap:8px}
.nudge-chips{display:flex;flex-wrap:wrap;gap:6px}
.nudge-chip{padding:.45rem .7rem;border:1.5px solid #111;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#111;text-decoration:none}
.nudge-chip:hover{background:#111;color:#FFD100}
.nudge-chip:focus-visible{outline:3px solid #00A3E0;outline-offset:2px}
@media(max-width:560px){.nudge{left:1rem;right:1rem;width:auto;bottom:4.8rem}}
@media(prefers-reduced-motion:reduce){.nudge{transition:none}}
@media print{.nudge{display:none!important}}
@media print{.pnav,.sc-back{display:none!important}}

/* Ask the hive: site assistant */
.ah-launch{position:fixed;left:1rem;bottom:1rem;z-index:96;display:flex;align-items:center;gap:.55rem;padding:.4rem .95rem .4rem .55rem;background:#111;color:#fff;border:2px solid #111;font-family:'Bebas Neue',Impact,sans-serif;font-size:1.05rem;letter-spacing:.1em;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.28)}
.ah-launch:hover{background:#FFD100;color:#111;border-color:#111}
.ah-launch:focus-visible{outline:3px solid #00A3E0;outline-offset:3px}
.ah-pair{position:relative;display:inline-flex;align-items:flex-end;gap:1px}
.ah-pair img{display:block;height:32px;width:auto;transform-origin:50% 85%;animation:ahtalk 2.4s ease-in-out infinite;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}
.ah-pair img+img{animation-delay:-1.2s}
.ah-talk{position:absolute;top:-6px;left:50%;display:flex;gap:2px;padding:2px 4px;background:#FFD100;border-radius:8px;transform:translateX(-50%);animation:ahbubble 2.4s ease-in-out infinite}
.ah-talk i{width:3px;height:3px;border-radius:50%;background:#111;animation:ahdot 1s infinite}
.ah-talk i:nth-child(2){animation-delay:.15s}.ah-talk i:nth-child(3){animation-delay:.3s}
@keyframes ahtalk{0%,100%{transform:translateY(0) rotate(-5deg)}25%{transform:translateY(-3px) rotate(4deg)}50%{transform:translateY(0) rotate(-2deg)}}
@keyframes ahbubble{0%,45%{left:28%}50%,95%{left:72%}100%{left:28%}}
@keyframes ahdot{0%,100%{opacity:.25}50%{opacity:1}}
body.has-ah .sc-back{left:calc(1rem + var(--ah-w,180px) + 8px)}
body.ah-open .nudge{display:none}
.ah-panel{position:fixed;left:1rem;bottom:1rem;z-index:1001;width:min(400px,calc(100vw - 2rem));height:min(600px,calc(100vh - 6rem));display:flex;flex-direction:column;background:#F5F7FA;border:1px solid rgba(0,0,0,.12);border-top:4px solid #FFD100;box-shadow:0 18px 50px rgba(0,0,0,.28);font-family:'DM Sans',system-ui,sans-serif;opacity:0;transform:translateY(14px);transition:opacity .25s,transform .25s}
.ah-panel.on{opacity:1;transform:none}
.ah-panel[hidden]{display:none}
.ah-head{display:flex;align-items:center;gap:.8rem;padding:.8rem 1rem .7rem;background:#111;color:#fff}
.ah-head .ah-pair img{height:44px}
.ah-head .ah-talk{top:-4px}
.ah-title{flex:1;display:flex;flex-direction:column;line-height:1.1}
.ah-title b{font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;font-size:1.5rem;letter-spacing:.08em;color:#FFD100}
.ah-title small{font-size:.72rem;letter-spacing:.08em;color:rgba(255,255,255,.7)}
.ah-x{width:2.2rem;height:2.2rem;border:1.5px solid rgba(255,255,255,.4);background:none;color:#fff;font-size:1.3rem;line-height:1;cursor:pointer}
.ah-x:hover{background:#FFD100;color:#111;border-color:#FFD100}
.ah-log{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.7rem;scroll-behavior:smooth}
.ah-row{display:flex;gap:.5rem;align-items:flex-end}
.ah-row .ah-bee{flex-shrink:0;height:32px;width:auto}
.ah-me{justify-content:flex-end}
.ah-msg{max-width:85%;padding:.7rem .85rem;font-size:.86rem;line-height:1.55;color:#222;background:#fff;border:1px solid rgba(0,0,0,.08)}
.ah-me .ah-msg{background:#111;color:#fff;border-color:#111}
.ah-msg p{margin:0 0 .45rem}.ah-msg p:last-child{margin:0}
.ah-badge{display:inline-block;margin-bottom:.35rem;padding:.1rem .45rem;font-size:.62rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;background:#FFF6CC;border:1px solid #FFD100;color:#111}
.ah-ti{font-weight:700;color:#111}
.ah-more{margin-top:.6rem!important;font-size:.66rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#6f6f6f}
.ah-links{display:grid;gap:4px;margin-top:.35rem}
.ah-links a{display:block;padding:.45rem .6rem;border:1px solid rgba(0,0,0,.12);background:#F5F7FA;color:#111;font-weight:600;font-size:.8rem;text-decoration:none}
.ah-links a small{display:block;font-weight:400;font-size:.7rem;color:#6f6f6f}
.ah-links a:hover{border-color:#00A3E0;background:#fff}
.ah-main a{background:#111;color:#fff;border-color:#111}
.ah-main a:hover{background:#FFD100;color:#111;border-color:#FFD100}
.ah-chips{display:flex;flex-wrap:wrap;gap:6px;padding-left:2.4rem}
.ah-chip{padding:.4rem .65rem;border:1.5px solid #111;background:#fff;font:600 .76rem/1.3 'DM Sans',system-ui,sans-serif;color:#111;cursor:pointer;text-align:left}
.ah-chip:hover{background:#111;color:#FFD100}
.ah-dots{display:inline-flex;gap:4px;padding:.2rem 0}
.ah-dots i{width:6px;height:6px;border-radius:50%;background:#111;animation:ahdot 1s infinite}
.ah-dots i:nth-child(2){animation-delay:.15s}.ah-dots i:nth-child(3){animation-delay:.3s}
.ah-form{display:flex;gap:6px;padding:.7rem 1rem;border-top:1px solid rgba(0,0,0,.08);background:#fff}
.ah-form input{flex:1;min-width:0;padding:.65rem .75rem;border:1.5px solid #111;font:500 16px 'DM Sans',system-ui,sans-serif;color:#111;background:#fff}
.ah-form input:focus{outline:3px solid #00A3E0;outline-offset:1px}
.ah-form button{width:2.8rem;border:2px solid #111;background:#111;color:#FFD100;font-size:1.2rem;cursor:pointer}
.ah-form button:hover{background:#FFD100;color:#111}
.ah-note{margin:0;padding:.45rem 1rem .6rem;font-size:.66rem;line-height:1.4;color:#6f6f6f;background:#fff}
.ah-panel .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ah-chip:focus-visible,.ah-links a:focus-visible,.ah-x:focus-visible,.ah-form button:focus-visible{outline:3px solid #00A3E0;outline-offset:2px}
@media(max-width:560px){
 .ah-label{display:none}
 .ah-launch{padding:.4rem .55rem}
 .ah-panel{left:0;right:0;bottom:0;width:100%;height:88vh;height:88dvh;border-left:0;border-right:0}
 .ah-msg{max-width:90%}
}
@media(prefers-reduced-motion:reduce){.ah-pair img,.ah-talk,.ah-talk i,.ah-dots i{animation:none}.ah-panel{transition:none}}
@media print{.ah-launch,.ah-panel{display:none!important}}

/* main menu with eight items: keep one line between 900 and 1199 px */
@media (min-width:900px) and (max-width:1199px){
  .gnav .gnav-links ul{gap:.8rem}
  .gnav .gnav-links a{font-size:.68rem;letter-spacing:.1em;white-space:nowrap}
  .gnav .gnav-links a.gnav-cta{padding:.55rem .7rem}
  .gnav .gnav-logo{font-size:1.15rem}
  .gnav .gnav-logo small{font-size:.55rem;letter-spacing:.16em}
}
@media (min-width:1200px) and (max-width:1320px){
  .gnav .gnav-links ul{gap:1.15rem}
  .gnav .gnav-links a{letter-spacing:.14em;white-space:nowrap}
}

/* Ask the hive: welcome, and the phone sheet */
.ah-hello{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;padding:.4rem .6rem .8rem}
.ah-hello-bees{display:flex;gap:4px}
.ah-hello-bees img{height:60px;width:auto;animation:ahtalk 2.4s ease-in-out infinite}
.ah-hello-bees img+img{animation-delay:-1.2s}
.ah-hello p{margin:0;max-width:30ch;font-size:.88rem;line-height:1.5;color:#333}
.ah-chips{padding-left:0;justify-content:center}
.ah-panel,.ah-launch{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.ah-panel *{max-width:100%}
.ah-msg,.ah-links a{overflow-wrap:anywhere}
.ah-log{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media(max-width:560px){
 .ah-panel{top:0;bottom:auto;left:0;right:0;width:100%;height:100vh;height:100dvh;border:0;border-top:4px solid #FFD100;box-shadow:none;overflow:hidden}
 .ah-head{padding:.6rem .8rem}
 .ah-head .ah-pair img{height:36px}
 .ah-title b{font-size:1.3rem}
 .ah-x{width:2.6rem;height:2.6rem}
 .ah-log{padding:.8rem .7rem}
 .ah-form{padding:.6rem .7rem .4rem}
 .ah-form button{width:3rem}
 .ah-note{padding:.2rem .8rem calc(.5rem + env(safe-area-inset-bottom));font-size:.64rem}
 .ah-chip{font-size:.85rem;padding:.5rem .7rem}
 .ah-msg{max-width:calc(100% - 2.2rem);font-size:.92rem}
}
