/* BOOSTOCK — docs (/docs, /docs/verify), token page and 404. Builds on base.css (+ home.css for tiers, burn and FAQ on /token). */

/* ---------- docs shell: a ghost-white page under the night nav ---------- */
.docs { position: relative; margin: 0 var(--s2); border-radius: var(--r-2xl); background: var(--ghost); color: var(--ink); overflow: clip; --hl-a: var(--night); --hl-b: var(--green-deep); }
.docs > .dots { position: absolute; inset: 0 0 auto 0; height: 520px; z-index: 0; pointer-events: none; background-image: repeating-linear-gradient(45deg, rgba(0, 160, 40, .12) 0 1px, transparent 1px 42.43px), repeating-linear-gradient(-45deg, rgba(0, 160, 40, .12) 0 1px, transparent 1px 42.43px); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.docs__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 1240px; margin: 0 auto; padding: 24px 16px 72px; }
@media (min-width: 768px) { .docs { margin: 0 var(--s3); } .docs__grid { padding: 40px 28px 96px; } }
.docs__grid > * { min-width: 0; }

/* left section nav */
.dside { display: none; }
.dside__group { font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 18px 10px 6px; }
.dside__group:first-child { padding-top: 0; }
.dside a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.dside a:hover { background: rgba(7, 9, 13, .05); color: var(--ink); }
.dside a.is-on, .dside a[aria-current="page"] { background: var(--night); color: #fff; font-weight: 600; }

/* mobile section menu */
.dmenu { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); margin-bottom: 22px; }
.dmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 600; font-size: 15px; }
.dmenu summary::-webkit-details-marker { display: none; }
.dmenu summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.dmenu[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.dmenu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0 8px 12px; }
.dmenu nav a { padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.dmenu nav a.is-on, .dmenu nav a[aria-current="page"] { background: var(--night); color: #fff; font-weight: 600; }

/* right "on this page" */
.dtoc { display: none; }
.dtoc b { display: block; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.dtoc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--ink-line); color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s; }
.dtoc a:hover { color: var(--ink); }
.dtoc a.is-on { color: var(--ink); border-left-color: var(--rh); font-weight: 600; }

@media (min-width: 1000px) { .docs__grid { grid-template-columns: 210px minmax(0, 1fr); gap: 48px; } .dside { display: block; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; } .dmenu { display: none; } }
@media (min-width: 1240px) { .docs__grid { grid-template-columns: 210px minmax(0, 1fr) 190px; } .dtoc { display: block; position: sticky; top: 92px; align-self: start; font-size: 13.5px; } }

/* ---------- article typography ---------- */
.art { color: var(--ink); font-size: 16.5px; line-height: 1.65; }
.art__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 12px; }
.art__kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50% 50% 2px 2px; background: currentColor; }
.art h1 { font-size: 40px; line-height: 1.04; font-weight: 650; letter-spacing: -.045em; text-wrap: balance; }
@media (min-width: 768px) { .art h1 { font-size: 56px; } }
.art__lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin-top: 14px; max-width: 660px; }
.art section { padding-top: 44px; }
.art h2 { font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; margin: 8px 0 14px; scroll-margin-top: 90px; }
.art h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: 26px 0 8px; }
.art p { margin: 0 0 14px; color: var(--ink-2); }
.art p b, .art li b, .art strong { color: var(--ink); font-weight: 650; }
.art ul, .art ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.art li { margin: 6px 0; }
.art li::marker { color: var(--green-deep); font-weight: 700; }
.art a:not(.btn):not(.pn__card):not(.olink) { color: var(--green-deep); text-underline-offset: 3px; }
.art a:not(.btn):not(.pn__card):not(.olink):hover { color: var(--night); }
.art code { font-size: .86em; padding: 2px 6px; border-radius: 6px; background: rgba(7, 9, 13, .07); color: var(--night); overflow-wrap: anywhere; }
.art pre { margin: 12px 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--night); color: var(--on-2); font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.art pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.art pre .c { color: var(--on-3); } .art pre .s { color: var(--mint); } .art pre .n { color: var(--neon); }
.art hr { border: 0; border-top: 1px solid var(--ink-line); margin: 40px 0 0; }
.art .tbl-wrap { margin: 8px 0 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); padding: 4px 8px; }
.art .tbl { font-size: 14px; }
.art .tbl td { white-space: normal; vertical-align: top; color: var(--ink-2); padding: 12px; }
.art .tbl td:first-child { white-space: nowrap; color: var(--ink); font-weight: 600; }
.art .tbl code { white-space: nowrap; }
.art .tbl th { color: var(--ink-3); }

