/*
  v18-qa.css · fixes from the full QA of site V18, 23.11.2026.

  What: Gene, 23.11.2026, on the 404 page: "check that every page on localhost, all but Solutions, is
  done perfectly: everything looks right and opens, no problems anywhere, mobile breakpoints, all of it."
  Three visual reviewers went through 38 pages at 375 and 1440 (spot checks at 768, 1024, 1920, night on
  the docs pages). Each rule below answers one finding; the comment names the page and the defect.
  Where: build_v18_local.py links this file last in <head> of every local page, so it wins over the page
  sheets without touching approved layouts elsewhere. build_v18_night.py reads it too.
  Undo: delete this file and its link in build_v18_local.py; rebuild local/.
*/

/* ---- shared ---- */
/* Headings break into balanced lines, no single orphan word (agents, about, faq, readiness, guide, raisable, terminal). */
.lb h1,.lb h2,.lb h3,.lb .st-end h2,.lb .od-end h2{text-wrap:balance}
/* Buttons whose label wraps keep it centred and balanced (home STBU block, terminal Register your company). */
.lb .lb-btn{text-align:center;text-wrap:balance}
/* Phone: the floating Register pill must not sit on the last lines of the page. */
@media (max-width:760px){.lb main{padding-bottom:84px}}
/* Phone tap targets of at least 44px (reviewers' list): CTA "See the Terminal", jump links, contact links,
   breadcrumb pills, case "Start the same", chapter navs. */
@media (pointer:coarse),(max-width:760px){
  .lb .more,.lb .gp-jump,.lb .mo-jump,.lb .lw-go,.lb .rs-quote{display:inline-flex;align-items:center;min-height:44px}
  .lb .st-pills a,.lb .lb-pills a,.lb .od-left a,.lb .su-toc a,.lb .sx-toc a{min-height:44px;display:inline-flex;align-items:center}
  .lb .co-links a,.lb .gn-else a,.lb .es-by a{display:inline-flex;align-items:center;min-height:44px}
  .lb input[type=search]{min-height:44px}
}

/* ---- home ---- */
/* 375: the step tab labels ran into each other ("01 Organization" over "02 Project"). They wrap now. */
@media (max-width:760px){
  .lb-ttabs > button > span{white-space:normal;line-height:1.15;text-align:center;font-size:12px;letter-spacing:-.01em;hyphens:none;overflow-wrap:normal;word-break:keep-all}
  .lb-ttabs > button > span{display:flex!important;flex-direction:column;align-items:center;gap:2px;max-width:100%}
  .lb-ttabs > button > span > i{display:block;margin:0}
}
/* 375: "More of our clients" cut names with an ellipsis and the Atmosphera mark ran past its cell. */
@media (max-width:480px){
  .lb-past-g{grid-template-columns:minmax(0,1fr)!important}
  .lb-pc b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  .lb-pc-l img{max-width:100%}
}
/* 375: Journal and Learn link names no longer split mid-name ("Capital / Raising"). */
.lb-links a{white-space:nowrap;display:inline-block}
/* At 360 px and narrower a long label ("Regulation & Compliance") wraps, or the home page is 341 px wide at 320
   (accessibility audit 24.11.2026, O1). */
@media (max-width:360px){body .lb-links a{white-space:normal}}

/* ---- compare-one ---- */
/* 1440: the long lead paragraph of "The short version" sat in the 290px label column. */
.cp-short .main > p{grid-column:2}
.cp-short .main > p.lift{grid-column:2}
.cp-short .main{row-gap:18px}
@media (max-width:760px){.cp-short .main > p{grid-column:auto}}
/* compare: section 03 touched the line above it. */
.cp-rel + .cp-group,.cp-rel + section{margin-top:clamp(40px,5vw,72px)}

/* ---- tools ---- */
/* 375: the carousel wrapped each card in a second card and pushed the text to the edge. */
@media (max-width:760px){
  .swr > li.tl-card{border:0!important;padding:0!important;background:none!important;box-shadow:none!important}
  .swr > li.tl-card > a{padding:12px 12px 22px!important}
  .swr > li.tl-card .mark{width:100%;align-self:stretch!important}
}
/* 1440: the meta line of each card sits on one baseline across the row. */
.tl-card a > em{flex:1}

/* ---- tokenization ---- */
/* The highlight of the key steps started 18px left of the table rule. */
.tk-steps li.key{padding-left:18px;margin-left:0;background-clip:padding-box}

/* ---- framework ---- */
/* 1440: the hero copy collided with the phase staircase; the staircase starts below the copy. */
@media (min-width:1025px){.fw-cta{position:relative;z-index:1}.fw-stairs{margin-top:clamp(24px,3vw,48px)}}
/* 375: the staircase ran edge to edge; it keeps the page gutter like every other block. */
@media (max-width:760px){.fw-stairs,.fw-rail{margin-inline:0!important}}

/* ---- agents ---- */
/* 375: a long URL broke at its hyphen ("llms-/full.txt"); it breaks only after a slash now. */
/* Only on the agents page (it holds the URL list); elsewhere long hashes and addresses must still wrap. */
main:has(.ag-dl) li > code{overflow-wrap:normal;word-break:normal}
@media (max-width:760px){main:has(.ag-dl) li > code{display:block;overflow-x:auto;white-space:nowrap;max-width:100%}}
/* The endpoint box (.ag-ep) wraps its addresses instead: a scrolling box there could not be reached by keyboard
   (accessibility audit 24.11.2026, A3; v18-more.css already asks .ag-ep code to wrap). */
@media (max-width:760px){main:has(.ag-dl) .ag-ep li > code{display:block;overflow-x:visible;white-space:normal;overflow-wrap:anywhere}}

/* ---- guide ---- */
/* The closing band's buttons follow its centred heading. */
.gu-head ~ .od-end .lb-hero-b{justify-content:center}

/* ---- orbit docs ---- */
/* The sticky chapter list fades at its foot instead of cutting a line in half. */
.od-left{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 28px),transparent);padding-bottom:20px}

/* ---- contact ---- */
/* 375: the Register pill in "Three ways in" had padding on one side only. */
.co-ways .lb-btn,.cur .lb-btn.dark{padding:0 28px!important;justify-content:center}

/* ---- blog ---- */
/* The filled "All posts" tab touched its own edges; the "Show all posts" button used Arial. */
.st-tabs button{padding:10px 18px}
.st-btn{font-family:var(--sans)}
button.st-btn{font:600 18px/1 var(--sans)}

/* ---- raise planner ---- */
/* Slot boxes in one row share a height; the step numbers sit near their headings. */
.rp-slots li{display:flex}.rp-slots li > button{height:100%}
.rp-how .n{margin-bottom:16px}

/* ---- cases ---- */
/* The name wall: no "/" left hanging at the end of a line. */
.cs-wall i{white-space:nowrap}

/* ---- readiness ---- */
/* The stats sit level with the hero copy, not at the foot of an empty column. */
.rd-head .mo-in,.rd-top{align-items:start}

/* ---- intelligence ---- */
/* 375: "From $4,950 once" sat 4px in from the other price lines. */
.ix-pricew li,.ix-pricew p{text-indent:0}

/* ---- about ---- */
/* 375: the arrow of "How tokenization works, from the start" wrapped alone onto a new line. */
.co-arrow:after{content:"\00a0\2192"!important;display:inline!important;margin-left:0!important}

/* ---- stbx ---- */
/* The contract address chip ended one chip-padding before its full stop ("…2211a46 . Its"). */
.sx-addr{margin-right:-3px}
