/* OG Mint: dense, dark, monospaced; light when the system asks for it (brand/palette.md) */
:root {
  --bg: #0a0e0d; --panel: #111816; --panel2: #0e1412; --line: #1f2a27; --fg: #e6f0ec; --muted: #8a9b95;
  --mint: #3cf0a0; --ink: #04140d; --amber: #f5b841; --blue: #6cb8ff; --chip: #26332f; --focus: #13261f;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f8f6; --panel: #ffffff; --panel2: #eef4f1; --line: #d5e0db; --fg: #0b1411; --muted: #55665f;
    --mint: #07865a; --ink: #ffffff; --amber: #9a5f00; --blue: #1f62c4; --chip: #e2ebe7; --focus: #e3f5ec;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--mono); overflow-x: hidden; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); }
button, input { font: inherit; }
.muted { color: var(--muted); }
.amber { color: var(--amber); }
[hidden] { display: none !important; }

/* header: the search is always one tap away */
.top { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . how" "search search search"; gap: 10px 12px;
  align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.top .ic, .tokcell .ic { margin-top: 2px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; letter-spacing: .04em; }
.brand img { border-radius: 6px; }
.how { grid-area: how; color: var(--muted); }
.search { grid-area: search; display: flex; gap: 8px; min-width: 0; }
.search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.search input:focus { outline: 2px solid var(--mint); outline-offset: -1px; }
.search button, .btn { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--chip); color: var(--fg); cursor: pointer; white-space: nowrap; }
.search button { background: var(--mint); color: var(--ink); border-color: var(--mint); font-weight: 700; }
@media (min-width: 760px) {
  .top { grid-template-columns: auto minmax(0, 560px) 1fr auto; grid-template-areas: "brand search . how"; gap: 12px 20px;
    padding: 12px max(24px, calc((100% - 1120px) / 2 + 24px)); }
}

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 24px; }
@media (min-width: 760px) { main { padding: 0 24px 32px; } }