/* callouts */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin: 18px 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--green-deep); }
.callout b { color: var(--ink); }
.callout p { margin: 0; }
.callout--mint { background: linear-gradient(150deg, #E9FFF3, var(--mint)); box-shadow: none; color: var(--ink); }
.callout--warn { background: #FFF7E6; box-shadow: inset 0 0 0 1px rgba(224, 161, 0, .35); }
.callout--warn svg { color: var(--warn-ink); }

/* numbered steps inside the article */
.nsteps { list-style: none; counter-reset: s; padding: 0 !important; margin: 18px 0 !important; display: flex; flex-direction: column; gap: 10px; }
.nsteps > li { counter-increment: s; position: relative; margin: 0 !important; padding: 16px 18px 16px 64px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--ink-2); }
.nsteps > li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--night); color: var(--neon); font-weight: 700; font-size: 15px; }
.nsteps > li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* two columns: hides / doesn't hide */
.split2 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 16px 0 18px; }
@media (min-width: 720px) { .split2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split2 > div { padding: 18px 18px 8px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: 15px; }
.split2 > div.dark { background: var(--night); color: var(--on-2); box-shadow: none; }
.split2 h3 { margin: 0 0 8px; font-size: 16px; }
.split2 > div.dark h3 { color: #fff; }
.split2 ul { padding-left: 18px; margin: 0 0 10px; }
.split2 > div.dark ul { color: var(--on-2); }
.split2 > div.dark li::marker { color: var(--neon); }

/* tier mini-cards (docs) */
.tmini { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 16px 0; }
@media (min-width: 640px) { .tmini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tmini > div { padding: 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: 14px; color: var(--ink-2); }
.tmini > div b { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); }
.tmini > div strong { display: block; font-size: 17px; margin: 4px 0 6px; }
.tmini > div.hi { background: var(--night); color: var(--on-2); box-shadow: none; }
.tmini > div.hi b { color: var(--neon); } .tmini > div.hi strong { color: #fff; }

/* live proof box (verify page) */
.live { margin: 16px 0 20px; border-radius: 18px; background: var(--night); color: var(--on-2); padding: 18px 20px; font-size: 14.5px; }
.live__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--on-line); flex-wrap: wrap; }
.live__row:last-child { border-bottom: 0; }
.live__row span { color: var(--on-3); }
.live__row b { color: #fff; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.live__row b a { color: var(--neon) !important; }
.live__k { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--neon); margin-bottom: 6px; }

/* docs FAQ (light) */
.dfaq details { border-bottom: 1px solid var(--ink-line); }
.dfaq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; padding: 16px 2px; font-weight: 600; color: var(--ink); }
.dfaq summary::-webkit-details-marker { display: none; }
.dfaq summary::after { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 9, 13, .07); color: var(--night); font-weight: 700; transition: transform .35s var(--ease); }
.dfaq details[open] summary::after { transform: rotate(45deg); }
.dfaq details p { padding: 0 2px 6px; }

/* prev / next */
.pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 56px; }
.pn__card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--ink); text-decoration: none; transition: box-shadow .25s, transform .35s var(--ease); }
.pn__card:hover { box-shadow: inset 0 0 0 1.5px var(--night); transform: translateY(-2px); }
.pn__card small { font-size: 12.5px; color: var(--ink-3); }
.pn__card b { font-size: 16px; }
.pn__card--next { text-align: right; grid-column: 2; }

