/* Shared pieces every look shows the same way but in its own colours and type:
   the "what is this card" guide, the token address strip and the wallet picker.
   A look themes them by setting the --g-* variables in its own stylesheet. */
.guide {
  position: relative; z-index: 2;
  display: grid; gap: clamp(22px, 4vh, 44px);
  padding: clamp(44px, 8vh, 104px) var(--g-gut, clamp(18px, 4.2vw, 64px));
  color: var(--g-text, inherit);
}
.guide:empty { display: none; }
.guide .tag, .guide .num { font: 500 12px var(--g-mono, ui-monospace, monospace); letter-spacing: 0.12em; text-transform: uppercase; }
.ca {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 18px;
  border: var(--g-item-border, 1px solid currentColor); border-radius: var(--g-radius, 6px);
  background: var(--g-item-bg, transparent); color: var(--g-item-text, inherit);
  box-shadow: var(--g-item-shadow, none);
}
.ca .tag { color: var(--g-item-mute, inherit); }
.ca-mint { flex: 1 1 280px; min-width: 0; font: 500 clamp(12px, 1.2vw, 16px) var(--g-mono, ui-monospace, monospace); overflow-wrap: anywhere; }
.ca-copy, .ca-view {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
  border-radius: var(--g-radius, 6px); font: 600 13px var(--g-mono, ui-monospace, monospace); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.ca-copy { border: 0; background: var(--g-acc, currentColor); color: var(--g-accfg, #000); min-width: 86px; }
.ca-view { border: 1px solid currentColor; color: inherit; background: transparent; }
.guide-intro { display: grid; gap: 12px; }
.guide .kicker { justify-self: start; font: 500 13px var(--g-mono, ui-monospace, monospace); letter-spacing: 0.16em; text-transform: uppercase; color: var(--g-kicker, var(--g-acc, inherit)); }
.guide h2 { margin: 0; font-family: var(--g-display, inherit); font-weight: var(--g-weight, 800); font-style: var(--g-style, normal); font-size: clamp(34px, min(5.6vw, 10.5vh), 96px); line-height: 0.96; text-transform: var(--g-upper, none); letter-spacing: var(--g-track, 0); text-wrap: balance; }
.guide-lede { margin: 0; max-width: 64ch; font: 400 clamp(16px, 1.35vw, 20px) / 1.5 var(--g-body, inherit); color: var(--g-mute, inherit); }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.guide-item {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: clamp(16px, 1.8vw, 26px);
  border: var(--g-item-border, 1px solid currentColor); border-radius: var(--g-radius, 6px);
  background: var(--g-item-bg, transparent); color: var(--g-item-text, inherit);
  box-shadow: var(--g-item-shadow, none);
}
.guide-item .num { color: var(--g-item-acc, var(--g-acc, inherit)); }
.guide-item .name { margin: 0; font: var(--g-weight, 800) clamp(20px, 1.9vw, 28px) / 1.08 var(--g-display, inherit); font-style: var(--g-style, normal); text-transform: var(--g-upper, none); }
.guide-item .l { margin: 0; font: 400 15px / 1.5 var(--g-body, inherit); color: var(--g-item-mute, inherit); }
@media (max-width: 1020px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-list { grid-template-columns: minmax(0, 1fr); } .ca-copy, .ca-view { flex: 1 1 120px; } }

/* the board: top holders and payout cycles */
.board { position: relative; z-index: 2; display: grid; gap: clamp(22px, 4vh, 44px); padding: clamp(44px, 8vh, 104px) var(--g-gut, clamp(18px, 4.2vw, 64px)); color: var(--g-text, inherit); }
.board:empty { display: none; }
.board .kicker { justify-self: start; font: 500 13px var(--g-mono, ui-monospace, monospace); letter-spacing: 0.16em; text-transform: uppercase; color: var(--g-kicker, var(--g-acc, inherit)); }
.board h2 { margin: 0; font-family: var(--g-display, inherit); font-weight: var(--g-weight, 800); font-style: var(--g-style, normal); font-size: clamp(34px, min(5.6vw, 10.5vh), 96px); line-height: 0.96; text-transform: var(--g-upper, none); letter-spacing: var(--g-track, 0); text-wrap: balance; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.board-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(16px, 1.8vw, 26px); border: var(--g-item-border, 1px solid currentColor); border-radius: var(--g-radius, 6px); background: var(--g-item-bg, transparent); color: var(--g-item-text, inherit); box-shadow: var(--g-item-shadow, none); }
.board-panel h3 { margin: 0; font: var(--g-weight, 800) clamp(20px, 1.9vw, 28px) / 1.08 var(--g-display, inherit); font-style: var(--g-style, normal); text-transform: var(--g-upper, none); }
.board-table { display: flex; flex-direction: column; font: 400 14px var(--g-body, inherit); }
.board-row { display: grid; grid-template-columns: 34px minmax(86px, 1fr) minmax(64px, 0.8fr) 64px minmax(86px, 0.9fr) minmax(0, 2.4fr); align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--g-rule, rgba(128, 128, 128, 0.28)); min-width: 0; }
.board-head { border-top: 0; padding-top: 0; font: 500 11px var(--g-mono, ui-monospace, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-item-mute, inherit); }
.board-row .mono, .board-cycles .mono { font-family: var(--g-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; }
.board-row .c0 { color: var(--g-item-acc, var(--g-acc, inherit)); font-weight: 700; }
.board-row .who { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.board-row.me { background: color-mix(in srgb, var(--g-acc, #888) 14%, transparent); }
.got { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; color: var(--g-item-mute, inherit); }
.got-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--g-rule, rgba(128, 128, 128, 0.35)); border-radius: 999px; font: 500 12px var(--g-mono, ui-monospace, monospace); color: var(--g-item-text, inherit); white-space: nowrap; }
.got-chip .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.board-cycles { display: flex; flex-direction: column; }
.cycle { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--g-rule, rgba(128, 128, 128, 0.28)); }
.cycle:first-child { border-top: 0; padding-top: 0; }
.cycle-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-item-mute, inherit); }
.cycle-amounts { display: flex; flex-wrap: wrap; gap: 6px; }
.board .empty { margin: 0; padding: 10px 0; font: 400 14px var(--g-body, inherit); color: var(--g-item-mute, inherit); }
@media (max-width: 1020px) { .board-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .board-row { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); row-gap: 6px; }
  .board-head .c3, .board-head .c4, .board-head .c5 { display: none; }
  .board-row .c3, .board-row .c4 { display: none; }
  .board-row .c5 { grid-column: 2 / -1; }
}

/* token logos */
.tok-logo { display: inline-block; flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; overflow: hidden; vertical-align: middle; background: var(--tokc, rgba(128, 128, 128, 0.45)); box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.35); }
.tok-logo.big { width: 40px; height: 40px; }
.tok-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tok-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tok-name .l { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.got-chip .tok-logo { width: 16px; height: 16px; }

/* vote standings and nominated tokens */
.board-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vb-row { display: grid; grid-template-columns: 26px minmax(0, 1.2fr) minmax(40px, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--g-rule, rgba(128, 128, 128, 0.28)); }
.vb-row:first-of-type { border-top: 0; }
.vb-row.nom { grid-template-columns: 26px minmax(0, 1.4fr) auto auto; }
.vb-rank { font-weight: 700; color: var(--g-item-acc, var(--g-acc, inherit)); font-family: var(--g-mono, ui-monospace, monospace); }
.vb-token { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vb-token .mono, .vb-count, .vb-link { font-family: var(--g-mono, ui-monospace, monospace); font-size: 14px; }
.vb-token .l { color: var(--g-item-mute, inherit); }
.vb-bar { height: 10px; border-radius: 999px; background: var(--g-rule, rgba(128, 128, 128, 0.25)); overflow: hidden; }
.vb-bar i { display: block; height: 100%; min-width: 2px; border-radius: inherit; }
.vb-count { white-space: nowrap; color: var(--g-item-mute, inherit); }
.vb-link { color: inherit; opacity: 0.75; }
.share-x { margin-top: 10px; }
@media (max-width: 1020px) { .board-grid.even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .vb-row { grid-template-columns: 22px minmax(0, 1fr) auto; } .vb-row .vb-bar { grid-column: 2 / -1; grid-row: 2; } .vb-row.nom { grid-template-columns: 22px minmax(0, 1fr) auto; } .vb-row.nom .vb-link { display: none; } }

/* wallet picker */
.picker { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px); }
.picker-box { width: min(420px, 100%); display: grid; gap: 12px; padding: 24px; border: var(--g-item-border, 1px solid currentColor); border-radius: var(--g-radius, 6px); background: var(--g-pick-bg, #111); color: var(--g-pick-text, #fff); }
.picker-title { margin: 0; font: var(--g-weight, 800) 26px / 1.05 var(--g-display, inherit); text-transform: var(--g-upper, none); }
.picker-note { margin: 0; font: 400 14px / 1.5 var(--g-body, inherit); color: var(--g-pick-mute, inherit); }
.picker-opt { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border: 0; border-radius: var(--g-radius, 6px); background: var(--g-acc, #fff); color: var(--g-accfg, #000); font: 700 17px var(--g-body, inherit); text-decoration: none; }
.picker-close { min-height: 44px; border: 1px solid currentColor; border-radius: var(--g-radius, 6px); background: transparent; color: inherit; font: 500 14px var(--g-body, inherit); }

/* lookup: paste an address and see its card (vote off: nothing connects). It sits in the picker's box,
   so a look themes it with the same variables; --g-pick-field, --g-pick-line and --g-pick-err are optional extras. */
.picker.lookup { overflow-y: auto; }
.lookup-box { margin: 0; text-align: left; }
.lookup-input {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 52px; margin: 0; padding: 0 14px;
  border: 1px solid var(--g-pick-line, color-mix(in srgb, currentColor 42%, transparent)); border-radius: var(--g-radius, 6px);
  background: var(--g-pick-field, color-mix(in srgb, currentColor 9%, transparent)); color: inherit;
  font: 500 16px var(--g-mono, ui-monospace, monospace); letter-spacing: 0; text-transform: none; text-overflow: ellipsis;
}
.lookup-input::placeholder { color: var(--g-pick-mute, inherit); opacity: 0.72; }
.lookup-input:focus-visible, .lookup-box button:focus-visible { outline: 2px solid var(--g-acc, currentColor); outline-offset: 2px; }
.lookup-safe { margin: -4px 0 0; font: 400 13px / 1.45 var(--g-body, inherit); color: var(--g-pick-mute, inherit); }
.lookup-go { width: 100%; cursor: pointer; }
.lookup-go:disabled { opacity: 0.6; cursor: progress; }
.lookup-status { font: 500 14px / 1.45 var(--g-body, inherit); color: var(--g-pick-mute, inherit); }
.lookup-status:empty { display: none; }
.lookup-status.err { color: var(--g-pick-err, color-mix(in srgb, #ff3b30 62%, currentColor)); }
.lookup-actions { display: flex; gap: 10px; }
.lookup-actions > button { flex: 1 1 0; min-width: 0; cursor: pointer; }
.lookup-clear { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--g-pick-mute, inherit); font: 500 14px var(--g-body, inherit); text-decoration: underline; text-underline-offset: 3px; }
.lookup-clear[hidden] { display: none; }
@media (max-width: 640px) { .picker.lookup { place-items: start center; padding-top: max(20px, 12vh); } }

/* ---------- community vote switched off (config.json "voting": false) ----------
   The server marks the page before any script runs: <html data-voting="off">.
   [data-vote] = shown only with the vote on, [data-novote] = only with it off. */
[data-novote] { display: none; }
html[data-voting="off"] [data-novote] { display: revert; }
html[data-voting="off"] :is(#govern, #vote, #nominate, #voteBoard, a[href="#govern"], [data-vote]) { display: none !important; }

/* ---------- community links (public/core/social.js) ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.social {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: var(--g-item-border, 1px solid currentColor); border-radius: var(--g-radius, 999px);
  background: var(--g-item-bg, transparent); color: var(--g-item-text, inherit);
  font: 600 14px/1 var(--g-mono, inherit); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social:hover, .social:focus-visible { background: var(--g-acc, currentColor); border-color: var(--g-acc, currentColor); color: var(--g-accfg, #000); }

/* No hold boost (stats.streakMaxBoost is 1): the holders board has no streak column. */
.board-table.flat .board-row { grid-template-columns: 34px minmax(86px, 1fr) minmax(64px, 0.8fr) 64px minmax(0, 2.4fr); }
@media (max-width: 640px) { .board-table.flat .board-row { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); } }
