/* Tweeteora's pages: Live, Explore, Docs and Admin, and the nav that moves between them */

/* ---- nav: breathing room between the badge, the links and the right side ---- */
.nav-links { margin: 0 auto 0 36px; gap: 28px; padding-right: 24px; }
.nav-links a { position: relative; }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-r { margin-left: auto; }
.nav-tok { margin-right: 6px; }
@media (max-width: 1360px) { .nav-links { gap: 22px; margin-left: 28px; } }

/* ---- pages ---- */
.page[hidden] { display: none; }
.page-head { max-width: var(--w); margin: 0 auto; padding: 72px 28px 36px; }
.page-head h1 { margin: 10px 0 12px; font: 700 clamp(40px, 5vw, 64px)/1 var(--sans); letter-spacing: -0.05em; }
.page-head .sub { max-width: 640px; color: var(--ink-2); font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--mono); color: var(--purple-2); text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow .pill-live { width: 14px; height: 14px; }
.stage-page { padding-top: 40px; }

/* ---- explore ---- */
.ex-bar { max-width: var(--w); margin: 0 auto; padding: 0 28px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ex-bar .btn { margin-left: auto; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: 500 13.5px var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--hair-2); }
.grid { max-width: var(--w); margin: 0 auto; padding: 0 28px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.grid .fcard { min-height: 0; }
.fcard .kind { margin: 0 0 12px; flex: 0; font: 500 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 70px 20px; border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); }
.empty-state h3 { margin: 6px 0 0; font: 600 22px var(--sans); letter-spacing: -0.03em; }
.empty-state p { color: var(--ink-2); max-width: 420px; }
.empty-state .acts { display: flex; gap: 10px; margin-top: 10px; }
.fee-claim { width: 100%; margin-top: 12px; height: 36px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; font: 600 13px var(--sans); cursor: pointer; }
.fee-claim:disabled { opacity: 0.6; cursor: default; }

/* ---- docs ---- */
.docs { max-width: var(--w); margin: 0 auto; padding: 64px 28px 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; }
.toc-h { margin-bottom: 8px; font: 500 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.toc a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.toc a:hover { color: var(--ink); background: var(--bg-2); }
.doc { max-width: 720px; }
.doc h1 { margin: 0 0 16px; font: 700 clamp(36px, 4.4vw, 52px)/1.05 var(--sans); letter-spacing: -0.045em; }
.doc .lede { font-size: 19px; color: var(--ink-2); line-height: 1.6; }
.doc h2 { margin: 52px 0 12px; padding-top: 12px; font: 600 26px/1.2 var(--sans); letter-spacing: -0.03em; scroll-margin-top: 90px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--purple-2); text-decoration: underline; text-underline-offset: 3px; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc .t { width: 100%; border-collapse: collapse; margin: 14px 0; }
.doc .t td { padding: 12px 14px; border-top: 1px solid var(--hair); color: var(--ink-2); vertical-align: top; font-size: 15px; }
.doc .t td:first-child { white-space: nowrap; width: 1%; padding-left: 0; }
.doc details { border-top: 1px solid var(--hair); padding: 14px 0; }
.doc details:last-child { border-bottom: 1px solid var(--hair); }
.doc summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--ink-3); font-weight: 400; transition: transform 0.2s; }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { margin-top: 10px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 20px; } .toc { position: static; grid-auto-flow: column; overflow-x: auto; } .toc-h { display: none; } }

