/* Loaded after each page's prototype and business styles. Use available content
   width for account cards: the fixed sidebar consumes part of a desktop viewport. */
.platform-section .platform-heading :is(h2,p) {
  max-width:100%;
  white-space:normal;
  overflow-wrap:break-word;
  text-wrap:balance;
}
.account-page .kael-overview .ko-hero-copy { min-width:0; }
.account-page .kael-overview .ko-hero { height:auto; min-height:330px; }
.account-page .kael-overview .ko-hero h2 { white-space:normal; overflow-wrap:break-word; }
.account-page .kael-overview .ko-hero-actions { flex-wrap:wrap; align-items:flex-start; }
.account-page .kael-overview .ko-hero-actions a { width:auto; min-width:min(152px,100%); max-width:100%; overflow-wrap:break-word; }
.account-page .kael-overview-secondary :is(.ko-carousel,.ko-notices) { width:100%; min-width:0; box-sizing:border-box; }
@media (max-width:760px) {
  .account-page .kael-overview .ko-hero { min-height:260px; }
  .account-page .kael-overview .ko-hero-actions a { min-width:0; }
}
.auth-page .auth-partners>* { min-width:0; }
.auth-page .auth-partners :is(img,svg) { max-width:100%; object-fit:contain; }
.auth-page .login-feature>strong { max-width:100%; white-space:normal; overflow-wrap:break-word; }
@media (min-width:901px) and (max-width:1280px) {
  .site-head { padding-inline:24px; }
  .site-head .nav { gap:8px; margin-inline-start:20px; }
  .site-head .nav>a,.site-head .nav-item>a { white-space:nowrap; }
  .site-head .head-actions { gap:8px; }
}
@media (min-width:901px) and (max-width:1100px) {
  .site-head .nav { min-width:0; }
  .site-head .head-actions { flex-shrink:0; }
  .site-head .nav>* { min-width:0; }
  .site-head .nav>a,.site-head .nav-item>a { white-space:normal; text-wrap:balance; overflow-wrap:break-word; hyphens:auto; }
}

.finance-page :is(.earn-reference-copy,.earn-reference-art) { min-width:0; }
.finance-page .earn-reference-products { grid-template-columns:repeat(5,minmax(0,1fr)); }
.finance-page .earn-reference-products button {
  min-width:0;
  padding-inline:clamp(6px,1.2vw,20px);
  white-space:normal;
  overflow-wrap:break-word;
}
.finance-page .earn-reference-products button :is(span,small) {
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:break-word;
  hyphens:auto;
}
.finance-page .earn-calc-sentence { flex-wrap:wrap; row-gap:14px; }
.finance-page .earn-calc-money { box-sizing:border-box; max-width:100%; }

.asset-accounts-card { container-type:inline-size; }
.asset-account-value strong { display:flex; flex-wrap:wrap; column-gap:5px; overflow-wrap:normal; }
.asset-account-value b { white-space:nowrap; }
@container (max-width:960px) {
  .asset-accounts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:24px; }
  .asset-accounts-grid>a:nth-child(2) { border-inline-end:0; padding-inline-end:0; }
  .asset-accounts-grid>a:nth-child(3) { padding-inline-start:0; }
}
@container (max-width:540px) {
  .asset-accounts-header { flex-wrap:wrap; }
  .asset-accounts-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
  .asset-accounts-grid>a { padding-inline:0; border-inline-end:0; }
  .asset-accounts-card footer { flex-wrap:wrap; }
}

