/* Preview-only tighten pass. Not written to the server.
   Uses the site's existing tokens, with outliers pulled back to one quiet scale. */

:root,
.page-verify {
  --bg: #050605;
  --bg-elev: #0E100E;
  --bg-panel: #0E100E;
  --rule: rgba(200, 222, 199, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --vf-panel: #0E100E;
  --vf-panel-2: #0E100E;
  --vf-line: rgba(200, 222, 199, 0.14);
  --vf-line-2: rgba(200, 222, 199, 0.14);
}

/* One quiet page wash (latest hub green glow, slightly softer; no cyan or magenta). */
html body,
body.page-verify,
.page-verify body {
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(177, 252, 3, 0.05), transparent 55%),
    radial-gradient(800px 500px at 92% 0%, rgba(200, 222, 199, 0.04), transparent 52%),
    #050605 !important;
}

/* Keep the hero pattern, but drop the extra competing glow. */
.hub-hero::after {
  opacity: 0.35 !important;
}

/* Unified card surface, radius, and thin sage border. */
.panel,
.feature-card,
.metric,
.club-card,
.net-tile,
.notice,
.dash-bar,
.strip,
.table-wrap,
.slash-bar,
.open-props,
.id-strip,
.vote-row,
.tally-item,
.property,
.faq details,
.cta-band,
.vf-card,
.vf-faq,
.vf-entry,
.club-blank .club-placeholder {
  background: #0E100E !important;
  border: 1px solid rgba(200, 222, 199, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

.panel,
.feature-card,
.club-card,
.notice,
.cta-band,
.vf-card,
.vf-entry {
  padding: 24px !important;
}

.metric,
.net-tile,
.dash-bar,
.strip,
.slash-bar,
.open-props,
.id-strip {
  padding: 16px 24px !important;
}

/* Darker inset wells inside a card (stake stats, tables). */
.vf-stat,
.table-wrap,
.tally-item {
  background: #0A0C0A !important;
  border: 1px solid rgba(200, 222, 199, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.vf-stat {
  padding: 16px !important;
}

.vf-card::before {
  opacity: 0.4;
}

.vf-stats {
  gap: 16px !important;
}

@media (max-width: 700px) {
  .vf-stats {
    grid-template-columns: 1fr !important;
  }
}

/* Single primary button: the off-white fill the hub and verify modal already share. */
.btn-primary,
.vfx-btn,
.chip.is-on {
  background: #E6F0E5 !important;
  color: #050605 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.vfx-btn:hover,
.chip.is-on:hover {
  background: #F2FFF1 !important;
  color: #050605 !important;
  box-shadow: none !important;
}

.btn,
.btn-primary,
.vfx-btn {
  min-height: 48px;
  border-radius: 999px !important;
  font-family: "Montserrat", "DM Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
}

.btn-sm,
.btn-sm.btn-primary,
.header-cta {
  min-height: 44px !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
}

/* Quiet secondary (replaces mixed lime-outline vs ghost vs 1.5px treatments). */
.btn-ghost,
.btn-outline,
.vfx-cta,
.vfx-cta-alt {
  background: transparent !important;
  color: #F2FFF1 !important;
  border: 1px solid rgba(200, 222, 199, 0.2) !important;
  box-shadow: none !important;
  min-height: 48px;
  border-radius: 999px !important;
}

.btn-ghost:hover,
.btn-outline:hover,
.vfx-cta:hover,
.vfx-cta-alt:hover {
  border-color: rgba(200, 222, 199, 0.45) !important;
  background: rgba(242, 255, 241, 0.04) !important;
  color: #F2FFF1 !important;
  box-shadow: none !important;
}

/* Compact copy actions: same quiet border and 10px corners, original small height. */
.copy-btn,
.vfx-copy,
.vfx-copy-sm {
  border-radius: 10px !important;
  border: 1px solid rgba(200, 222, 199, 0.2) !important;
  background: transparent !important;
}

/* Ask Kaf keeps its own black pill and lime outline. Do not restyle .ask-kaf-launcher here. */

/* Type: hero numbers only (not table cells or compact tallies). */
.metric-value,
.net-value,
.vf-stat-v,
.club-num {
  font-family: "Montserrat", "DM Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  color: #F2FFF1 !important;
  -webkit-text-fill-color: #F2FFF1 !important;
  text-shadow: none !important;
  background: none !important;
}

.vf-stat-v {
  font-size: clamp(24px, 5vw, 32px) !important;
}

.metric-label,
.net-label,
.vf-stat-k {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

/* Stake rows: use the small radius token, not a one-off 8px. */
.vf-stake-row {
  border-radius: 10px !important;
}

.vfx-mbtn {
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
}


/* Header Verify wallet CTA (unverified) uses the same primary fill as CCD votes. */
.vfx-hbtn:not(.is-verified) {
  background: #E6F0E5 !important;
  color: #050605 !important;
  border: 1px solid #E6F0E5 !important;
  box-shadow: none !important;
  min-height: 44px;
  height: 44px;
}
.vfx-hbtn:not(.is-verified):hover {
  background: #F2FFF1 !important;
  border-color: #F2FFF1 !important;
  box-shadow: none !important;
}
.vfx-hbtn:not(.is-verified) .vfx-hbtn-ico svg {
  stroke: #050605 !important;
}

/* UI sweep: bigger tap area for small standalone text links, no visual change */
.id-link, .pom-login, .vals-explorer { position: relative; }
.id-link::after, .pom-login::after, .vals-explorer::after { content: ""; position: absolute; inset: -10px -6px; }

/* ===== Go live prep (Nov 17 2026, sandbox) ===== */
/* Sticky header: solid enough that the page and hub subnav never show through on scroll. */
.site-header { background: rgba(5, 6, 5, 0.96) !important; }

/* Governance: readable result pills (were dark green text on near black). */
.status-passed {
  color: #DDE8DC !important;
  border-color: rgba(177, 252, 3, 0.35) !important;
  background: rgba(177, 252, 3, 0.07) !important;
}
/* Vote now hotspot on the governance art: invisible padding so the tap target is at least 44px tall on phones. */
.gov-hero-cta::after { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: max(44px, 100%); transform: translateY(-50%); }

/* CCD club: Verify card gets the Smart Memo art so both cards line up without an empty gap. */
.club-cards .club-card .club-card-thumb.is-memo { image-rendering: auto; object-position: 50% 50%; filter: none; }

@media (max-width: 860px) {
  /* body already reserves room for the floating Ask Kaf, so the club does not need its own extra 96px. */
  .club { padding-bottom: 32px !important; }
}

@media (max-width: 600px) {
  /* Network and health tiles: less padding so values and notes breathe in two columns. */
  .net-tile { padding: 14px 12px 14px 12px !important; }
  .net-tile::before { top: 10px; bottom: 10px; }
  .net-label { padding-left: 8px; margin-bottom: 8px; letter-spacing: 0.06em !important; font-size: 11px !important; line-height: 1.3; }
  .net-value { padding-left: 8px; font-size: 22px !important; line-height: 1.15; }
  .net-note { padding-left: 8px; font-size: 12px !important; line-height: 1.4; }
  .net-grid { gap: 10px !important; }

  /* Validators: stacked rows instead of a cut off wide table. */
  .vals-wrap { overflow: visible !important; }
  table.vals { min-width: 0 !important; display: block; font-size: 13px; }
  table.vals caption { display: none; }
  table.vals thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.vals tbody { display: block; }
  table.vals tr.val-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "num name vp" "num miss stake"; column-gap: 10px; row-gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(200, 222, 199, 0.07); }
  table.vals tr.val-row[hidden] { display: none; }
  table.vals tr.val-row td { display: block; padding: 0; border: 0; background: none !important; }
  table.vals tr.is-ccd { background: rgba(242, 255, 241, 0.05); }
  table.vals td.num { grid-area: num; width: auto; padding-top: 9px !important; }
  table.vals td.val-name { grid-area: name; min-width: 0; }
  table.vals td.val-name .val-meta { min-width: 0; }
  table.vals td.val-name a { overflow-wrap: anywhere; }
  table.vals td.val-name .ccd-badge { align-self: flex-start; width: auto; margin: 4px 0 2px; }
  table.vals td.vp { grid-area: vp; text-align: right; padding-top: 9px !important; }
  table.vals td.miss { grid-area: miss; display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; padding-left: 46px !important; font-size: 12px; color: var(--steel); }
  table.vals td.miss::before { content: "Missed"; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
  table.vals td.miss .miss-bar { width: 72px; }
  table.vals td.stake { grid-area: stake; text-align: right; font-size: 12px; font-weight: 600 !important; color: rgba(200, 222, 199, 0.72) !important; -webkit-text-fill-color: rgba(200, 222, 199, 0.72) !important; }
  table.vals td.stake::after { content: " TX"; }
  table.vals td.comm { display: none !important; }

  /* Governance history: stacked rows so the CCD vote is visible without sideways scrolling. */
  #gov-history { overflow: visible !important; }
  table.gov { min-width: 0 !important; display: block; }
  table.gov thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.gov tbody { display: block; }
  table.gov tbody tr { display: grid; grid-template-columns: 40px auto auto minmax(0, 1fr); grid-template-areas: "num title title title" ". status vote date" ". src src src" ". links links links"; column-gap: 8px; row-gap: 8px; align-items: center; padding: 14px; border-bottom: 1px solid rgba(200, 222, 199, 0.07); }
  table.gov tbody tr[hidden] { display: none; }
  table.gov tbody td { display: block; padding: 0 !important; border: 0 !important; background: none !important; }
  table.gov td.num { grid-area: num; align-self: start; }
  table.gov td.title-cell { grid-area: title; max-width: none; }
  table.gov tbody td:nth-child(3) { grid-area: status; }
  table.gov tbody td:nth-child(4) { grid-area: date; font-size: 12px; text-align: right; }
  table.gov tbody td:nth-child(5) { grid-area: vote; }
  table.gov td.src { grid-area: src; font-size: 12.5px; }
  table.gov td.links { grid-area: links; font-size: 12.5px; }
  table.gov td.src:empty, table.gov td.links:empty { display: none; }
}

/* Governance banner: new Kaf bench render inside <picture> (webp srcset, png fallback). */
.gov-hero picture { display: block; width: 100%; height: 100%; }

/* ===== Governance banner as real text (Nov 17 2026, sandbox) =====
   Title, chips and Vote now are live HTML; the Kaf bench render is a text free image on the right. */
.gov-banner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end; gap: 24px; margin: 8px 0 28px; padding: 40px 40px 0 48px;
  border-radius: 10px; overflow: hidden;
  background: radial-gradient(520px 420px at 78% 55%, rgba(177, 252, 3, 0.09), transparent 70%), #121412;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.gov-banner-copy { align-self: center; padding-bottom: 40px; min-width: 0; }
.gov-banner-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.01em; color: #F2FFF1; }
.gov-banner-tag { margin: 14px 0 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.45; color: rgba(200, 222, 199, 0.82); max-width: 34ch; }
.gov-banner-chips { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 12px; }
.gov-banner-chips li {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 20px 8px 16px;
  border-radius: 999px; border: 1px solid rgba(200, 222, 199, 0.18); background: #0A0C0A;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #F2FFF1; white-space: nowrap;
}
.gov-chip-n { color: #B1FC03; font-weight: 700; font-variant-numeric: tabular-nums; }
.gov-banner-cta {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 26px;
  min-height: 52px; padding: 0 34px; border-radius: 999px;
  background: #B1FC03; color: #050605 !important; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.gov-banner-cta:hover { background: #C6FF3A; color: #050605 !important; box-shadow: 0 0 24px rgba(177, 252, 3, 0.28); }
.gov-banner-cta:focus-visible { outline: 3px solid #F2FFF1; outline-offset: 3px; }
.gov-banner-art { align-self: end; justify-self: end; width: 100%; max-width: 420px; }
.gov-banner-art picture, .gov-banner-art img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .gov-banner { grid-template-columns: 1fr; gap: 8px; padding: 28px 20px 0; }
  .gov-banner-copy { padding-bottom: 0; }
  .gov-banner-title { font-size: 36px; }
  .gov-banner-tag { font-size: 16px; }
  .gov-banner-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gov-banner-chips li { font-size: 15px; padding: 8px 14px; white-space: normal; line-height: 1.2; }
  .gov-banner-cta { width: 100%; }
  .gov-banner-art { justify-self: center; width: 78%; max-width: 320px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .gov-banner-cta { transition: none; } }

/* Mobile verify page: drop the extra 96px under the Check row. The body already keeps room
   for the Ask Kaf dock, and the dock tucks away while scrolling. */
@media (max-width: 560px) {
  .page-verify .vf-intro { padding-bottom: 20px !important; }
  .page-verify .vf-main { padding-bottom: 32px !important; }
}

/* Governance banner uses the main site lime (#B1FC03), matched to CCD Club buttons Nov 26 2026. Was #C6F432 to match the Kaf art. */
.gov-banner .gov-chip-n { color: #B1FC03; }
.gov-banner .gov-banner-cta { background: #B1FC03; color: #050605 !important; }
.gov-banner .gov-banner-cta:hover { background: #C6FF3A; color: #050605 !important; box-shadow: 0 0 24px rgba(177, 252, 3, 0.28); }
.gov-banner .gov-banner-cta:focus-visible { outline: 3px solid #B1FC03; outline-offset: 3px; }
