/* Arfi Info — asset directory. Requires ../tokens.css + ../kit.css */

[hidden] { display: none !important; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--xs { width: 12px; height: 12px; }
.i--warn { color: var(--warn); }
.i--down { color: var(--down); }
.inline { display: inline-block; vertical-align: -1px; }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.h3 { font-size: 1rem; margin-bottom: .9rem; }
.g-tight { gap: .9rem; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; margin-top: .05rem; }
.tok > span { display: block; line-height: 1.25; }
.tok__ico--w { background: var(--card-hover); color: var(--gold-300); }
.tok__ico--v { background: rgba(108,180,255,.14); color: #8cc8ef; }
.tok__ico--o { background: rgba(195,166,239,.14); color: #c3a6ef; }
.tok__ico--p { background: var(--up-soft); color: var(--up); }
.tok__ico--d { background: var(--warn-soft); color: var(--warn); }
.tok__ico--x { background: var(--down-soft); color: var(--down); }
.ibtn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.ibtn:hover { background: var(--card-hover); color: var(--gold-400); }
.ibtn .i { width: 15px; height: 15px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__head h3 { display: inline-flex; align-items: center; gap: .5rem; }
.card__head h3 .i { width: 16px; height: 16px; }
.card__note { padding: .8rem 1.25rem; border-top: 1px solid var(--line-soft); font-size: var(--fs-xs); color: var(--faint); }

/* Verification badge */
.vb { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--fs-xs); font-weight: 700; color: var(--up); white-space: nowrap; }
.vb .i { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--up); color: var(--bg); stroke-width: 3; }
.vb--lg .i { width: 28px; height: 28px; padding: 5px; }

/* Hero + search */
.ihero { padding: 3.5rem 0 2.25rem; text-align: center; background: radial-gradient(800px 360px at 50% 0%, rgba(233,185,73,.08), transparent 70%); }
.ihero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin: .75rem auto 1rem; max-width: 820px; letter-spacing: -.01em; }
.ihero__lead { color: var(--text-2); max-width: 700px; margin: 0 auto; }
.isearch { display: flex; align-items: center; gap: .75rem; max-width: 640px; height: 56px; margin: 1.75rem auto 0; padding: 0 .75rem 0 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.isearch:focus-within { border-color: var(--gold-500); }
.isearch .i { color: var(--muted); }
.isearch input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: var(--fs-body); }
.isearch input::placeholder { color: var(--faint); }
.isearch kbd { font-family: var(--font); font-size: var(--fs-xs); color: var(--muted); padding: .1rem .5rem; border-radius: 5px; border: 1px solid var(--line); }

/* Highlights */
.hl { margin-bottom: 1.25rem; }
.mini { list-style: none; margin: 0; padding: .35rem 0; }
.mini a { display: grid; grid-template-columns: 90px 1fr auto; gap: .75rem; align-items: center; padding: .55rem 1.25rem; font-size: var(--fs-sm); }
.mini a:hover { background: var(--card); }
.mini .tok__ico { width: 22px; height: 22px; font-size: 9px; }
.mini .num { text-align: right; }

/* Asset list */
.list__head { flex-wrap: wrap; }
.list .tabs { padding: 3px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.at td:nth-child(2) { min-width: 190px; }
.at a.tok:hover span { color: var(--gold-400); }
.at tr.flag td { background: rgba(234,57,67,.04); }
.spark { width: 100px; height: 28px; display: inline-block; vertical-align: middle; }
.spark__l { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark__l--up { stroke: var(--up); }
.spark__l--down { stroke: var(--down); }
.spark__l--flat { stroke: var(--muted); }
.list__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.25rem; border-top: 1px solid var(--line-soft); }
.how { margin-top: 1.25rem; }
.howc { padding: 1.25rem; border-radius: var(--r-lg); border: 1px dashed var(--line); }
.howc b { display: block; margin: .75rem 0 .25rem; }
.howc p { color: var(--muted); font-size: var(--fs-sm); }

/* Breadcrumbs */
.crumbs { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs .i { width: 12px; height: 12px; color: var(--faint); }
.crumbs span { color: var(--text-2); }

/* Asset header */
.ah { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }
.ah__id { display: flex; align-items: center; gap: 1rem; flex: 1 1 360px; min-width: 0; }
.ah__logo { width: 56px; height: 56px; font-size: 1.2rem; }
.ah__mark { width: 56px; height: 56px; flex: none; }
.ah__title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ah__title h1 { font-size: 1.8rem; margin-right: .25rem; }
.ah__px { text-align: right; }
.ah__price { font-size: 2rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; justify-content: flex-end; line-height: 1.2; }
.ah__price small { font-size: .5em; color: var(--muted); }
.ah__price .pill { font-size: var(--fs-xs); }
.ah__price--none { font-size: 1.4rem; color: var(--text-2); }
.ah__acts { display: flex; gap: .5rem; flex-wrap: wrap; }

.ad { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
.ad__main, .ad__side { min-width: 0; display: grid; gap: 1.25rem; }

/* Chart */
.chart svg { width: 100%; height: 260px; display: block; }
.chart__g { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__l { fill: none; stroke: var(--gold-400); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart__a { fill: url(#area); }
.chart__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .9rem; font-size: var(--fs-xs); color: var(--muted); }
.chart__meta b { color: var(--text); }
.chart__meta span:last-child { margin-left: auto; }
.venue { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.venue svg { width: 20px; height: 20px; }
.about { display: grid; gap: 1rem; color: var(--text-2); }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.facts3 > div { background: var(--surface); padding: .75rem 1rem; }
.facts3 dt { font-size: var(--fs-xs); color: var(--muted); }
.facts3 dd { margin: .15rem 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text); }

/* Side cards */
.ca { display: flex; align-items: center; gap: .4rem; padding: .7rem .8rem; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-soft); font-size: var(--fs-xs); }
.ca a { flex: 1; min-width: 0; word-break: break-all; }
.checks { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.checks li { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); color: var(--text-2); }
.checks .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; stroke-width: 2.4; }
.checks .ok .i { background: var(--up-soft); color: var(--up); }
.checks .warn .i { background: var(--warn-soft); color: var(--warn); stroke-width: 2; }
.sup { margin-top: .75rem; }
.ad__side .tiny { margin-top: .5rem; }
.links a { display: grid; grid-template-columns: 20px 1fr auto; gap: .8rem; align-items: center; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); font-weight: 700; }
.links a:last-child { border-bottom: 0; }
.links a:hover { background: var(--card); color: var(--gold-400); }
.links a > .i:first-child { color: var(--muted); }
.links small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.side-acts { display: grid; gap: .6rem; }

/* ARFI page */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.uses > div { background: var(--surface); padding: 1.25rem; }
.uses b { display: block; margin: .8rem 0 .25rem; }
.uses p { color: var(--muted); font-size: var(--fs-sm); }
.uses .stat__ico { display: grid; }
.kv dd .pill { margin-left: .25rem; }

/* Submit */
.subm { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.sub__side { position: sticky; top: 84px; }
.card__head h2 { display: inline-flex; align-items: center; gap: .65rem; }
.stepn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-400); font-size: var(--fs-xs); font-weight: 800; }
.fetched { display: grid; gap: .75rem; padding: 1rem; border-radius: var(--r-md); background: var(--up-soft); border: 1px solid rgba(22,199,132,.22); }
.fetched dl { display: grid; grid-template-columns: repeat(5, auto); gap: .5rem 1.5rem; margin: 0; justify-content: start; }
.fetched dt { font-size: var(--fs-xs); color: var(--muted); }
.fetched dd { margin: 0; font-size: var(--fs-sm); font-weight: 700; }
.logo-up { display: flex; gap: 1rem; align-items: center; }
.logo-up__prev { width: 64px; height: 64px; font-size: 1.3rem; }
.logo-up__drop { flex: 1; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--bg-2); }
.logo-up__drop:hover { border-color: var(--gold-600); }
.logo-up__drop .i { color: var(--gold-400); }
.logo-up__drop span { display: grid; font-size: var(--fs-sm); }
.logo-up__drop small { color: var(--muted); font-size: var(--fs-xs); }
.sig { display: flex; gap: .75rem; align-items: center; padding: .75rem; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-soft); }
.sig__msg { flex: 1; min-width: 0; font-family: var(--font); font-size: var(--fs-xs); color: var(--text-2); word-break: break-word; }
.sub__submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; display: grid; padding: 0 0 1rem 2.25rem; font-size: var(--fs-sm); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--card-hover); color: var(--muted); }
.steps li::after { content: ""; position: absolute; left: 11px; top: 28px; bottom: 4px; width: 2px; background: var(--line-soft); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li.done::before { content: "✓"; background: var(--up); color: var(--bg); }
.steps span { color: var(--muted); font-size: var(--fs-xs); }

/* Responsive */
@media (max-width: 1080px) {
  .ad, .subm { grid-template-columns: 1fr; }
  .sub__side { position: static; }
  .fetched dl { grid-template-columns: repeat(3, auto); }
}
@media (max-width: 640px) {
  .ihero { padding-top: 2rem; text-align: left; }
  .card__head { flex-wrap: wrap; gap: .4rem 1rem; }
  .isearch kbd, .top__right .chip-net { display: none; }
  .ah__px { text-align: left; }
  .ah__price { justify-content: flex-start; font-size: 1.6rem; flex-wrap: wrap; }
  .ah__acts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .ah__title h1 { font-size: 1.45rem; }
  .uses, .facts3 { grid-template-columns: 1fr; }
  .fetched dl { grid-template-columns: repeat(2, auto); }
  .sig { flex-direction: column; align-items: stretch; }
  .chart svg { height: 200px; }
  .chart__meta span:last-child { margin-left: 0; }
  .mini a { grid-template-columns: 80px 1fr auto; padding-inline: 1rem; }
  .logo-up__prev { width: 52px; height: 52px; }
}
