/* =============================================================
   BLINKBUN v1.4.3 · Unified Public UI Layer
   One shell / one header scale / readable typography everywhere.
   Loaded LAST so legacy page-specific width and tiny-type rules cannot win.
   ============================================================= */
:root{
  --bb143-shell-max:1320px;
  --bb143-gutter:40px;
  --bb143-gutter-tablet:24px;
  --bb143-gutter-mobile:16px;
  --bb143-header-bg:rgba(5,11,20,.91);
  --bb143-header-line:rgba(112,151,205,.25);
  --bb143-panel-line:rgba(112,151,205,.24);
  --bb143-muted:#91a5bd;
  --bb143-soft:#758ba6;
  --bb143-text:#f4f8ff;
  --bb143-mint:#72efb8;
}

/* ---------- one page width ---------- */
.shell,.wrap,.trade-shell,.seo-shell{
  width:min(var(--bb143-shell-max),calc(100% - var(--bb143-gutter)))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* ---------- one top-header visual scale ---------- */
.unified-header,.legal-top,.trade-topbar,.seo-header{
  min-height:82px!important;
  margin:10px 0 22px!important;
  padding:12px 16px!important;
  border:1px solid var(--bb143-header-line)!important;
  border-radius:18px!important;
  background:var(--bb143-header-bg)!important;
  box-shadow:0 14px 46px rgba(0,0,0,.20)!important;
  backdrop-filter:blur(22px) saturate(125%);
}
.legal-top,.trade-topbar{border-bottom:1px solid var(--bb143-header-line)!important}

.unified-header .brand-mark,
.legal-brand-mark,
.trade-brand img,
.seo-brand img{
  width:46px!important;height:46px!important;flex:0 0 46px!important;border-radius:14px!important;
}
.unified-header .brand-copy b,
.legal-brand-copy b,
.trade-brand b,
.seo-brand b{
  font-size:20px!important;line-height:1!important;letter-spacing:.115em!important;font-weight:900!important;
}
.unified-header .brand-copy small,
.legal-brand-copy small,
.trade-brand small,
.seo-brand small{
  margin-top:6px!important;font-size:8.5px!important;line-height:1.1!important;letter-spacing:.18em!important;color:#7890b0!important;
}
.unified-header .top-nav a,
.legal-header-side .links a,
.trade-topbar nav a,
.seo-nav a{
  font-size:13.5px!important;line-height:1.25!important;font-weight:800!important;
}
.legal-header-side .links,.trade-topbar nav,.seo-nav{gap:5px!important}
.legal-header-side .links a,.trade-topbar nav a,.seo-nav a{padding:10px 11px!important;border-radius:10px!important;text-decoration:none!important;color:#aab9ce!important}
.legal-header-side .links a:hover,.trade-topbar nav a:hover,.seo-nav a:hover{background:rgba(104,150,220,.09)!important;color:#fff!important}
.legal-lang-select,.season-lang{
  min-width:150px!important;height:44px!important;min-height:44px!important;padding:0 38px 0 14px!important;
  border-radius:11px!important;font-size:14px!important;font-weight:800!important;background:#081320!important;color:#eef5ff!important;
}

/* ---------- MAIN: preserve visual hierarchy, remove unreadably tiny labels ---------- */
#auth.site-public .premium-public-hero{padding-left:44px!important;padding-right:44px!important}
#auth.site-public .landing-copy>p{font-size:15.5px!important;line-height:1.82!important}
#auth.site-public .onchain-proof>p{font-size:11.5px!important;line-height:1.65!important}
#auth.site-public .onchain-status-grid small{font-size:8.5px!important}
#auth.site-public .onchain-status-grid b{font-size:11.5px!important}
#auth.site-public .official-mint-row small{font-size:8.5px!important}
#auth.site-public .official-mint-row code{font-size:10px!important}
#auth.site-public .mint-copy-btn{font-size:10.5px!important}
#auth.site-public .season-live-metrics span{font-size:9px!important}
#auth.site-public .season-live-metrics small{font-size:10px!important;line-height:1.5!important}
#auth.site-public .season-live-spotlight>p{font-size:10.5px!important;line-height:1.6!important}
#auth.site-public .premium-proof-rail b{font-size:10.5px!important}
#auth.site-public .premium-proof-rail small{font-size:9.5px!important;line-height:1.5!important}
#auth.site-public .login-intro p,
#auth.site-public .section-heading p,
#auth.site-public .preview-copy p,
#auth.site-public .security-copy p,
#auth.site-public .final-cta p,
#auth.site-public .docs-copy p{font-size:14px!important;line-height:1.8!important}
#auth.site-public .loop-grid p{font-size:12px!important;line-height:1.72!important}
#auth.site-public .reward-path-grid b{font-size:14px!important}
#auth.site-public .reward-path-grid small{font-size:11px!important;line-height:1.65!important}
#auth.site-public .reward-path-status b{font-size:13px!important}
#auth.site-public .token-facts span{font-size:9px!important}
#auth.site-public .token-facts small{font-size:10.5px!important;line-height:1.55!important}
#auth.site-public .issuance-head span,#auth.site-public .issuance-grid span{font-size:9px!important}
#auth.site-public .issuance-grid b{font-size:12px!important}
#auth.site-public .issuance-transparency>p{font-size:10.5px!important;line-height:1.6!important}
#auth.site-public .allocation-grid span{font-size:9px!important}
#auth.site-public .roadmap-line article>b{font-size:11.5px!important}
#auth.site-public .roadmap-line article>small{font-size:10.5px!important;line-height:1.6!important}
#auth.site-public .security-badges span,#auth.site-public .security-card span{font-size:9px!important}
#auth.site-public .security-card b{font-size:13px!important}
#auth.site-public .security-card i{font-size:10px!important}
#auth.site-public .security-card strong{font-size:10.5px!important}
#auth.site-public .doc-grid small{font-size:11.5px!important;line-height:1.6!important}
.season-close-rule-head span{font-size:9.5px!important}.season-close-rule-head strong{font-size:16px!important}.season-close-rule-head a{font-size:11px!important}
.season-close-rule-conditions small{font-size:9.5px!important}.season-close-rule-banner>p{font-size:11.5px!important;line-height:1.65!important}
.dex-live-title small{font-size:9.5px!important}.dex-live-title p{font-size:12.5px!important;line-height:1.65!important}.dex-stat small{font-size:9px!important}.dex-live-actions a{font-size:11px!important}.dex-live-trust span{font-size:10.5px!important}

/* ---------- DOCUMENTS / MARKETS ---------- */
body:not(.season-page){font-size:16px}
.wrap{padding-bottom:72px!important}
.legal-top{margin-bottom:36px!important}
.legal-header-side{gap:10px!important}
.legal-header-side .links{gap:2px!important}
#bbDocContent{max-width:100%}
#bbDocContent h1{font-size:clamp(46px,4.7vw,60px)!important;line-height:1.06!important;margin-bottom:20px!important}
#bbDocContent .lead{max-width:980px!important;font-size:18px!important;line-height:1.82!important;color:#a5b5ca!important}
#bbDocContent>p:not(.lead){max-width:1120px!important;font-size:16px!important;line-height:1.88!important}
#bbDocContent h2{margin-top:44px!important;margin-bottom:16px!important;font-size:28px!important;line-height:1.28!important;letter-spacing:-.025em!important}
#bbDocContent h3{font-size:20px!important}
#bbDocContent .box{padding:25px 27px!important;margin:22px 0!important;font-size:16px!important;line-height:1.78!important}
#bbDocContent .box>p{font-size:15.5px!important;line-height:1.82!important}
#bbDocContent .button-links a{font-size:13px!important;min-height:42px!important;display:inline-flex!important;align-items:center!important}
#bbDocContent .principle-grid{gap:12px!important}
#bbDocContent .principle-grid>div{padding:19px!important;min-height:116px!important}
#bbDocContent .principle-grid b{font-size:15.5px!important;line-height:1.35!important}
#bbDocContent .principle-grid span{font-size:14px!important;line-height:1.7!important}
#bbDocContent .muted{font-size:15px!important;line-height:1.82!important}
#bbDocContent table th,#bbDocContent table td{font-size:14.5px!important;line-height:1.7!important;padding:15px!important}
#bbDocContent table th{font-size:12px!important}
#bbDocContent .roadmap-doc b{font-size:17px!important}
#bbDocContent .roadmap-doc p{font-size:14.5px!important;line-height:1.72!important}
.eyebrow{font-size:11.5px!important}
.whitepaper-doc-toolbar{margin:0 0 30px!important;padding:18px 20px!important}
.whitepaper-doc-toolbar b{font-size:12.5px!important}.whitepaper-doc-toolbar span{font-size:14px!important}.whitepaper-doc-toolbar a{min-height:46px!important;font-size:13.5px!important;padding:0 18px!important}

/* Whitepaper quick-understanding flow */
.project-flow{margin:26px 0 14px}
.project-flow-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:12px}
.project-flow-head span{color:#72efb8;font-size:10px;font-weight:900;letter-spacing:.14em}
.project-flow-head b{font-size:18px;line-height:1.4;color:#eef7ff}
.project-flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.project-flow-grid>div{position:relative;min-height:118px;padding:18px;border:1px solid #263b54;border-radius:14px;background:linear-gradient(150deg,#0c1826,#09121e)}
.project-flow-grid>div:not(:last-child):after{content:'→';position:absolute;right:-10px;top:45%;z-index:2;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#0b1623;color:#75a8ff;font-size:12px}
.project-flow-grid i{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(103,217,239,.10);color:#73e9d2;font-style:normal;font-size:10px;font-weight:900}
.project-flow-grid b{display:block;margin-top:12px;font-size:15px;line-height:1.35}
.project-flow-grid span{display:block;margin-top:6px;color:#8ea1b9;font-size:13px;line-height:1.6}

/* Markets typography */
.markets-heading .lead{font-size:17px!important;line-height:1.75!important}
.market-card h2{font-size:22px!important}.market-card>p{font-size:14px!important;line-height:1.75!important}.market-info small,.market-card-head span{font-size:11px!important}.market-info b{font-size:14px!important}.market-actions a,.market-token-proof .button-links a{font-size:12px!important}.market-token-proof code{font-size:13px!important}

/* ---------- TRADE ---------- */
.trade-topbar{margin-bottom:0!important}
.trade-brand small{white-space:nowrap}
.trade-topbar nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.trade-topbar nav em{font-size:8px!important}
.trade-main{padding:38px 0 44px!important}
.trade-intro{grid-template-columns:minmax(0,1.38fr) minmax(350px,.62fr)!important;gap:28px!important}
.trade-intro h1{max-width:760px!important;font-size:clamp(46px,4.5vw,64px)!important;line-height:1.03!important}
.trade-intro>div>p{max-width:820px!important;font-size:16px!important;line-height:1.82!important}
.trade-live-pill{font-size:10.5px!important}
.trade-proof-row small,.trade-market-mini small{font-size:9px!important}
.trade-proof-row b{font-size:13.5px!important}
.trade-market-price b{font-size:32px!important}
.trade-market-grid b{font-size:13.5px!important}
.trade-layout{grid-template-columns:minmax(0,1fr) 380px!important;gap:22px!important}
.trade-widget-card{padding:22px!important}.trade-card-head small{font-size:10px!important}.trade-card-head h2{font-size:24px!important}.trade-card-head>span{font-size:10px!important}
.trade-safety-card,.trade-links-card,.trade-risk-card{padding:20px!important}
.trade-safety-card>small{font-size:10px!important}.trade-safety-card h2{font-size:19px!important}.trade-safety-card code{font-size:11px!important}.trade-safety-card button{font-size:12.5px!important}
.trade-safety-card p,.trade-risk-card p{font-size:13px!important;line-height:1.72!important}
.trade-links-card h3{font-size:17px!important}.trade-links-card b{font-size:13px!important}.trade-links-card span{font-size:10.5px!important;line-height:1.45!important}.trade-risk-card b{font-size:12.5px!important}
.trade-how strong{font-size:13px!important}.trade-how small{font-size:11px!important;line-height:1.62!important}
.trade-holder-head p{font-size:13.5px!important;line-height:1.72!important}.trade-holder-grid small{font-size:11px!important}.trade-holder-actions span{font-size:11px!important}
.trade-footer{font-size:12px!important}

/* ---------- SEASON ---------- */
.season-page .season-wrap{width:min(var(--bb143-shell-max),calc(100% - var(--bb143-gutter)))!important;max-width:none!important}
.season-page .legal-top{margin-bottom:28px!important}
.season-page .season-hero{padding:30px 0 24px!important}
.season-page .season-hero>span{font-size:11.5px!important}.season-page .season-hero h1{font-size:clamp(42px,4vw,54px)!important}.season-page .season-hero p{max-width:900px!important;font-size:16px!important;line-height:1.82!important}
.season-page .season-public-head h2{font-size:30px!important}.season-page .season-public-head small{font-size:13px!important}.season-page .pub-pool span{font-size:11.5px!important}.season-page .pub-pool strong{font-size:30px!important}
.season-page .public-grid span{font-size:12px!important}.season-page .public-grid b{font-size:22px!important}.season-page .public-grid small{font-size:12px!important;line-height:1.6!important}
.season-page .season-completion-rule>span{font-size:10.5px!important}.season-page .season-completion-rule h2{font-size:23px!important}.season-page .season-completion-rule p{font-size:13.5px!important}.season-page .season-completion-rule-grid small{font-size:10.5px!important}.season-page .season-completion-rule-grid b{font-size:20px!important}
.season-page .formula{font-size:19px!important}.season-page .formula-card p{font-size:14.5px!important}.season-page .section-title h2{font-size:23px!important}.season-page .section-title small{font-size:12.5px!important}.season-page .rule-item span{font-size:11.5px!important}.season-page .rule-item b{font-size:14px!important}.season-page .public-note{font-size:13.5px!important}.season-page .public-row{font-size:12.5px!important}.season-page .history-item{font-size:12.5px!important}

/* ---------- SEARCH GUIDES / TOOLS ---------- */
.seo-shell{--max:var(--bb143-shell-max)}
.seo-hero-copy>p{font-size:16px!important;line-height:1.84!important}.seo-kicker{font-size:10px!important}.seo-actions a{font-size:13px!important}
.search-focus-panel small{font-size:9px!important}.search-focus-panel p{font-size:13.5px!important;line-height:1.75!important}.search-guide-card>span{font-size:9px!important}.search-guide-card h2{font-size:24px!important}.search-guide-card p{font-size:14px!important;line-height:1.75!important}.search-guide-card>b{font-size:12px!important}
.search-article-meta span{font-size:9.5px!important}.search-article-section p{font-size:16px!important;line-height:1.86!important}.search-article-section li{font-size:14px!important;line-height:1.65!important}.search-article-aside span{font-size:8.5px!important}.search-article-aside b{font-size:16px!important}.search-article-aside p{font-size:12.5px!important}.search-article-aside code,.search-article-aside a{font-size:10.5px!important}
.seo-content-card p{font-size:13.5px!important}.seo-proof p,.seo-cta p{font-size:14.5px!important}.seo-faq h3{font-size:15.5px!important}.seo-faq p{font-size:12.5px!important}.seo-related-grid a{font-size:12.5px!important}.seo-risk{font-size:10.5px!important}.seo-footer a{font-size:10.5px!important}
.token-checker-form>label{font-size:11.5px!important}.token-checker-form input{font-size:13px!important}.token-checker-form button{font-size:12px!important}.checker-examples button,.checker-examples a{font-size:10.5px!important}.token-check-status{font-size:11.5px!important}.checker-address small,.checker-market small,.checker-stat small{font-size:8.5px!important}.checker-address code,.checker-address a,.checker-market a{font-size:10.5px!important}.checker-stat span{font-size:11.5px!important}.checker-market span,.checker-market code{font-size:10px!important}.checker-disclaimer{font-size:10.5px!important}

@media(max-width:1180px){
  .shell,.wrap,.trade-shell,.seo-shell,.season-page .season-wrap{width:min(var(--bb143-shell-max),calc(100% - var(--bb143-gutter-tablet)))!important}
  .legal-header-side{flex-wrap:wrap!important}.legal-header-side .links{flex:1 1 100%!important;order:2!important;justify-content:flex-start!important}.legal-header-actions{margin-left:auto!important}
  .trade-intro,.trade-layout{grid-template-columns:1fr!important}.trade-market-mini{max-width:none!important}.trade-side{display:grid!important;grid-template-columns:1fr 1fr!important}.trade-risk-card{grid-column:1/-1!important}
  .project-flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-flow-grid>div:nth-child(2):after{display:none}
}
@media(max-width:760px){
  .shell,.wrap,.trade-shell,.seo-shell,.season-page .season-wrap{width:min(var(--bb143-shell-max),calc(100% - var(--bb143-gutter-tablet)))!important}
  .unified-header,.legal-top,.trade-topbar,.seo-header{min-height:70px!important;margin-top:8px!important;padding:10px 11px!important;border-radius:14px!important}
  .legal-header-side{width:100%!important}.legal-header-side .links{gap:2px!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:2px}.legal-header-side .links a{white-space:nowrap!important;font-size:12px!important}
  .legal-lang-select,.season-lang{min-width:140px!important}
  #auth.site-public .premium-public-hero{padding-left:22px!important;padding-right:22px!important}
  #bbDocContent h1{font-size:clamp(38px,10vw,48px)!important}.whitepaper-doc-toolbar{align-items:stretch!important}
  .project-flow-grid{grid-template-columns:1fr}.project-flow-grid>div:after{display:none!important}
  .trade-topbar{align-items:flex-start!important}.trade-topbar nav{gap:2px!important}.trade-topbar nav a{font-size:11.5px!important;padding:8px!important}.trade-intro h1{font-size:42px!important}.trade-side{display:flex!important}.trade-layout{grid-template-columns:1fr!important}
  .season-page .season-hero h1{font-size:38px!important}.season-page .season-hero p{font-size:14.5px!important}
  .search-article-section p{font-size:14.5px!important}.search-article-section li{font-size:13px!important}
}
@media(max-width:430px){
  .shell,.wrap,.trade-shell,.seo-shell,.season-page .season-wrap{width:min(var(--bb143-shell-max),calc(100% - var(--bb143-gutter-mobile)))!important}
  .legal-brand-copy small,.trade-brand small,.seo-brand small{display:none!important}
  .project-flow-head{align-items:flex-start;flex-direction:column}
}

/* Footer parity */
.legal-footer{flex-wrap:wrap!important;align-items:center!important;gap:10px 18px!important;font-size:12px!important;line-height:1.55!important}
.legal-footer>*{white-space:normal!important}.legal-footer-links{display:inline-flex;gap:7px;align-items:center;color:#708198}.legal-footer-links a{color:#8ea9cc;text-decoration:none}.legal-footer-links a:hover{color:#fff}

/* =============================================================
   BLINKBUN v1.4.4 · Header / language consistency hotfix
   - no exposed content above sticky header
   - same shell-contained header on main, docs, trade and discovery
   - language controls share the same size
   ============================================================= */

/* The previous public CSS used top:8px + margin-top on the sticky main
   header. During scroll that intentionally left a viewport gap where the
   hero could be seen. Public headers now sit flush to the top. */
.unified-header,.legal-top,.trade-topbar,.seo-header{
  margin-top:0!important;
  margin-bottom:24px!important;
  background:#050b14!important;
}

/* app.css contains older full-bleed !important rules for this exact header.
   Use a more specific final-layer selector so the main page follows the same
   1320px public shell as the other public pages. */
.shell > .global-header.unified-header{
  position:sticky!important;
  top:0!important;
  z-index:120!important;
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  margin-top:0!important;
  margin-bottom:24px!important;
  padding:12px 16px!important;
  border:1px solid var(--bb143-header-line)!important;
  border-top:0!important;
  border-radius:0 0 18px 18px!important;
  background:#050b14!important;
  backdrop-filter:blur(22px) saturate(125%)!important;
  box-shadow:0 14px 46px rgba(0,0,0,.24)!important;
}

/* Long-form/public utility pages keep navigation available while scrolling. */
.legal-top,.trade-topbar,.seo-header{
  position:sticky!important;
  top:0!important;
  z-index:110!important;
}

/* All visible language selectors use one control scale. */
.unified-header .lang-select,
.legal-lang-select,
.season-lang,
.trade-lang-select,
.seo-language-switcher select{
  min-width:150px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 38px 0 14px!important;
  border:1px solid rgba(112,151,205,.34)!important;
  border-radius:11px!important;
  background:#081320!important;
  color:#eef5ff!important;
  font-size:14px!important;
  font-weight:800!important;
}
.unified-header .header-actions button{height:44px!important;min-height:44px!important;font-size:13.5px!important}

/* Trade header now includes a real language control. */
.trade-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important}
.trade-topbar nav{margin-left:auto!important;min-width:0!important}
.trade-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.trade-lang-select{appearance:auto}

/* Discovery header keeps language + CTA together rather than dropping the
   language control from Guides / Tools. */
.search-nav-action{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
.search-nav-action .seo-language-select{min-width:136px!important}

/* Sticky-anchor destinations should not disappear behind the header. */
html{scroll-padding-top:104px}

@media(max-width:1180px){
  .trade-topbar nav{display:none!important}
  .seo-nav{display:none!important}
  .trade-header-actions,.search-nav-action{margin-left:auto}
}
@media(max-width:760px){
  html{scroll-padding-top:76px}
  .shell > .global-header.unified-header{
    position:sticky!important;top:0!important;margin-top:0!important;
    min-height:68px!important;padding:9px 10px!important;border-radius:0 0 14px 14px!important;
  }
  /* On small screens document/trade/discovery headers should not consume a
     large permanent portion of the viewport. */
  .legal-top,.trade-topbar,.seo-header{position:relative!important;top:auto!important;margin-top:0!important}
  .trade-topbar nav{display:none!important}
  .trade-lang-select,.search-nav-action .seo-language-select,.legal-lang-select,.season-lang{min-width:126px!important;max-width:150px!important;font-size:12px!important}
  .search-nav-action .search-mini-cta{display:none!important}
}
