/* The index page: the hero band, the grey page below it, and everything on them. Loaded on those pages only. */
/* the index page: what CoinGecko and CoinMarketCap do well (a table you can sort, filter and keep), in our own colours and soft lines */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 25px; }
.stat-card { background: var(--panel); border-radius: 5px; padding: 20px; }
.chart-row { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.chart-row .legend2 { margin-top: 0; }
.stat-card svg { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.stat-card svg text { font-family: 'Figtree', Helvetica, Arial, sans-serif; font-size: 14px; fill: var(--meta); }
.stat-card svg text.lab { fill: var(--text); }
.stat-card .legend2 { display: grid; gap: 5px; margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--text); }
.stat-card .legend2 i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.stat-card .num { display: block; font-size: 33px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.stat-card span.k { font-size: 14px; line-height: 20px; color: var(--meta); }
.finder { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; margin-top: 30px; padding: 25px; background: var(--panel); border-radius: 5px; }
.finder h2 { font-size: 23px; line-height: 30px; }
.stat-card .arc { animation: arcglow 3.6s ease-in-out infinite; }
@keyframes arcglow { 0%, 100% { opacity: 1; stroke-width: 16; } 50% { opacity: 0.55; stroke-width: 19; } }
.stat-card .sqr { transform-box: fill-box; transform-origin: center; animation: sqpulse 3s ease-in-out infinite; }
@keyframes sqpulse { 0%, 55%, 100% { transform: scale(1); opacity: 1; } 25% { transform: scale(0.8); opacity: 0.55; } }
.stat-card .dotp { transform-box: fill-box; transform-origin: center; animation: dotin 0.9s ease-out both, dotbeat 2.4s ease-in-out 0.9s infinite; }
@keyframes dotin { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dotbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.stat-card .halo { transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stat-card .arc, .stat-card .sqr, .stat-card .dotp, .stat-card .halo { animation: none; } }
.hero { background: var(--bg); border-bottom: 1px solid var(--rule); }
.below { background: var(--panel); padding: 30px 0 50px; }
.below .stat-card, .below .finder, .below .graph, .below .board { background: var(--bg); }
.below .graph-box { background: var(--panel); border-color: var(--rule); }
.below .board { padding: 0 15px; }
.page-head { display: grid; grid-template-columns: auto minmax(0, 440px); justify-content: space-between; align-items: center; gap: 30px 60px; }
.ph-main { width: fit-content; max-width: 100%; }
.ph-main p.stand { width: 0; min-width: 100%; }
.ph-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ph-rows li { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ph-rows .l { color: var(--text); font-weight: 500; font-size: 16px; line-height: 20px; }
.ph-rows .r { color: var(--meta); font-size: 15px; text-align: right; }
.ph-rows a { color: inherit; text-decoration: none; }
.ph-rows a:hover .r { color: var(--link-hover); }
.ph-icons { display: flex; gap: 5px; }
.ph-icons a { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--rule); border-radius: 5px; color: var(--text); }
.ph-icons a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 800px) { .page-head { grid-template-columns: minmax(0, 1fr); } }
.finder .row { display: flex; width: fit-content; max-width: 100%; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.finder .fnote { flex: 0 0 auto; width: 0; min-width: calc(100% - 15px); margin: 0; }
.finder .out { font-size: 16px; line-height: 25px; }
.finder .out b { font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 25px 0 15px; }
.toolbar #q { flex: 1 1 220px; min-width: 0; }
.toolbar select.field { padding-right: 10px; }
.sr { position: absolute; left: -9999px; }
.count { margin-left: auto; }
.chip { font: 600 14px/20px 'Figtree', Helvetica, Arial, sans-serif; color: var(--text); background: var(--panel); border: 0; border-radius: 5px; padding: 5px 15px; cursor: pointer; }
.chip:hover { color: var(--link-hover); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { font: 500 15px/20px 'Figtree', Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 5px; padding: 5px 15px; }
.field:focus { outline: none; border-color: var(--blue); }
.menu { position: relative; }
.menu .pop { position: absolute; right: 0; top: 100%; margin-top: 5px; background: var(--bg); border: 1px solid var(--rule); border-radius: 5px; box-shadow: 0 10px 30px var(--shadow); padding: 10px 15px; z-index: 9; min-width: 190px; }
.menu .pop[hidden] { display: none; }
.menu .pop label { display: flex; gap: 10px; padding: 5px 0; font-size: 15px; line-height: 20px; cursor: pointer; }
.board { overflow-x: auto; border-radius: 5px; }
.board table { min-width: 1040px; border-collapse: separate; border-spacing: 0; width: 100%; }
.board thead th { position: sticky; top: 0; background: var(--bg); z-index: 3; white-space: nowrap; user-select: none; }
.board th button { all: unset; cursor: pointer; font: inherit; color: inherit; }
.board th button:hover { color: var(--link-hover); }
.board th[aria-sort] button::after { content: ""; display: inline-block; margin-left: 5px; border: 4px solid transparent; vertical-align: middle; }
.board th[aria-sort="ascending"] button::after { border-bottom-color: currentColor; border-top: 0; }
.board th[aria-sort="descending"] button::after { border-top-color: currentColor; border-bottom: 0; }
.board td, .board th { padding: 15px 10px; text-align: left; }
.board td.r, .board th.r { text-align: right; }
.board tbody tr:hover td { background: var(--panel); }
.board .sticky { position: sticky; left: 0; background: var(--bg); z-index: 2; }
.board tbody tr:hover td.sticky { background: var(--panel); }
.board td.name b { font-weight: 600; color: var(--heading); display: block; }
.board td.name span { font-size: 14px; line-height: 20px; color: var(--meta); }
/* (the keep stars were removed) */
.star-unused { all: unset; cursor: pointer; width: 20px; height: 20px; display: inline-block; text-align: center; color: var(--line); font-size: 18px; line-height: 20px; }
.star[aria-pressed="true"] { color: var(--yellow); }
.bar { display: block; height: 5px; border-radius: 1px; background: var(--rule-soft); margin-top: 5px; min-width: 70px; }
.bar i { display: block; height: 100%; border-radius: 1px; background: var(--blue); }
.bar.mem i { background: var(--slate); }
.spark { width: 90px; height: 30px; display: block; }
.foot-line { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; align-items: center; margin: 20px 0 0; }
.pages { display: flex; gap: 5px; }
.pg { font: 600 14px/20px 'Figtree', Helvetica, Arial, sans-serif; color: var(--text); background: var(--panel); border: 0; border-radius: 5px; padding: 5px 12px; cursor: pointer; }
.pg[aria-current="page"] { background: var(--text); color: var(--bg); }
.legend { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; font-size: 14px; line-height: 20px; color: var(--meta); }
.empty { padding: 40px 0; text-align: center; color: var(--meta); }
/* a small drawn tile for each model, in the way coin sites put a logo beside each coin */
  .micon { flex: none; width: 28px; height: 28px; border-radius: 5px; overflow: hidden; display: block; }
.micon svg { width: 100%; height: 100%; display: block; }
.mname { display: flex; align-items: center; gap: 10px; }
.mlogo { flex: none; width: 28px; height: 28px; border-radius: 5px; background: #FFFFFF; border: 1px solid var(--rule-soft); display: flex; align-items: center; justify-content: center; }
.mlogo img { width: 18px; height: 18px; display: block; }
.mname b { font-weight: 600; color: var(--heading); display: block; }
.mname span.sub { font-size: 14px; line-height: 20px; color: var(--meta); display: block; }
.finder-art { position: relative; width: 230px; height: 230px; border-radius: 5px; background-color: var(--blue); background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 35px 35px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.finder-arts { display: flex; flex-wrap: wrap; gap: 15px; justify-self: end; }
.finder-art.red { background-color: var(--red); }
.finder-art > svg { height: 190px; width: 190px; }
.finder .out { margin-top: 20px; font-size: 16px; line-height: 25px; }
.finder .out[hidden] { display: none; }
/* the view switch and the graph */
.seg { display: inline-flex; border-radius: 5px; overflow: hidden; border: 2px solid var(--line); }
.seg button { font: 600 14px/20px 'Figtree', Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); border: 0; padding: 5px 15px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.graph[hidden], .tip[hidden], .board[hidden], .foot-line[hidden], .legend[hidden] { display: none; }
.graph { position: relative; margin-top: 10px; padding: 25px; background: var(--panel); border-radius: 5px; }
.graph-head h2 { font-size: 23px; line-height: 30px; }
.graph-head p { margin-top: 5px; max-width: 640px; }
.graph-box { position: relative; margin-top: 15px; height: 540px; overflow: hidden; border-radius: 5px; background: var(--bg); border: 1px solid var(--rule-soft); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.graph-box:active { cursor: grabbing; }
.graph-box svg { width: 100%; height: 100%; display: block; }
.zoom { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.zoom button { width: 34px; height: 34px; border-radius: 5px; border: 2px solid var(--line); background: var(--bg); color: var(--text); font: 600 15px/1 'Figtree', Helvetica, Arial, sans-serif; cursor: pointer; }
.zoom button:hover { border-color: var(--blue); }
.graph-box .edge { vector-effect: non-scaling-stroke; }
.graph-box .halo { pointer-events: none; }
.graph-box .dot { pointer-events: none; transition: opacity 0.25s; }
.graph-box.hl .dot { opacity: 0.1; }
.graph-box.hl .dot.on { opacity: 1; }
.graph-box svg text { font-family: 'Figtree', Helvetica, Arial, sans-serif; font-size: 14px; fill: var(--meta); }
.graph-box .nd { cursor: pointer; outline: none; transition: opacity 0.25s; }
.graph-box .edge { transition: opacity 0.25s, stroke 0.25s; }
.graph-box.hl .edge { opacity: 0.1; }
.graph-box.hl .edge.on { opacity: 1; }
.graph-box.hl .nd { opacity: 0.3; }
.graph-box.hl .nd.on { opacity: 1; }
.graph-box .nd:hover circle.body, .graph-box .nd:focus circle.body { stroke-width: 4; }
.graph-box .nlab { font-size: 14px; fill: var(--text); }
.graph-box .mlab { font-size: 14px; fill: var(--meta); }
.graph-legend { display: flex; flex-wrap: wrap; gap: 5px 25px; margin-top: 10px; }
.graph-legend div { display: flex; align-items: center; }
.graph-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.tip div { font-size: 14px; line-height: 20px; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--bg); color: var(--text); border: 1px solid var(--rule); border-radius: 5px; box-shadow: 0 10px 30px var(--shadow); padding: 10px 15px; font-size: 14px; line-height: 20px; min-width: 190px; }
.tip b { font-weight: 700; display: block; color: var(--heading); }
.tip .num { font-weight: 600; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: 1fr 1fr; } .finder { grid-template-columns: 1fr; } .toolbar { position: static; } }
.below { padding-bottom: 80px; }
.foot { margin-top: 0; background: var(--bg); border-top: 1px solid var(--rule); padding-top: 60px; }

/* what the browser draws once scripts run; until then the plain table below shows */
[data-rich][hidden] { display: none; }
.ontic-rich .index-fallback { display: none; }
.index-fallback { margin-top: 30px; }