/* ---- admin ---- */
.admin { max-width: var(--w); margin: 0 auto; padding: 0 28px 60px; }
.adm-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border-radius: 18px; overflow: hidden; background: var(--hair); margin-bottom: 18px; }
.adm-strip > div { background: var(--bg-2); padding: 14px 16px; }
.adm-strip small { display: block; font-size: 12px; color: var(--ink-3); }
.adm-strip b { font-weight: 600; font-size: 15px; }
.adm-strip a, .adm-card a { color: var(--purple-2); }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.adm-card { background: var(--bg-2); border-radius: 20px; padding: 22px; box-shadow: inset 0 0 0 1px var(--hair); }
.adm-card.wide { grid-column: 1 / -1; }
.adm-card h3 { margin: 0 0 10px; font: 600 18px var(--sans); letter-spacing: -0.02em; }
.adm-card .muted, .muted { color: var(--ink-3); font-size: 13.5px; }
.adm-card .bad { color: var(--red); }
.adm-card .acts { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.adm-card .lbl { margin: 14px 0 6px; font: 600 13.5px var(--sans); color: var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks i { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.checks li.ok i { background: var(--green); box-shadow: none; }
.checks li.ok i::after { content: ""; display: block; width: 5px; height: 9px; margin: 3px 0 0 6px; border: solid #0d0d13; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks li.no i { box-shadow: inset 0 0 0 1.5px var(--red); }
.checks b { font-weight: 500; font-size: 14px; }
.checks small { display: block; color: var(--ink-3); font-size: 12.5px; }
.adm-t { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.adm-t td, .adm-t th { padding: 9px 0; border-top: 1px solid var(--hair); text-align: left; }
.adm-t th { color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.adm-t td:last-child { text-align: right; }
.adm-t.rounds td:last-child { text-align: left; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.adm-form label { display: block; margin: 12px 0 6px; font-size: 13px; color: var(--ink-2); }
.adm-form input, .adm-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--hair-2); border-radius: 12px; color: var(--ink); font: 400 15px var(--sans); padding: 10px 12px; outline: none; }
.adm-form textarea { min-height: 70px; resize: none; }
.adm-form input:focus, .adm-form textarea:focus { border-color: var(--purple-2); }
.adm-form .affix input { border: 0; }
.adm-form .lf-top { grid-template-columns: 120px minmax(0, 1fr); }
.adm-form .drop { height: 120px; }
.btn.danger { color: var(--red); border-color: rgba(240, 68, 56, 0.4); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.log { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); max-height: 260px; overflow: auto; }
.log small { color: var(--ink-3); margin-right: 8px; }
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.switch i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--green); transition: background 0.2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 21px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.2s var(--ease); }
.switch[aria-checked="true"] i { background: var(--red); }
.switch[aria-checked="true"] i::after { left: 3px; }
@media (max-width: 900px) { .adm-grid, .two-col { grid-template-columns: 1fr; } .adm-strip { grid-template-columns: 1fr 1fr; } }
.stage-page .stage-in { max-width: calc(var(--w) - 56px); }
/* a photo attached to the tweet: with the idea on the stage, and small in the board */
.stage-lead .idea-photo { display: block; margin: 22px 0 4px; max-width: min(420px, 100%); max-height: 280px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 1px var(--hair); }
.row .row-photo { display: block; margin-top: 8px; width: 120px; height: 72px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px var(--night-3); }
/* the footer's big wordmark: always fits the width, nothing cut off */
.foot { overflow: visible; }
.foot-word { font-size: min(15.6vw, 232px); line-height: 1; white-space: nowrap; margin: 24px 0 36px; }

/* $FUND, wherever it's named: a label button to its Jupiter page */
.fund-chip { display: inline-flex; align-items: center; gap: 5px; height: 1.55em; padding: 0 0.55em 0 0.22em; border-radius: 999px; vertical-align: -0.28em; background: var(--purple-soft); box-shadow: inset 0 0 0 1px rgba(134, 100, 255, 0.45); color: var(--ink) !important; font-weight: 600; font-size: 0.92em; line-height: 1; text-decoration: none !important; white-space: nowrap; transition: background 0.2s, box-shadow 0.2s, transform 0.2s; }
.fund-chip img { width: 1.15em; height: 1.15em; border-radius: 50%; }
.fund-chip:hover { background: var(--brand); box-shadow: none; color: #fff !important; transform: translateY(-1px); }
.nav-tok { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--hair-2); font: 600 13px var(--sans); color: var(--ink); }
.nav-tok img { width: 22px; height: 22px; }
.nav-tok:hover { box-shadow: 0 0 0 1px var(--purple-2); }
.nav-tok b { color: var(--ink-2); font-weight: 500; }
.nums small .fund-chip { font-size: 1em; }

/* verified on chain: our configs as cards linking to Solscan */
.chain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.chain-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.chain-card:hover { box-shadow: inset 0 0 0 1px var(--purple-2); transform: translateY(-2px); }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-top b { font: 700 18px var(--sans); letter-spacing: -0.02em; }
.cc-fee { font: 600 12px var(--mono); color: var(--purple-2); background: var(--purple-soft); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.chain-card p { flex: 1; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.chain-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.chain-card dt { font-size: 11.5px; color: var(--ink-3); }
.chain-card dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.cc-addr { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--purple-2); }
.cc-addr code, .chain-foot code, .doc .addr code { font: 500 12.5px var(--mono); color: var(--ink-2); }
.chain-foot { margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.chain-foot a { color: var(--purple-2); }
.doc .addr td:last-child { word-break: break-all; }
.doc .addr small { color: var(--ink-3); font-size: 13px; }
