/* Plexa Chain · the site's own layer over the builder's page (Site + Kit chat). THE LOOK in TEAM.md: stone ground, ink strand = Solana,
   orange strand = Plexa, ONE accent (International Orange), TikTok Sans for every word, system mono for hashes. */
:root { --accent-text: #B83600; --mono-sys: ui-monospace, Menlo, Consolas, monospace; }
.is-hidden { display: none !important; }
body { font-variant-numeric: tabular-nums; }
code, .hash { font-family: var(--mono-sys); font-size: .92em; }

/* the rail: a two-strand mark next to the name, the current page, the app link */
.brand .mark { display: inline-block; width: 26px; height: 26px; margin-right: 10px; vertical-align: -7px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M6 20c12 0 16 24 26 24s14-24 26-24' fill='none' stroke='%23111311' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M6 44c12 0 16-24 26-24s14 24 26 24' fill='none' stroke='%23FF4F00' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.L-rail .nav .brand { display: inline-flex; align-items: center; font-weight: 650; font-stretch: 112%; letter-spacing: -.01em; font-size: 18px; }
.L-rail .nav .links a[aria-current="page"] { color: var(--ink); background: var(--bg3); }
.L-rail .nav .links a[aria-current="page"] i { color: var(--accent-text); }
.L-rail .nav .links a .arr { color: var(--ink3); font-size: 12px; margin-left: 2px; }
.L-rail .rail-foot .ca { justify-content: space-between; }

/* the hero: a calmer title so the strands keep their band; the everyday moment under the main action */
.L-rail .hero-text h1 { font-size: clamp(40px, 5.4vw, 94px); max-width: 15ch; line-height: .98; }
.hero-text .lead { max-width: 58ch; }
.hero-text .moment { margin-top: 22px; max-width: 62ch; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--ink2); font-size: 15px; line-height: 1.5; }
.hero-text .moment b { color: var(--ink); font-weight: 600; }

/* the live numbers: five columns, each number sized to its own column (no two values ever touch) */
.sec-stats .grid.g4 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 28px); }
.sec-stats .stat { container-type: inline-size; min-width: 0; }
.sec-stats .num { font-size: clamp(28px, 24cqi, 68px); }
@media (max-width: 1100px) { .sec-stats .grid.g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 620px) { .sec-stats .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* orange words on stone use the darker orange (contrast); the strand colours in the two-sides section */
.sec-ledger a, .prose a, .ptable a, .foot-links a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.sec-ledger a:hover, .prose a:hover, .ptable a:hover, .foot-links a:hover { color: var(--accent-text); }

/* the footer: the pages + built with Hyperlane (words, never their logo) */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 13px; color: var(--ink2); }
.foot-links span { color: var(--ink3); }

/* phones: the rail becomes a top bar with the page links in a swipe strip under the name */
@media (max-width: 900px) {
  .L-rail .nav.rail { flex-wrap: wrap; row-gap: 6px; background: var(--bg2); }
  .L-rail .nav.rail .links { display: flex; flex-direction: row; width: 100%; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .L-rail .nav.rail .links::-webkit-scrollbar { display: none; }
  .L-rail .nav.rail .links a { padding: 6px 10px; white-space: nowrap; font-size: 14px; }
  .L-rail .nav.rail .links a i { display: none; }
}

/* ---------- inner pages (how, proofs, docs) ---------- */
.P-inner .inner { padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); }
.pg-head { max-width: 880px; margin-bottom: clamp(36px, 5vw, 64px); }
.pg-head .k { margin-bottom: 16px; }
.pg-head h1 { font-family: var(--f-display); font-weight: var(--d-w); letter-spacing: var(--d-ls); font-stretch: var(--d-stretch); font-size: clamp(38px, 5vw, 80px); line-height: 1; }
.pg-head p { margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink2); max-width: 62ch; line-height: 1.5; }
.pg-sec { margin-top: clamp(48px, 6vw, 88px); padding-top: 22px; border-top: 1px solid var(--line2); }
.pg-sec > .k { margin-bottom: 14px; display: flex; justify-content: space-between; }
.pg-sec > h2 { font-family: var(--f-display); font-weight: 650; font-stretch: 110%; letter-spacing: -.02em; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; max-width: 26ch; }
.pg-sec > p.sub { margin-top: 12px; color: var(--ink2); max-width: 66ch; }
.prose { max-width: 74ch; margin-top: 18px; color: var(--ink2); line-height: 1.62; font-size: 16.5px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose h3 { margin-top: 28px; color: var(--ink); font-size: 18px; font-weight: 650; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 20px; margin-top: 8px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--accent); }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.diagram { position: relative; height: clamp(320px, 34vw, 440px); margin-top: 26px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r2); overflow: hidden; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 24px; }
.panel { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r2); padding: clamp(18px, 2vw, 26px); }
.panel h3 { font-size: 17px; font-weight: 650; color: var(--ink); }
.panel p { margin-top: 8px; color: var(--ink2); line-height: 1.55; font-size: 15px; }
.panel .k { margin-bottom: 10px; }
.panel.strand-a { border-top: 2px solid var(--ink); }
.panel.strand-b { border-top: 2px solid var(--accent); }
.big-v { font-family: var(--f-display); font-weight: 650; font-stretch: 110%; font-size: clamp(26px, 2.4vw, 36px); color: var(--ink); line-height: 1.1; margin-top: 4px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* tables (proofs, docs): hairlines, tabular figures, they scroll inside their box on phones */
.tbl { margin-top: 22px; overflow-x: auto; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r2); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.ptable th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); padding: 12px 16px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.ptable td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink2); vertical-align: baseline; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .r { text-align: right; white-space: nowrap; }
.ptable td b { color: var(--ink); font-weight: 600; }
.ptable .mono { font-family: var(--mono-sys); font-size: 13px; }
.dim { color: var(--ink3); }
.ok { color: var(--ink); } .ok::before { content: "✓ "; color: var(--accent-text); }
.no { color: var(--accent-text); font-weight: 600; }
.ptable .empty td { text-align: left; color: var(--ink3); padding: 22px 16px; }
.docs-toc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.docs-toc a { padding: 6px 12px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--line2); font-size: 13.5px; color: var(--ink2); }
.docs-toc a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink2); }
.nf { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.nf .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.brand img.mark { background: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; vertical-align: -9px; }
