/* Cross-chain bridge page (bridge.html). The card itself is the swap card (assets/swap.css); this sets the page
   around it and the embedded look inside the slide-in panel (html.is-embed, set by embed-flag.js). */
.br-main{width:100%;max-width:520px;min-width:0;margin:0 auto;padding:28px 16px 40px;display:flex;flex-direction:column;gap:18px;box-sizing:border-box;}
.br-main > *{min-width:0;}
.br-intro h1{margin:0 0 8px;font-size:clamp(26px,4vw,34px);font-weight:800;letter-spacing:var(--ns-track-tight,-0.035em);line-height:1.1;color:var(--ns-ink);}
.br-intro p{margin:0;font-size:15px;line-height:1.55;color:var(--ns-body);max-width:60ch;}
.br-card{width:100%;max-width:none;flex:none;min-width:0;box-sizing:border-box;}
.br-dir{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-bottom:14px;border-radius:var(--ns-r-pill,999px);background:var(--ns-raise,#111316);border:1px solid var(--ns-line,rgb(var(--ns-fg-rgb) / 0.07));}
.br-dir button{min-height:44px;border:0;border-radius:var(--ns-r-pill,999px);background:transparent;color:var(--ns-body);font:700 15px var(--ns-font);cursor:pointer;}
.br-dir button[aria-selected="true"]{background:var(--ns-ink);color:var(--ns-ground,var(--ns-ground));}
.br-dir button:focus-visible{outline:2px solid var(--ns-mint);outline-offset:2px;}
.br-steps{list-style:none;counter-reset:st;margin:0;padding:0;display:grid;gap:10px;}
.br-steps li{counter-increment:st;display:grid;grid-template-columns:32px 1fr;column-gap:12px;align-items:start;padding:14px 16px;border:1px solid var(--ns-line);border-radius:14px;background:var(--ns-card);}
.br-steps li::before{content:counter(st);grid-row:span 2;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:600 14px var(--ns-mono);color:var(--ns-ink);background:var(--ns-raise-3,#1b1e22);}
.br-steps b{font-size:15px;color:var(--ns-ink);}
.br-steps span{font-size:14px;line-height:1.5;color:var(--ns-body);}

/* Inside the slide-in panel: no header, tab bar or page chrome; the card fills the panel. */
html.is-embed body{background:var(--ns-card,var(--ns-card));padding-bottom:0 !important;}
html.is-embed [data-ns-header],html.is-embed .ns-tabs{display:none !important;}
html.is-embed .sw-page{padding:0;max-width:none;}
html.is-embed .br-main{padding:14px 14px 24px;max-width:none;gap:14px;}
html.is-embed .br-intro{display:none;}
html.is-embed .br-card{border:0;padding:0;background:transparent;box-shadow:none;}
html.is-embed .br-steps li{padding:12px 14px;}
@media (max-width:420px){ .br-main{padding:18px 12px 32px;} }
/* Until the engine has put the cross-chain pair in place (bridge-page.js sets data-bridge-ready, 4 s at most), the
   parts under the form are kept invisible in their place: the address rows the engine adds above them would
   otherwise push them down while visible (real-user layout shift 0.22 on phones, 4 Nov 2026). */
html[data-page="bridge"]:not([data-bridge-ready]) .br-card .details,
html[data-page="bridge"]:not([data-bridge-ready]) .br-card #swapBtn,
html[data-page="bridge"]:not([data-bridge-ready]) .br-card .sw-cardnote{visibility:hidden;}
