/* HOOKDROID — docs (/docs, /docs/verify), token page and 404. Builds on base.css (+ home.css on the token page). */

/* ---------- docs shell: cream page under the navy top nav ---------- */
.docs { position: relative; margin: 0 var(--s2); border-radius: var(--r-2xl); background: var(--cream); color: var(--ink); overflow: clip; --hl-a: var(--navy); --hl-b: var(--blue-600); }
@media (min-width: 768px) { .docs { margin: 0 var(--s3); } }
.docs__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 1240px; margin: 0 auto; padding: 24px 16px 72px; }
@media (min-width: 900px) { .docs__grid { grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding: 48px 28px 96px; } }
@media (min-width: 1100px) { .docs__grid { grid-template-columns: 210px minmax(0, 720px) 190px; justify-content: space-between; } }
.docs__grid > * { min-width: 0; }

/* left section nav */
.dside { display: none; }
@media (min-width: 900px) { .dside { display: block; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; padding-bottom: 12px; } }
.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(0, 43, 92, .06); color: var(--ink); }
.dside a.is-on, .dside a[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 600; }

/* mobile section menu */
.dmenu { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); }
@media (min-width: 900px) { .dmenu { display: none; } }
.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(--navy); color: #fff; font-weight: 600; }

/* right "on this page" */
.dtoc { display: none; }
@media (min-width: 1100px) { .dtoc { display: block; position: sticky; top: 88px; align-self: start; font-size: 13px; } }
.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(--gold-600); font-weight: 600; }

/* ---------- article typography ---------- */
.art { color: var(--ink); font-size: 16.5px; line-height: 1.65; }
.art__kicker { font-size: 13px; font-weight: 600; color: var(--blue-600); margin-bottom: 10px; display: block; }
.art h1 { font-size: 40px; line-height: 1.04; font-weight: 650; letter-spacing: -.045em; }
.art__lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin-top: 14px; max-width: 640px; }
@media (min-width: 768px) { .art h1 { font-size: 56px; } .art__lead { font-size: 20px; } }
.art section { padding-top: 40px; }
.art h2 { font-size: 27px; 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(--gold-600); font-weight: 700; }
.art a:not(.btn):not(.pn__card):not(.ev) { color: var(--blue-600); text-underline-offset: 3px; }
.art a:not(.btn):not(.pn__card):not(.ev):hover { color: var(--navy); }
.art code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(0, 43, 92, .08); color: var(--navy-900); }
.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); }
.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(--blue-600); }
.callout b { color: var(--ink); }
.callout p { margin: 0; }
.callout--gold { background: linear-gradient(150deg, var(--gold-300), var(--gold)); box-shadow: none; color: var(--ink); }
.callout--gold svg { color: var(--navy); }
.callout--warn svg { color: var(--red-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(--navy); color: var(--gold); font-weight: 700; font-size: 15px; }
.nsteps > li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* house droid cards (docs) */
.hcards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 18px 0; }
@media (min-width: 640px) { .hcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hcard { padding: 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); }
.hcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hcard h3 { margin: 0; font-size: 18px; }
.hcard p { font-size: 14.5px; margin: 0 0 12px; }
.hcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hcard__chips span { padding: 3px 9px; border-radius: 999px; background: rgba(0, 43, 92, .07); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.hcard a { font-size: 14px; font-weight: 600; }

/* score bands */
.bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 18px; }
.band { padding: 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: 13.5px; color: var(--ink-2); }
.band b { display: block; font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.band--ok { box-shadow: inset 0 0 0 1.5px rgba(6, 122, 74, .45); } .band--ok b { color: var(--green-ink); }
.band--warn { box-shadow: inset 0 0 0 1.5px rgba(224, 158, 0, .6); } .band--warn b { color: #8A5A00; }
.band--bad { box-shadow: inset 0 0 0 1.5px rgba(200, 41, 47, .45); } .band--bad b { color: var(--red-ink); }
@media (max-width: 420px) { .bands { grid-template-columns: minmax(0, 1fr); } }

/* 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: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.tmini > div strong { display: block; font-size: 17px; margin: 4px 0 6px; }
.tmini > div.hi { background: var(--navy); color: var(--on-2); box-shadow: none; }
.tmini > div.hi b { color: var(--gold); } .tmini > div.hi strong { color: #fff; }

/* 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(0, 43, 92, .08); color: var(--navy); 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(--navy); 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(--navy); transform: translateY(-2px); }
.olink__i { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.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; }

/* worked example (verify page): decision row */
.vex { margin: 16px 0 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); padding: 6px 18px; }
.vex .drow { display: flex; gap: 12px; padding: 14px 0; }
.vex .drow__a { flex: none; padding-top: 2px; }
.vex .drow__b { min-width: 0; flex: 1; }
.vex .drow__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14.5px; }
.vex .drow__top a { color: var(--ink) !important; text-decoration: none; }
.vex .drow__t { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.vex .drow__b p { margin: 4px 0 8px; font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.vex .drow__ev { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-3); }
.vex .act--buy { background: rgba(6, 122, 74, .12); color: var(--green-ink); }
.vex .act--sell { background: rgba(0, 87, 168, .12); color: var(--blue-600); }
.vex .act--skip { background: rgba(0, 43, 92, .08); color: var(--ink-2); }
.vex .up { color: var(--green-ink); } .vex .down { color: var(--red-ink); }
.vex__check { border-top: 1px solid var(--ink-line); padding: 14px 0 12px; }
.vex__check b { display: block; font-size: 14px; margin-bottom: 6px; }
.vex__check ol { margin: 0; font-size: 14.5px; }
.vex__check .btn { margin-top: 10px; }

/* ---------- token page ---------- */
.tk-hero { padding-bottom: 88px; }
@media (min-width: 768px) { .tk-hero { padding-bottom: 120px; } }
.tk-hero .hero__title { max-width: 900px; }
.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: 28px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; color: var(--navy-900); overflow-wrap: anywhere; }
@media (min-width: 768px) { .tk-fact b { font-size: 38px; } }
.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); 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(0, 61, 121, .35), 0 24px 50px -28px rgba(0, 43, 92, .45); }
.buy li::before { content: counter(b, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue-600); }
.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(--blue-600); }
.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: rgba(255, 255, 255, .05); 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-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(--navy); font-weight: 600; }

