/* Technocore community board.
   Composition follows the live https://flop.finance/ homepage: full-bleed Base, one centred
   Space Mono stack under the lockup, short mono lines, cyan underlined links, almost no chrome.
   Tokens are the published values from https://flop.finance/design.md — nothing sampled or invented. */
:root {
  color-scheme: dark;
  --base: #0A1128;          /* the ground */
  --ice-white: #F5F7FA;     /* body text */
  --accent: #00B4D8;        /* links, section labels, LIVE, tie notes */
  --accent-hover: #3DC5E0;  /* derived primary-hover */
  --text-2: #A1A7AE;        /* derived secondary text (7.7:1 on Base) */
  --hairline: #232A3E;      /* derived surface-light / border */
  --green: #32D74B;         /* positive score, winner */
  --red: #FF453A;           /* STALE / error only, always labelled */
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ice-white);
  font: 400 14px/1.5 var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
/* DIDs, hashes and URLs are long unbroken runs: let centred copy wrap them instead of widening the page. */
.hero p, main p, main dd, .foot p { overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
b { font-weight: 700; }
code { font: inherit; color: var(--ice-white); }

/* ---------------------------------------------------------------- hero stack (max 720) */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, min(6vw, 5svh), 64px) 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The approved SVG carries its own 4X clear space inside the canvas. Artwork is ~81.6% of the file
   width, so >= 250px of file keeps the two-tone lockup above the 200px One-color threshold. */
.lockup-link { display: block; line-height: 0; }
.lockup { display: block; width: min(78vw, 400px); min-width: 250px; height: auto; }

.title {
  margin: clamp(8px, 2vw, 16px) 0 0;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sub { margin: 8px 0 0; color: var(--text-2); font-size: 13px; }

.tabs { display: flex; gap: 32px; justify-content: center; margin-top: clamp(24px, 5vw, 40px); }
.tabs a { font-size: 15px; font-weight: 700; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.tabs a.on { border-bottom-color: var(--accent); }
.tabs a:hover { border-bottom-color: var(--accent-hover); }

.live { margin: 16px 0 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.live.stale { color: var(--red); }

.search { width: 100%; display: flex; gap: 16px; align-items: flex-end; margin-top: clamp(24px, 5vw, 40px); }
.search input {
  flex: 1; min-width: 0; padding: 8px 0;
  background: transparent; color: var(--ice-white);
  border: 0; border-bottom: 1px solid var(--accent); border-radius: 0;
  font: 400 14px/1.5 var(--mono);
}
.search input::placeholder { color: var(--text-2); }
.search input:focus { outline: none; border-bottom-color: var(--accent-hover); box-shadow: 0 1px 0 var(--accent-hover); }
.search input::-webkit-search-cancel-button { filter: none; }
.search button {
  padding: 8px 0; background: none; border: 0; cursor: pointer;
  color: var(--accent); font: 700 14px/1.5 var(--mono); text-decoration: underline; text-underline-offset: 3px;
}
.search button:hover { color: var(--accent-hover); }

.suggest { width: 100%; margin-top: 16px; text-align: left; font-size: 13px; }
.suggest ul { list-style: none; margin: 8px 0 0; padding: 0; }
.suggest li { margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- data region (max 960) */

main { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.block { margin-top: clamp(56px, 9vw, 96px); }

.label {
  margin: 0 0 16px; text-align: center;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.label.left { text-align: left; }

.headline {
  margin: 0 auto; max-width: 34ch; text-align: center; text-wrap: balance;
  font-size: clamp(19px, 3.6vw, 28px); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em;
}

/* Homepage "No pre-sale / No VCs" rhythm: short centred bold mono lines. */
.points {
  margin: clamp(24px, 4vw, 32px) auto 0; max-width: 46ch;
  display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 14px);
  text-align: center; text-wrap: balance;
  font-size: clamp(14px, 2.2vw, 17px); font-weight: 700; line-height: 1.45;
}
.points p { margin: 0; }
.points .dim { color: var(--text-2); font-weight: 400; }

.fine { margin: 16px auto 0; max-width: 64ch; text-align: center; color: var(--text-2); font-size: 12px; line-height: 1.6; }
.alert { margin: 24px auto 0; max-width: 64ch; text-align: center; font-size: 13px; }
.alert .tag { color: var(--red); font-weight: 700; letter-spacing: 0.08em; margin-right: 8px; }
.alert .tag.ok { color: var(--green); }
.alert .tag.info { color: var(--accent); }

/* Tables: transparent, hairlines only. */
.scroll { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
th { font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.rank { white-space: nowrap; width: 1%; font-weight: 700; }
td.rank.tie, td.tienote { color: var(--accent); }
tr.in-group td.rank { color: var(--text-2); font-weight: 400; }
td.didcell { max-width: 0; width: 100%; }
td.didcell a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
td.didcell a:hover { text-decoration: underline; }
td.hash { word-break: break-all; color: var(--text-2); }
.pos { color: var(--green); }

/* Honesty cards: hairline box, Space Mono title, Inter paragraph only. */
.card { border: 1px solid var(--hairline); border-radius: 0; padding: 16px; margin: 16px 0 0; text-align: left; }
.card h3 { margin: 0 0 8px; font: 700 15px/1.4 var(--mono); }
.card .prose { margin: 8px 0 0; font: 400 14px/1.6 var(--sans); overflow-wrap: anywhere; }
.card .prose code { font: 400 13px/1.4 var(--mono); }
.card .meta { margin: 8px 0 0; font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.didline { margin: 0 auto; max-width: 64ch; text-align: center; font-size: 13px; word-break: break-all; }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 0; font-size: 13px; }
dl.kv dt { color: var(--text-2); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; word-break: break-word; }

/* ---------------------------------------------------------------- footer */

.foot {
  max-width: 720px; margin: clamp(72px, 12vw, 128px) auto 0; padding: 0 16px 48px;
  text-align: center; color: var(--text-2); font-size: 12px; line-height: 1.6;
}
.foot p { margin: 8px 0; }

@media (max-width: 560px) {
  .tabs { gap: 24px; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  th, td { padding: 8px 6px; }
}