/* a result */
.hero { padding: 20px 0 8px; }
.tick { margin: 0; font-size: 44px; line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tick.mid { font-size: 34px; }
.tick.small { font-size: 18px; word-break: break-all; }
.big { margin: 6px 0 14px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.big .num { color: var(--mint); }
@media (min-width: 760px) { .tick { font-size: 64px; } .tick.mid { font-size: 44px; } .big { font-size: 26px; } }
.ident { display: flex; align-items: center; gap: 12px; }
.ident .name { color: var(--muted); overflow-wrap: anywhere; }
.mintline { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; min-width: 0; }
.mintline code { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.facts { list-style: none; margin: 0 0 12px; padding: 4px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.facts li { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts .fx { min-width: 0; overflow-wrap: anywhere; }
.facts li:last-child { border-bottom: 0; }
.facts code { font-weight: 700; }
.note { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--amber); background: var(--panel); }
.chip { display: inline-block; padding: 2px 7px; border-radius: 5px; background: var(--chip); color: var(--fg); font-size: 11px; font-weight: 700;
  letter-spacing: .05em; white-space: nowrap; vertical-align: middle; }
.chip.og { background: var(--mint); color: var(--ink); }
.chip.ver { background: var(--blue); color: var(--ink); }
.chip.new { color: var(--amber); }
.facts .chip { min-width: 78px; text-align: center; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 700; }
.asof, .stale, .caveat, .sort { margin: 6px 0; font-size: 12px; color: var(--muted); }
.stale { color: var(--amber); }
.copy { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.copy:hover, .btn:hover { border-color: var(--mint); }

/* lists */
.list { margin-top: 18px; }
h2 { margin: 0 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
h2 .src { font-size: 11px; color: var(--fg); letter-spacing: .02em; text-transform: none; font-weight: 700; opacity: .85; }
h2 a { color: inherit; }
.tablewrap { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
table.tokens { width: 100%; border-collapse: collapse; }
table.tokens th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tokens td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tokens tr:last-child td { border-bottom: 0; }
table.tokens .n { text-align: right; white-space: nowrap; }
table.tokens tr.focus td { background: var(--focus); }
.c-rank { width: 56px; color: var(--muted); font-weight: 700; }
.c-pool { white-space: nowrap; }
.tokcell { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.who { min-width: 0; }
.who > a { color: var(--fg); font-weight: 700; margin-right: 6px; overflow-wrap: anywhere; }
.who .chip { margin-right: 4px; }
.who .mint { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 2px; font-size: 12px; color: var(--muted); }
.who .lbl { font-size: 11px; }
.ic { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; background: var(--chip); }
.ident .ic { width: 44px; height: 44px; }
.ic.mono { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); font-size: 13px; }
.ident .ic.mono { font-size: 20px; }
@media (max-width: 759px) {
  table.tokens thead { display: none; }
  table.tokens, table.tokens tbody { display: block; }
  table.tokens tr { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); grid-template-areas: "rank tok tok tok tok tok" ". pool mcap liq hold org";
    gap: 4px 6px; padding: 10px; border-bottom: 1px solid var(--line); }
  table.tokens tr:last-child { border-bottom: 0; }
  table.tokens td { display: block; padding: 0; border: 0; min-width: 0; }
  table.tokens .c-rank { grid-area: rank; width: auto; }
  table.tokens .c-tok { grid-area: tok; }
  table.tokens .c-pool { grid-area: pool; }
  table.tokens td[data-k="mcap"] { grid-area: mcap; }
  table.tokens td[data-k="liq"] { grid-area: liq; }
  table.tokens td[data-k="holders"] { grid-area: hold; }
  table.tokens td[data-k="organic"] { grid-area: org; }
  table.tokens td[data-k] { text-align: left; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  table.tokens td[data-k]::before { content: attr(data-k); display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
}

/* home: the board */
.intro { margin: 16px 0 6px; color: var(--muted); }
.intro strong { color: var(--fg); }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 18px; }
.board-head p { margin: 0; font-size: 12px; color: var(--muted); }
.board { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.board li { border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.board a.row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ic tick badge" "ic meta meta"; gap: 2px 10px;
  align-items: center; padding: 10px 12px; color: var(--fg); }
.board a.row:hover { background: var(--focus); text-decoration: none; }
.board .ic { grid-area: ic; }
.board .tk { grid-area: tick; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .bd { grid-area: badge; text-align: right; }
.board .meta { grid-area: meta; font-size: 12px; color: var(--muted); }
.board .meta b { color: var(--fg); }
.board .meta .amber { color: var(--amber); }
.board .pending { color: var(--muted); }
@media (min-width: 760px) {
  .board { display: grid; grid-template-columns: 1fr 1fr; }
  .board li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .board li:nth-child(odd) { border-right: 1px solid var(--line); }
}
.skeleton { padding: 14px 12px; color: var(--muted); }
.top-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.top-list a { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); font-weight: 700; }
.top-list a span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.bad { margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid var(--amber); background: var(--panel); }

/* prose (the how page) */
.prose { max-width: 720px; font-family: var(--sans); font-size: 16px; line-height: 1.6; }
.prose h1 { font-family: var(--mono); font-size: 28px; margin: 24px 0 8px; }
.prose h2 { font-family: var(--mono); margin-top: 28px; }
.prose li { margin: 4px 0; }
.prose code { font-size: 14px; }

/* the token section */
#token { margin-top: 40px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
#token h2 { font-size: 13px; }
#token h3 { margin: 16px 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
#token p { margin: 8px 0; }
.addr { display: flex; gap: 8px; align-items: flex-start; }
.addr code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.links a { margin-right: 16px; }

.foot { max-width: 1120px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.foot p { margin: 0; }
.foot strong { color: var(--fg); }
@media (min-width: 760px) { .foot { padding: 16px 24px; } }
