/* Aperture Research Works V160 content release.
   V129 layout and page structure remain authoritative. */

/* Keep the secondary proof action available without occupying the bottom action rail. */
.v116-work-sticky,
.work-sticky.v116-work-sticky{
  display:inline-flex!important;
  position:fixed!important;
  top:calc(112px + env(safe-area-inset-top))!important;
  right:auto!important;
  bottom:auto!important;
  left:50%!important;
  z-index:8700!important;
  min-width:0!important;
  width:auto!important;
  max-width:min(176px,calc(100vw - 32px))!important;
  min-height:46px!important;
  padding:.58rem .82rem!important;
  border:1px solid rgba(0,0,0,.72)!important;
  border-radius:999px!important;
  background:#ffdf00!important;
  color:#000!important;
  box-shadow:0 7px 18px rgba(0,0,0,.14)!important;
  opacity:.94!important;
  transform:translateX(-50%)!important;
  text-align:center!important;
  line-height:1.08!important;
}
.v116-work-sticky span,
.work-sticky.v116-work-sticky span{
  color:#000!important;
  font-size:.79rem!important;
  font-weight:850!important;
  white-space:normal!important;
}
body:has(.v116-work-sticky) main{padding-top:54px}
.v116-work-sticky:hover,
.v116-work-sticky:focus-visible,
.work-sticky.v116-work-sticky:hover,
.work-sticky.v116-work-sticky:focus-visible{
  opacity:1!important;
  transform:translate(-50%,-1px)!important;
  box-shadow:0 9px 22px rgba(0,0,0,.18)!important;
}

