/* Securex Platform R12 — page width/detail alignment fixes */
:root{--sx-content-width:1480px;--sx-content-gutter:56px}
/* Every platform feature page shares the exact same desktop content shell. */
.ai-cloud-page .ai-shell,
.developer-page .wrap,
.relay-page main.wrap,
.community-page .community-shell,
.download-page main.wrap,
.catalog-page main.wrap,
.tokens-page main.wrap,
.bug-report-page main.wrap,
.fix34-portal main.wrap{
  width:min(var(--sx-content-width),calc(100% - var(--sx-content-gutter)))!important;
  max-width:var(--sx-content-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
/* AI Cloud used its own 1540px shell; normalize it to the platform shell. */
.ai-cloud-page .ai-shell{padding-left:0!important;padding-right:0!important}
.ai-cloud-page .ai-main{width:100%!important;min-width:0!important;padding-left:0!important;padding-right:0!important}
.ai-cloud-page .ai-topnav{width:100%!important;box-sizing:border-box!important}
/* Developer center has its own hero + docs layout. Keep both on the same shell. */
.developer-page .dev-hero-grid,
.developer-page .dev-layout{width:min(var(--sx-content-width),calc(100% - var(--sx-content-gutter)))!important;max-width:var(--sx-content-width)!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
.developer-page .dev-layout{grid-template-columns:220px minmax(0,1fr)!important;gap:28px!important}
.developer-page .dev-doc{min-width:0!important}
/* Community: equal outer gutters and a proper horizontal Search button. */
.community-page .community-shell{padding-left:0!important;padding-right:0!important}
.community-page .community-layout,
.community-page .community-detail-layout{grid-template-columns:minmax(0,1fr) 260px!important;gap:18px!important;width:100%!important}
.community-page .community-toolbar{min-height:52px!important;box-sizing:border-box!important}
.community-page .community-search{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-width:360px!important}
.community-page .community-search input{min-width:0!important;height:38px!important;padding:0 12px!important;box-sizing:border-box!important}
.community-page .community-search .btn,
.community-page .community-search button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:66px!important;height:38px!important;padding:0 14px!important;border-radius:9px!important;white-space:nowrap!important;line-height:1!important;word-break:keep-all!important;font-size:13px!important;font-weight:750!important}
/* Push Relay: keep Copy buttons inside the code field, centered and compact. */
.relay-page .relay-code{min-height:40px!important;display:flex!important;align-items:center!important;padding:10px 72px 10px 14px!important;box-sizing:border-box!important}
.relay-page .relay-code .copy-relay{position:absolute!important;right:7px!important;top:50%!important;transform:translateY(-50%)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:56px!important;min-width:56px!important;height:32px!important;margin:0!important;padding:0 10px!important;border-radius:8px!important;white-space:nowrap!important;line-height:1!important}
/* Prevent generic page CSS from creating a different width on nested page containers. */
.relay-page .relay-grid,.relay-page .relay-status-grid,.relay-page .relay-card{box-sizing:border-box!important}
@media(max-width:900px){
  :root{--sx-content-gutter:28px}
  .community-page .community-layout,.community-page .community-detail-layout{grid-template-columns:1fr!important}
  .community-page .community-search{min-width:0!important;width:100%!important}
  .developer-page .dev-layout{grid-template-columns:1fr!important}
  .relay-page .relay-code{display:block!important;padding:12px!important}
  .relay-page .relay-code .copy-relay{position:static!important;transform:none!important;width:100%!important;margin-top:10px!important}
}
