/* Hyduo public pages: /pair/<key>, /token, /faq, 404 — painting page head, a main column and a rail. Built on base.css. */

.pg{padding-top:64px;padding-bottom:var(--sec)}
@media (max-width:767px){.pg{padding-top:32px}}
.pg__g{row-gap:48px;align-items:start}
@media (min-width:1024px){.pg__rail{position:sticky;top:32px}}
.panelp{display:flex;flex-direction:column;gap:24px;padding:24px;background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-1);min-width:0}
@media (max-width:767px){.panelp{padding:16px}}
.acts{display:flex;flex-wrap:wrap;gap:16px}

/* ---------- /pair: page head = back link + the market plate on the main column (cols 1–8) ---------- */
.phd{display:flex;flex-direction:column;gap:24px}
.phd__back{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px}
.phd__row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:24px;background:rgba(6,6,7,.72);box-shadow:inset 0 0 0 1px var(--line-2)}
@media (max-width:767px){.phd__row{padding:16px}}
.phd__t{display:flex;flex-direction:column;gap:16px;flex:1;min-width:0}
.phd__t h1{font-family:var(--serif);font-weight:400;font-size:var(--fs-h1);line-height:1.05;letter-spacing:-.015em;text-wrap:balance;overflow-wrap:break-word}
.phd__t p{font-family:var(--sans);font-weight:400;font-size:var(--fs-lead);line-height:1.5;color:var(--t-2);text-wrap:balance}
.phd__tags{display:flex;flex-wrap:wrap;gap:12px;flex-basis:100%}
.rates__legs{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:8px}
/* the head plate's status line: what the numbers are (Free view delay with its time / live read / a warning), under a hairline */
.phd__note{flex-basis:100%;display:flex;flex-direction:column;gap:8px;padding-top:16px;box-shadow:inset 0 1px 0 var(--line-1);color:var(--t-2);text-wrap:pretty}
.phd__note .lnk{text-underline-offset:4px;white-space:nowrap}   /* «real‑time for holders» never breaks inside the link (r6) */
.phd__note{min-height:calc(16px + 1lh)}
@media (max-width:767px){.phd__note{min-height:calc(16px + 2lh)}}
.sk--note{width:240px;max-width:100%}
.tier--cl{color:var(--warn);box-shadow:inset 0 0 0 1px var(--warn)}
/* funding now: title left, the next funding countdown right (wraps under the title on narrow columns) */
.rates__h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:24px;row-gap:12px}
.rates__nx{display:inline-flex;align-items:baseline;gap:8px}
.rates__nx .t-small{color:var(--t-2)}
/* the side chip under each exchange's rate: its line keeps the chip's height before the data lands (no shift) */
#rates .mpair:first-child .metric > .t-small:last-child{min-height:24px;display:flex;align-items:center}
/* /pair trade bar = one row (coin · name and $ / h · Open both legs): the row takes the bar's width and never pushes past it */
body[data-page="pair"] .tbar__r{flex:1;min-width:0}
body[data-page="pair"] .tbar__t > .t-num{white-space:nowrap}
/* /pair: the page head already names the market, so the ticket starts with the size (rail and sheet) */
body[data-page="pair"] .tk > .tk__mk{display:none}
/* ≤ 1023: one column, and the ticket comes right after the funding metrics (not after everything else) */
@media (max-width:1023px){
  .pg__g{row-gap:32px}
  .pg__main{display:contents}
  .pg__main > *{grid-column:1 / -1;min-width:0}
  #rates{order:1}#tkHost{order:2}#chart{order:3}#stats{order:4}#palP{order:5}#simP{order:6}
  body.has-tb{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  body.has-tb{scroll-padding-bottom:calc(var(--tbh,80px) + env(safe-area-inset-bottom))}
}
.tbl .w-fig{width:144px}.tbl .w-rate{width:120px}
@media (max-width:767px){.tbl .w-fig{width:120px}.tbl .w-rate{width:96px}}
/* the alerts box = one page of 4 rows (the pager pages it); its height is set by the rows, a shorter last page keeps the room */
#pal .pbox{min-height:var(--pbh,0px)}
.tbl .w-wide{width:200px}
@media (max-width:767px){.tbl .w-wide{width:144px}#pal .pbox{margin-inline:-16px}}
.pal__pg{justify-content:flex-end;margin-top:16px}
@media (min-width:768px){.pal__pg{padding-right:16px}}   /* the pager ends on the figures' right edge (cells keep a 16 px inset) */
.statst thead th{background:none!important;position:static}
.tbl .c-3{color:var(--t-2)}

/* widest gaps of the same class */
.sim{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--g)}
@media (min-width:768px){.sim{grid-template-columns:repeat(2,minmax(0,1fr))}}
.simc{display:flex;align-items:center;gap:16px;padding:16px;background:var(--ink-1);box-shadow:inset 0 0 0 1px var(--line-1)}
.simc:hover{box-shadow:inset 0 0 0 1px var(--line-2)}
.sk--sim{height:120px}

/* ---------- /token ---------- */
.ttbl td{vertical-align:middle}
.ttbl thead th{height:56px;padding-block:0;vertical-align:middle}
.ttbl .w-tier{width:200px}
/* the head of a tier column: chip + price on one line, over the values (no legend row above the table) */
.thd{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.thd .t-small{text-transform:none;letter-spacing:0;color:var(--t-2)}
.ttbl .tcell{display:inline-block}
/* the tier table: 10 fixed rows (Ask AI is the 10th, r6), no inner scroll box (the wheel always moves the page) */
/* the tier table (>= 1280) is a fixed box of exactly its 9 rows (rule 21: a list never pushes the page); rows 72 (a two-line feature
   fits with 12 px padding: rule 8 keeps text 12 from a row line), head 56 */
.tbox{height:calc(56px + 10 * 80px);overflow-y:auto;overscroll-behavior-y:auto}
.ttbl tbody tr{height:80px}
.ttbl tbody td{padding-block:12px}
/* ≤ 767: three tier cards instead of the table (same rows, one card per tier) */
.tcards{display:none;flex-direction:column;gap:var(--g)}
.tcard2{display:flex;flex-direction:column;gap:16px;padding:16px;background:var(--ink-1);box-shadow:inset 0 0 0 1px var(--line-1)}
.tcard2--whale{background:var(--ink-3);box-shadow:inset 0 0 0 1px var(--line-2)}
.tcard2__h{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.tcard2 .kv{row-gap:12px;grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.tcard2 .kv > dt{display:block}
.tcard2 .kv > dd{text-align:right}

.kv dd .addr{display:inline-block}
.wh{display:flex;flex-direction:column;gap:16px}
.wh .badge{align-self:flex-start}
.kv--mid{align-items:center}
.kv--mid > dd{display:flex;justify-content:flex-end;align-items:center;gap:8px}

/* ---------- /faq: three groups (basics · risks · the token), a sticky rail with the group links ---------- */
.faq details::before{content:"";display:block;height:1px;background:var(--line-1)}
.faq summary{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:64px;padding-block:16px}
.faq summary .ui{transition:transform .28s var(--ease)}
.faq details[open] summary .ui{transform:rotate(45deg)}
.faq .ans{padding-bottom:24px;max-width:30em;color:var(--t-2)}
.faq__grp{padding-block:48px 16px;scroll-margin-top:32px}
.faq__grp:first-child{padding-top:0}
.faq__nav{display:flex;flex-direction:column}
.faq__nav > a{display:flex;align-items:center;min-height:44px;color:var(--t-2)}
.faq__nav > a:hover{color:var(--t-1)}

/* ---------- 404 ---------- */
.nf{min-height:100svh;background:var(--ink-0) url(/img/painting.webp?v=3db90f379469) 55% 50% / cover no-repeat}
/* phones and tablets: the 1200 px file on 1x screens, the full 2330 px painting on 2x / 3x (the 1200 file was upscaled 2.5–3×) */
@media (max-width:1023px){.nf{background-image:image-set(url(/img/painting-1200.webp?v=d3ef0a434b81) 1x,url(/img/painting.webp?v=3db90f379469) 2x)}}
/* phones (r5): the portrait crop showed dark sea under a heavy fade = ~550 px of near-black; the clouds instead, and a lighter fade that
   still darkens to ink under the words */
@media (max-width:767px){.nf{background-position:30% 25%}
  .nf .fade{background:linear-gradient(180deg,rgba(6,6,7,.3) 0%,rgba(6,6,7,.18) 35%,rgba(6,6,7,.62) 66%,var(--ink-0) 100%)}}
@media (prefers-reduced-motion:reduce){.lyr > i,.stage.is-ready .sweep{animation:none!important}.lyr{transform:none!important}}
.ttbl .tcell{padding-left:8px}
@media (max-width:1023px){html:has(body.has-tb){scroll-padding-bottom:calc(160px + env(safe-area-inset-bottom))}}

/* /token rail buttons keep their own width from 768 (the rail runs the full content width there); phones stretch them */
#your > .btn,#tkCta > .btn{align-self:flex-start}
#tkCta{display:flex;flex-direction:column}
@media (max-width:767px){#your > .btn,#tkCta > .btn{align-self:stretch}}
/* where $HYDUO lives: label and value stay within one readable measure; phones put the value under its label */
/* label column 160, values start right after it (never floating mid-panel); every row one step (40 = the coin row) */
.wh .kv{max-width:640px;grid-template-columns:160px minmax(0,1fr);align-items:center}
.wh .kv > dt,.wh .kv > dd{min-height:40px;display:flex;align-items:center}
.wh .kv > dd{justify-content:flex-start;text-align:left}
@media (max-width:767px){.wh .kv{grid-template-columns:minmax(0,1fr);row-gap:8px}.wh .kv > dd{justify-content:flex-start;text-align:left;margin-bottom:8px}}

/* ---------- /roadmap: two groups, Live (done: filled check disc) and Next (dashed ring with an arrow; no numbers: the copy promises no order or dates); h2 on cols 1–4, list on 6–12 ---------- */
.rmp{display:flex;flex-direction:column;gap:96px}
@media (max-width:767px){.rmp{gap:64px}}
.rm{row-gap:24px;align-items:start}
@media (min-width:1024px){.rm__h{position:sticky;top:32px}}
.rm__l{display:flex;flex-direction:column}
.rm__i{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:24px;row-gap:12px;align-items:start;padding-block:24px;box-shadow:inset 0 1px 0 var(--line-1)}
.rm__i:last-child{box-shadow:inset 0 1px 0 var(--line-1),inset 0 -1px 0 var(--line-1)}
.rm__i[hidden]{display:none}
@media (max-width:767px){.rm__i{column-gap:16px}}
.rm__mk{flex:none;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%}
.rm__mk--live{background:var(--up-tint);color:var(--up)}
.rm__mk--live .ui{stroke-width:2}
.rm__mk--next{border:1px dashed var(--line-2);color:var(--t-1)}
.rm__tx{display:flex;flex-direction:column;gap:8px;min-width:0;padding-top:8px}
.rm__i--next .rm__tx{padding-top:4px}
.rm__tx > p.t-body{max-width:36em;text-wrap:pretty}
/* what the item needs and runs on: tier chip, then marks — one treatment (32 px disc, 20 px mark); under the text on phones, on the
   right of the first line from 768 (rows keep one rhythm, the marks do not add a line) */
.rm__bm{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:32px}
@media (min-width:768px){.rm__bm{grid-column:3;grid-row:1;justify-content:flex-end;padding-top:4px}
  .rm__i{grid-template-columns:40px minmax(0,1fr) 72px}}   /* marks column one width (two 32 discs), so every text column ends on one line */
.rm__bm:empty{display:none}
.rm__tier{display:flex;padding-top:4px}
.rm__tier[hidden]{display:none}
.rm__m{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--ink-3);color:var(--t-1)}
.rm__m img,.rm__m .ui{width:20px;height:20px}
.rm__note{color:var(--t-3)}
.rm__note[hidden]{display:none}
/* /pair exchange stats on phones: one line per label («Open interest», «Max leverage», set in the small role), value columns 104 wide
   (room for «$12,345.67»), head and cells on the same 4 px inset */
@media (max-width:767px){.statst .w-rate{width:104px}.tbl.statst thead th,.tbl.statst tbody td{padding-inline:4px}.tbl.statst th:first-child,.tbl.statst td:first-child{padding-left:8px}.tbl.statst th:last-child,.tbl.statst td:last-child{padding-right:8px}
  .statst td[data-col="k"] .t-body{white-space:nowrap;font-size:var(--fs-small);line-height:1.45}.statst td .t-num{font-size:var(--fs-nums);line-height:1.4}}
/* ≤ 399: value columns 96 (room for «$12,345.67»), so the label column keeps «Open interest» / «24 h volume» on one line (rule 28: a
   cell with a figure never wraps, rows one height) */
@media (max-width:399px){.statst .w-rate{width:96px}}
/* ≤ 359 (r6): «Open interest» ran into the first value column (Gold «$266.6M» 1 px after it): value columns 80 (room for «$108,234»),
   the row names on the panel's text edge (as from 768), so a 7-figure value keeps ≥ 16 px from its name */
@media (max-width:359px){.statst .w-rate{width:80px}.tbl.statst th:first-child,.tbl.statst td:first-child{padding-left:0}}
/* /token kicker over the painting: t-2 (t-3 measured 2.2–3.97 there) */
#tkKick .t-label{color:var(--t-2)}

/* /token (r3): phones and tablets get the contract address and «Your tier» right under the head (the CA was 3.6 screens down) */
@media (max-width:1023px){.tok-rail{order:-1}}
#tkCta:empty{display:none}
#caP.is-pending #ca .t-ui,#caP.is-pending #caN,#caP.is-pending #tkCta{visibility:hidden}
#tkCta > .tkbuy{align-self:flex-start;gap:12px}
/* 1024–1279: the rail is narrow, so Copy goes under the address (two lines of hex, never four) */
@media (min-width:1024px) and (max-width:1279px){#caP .ca{flex-direction:column;align-items:stretch}#caP .ca > .btn{align-self:flex-start}}
/* where: each row one step = the card icon; phones: label tight over its value, pairs apart */
.wh .kv > dt,.wh .kv > dd{min-height:var(--ico-card)}
@media (max-width:767px){.wh .kv{row-gap:4px}.wh .kv > dt{min-height:0}.wh .kv > dd{margin-bottom:16px}}
.wh__pair{display:inline-flex;align-items:center}
.wh__pair > .coin + .coin{margin-left:-12px;box-shadow:0 0 0 2px var(--ink-2)}

/* /faq (r3): the questions balance their lines (no lone «work?» / «mean?»), the coin keeps to its last word */
.faq summary > span,.faq__q{text-wrap:balance}
.faq__nw{white-space:nowrap}
.faq summary{cursor:pointer}
.faq summary:hover .ui{color:var(--acc)}
.faq summary .ui{color:var(--t-2)}
.faq details[open] summary .ui{color:var(--t-1)}
/* each group closes with a line under its last question */
.faq details:last-of-type::after,.faq details:has(+ .faq__grp)::after{content:"";display:block;height:1px;background:var(--line-1)}
/* the CA in «Where is the contract address?» takes the column, not the 30em of the words (two hex lines, not four) */
.faq div.ans{max-width:none}
.faq div.ans > p{max-width:30em}
/* phones and tablets: the group links come first, as one row under the head (they were after all 22 questions) */
@media (max-width:1023px){
  .pg__g > .pg__rail:has(.faq__nav){order:-1}
  .faq__nav{flex-direction:row;flex-wrap:wrap;column-gap:24px}
  .faq__nav > a{min-width:44px;justify-content:center}
}
/* tier cards: feature (small, t-2) over its value, hairline between items */
.tcl{display:flex;flex-direction:column}
.tcl__i{display:flex;flex-direction:column;gap:8px;padding-block:12px;box-shadow:inset 0 1px 0 var(--line-1)}
.tcl__i:first-child{box-shadow:none;padding-top:0}
.tcl__i:last-child{padding-bottom:0}
/* 768–1279: the three tier cards side by side (the table's feature column is too narrow there: three-line features, wrapped heads) */
@media (max-width:1279px){.tcards{display:flex}.tbox{display:none}}
@media (min-width:768px) and (max-width:1279px){.tcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}}

/* /pair 1024–1279 (r4): the ticket rail was 4 columns (293 px) — figures broke mid-digit, «over 48 h» wrapped; 5 columns there */
@media (min-width:1024px) and (max-width:1279px){#pmain,body[data-page="pair"] .phd{--cd:1/8 !important}#tkHost{--cd:8/13 !important}}

/* r5 polish: /pair plate → first panel 32 (was 64 + the stage bottom = 128); stats row names on the panel's text edge;
   /faq «Open app» keeps its own width on tablets; /token Montra link underlined in one piece (coin spaced by margin, not gap) */
@media (min-width:1024px){body[data-page="pair"] .pg{padding-top:32px}}   /* ≤ 1023 keeps 64: the in-flow ticket grows with the data, the chart under it must start below the first screen */
@media (min-width:768px){.tbl.statst th:first-child,.tbl.statst td:first-child{padding-left:0}}
@media (min-width:768px) and (max-width:1023px){.pg__rail:has(.faq__nav) .btn--block{width:auto;align-self:flex-start}}
#tkCta > .tkbuy{gap:0}
#tkCta > .tkbuy > .coin{margin-right:12px}
#tkCta > .tkbuy > span[data-s]::after{content:"\00a0\2197"}   /* the arrow inside the words' box: one underline */

/* r6: /pair plate → first panel = the 32 px rhythm between the panels at every width (was 96, 128 at 768: the stage's 64 bottom
   padding + the page's 32 / 64 top) — the stage ends 32 under the plate and the page starts right there */
body[data-page="pair"] .phead > .wrap{padding-bottom:32px}
body[data-page="pair"] .pg{padding-top:0}
/* r6: roadmap lines of two or three rows balance (no «and FX.» / «a check.» alone on the last row at 1440) */
.rm__tx > p.t-body{text-wrap:balance}
/* ≤ 1023 the ticket is in the flow under the rates: its skeleton keeps a ticket's room (the drawn ticket is 1200+ px there), so the
   chart under it starts below the first screen before the data lands and never jumps in view (CLS) now that the plate sits 32 above */
@media (max-width:1023px){#tkHost > .tk:has(> .sk--fig){min-height:640px}}
/* r6: ≤ 1023 /pair opens its ticket as a sheet from the trade bar; the pointer move to the bar nudged the head's parallax layers
   (1.7 / 3.9 px) as the sheet opened — the layers stay fixed to the head there (their own drift / swell loops keep moving inside) */
@media (max-width:1023px){body[data-page="pair"] .phead > .lyr{transform:none!important}}