/* ---------- 404 ---------- */
.nf { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 72px 0 88px; }
.nf__in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nf__mark { width: 112px; height: 112px; animation: nfbob 3.6s ease-in-out infinite; }
@keyframes nfbob { 50% { transform: translateY(-10px) rotate(-4deg); } }
.nf h1 { font-size: 40px; line-height: 1.05; font-weight: 650; letter-spacing: -.045em; max-width: 640px; 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(--gold); letter-spacing: .1em; }
/* token page: tiers on a navy panel */
.tiers--navy .tier--hi { background: linear-gradient(150deg, var(--gold-300), var(--gold)); color: var(--ink); }
.tiers--navy .tier--hi .tier__name { color: var(--blue-600); }
.tiers--navy .tier--hi ul { border-color: rgba(0, 43, 92, .18); }
.tiers--navy .tier--hi li::before { color: var(--navy); }
.tk-onnavy { color: var(--on-2) !important; }
.panel--gold .olink, .panel--cream .olink { box-shadow: 0 18px 40px -26px rgba(122, 76, 0, .6); }
.tk-hero .label { margin-bottom: -6px; }
.dmenu { margin-bottom: 22px; }
.tk-fact b { overflow-wrap: normal; }
@media (max-width: 767px) { .tk-fact--wide { grid-column: 1 / -1; } }
@media (max-width: 480px) { .tk-hero .hero__actions .btn { white-space: normal; height: auto; min-height: 52px; padding: 12px 22px; text-align: center; line-height: 1.25; max-width: 100%; } }