.records-overview-card { container-type:inline-size; }
.records-overview-grid strong { overflow-wrap:break-word; hyphens:auto; }
@container (max-width:900px) {
  .records-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container (max-width:540px) {
  .records-overview-grid { grid-template-columns:minmax(0,1fr); }
}
.kael-sidebar :is(.kael-nav-text,.kael-subnav a) { overflow-wrap:break-word; hyphens:auto; }
.native-account-shell :is(.fund-card,.wallet-records)>header { flex-wrap:wrap; gap:8px 16px; }
.native-account-shell :is(.fund-card,.wallet-records)>header>* { min-width:0; max-width:100%; }

/* Keep pair metadata on two compact lines without entering numeric columns. */
.native-exchange .native-pair-name strong { display:flex; align-items:center; flex-wrap:nowrap; gap:3px; min-width:0; }
.native-exchange .native-pair-symbol { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.native-exchange .native-pair-name :is(.native-coin-logo,.spot-hot) { flex:none; }
.native-exchange .native-pair-name .native-coin-logo { margin-inline-end:0; }
.native-exchange .native-pair-name .spot-hot { margin-inline-start:0; }
.native-exchange .spot-chart-tabs { overflow-x:auto; scrollbar-width:thin; }
.native-exchange .spot-chart-tabs>button { flex-shrink:0; }

/* Keep the market modal's close icon free of the prototype's yellow focus box. */
.market-detail-dialog .market-detail-close:focus-visible { outline:none; color:#eaecef; }

/* Seven footer groups: keep link rows compact when the viewport is reduced by
   browser zoom, and give the download block enough room for translated copy. */
.site-foot.okx-reference-foot .okx-foot-links {
  grid-template-columns:minmax(220px,1.5fr) repeat(6,minmax(0,1fr));
  gap:32px 24px;
  align-items:start;
}
.site-foot.okx-reference-foot .foot-col {
  align-content:start;
  gap:11px;
}
.site-foot.okx-reference-foot .foot-col>b { margin-bottom:10px; }
.site-foot.okx-reference-foot .foot-cta { width:100%; min-width:0; }
.site-foot.okx-reference-foot .foot-cta h3 {
  width:100%;
  flex-wrap:wrap;
  gap:8px;
  overflow:visible;
  white-space:normal;
}
.site-foot.okx-reference-foot .foot-brand-lockup { animation:none; }
.site-foot.okx-reference-foot .foot-cta-slogan {
  max-width:100%;
  white-space:normal;
  overflow-wrap:break-word;
  font-size:16px;
  line-height:1.4;
  clip-path:none;
  animation:none;
}
.site-foot.okx-reference-foot .foot-cta h3:after { display:none; }
.site-foot.okx-reference-foot .foot-cta p { width:100%; white-space:normal; }
@media (min-width:761px) and (max-width:1200px) {
  .site-foot.okx-reference-foot { padding:40px 32px 24px; }
  .site-foot.okx-reference-foot .okx-foot-links {
    grid-template-columns:minmax(180px,1.3fr) repeat(3,minmax(0,1fr));
    gap:32px 24px;
  }
  .site-foot.okx-reference-foot .foot-cta { grid-column:1; grid-row:1 / span 2; }
}
@media (max-width:1000px) {
  .site-foot.okx-reference-foot .foot-bottom-bar {
    width:auto;
    left:auto;
    transform:none;
    margin:32px 0 0;
    padding:24px 0 0;
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .site-foot.okx-reference-foot .foot-socials { flex-wrap:wrap; justify-content:center; }
  .site-foot.okx-reference-foot .foot-socials:after { display:none; }
  .site-foot.okx-reference-foot .foot-bottom-copy {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px 20px;
    text-align:center;
    white-space:normal;
  }
  .site-foot.okx-reference-foot .foot-bottom-copy>span { white-space:normal; }
  .site-foot.okx-reference-foot .foot-bottom-copy>i,
  .site-foot.okx-reference-foot .foot-bottom-copy:before,
  .site-foot.okx-reference-foot .foot-locale-wrap:before { display:none; }
}
@media (max-width:760px) {
  .site-foot.okx-reference-foot { padding:40px 24px 22px; }
  .site-foot.okx-reference-foot .okx-foot-links {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:32px 24px;
  }
  .site-foot.okx-reference-foot .foot-cta {
    grid-column:1 / -1;
    grid-row:auto;
    justify-self:center;
    margin-bottom:8px;
    text-align:center;
  }
  .site-foot.okx-reference-foot .foot-cta-slogan { display:none; }
  .site-foot.okx-reference-foot .foot-register { width:min(250px,100%); }
  .site-foot.okx-reference-foot .foot-col>b { margin-bottom:16px; }
  .site-foot.okx-reference-foot .foot-col a { padding:5px 0; font-size:13px; }
}

/* Let translated Earn calls to action grow while preserving the round arrow. */
.finance-page .earn-reference-cta {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.finance-page .earn-reference-cta > svg,
.finance-page .earn-reference-cta > span { flex: 0 0 auto; }
.finance-page .earn-reference-cta > span { width:36px; height:36px; aspect-ratio:1; }
@media (max-width:760px) {
  .finance-page .earn-reference-cta { max-width:100%; font-size:clamp(9px, 2.8vw, 13px); gap:8px; }
}

/* Keep the benefits artwork inside the right-hand hero column. */
@media (min-width:761px) {
  .benefits-page .hub-hero:before,
  .benefits-page .hub-rigid-scene { translate:-64px 0; }
}
/* Center shortcut labels consistently when translations wrap. */
.learn-tools > a { min-width:0; text-align:center; }
.learn-tools > a > b { display:block; width:100%; min-width:0; text-align:center; line-height:1.5; overflow-wrap:anywhere; }