/* official links block */
.olinks { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); margin: 14px 0 18px; }
@media (min-width: 560px) { .olinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.olink { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--ink) !important; text-decoration: none !important; transition: box-shadow .25s, transform .3s var(--ease); min-width: 0; }
.olink:hover { box-shadow: inset 0 0 0 1.5px var(--night); transform: translateY(-2px); }
.olink__i { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--night); color: var(--neon); }
.olink__i svg { width: 17px; height: 17px; }
.olink span:last-child { min-width: 0; }
.olink b { display: block; font-size: 15px; }
.olink small { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- token page ---------- */
.tk-hero { position: relative; padding: 56px 0 88px; text-align: center; background: radial-gradient(55% 60% at 50% 30%, rgba(184, 255, 224, .10), transparent 70%), linear-gradient(180deg, #0B1017 0%, var(--night) 100%); }
.tk-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tk-hero__boo { width: 120px; height: 132px; filter: drop-shadow(0 0 30px rgba(184, 255, 224, .35)); animation: tkfloat 4.2s ease-in-out infinite; }
@keyframes tkfloat { 50% { transform: translateY(-10px) rotate(2deg); } }
.tk-hero h1 { font-size: 44px; line-height: 1; font-weight: 650; letter-spacing: -.05em; max-width: 900px; text-wrap: balance; }
.tk-hero p { max-width: 640px; font-size: 18px; color: var(--on-2); }
.tk-hero__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tk-hero small { font-size: 13.5px; color: var(--on-3); }
@media (min-width: 768px) { .tk-hero { padding: 72px 0 120px; } .tk-hero h1 { font-size: 76px; } .tk-hero p { font-size: 20px; } }
@media (max-width: 480px) { .tk-hero__act .btn { white-space: normal; height: auto; min-height: 50px; padding: 12px 22px; text-align: center; line-height: 1.25; max-width: 100%; } }
.tk-facts { padding: 40px 0; }
.tk-facts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
@media (min-width: 768px) { .tk-facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tk-facts { padding: 52px 0; } }
.tk-fact { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tk-fact span { font-size: 14px; font-weight: 550; color: var(--ink-2); }
.tk-fact b { font-size: 26px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; color: var(--night); }
@media (min-width: 768px) { .tk-fact b { font-size: 36px; } }
@media (max-width: 767px) { .tk-fact--wide { grid-column: 1 / -1; } }
.buy { list-style: none; counter-reset: b; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .buy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .buy { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.buy li { counter-increment: b; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 22px 22px; border-radius: var(--r-xl); background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-line), 0 24px 50px -36px rgba(7, 40, 20, .45); min-width: 0; transition: transform .45s var(--ease), box-shadow .3s; }
.buy li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(10, 125, 36, .35), 0 30px 60px -32px rgba(7, 40, 20, .5); }
.buy li::before { content: counter(b, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--green-deep); }
.buy h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.buy p { font-size: 15px; color: var(--ink-2); }
.buy p a { color: var(--green-deep); }
.buy .btn { margin-top: 6px; width: fit-content; }
.tk-split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .tk-split { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.tk-table { border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(21, 28, 38, .95), rgba(11, 15, 20, .96)); box-shadow: inset 0 0 0 1px var(--on-line); padding: 6px 22px; }
.tk-table .kv { border-color: var(--on-line); font-size: 15px; padding: 15px 0; }
.tk-table .kv span { color: var(--on-3); }
.tk-table .kv b { color: #fff; }
.tk-table .kv b a { color: var(--neon); }
.tk-links { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); max-width: 980px; margin: 0 auto; }
@media (min-width: 640px) { .tk-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tk-links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tk-note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-2); }
.tk-note a { color: var(--night); font-weight: 600; }
.tk-onink { color: var(--on-2) !important; text-align: center; margin-top: 18px; font-size: 14px; }
.panel--ghost .olink, .panel--mist .olink { box-shadow: 0 18px 40px -26px rgba(7, 40, 20, .5), inset 0 0 0 1px var(--ink-line); }

/* ---------- 404 ---------- */
.nf { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 56px 0 88px; }
.nf__in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nf__boo { width: 140px; height: 154px; filter: drop-shadow(0 0 34px rgba(184, 255, 224, .35)); animation: nfbob 3.6s ease-in-out infinite; }
@keyframes nfbob { 50% { transform: translateY(-12px) rotate(-4deg); } }
.nf h1 { font-size: 40px; line-height: 1.05; font-weight: 650; letter-spacing: -.045em; max-width: 680px; text-wrap: balance; }
@media (min-width: 768px) { .nf h1 { font-size: 64px; } }
.nf p { color: var(--on-2); font-size: 18px; max-width: 480px; }
.nf .code { font-family: var(--mono); font-size: 13px; color: var(--neon); letter-spacing: .1em; }
.nf__act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
