/* Qrypt 1.0.16 refinements. Loads last on every page. */

/* Official Qrypt logo (vector from Qrypt) in the header and footer */
.brand{gap:0!important;font-size:0!important;line-height:0!important;letter-spacing:0!important;color:transparent!important}
.brand .brand-mark{display:none!important}
.brand::before{content:"";display:block;height:30px;aspect-ratio:1466/441;background:url(logo-white.svg) left center/contain no-repeat}
.hdr:not(.on-ink) .brand::before{background-image:url(logo-ink.svg)}
.ftr-brand-lg::before{height:clamp(46px,5.4vw,78px);max-width:100%}
@media (max-width:600px){.hdr .brand::before{height:27px}}

/* Phones and tablets: the header shows logo, Sign in and the menu button.
   The two header buttons move into the menu, as designed. */
@media (max-width:1080px){
  .hdr .hdr-cta .btn{display:none!important}
}

/* Crypto Agility: mobile order (headline and buttons first, graphic after) */
@media (max-width:782px){
  body.page-id-85 .ca-hero .ca-art{order:2!important;margin-top:18px!important}
}

/* Crypto Agility: caption that explains the cycling graphic, on its own plate */
.ca-art .ca-cap{margin:14px 0 0;padding:13px 16px 13px 15px;font-size:15px;line-height:1.55;color:rgba(255,255,255,.93);
  background:rgba(7,12,22,.78);border:1px solid rgba(90,209,255,.26);border-left:3px solid #5AD1FF;border-radius:12px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* Quantum pulse: two faint emitters whose rings overlap, added to page heroes by motion.js */
.qp{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.qp i{position:absolute;top:80%;width:4px;height:4px;border-radius:50%;transform:translateY(-50%);
  background:rgba(90,209,255,.6);opacity:.8;animation:radarPing 3.2s ease-out infinite}
.qp i:first-child{right:14%}
.qp i:last-child{right:8%;width:2px;height:2px;background:rgba(90,209,255,.45);animation-delay:1.6s}
@media (max-width:960px){.qp{display:none}}
@media (prefers-reduced-motion:reduce){.qp{display:none}}

/* Home "What Are You Trying to Secure?" on phones and small tablets:
   the 3D stack becomes a plain list so nothing overlaps or runs off screen */
@media (max-width:782px){
  .uc3-stage{height:auto!important;padding:0!important;perspective:none!important}
  .uc3-deck{position:relative!important;inset:auto!important;transform:none!important;display:flex;flex-direction:column;gap:10px}
  .uc3-slab{position:relative!important;left:auto!important;top:auto!important;width:100%!important;margin:0!important;
    height:auto!important;min-height:64px;padding:12px 16px!important;transform:none!important;opacity:1!important;
    -webkit-backdrop-filter:none;backdrop-filter:none}
  .uc3-core{position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;margin-top:22px}
  .uc3-grid{gap:26px!important}
}

/* Mobile menu: lock the page, not the body, so the header (and its close button)
   stays on screen when the menu is opened partway down a page */
html:has(.mnav.open){overflow:hidden!important}
html:has(.mnav.open) body{overflow:visible!important}

/* Phones: the Human / Machine switch no longer floats over page content */
@media (max-width:600px){
  .hm-dock{display:none!important}
}

/* Research, News & Insights: cards in a row share one height, and blog posts
   get a type label like the others so titles and Read more line up */
html .rs-grid{align-items:stretch}
html .rs-card[data-type="Blog Post"] .rs-cbody::before{content:"Blog Post";display:inline-flex;align-items:center;align-self:flex-start;
  padding:5px 11px;border-radius:8px;background:color-mix(in oklab,#1F5FE0 11%,#fff);font-size:13px;font-weight:700;letter-spacing:.03em;
  line-height:22px;color:color-mix(in oklab,#1F5FE0 78%,#0A1020);margin-bottom:12px}

/* Developers: 4 projects. 4 across on wide screens, 2x2 on mid, 1 on phones; buttons line up */
html .gs-shelf{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1180px){html .gs-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){html .gs-shelf{grid-template-columns:1fr}}
html .gs-app .gs-get{margin-top:auto}
html .gs-app .gs-app-p{margin-bottom:16px}
/* Developers: project symbols (white logo mark on the card gradient) */
html .gs-app .gs-art{height:auto;aspect-ratio:16/9;background-repeat:no-repeat,no-repeat;background-position:center,center;background-size:auto 76%,cover}
html .gs-app[data-project="VPP + WireGuard"] .gs-art{background-image:url(dev-icon-vpp.svg),var(--art)}
html .gs-app[data-project="QMessenger"] .gs-art{background-image:url(dev-icon-qmessenger.svg),var(--art)}
html .gs-app[data-project="MCP for AI coding agents"] .gs-art{background-image:url(dev-icon-mcp.svg),var(--art)}
html .gs-app[data-project="CBOM"] .gs-art{background-image:url(dev-icon-cbom.svg),var(--art)}
/* Developers agent setup: let the logo row wrap (Safari clipped it) and make the llms.txt link readable */
html .gs-alogos{flex-wrap:wrap!important;overflow:visible!important;row-gap:12px!important}
html .gs-alogos img{width:auto!important;max-width:none;object-fit:contain}
html .gs-abtns .gs-link{color:#16233F}
/* Safari 17 and older need the -webkit- prefix for frosted-glass blur */
html .ab-cchip,html .rs-chip{-webkit-backdrop-filter:blur(3px)}
.ail-card.ghost,.mx{-webkit-backdrop-filter:blur(2px)}
html .qm-back{-webkit-backdrop-filter:blur(6px)}
.hg-eo,html .rs-tools{-webkit-backdrop-filter:blur(10px)}
.hdr.mo-scrolled{-webkit-backdrop-filter:blur(18px) saturate(1.3)}
.uc3-slab{-webkit-backdrop-filter:blur(8px)}
.ail-card.apikey{-webkit-backdrop-filter:none!important}
/* A11y: role-page tier headings moved from h4 to h3 (no skipped levels); keep the same look */
.tier h3.tier-h{font-size:18.5px;font-weight:700;letter-spacing:-.03em;line-height:1.1;margin:0 0 8px;color:#111823}
/* A11y: stat units on dark sections were 3.4:1, now pass 4.5:1 */
.t-ink .st .sv .u,.t-ink2 .st .sv .u{color:#9AA6B8}

/* Entropy hero: compressed JPEG instead of the 1.4MB PNG */
html .hero-flag .hero-flagimg{background-image:url(entropy-hero-flag.jpg)}
/* Phones: no text under 12px */
@media (max-width:600px){html .ssw-label,html .spx-k,html .fx-hy i,html .dcu i,html .rc .rl,html .wn-pk,html .gs-atk{font-size:12px!important}}
/* Developers page fixes (moved from the page style block) */
html .gs-app .gs-art{background-size:auto 76%,cover}
html .gs-alogos{flex-wrap:wrap!important;overflow:visible!important;row-gap:12px!important}
html .gs-alogos img{width:auto!important;max-width:none;object-fit:contain}
html .gs-abtns .gs-link{color:#16233F}
html .gs-gate{color:#fff!important}