/* One canonical metric register supplies these public operating-scale figures. */
.system-live-footer{
  padding:clamp(2.4rem,5vw,4.5rem) 0;
  background:#eef5ff!important;
  color:#000!important;
  border-top:8px solid transparent;
  border-image:linear-gradient(90deg,#2369c7 0 18%,#18b8c9 18% 36%,#67cf18 36% 54%,#ffdc16 54% 70%,#ff7416 70% 84%,#e46f68 84% 94%,#7553ae 94%) 1;
}
.system-live-footer h2{max-width:780px;margin:.35rem 0 1.4rem;color:#000!important}
.system-live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.system-live-card{
  min-width:0;padding:clamp(1rem,2.5vw,1.7rem);border:1px solid #c7d2dd;border-radius:22px;
  background:#fff!important;color:#000!important;box-shadow:0 8px 20px rgba(20,40,60,.05)
}
.system-live-card strong{display:block;font-size:clamp(2.2rem,6vw,4.4rem);line-height:.95;letter-spacing:-.055em;color:#000!important}
.system-live-card span{display:block;margin-top:.8rem;font-weight:850;line-height:1.15;text-transform:uppercase;color:#000!important}
.system-live-note{max-width:920px;margin:1.25rem 0 0;color:#000!important}

/* Privacy is a reading page: light canvas, contained measure, dependable mobile rhythm. */
body.privacy-page,body.privacy-page main,body.privacy-page main section,
body.privacy-page main .prose,body.privacy-page main .regulatory-callout{
  background:#fff!important;color:#000!important;background-image:none!important;
}
body.privacy-page main :is(h1,h2,h3,p,li,a,strong,em){color:#000!important}
body.privacy-page main .shell.narrow{width:min(100% - 32px,780px)!important;margin-inline:auto!important}
body.privacy-page main .section{padding-block:clamp(2rem,5vw,4.5rem)!important}
body.privacy-page main .prose h2{margin-top:2.1rem!important;margin-bottom:.65rem!important;line-height:1.15!important}
body.privacy-page main .prose p{margin:.55rem 0 1rem!important;line-height:1.68!important}
body.privacy-page main #regulated-data-boundary{margin:2rem 0 0;padding:1.25rem;border:1px solid #cbd5df;border-radius:16px;background:#fff!important}
body.privacy-page main .regulatory-callout .shell{padding:1.25rem;border:1px solid #cbd5df;border-radius:16px;background:#fff!important}

/* Public boundary and notice panels must never render dark-on-dark. */
.v160-boundary-summary,.v160-receive-summary,
.v160-boundary-summary .card,.communication-notice,.output-language-notice{
  background:#fff!important;color:#000!important;background-image:none!important;
}
.v160-boundary-summary :is(h2,h3,p,a,strong),.v160-receive-summary :is(h2,h3,p,li,a,strong),
.communication-notice :is(h2,h3,p,a,strong),.output-language-notice :is(h2,h3,p,a,strong){color:#000!important}
.communication-notice,.output-language-notice{
  box-sizing:border-box;width:100%;margin:1.2rem 0;padding:1rem 1.1rem;border:1px solid #c8d2dc;border-radius:14px;
  line-height:1.55;overflow-wrap:anywhere;
}

/* Academic quotation: readable reference and consent rows at every width. */
.page-enquiry .v111-academic-reference-card,
.page-enquiry .v111-academic-reference{
  background:#fff!important;color:#000!important;background-image:none!important;
}
.page-enquiry .v111-academic-reference{
  display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;
  border:1px solid #9aa9b5!important;line-height:1.45!important;overflow-wrap:anywhere!important;
}
.page-enquiry .v111-reference-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:stretch!important;
  gap:.75rem!important;width:100%!important;min-width:0!important;
}
.page-enquiry .v111-copy-reference{
  box-sizing:border-box!important;min-width:150px!important;background:#fff!important;color:#000!important;
}
.page-enquiry #academic-quotation-form,
.page-enquiry #academic-quotation-form :is(.form-grid,label,span,input,select,textarea,button){
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
.page-enquiry .v110-consent-box{
  width:100%!important;box-sizing:border-box!important;background:#f7f9fc!important;color:#000!important;
}
.page-enquiry .v110-consent-box label{
  display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:.75rem!important;
  align-items:start!important;width:100%!important;min-width:0!important;margin:0!important;
}
.page-enquiry .v110-consent-box input[type="checkbox"]{
  grid-column:1!important;width:22px!important;height:22px!important;min-width:22px!important;
  margin:.2rem 0 0!important;padding:0!important;
}
.page-enquiry .v110-consent-box label>span{
  grid-column:2!important;display:block!important;min-width:0!important;max-width:100%!important;
  color:#000!important;font-weight:650!important;line-height:1.48!important;
  overflow-wrap:break-word!important;word-break:normal!important;
}
.page-enquiry .v110-consent-box label>span a{
  display:inline!important;width:auto!important;max-width:none!important;white-space:normal!important;
  overflow-wrap:normal!important;word-break:normal!important;color:#000!important;font-weight:800!important;
  text-decoration:underline!important;
}

/* English is the governing route. Its dormant translation notice must never surface. */
html[lang="en"] .translation-notice{display:none!important}

/* The published page carries no third-party hosting badge or drawer. */
#netlify-toolbar,
#netlify-drawer,
.netlify-badge,
[data-netlify-badge],
[data-netlify-drawer],
[aria-label="Powered by Netlify"]{display:none!important;visibility:hidden!important}

/* Navigation groups remain separate, readable touch targets when the compact menu opens. */
@media(max-width:1550px){
  .site-header .site-nav{
    flex-direction:column!important;align-items:stretch!important;gap:0!important;
    width:100%!important;background:#fff!important;color:#000!important;
  }
  .site-header .site-nav .menu-group{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2px!important;
    width:100%!important;min-width:0!important;padding:10px 0 13px!important;
    border-bottom:1px solid #e1e7ed!important;
  }
  .site-header .site-nav .menu-group-label{
    display:block!important;width:100%!important;padding:7px 10px 5px!important;
    color:#5b6875!important;font-size:.72rem!important;font-weight:850!important;
    line-height:1.25!important;letter-spacing:.12em!important;text-transform:uppercase!important;
  }
  .site-header .site-nav .menu-group a{
    display:flex!important;align-items:center!important;width:100%!important;min-width:0!important;
    min-height:44px!important;margin:0!important;padding:9px 10px!important;border-radius:10px!important;
    color:#111!important;font-size:.98rem!important;font-weight:750!important;line-height:1.3!important;
    white-space:normal!important;overflow-wrap:break-word!important;text-decoration:none!important;
  }
  .site-header .site-nav .menu-group a:hover,
  .site-header .site-nav .menu-group a:focus-visible,
  .site-header .site-nav .menu-group a.active{background:#eef5ff!important;color:#174f98!important}
  .site-header .site-nav .menu-contact-row{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
    width:100%!important;padding:14px 0 2px!important;
  }
  .site-header .site-nav .menu-contact-row a{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-height:50px!important;margin:0!important;border-radius:12px!important;
    white-space:normal!important;text-align:center!important;
  }
  .site-header .site-nav .nav-whatsapp{
    border:1px solid #cbd8e8!important;background:#fff!important;color:#137a45!important;
  }
  .site-header .site-nav .nav-whatsapp::before{color:#25d366!important}
}

@media(max-width:760px){
  body:has(.v116-work-sticky) main{padding-top:50px}
  .site-header .site-nav.open{
    display:flex!important;padding:12px 16px calc(34px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;overflow-y:auto!important;
  }
  .v116-work-sticky,
  .work-sticky.v116-work-sticky{
    top:calc(100px + env(safe-area-inset-top))!important;
    right:auto!important;
    left:50%!important;
    max-width:138px!important;
    min-height:44px!important;
    padding:.52rem .7rem!important;
  }
  .v116-work-sticky span,
  .work-sticky.v116-work-sticky span{font-size:.75rem!important}
}

@media(max-width:390px){
  .v116-work-sticky,
  .work-sticky.v116-work-sticky{
    top:calc(98px + env(safe-area-inset-top))!important;
    right:auto!important;
    left:50%!important;
    max-width:126px!important;
    min-height:44px!important;
    padding:.5rem .64rem!important;
  }
  .v116-work-sticky span,
  .work-sticky.v116-work-sticky span{font-size:.72rem!important}
}

@media(max-width:760px){
  .system-live-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
  .system-live-card{border-radius:16px;padding:1rem}
  .system-live-card strong{font-size:clamp(2rem,13vw,3.6rem)}
  .system-live-card span{font-size:.78rem}
  body.privacy-page main .shell.narrow{width:min(100% - 28px,780px)!important}
  body.privacy-page main .page-hero{padding-block:2rem!important}
  body.privacy-page main h1{font-size:clamp(2rem,10vw,3rem)!important;overflow-wrap:anywhere}
  body.privacy-page main h2{font-size:clamp(1.3rem,7vw,1.8rem)!important;overflow-wrap:anywhere}
  .communication-notice,.output-language-notice{margin:1rem 0;padding:.9rem;border-radius:12px;font-size:.94rem}
  .page-enquiry .v111-academic-reference-card{padding:1rem!important;border-radius:16px!important}
  .page-enquiry .v111-reference-row{grid-template-columns:minmax(0,1fr)!important}
  .page-enquiry .v111-academic-reference{padding:.8rem!important;font-size:clamp(.82rem,4.3vw,1rem)!important;letter-spacing:.04em!important}
  .page-enquiry .v111-copy-reference{width:100%!important;min-width:0!important}
  .page-enquiry .v110-consent-box{padding:.9rem!important;gap:1rem!important}
  .page-enquiry .v110-consent-box label{grid-template-columns:24px minmax(0,1fr)!important;gap:.65rem!important;font-size:1rem!important}
  .page-enquiry .v110-consent-box input[type="checkbox"]{width:21px!important;height:21px!important;min-width:21px!important}
}

@media(prefers-reduced-motion:reduce){
  .v116-work-sticky,
  .work-sticky.v116-work-sticky{transition:none!important}
}

/* Aperture Research Works V161 pricing, scenario and content release. */

/* Scenario cards use equal closed summaries. An open card grows on its own. */
.scenario-category .scenario-grid{
  grid-auto-rows:auto!important;
  align-items:start!important;
}
.scenario-category .scenario-card,
.scenario-grid>.scenario-card,
.scenario-card:last-child{
  display:block!important;
  align-self:start!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  border-radius:18px!important;
}
.scenario-card:not([open]){height:auto!important;min-height:0!important}
.scenario-card summary{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  gap:18px!important;
  width:100%!important;
  height:212px!important;
  min-height:212px!important;
  max-height:212px!important;
  padding:22px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  align-items:start!important;
}
.scenario-card[open] summary{
  height:auto!important;
  min-height:212px!important;
  max-height:none!important;
  overflow:visible!important;
}
.scenario-summary-copy{min-width:0!important;max-height:none!important;overflow:visible!important}
.scenario-summary-copy strong{font-size:1.08rem!important;line-height:1.22!important}
.scenario-summary-copy span{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:5!important;
  overflow:hidden!important;
  font-size:.94rem!important;
  line-height:1.48!important;
}
.scenario-card[open] .scenario-summary-copy span{
  display:block!important;
  -webkit-line-clamp:unset!important;
  overflow:visible!important;
}
.scenario-card .scenario-body{
  display:none!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:1rem 1.25rem 1.35rem!important;
  box-sizing:border-box!important;
  border-top:1px solid #e1e7ed!important;
}
.scenario-card[open] .scenario-body{display:block!important}
.scenario-card .scenario-body p{margin:.7rem 0!important;line-height:1.55!important}
.scenario-card .scenario-body .scenario-trigger{padding:.8rem;border-radius:10px;background:#f5f8fc!important}

/* Canonical product and price treatment. */
[data-price-key]{font-variant-numeric:tabular-nums}
.v161-product-note{
  margin:1.25rem 0;padding:1rem 1.1rem;border:1px solid #c6d2de;border-radius:14px;
  background:#fff!important;color:#000!important;line-height:1.55;
}
.v161-product-note :is(p,strong,a){color:#000!important}
.v161-product-architecture{
  padding:clamp(2.6rem,6vw,5rem) 0;background:#eef5ff!important;color:#000!important;
}
.v161-product-architecture :is(h2,h3,p,strong){color:#000!important}
.v161-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.v161-product-grid article{padding:1.25rem;border:1px solid #c7d2dd;border-radius:18px;background:#fff!important;color:#000!important}
.v161-product-grid article strong{display:block;margin-bottom:.45rem;font-size:1.05rem}

/* Core positioning blocks remain readable and direct. */
.v161-core-positioning,.v161-ai-reliance,.v161-who-not,.v161-outcome-neutrality{padding:clamp(2.8rem,6vw,5.5rem) 0}
.v161-core-positioning{background:#fff!important;color:#000!important}
.v161-ai-reliance{background:#eef5ff!important;color:#000!important}
.v161-who-not{background:#fff5dc!important;color:#000!important}
.v161-outcome-neutrality{background:#13283f!important;color:#fff!important}
.v161-outcome-neutrality :is(h2,p,.eyebrow){color:#fff!important}
.v161-outcome-neutrality .eyebrow{opacity:.82}
.v161-core-positioning :is(h2,h3,p,strong),
.v161-ai-reliance :is(h2,h3,p,strong),
.v161-who-not :is(h2,h3,p,strong,li){color:#000!important}
.v161-principle-grid,.v161-boundary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.4rem}
.v161-principle-grid article,.v161-boundary-grid article{padding:1.2rem;border:1px solid #cbd5df;border-radius:16px;background:#fff!important}
.v161-flow{margin:1.3rem 0 0;font-weight:900;letter-spacing:.04em;overflow-wrap:anywhere}

/* Share controls are inserted only on useful public reading pages. */
.v161-share-panel{padding:clamp(2rem,5vw,3.5rem) 0;background:#eef5ff!important;color:#000!important}
.v161-share-panel h2{color:#000!important;margin:0 0 1rem}
.v161-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.v161-share-actions :is(button,a){
  display:flex;align-items:center;justify-content:center;min-height:56px;padding:.8rem 1rem;
  border:1px solid #9eacb8;border-radius:14px;background:#fff!important;color:#000!important;
  font:inherit;font-weight:850;text-decoration:none;cursor:pointer;
}
.v161-share-actions a{grid-column:1/-1}
.v161-share-status{position:fixed;right:1rem;bottom:1rem;z-index:9900;padding:.75rem 1rem;border-radius:10px;background:#10263f!important;color:#fff!important}

/* The FAQ expands naturally. Closed answers retain no empty height. */
body.faq-page details{height:auto!important;min-height:0!important;max-height:none!important}
body.faq-page details:not([open])>:not(summary){display:none!important}
body.faq-page details[open]>:not(summary){display:block!important}

@media(max-width:900px){
  .v161-product-grid,.v161-principle-grid,.v161-boundary-grid{grid-template-columns:1fr!important}
}
@media(max-width:720px){
  .scenario-category .scenario-grid{grid-template-columns:1fr!important}
  .scenario-card:not([open]) summary{
    height:196px!important;min-height:196px!important;max-height:196px!important;padding:18px!important;
    grid-template-columns:46px minmax(0,1fr)!important;gap:14px!important;
  }
  .scenario-card:not([open]) .scenario-summary-copy span{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;overflow:hidden!important;
  }
  .scenario-card[open] summary{
    height:auto!important;min-height:0!important;max-height:none!important;padding:18px!important;
    grid-template-columns:46px minmax(0,1fr)!important;gap:14px!important;
  }
  .scenario-card[open] .scenario-summary-copy span{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important}
  .scenario-card .scenario-body{padding:1rem!important}
  .v161-share-actions{grid-template-columns:1fr}
  .v161-share-actions a{grid-column:auto}
}


/* V161 conversion and editorial simplification. */
#site-menu.v161-primary-nav .v161-nav-links{display:grid;gap:.55rem}
#site-menu.v161-primary-nav .v161-nav-links a{display:block;white-space:normal}
#site-menu.v161-primary-nav .v161-nav-action{margin-top:.75rem}
#site-menu.v161-primary-nav .v161-nav-action .button{width:100%;justify-content:center}
.v161-initial-enquiry .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.v161-initial-enquiry .v161-form-wide{grid-column:1/-1}
.v161-initial-enquiry textarea{min-height:9rem;resize:vertical}
.v161-initial-enquiry .check-label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.8rem;margin:1.25rem 0}
.v161-initial-enquiry .check-label input{width:1.25rem;height:1.25rem;margin-top:.2rem}
.v161-safeguard-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;margin-top:1.4rem}
.v161-safeguard-grid article{height:100%}
.v161-safeguard-grid article>span{display:inline-grid;place-items:center;width:2.3rem;height:2.3rem;border-radius:50%;background:#13283f;color:#fff;font-weight:900}
.v161-public-record,.v161-metric-context{background:#fff!important;color:#000!important}
.v161-evidence-boundary{margin-top:1.25rem;padding:1rem;border-left:5px solid #2875d4;background:#f2f7fd}
@media(min-width:1050px){
  #site-menu.v161-primary-nav.open{max-width:760px!important}
  #site-menu.v161-primary-nav .v161-nav-links{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1050px){.v161-safeguard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
  .v161-initial-enquiry .form-grid,.v161-safeguard-grid{grid-template-columns:1fr}
  .v161-initial-enquiry .v161-form-wide{grid-column:auto}
  #site-menu.v161-primary-nav .v161-nav-links{grid-template-columns:1fr}
}
