/* Bank of Robin Hood: forest-green sidebar, cream workspace, gold accents, garamond type. */
:root {
  --paper: #fdfaf1;
  --paper-2: #f5f0e3;
  --surface: #fffdf7;
  --ink: #1c1b15;
  --ink-2: #4a493f;
  --ink-3: #807d70;
  --line: #e8e1cf;
  --line-strong: #cfc6ad;
  --green: #0f2f22;
  --green-2: #16402f;
  --green-ink: #efe6cf;
  --gold: #b8923a;
  --gold-2: #d7b56a;
  --gold-soft: #f4e9cf;
  --gold-ink: #1a1405;
  --accent: #2e7a4f;
  --accent-soft: rgba(46, 122, 79, .14);
  --good: #2e7a4f;
  --warn: #9a6400;
  --bad: #a3322a;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(28,27,21,.04), 0 8px 24px rgba(28,27,21,.06);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side-w: 210px;
  color-scheme: light;
}
/* The house style is cream and green in every setting; a dark variant is opt-in via data-theme="dark". */
:root[data-theme="dark"] {
  --paper: #0b1611; --paper-2: #10201a; --surface: #122319; --ink: #ece6d6; --ink-2: #c3bcab; --ink-3: #8f8a7b;
  --line: #22362c; --line-strong: #35503f; --gold-soft: #2a2410; --accent: #5fbf85; --accent-soft: rgba(95,191,133,.16);
  --good: #5fbf85; --warn: #e0a83c; --bad: #e07a70; --shadow: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.no-nft .nft-col { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--serif); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--ink); line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: 1.9rem; font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 500; display: flex; align-items: center; gap: 10px; }
h3 svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--ink-2); }
.fine { color: var(--ink-3); font-size: .85rem; line-height: 1.5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.link { font-family: var(--serif); text-decoration: none; color: var(--ink-2); font-size: 1rem; white-space: nowrap; }
.link:hover { color: var(--ink); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); margin-right: 8px; vertical-align: middle; }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.muted-dot { background: var(--line-strong); }

/* ---- sidebar ---- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: linear-gradient(180deg, #1f5a40 0%, #1a4c36 55%, #17422f 100%); color: var(--green-ink); display: flex; flex-direction: column; z-index: 10; overflow: hidden; }
.brand { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 22px 12px 18px; text-decoration: none; color: var(--gold-2); }
.brand img { width: calc(var(--side-w) - 24px); max-width: 220px; height: auto; display: block; }
.brand-name { display: none; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; color: #e0c882; }
.brand-tick { display: none; font-family: var(--sans); font-size: .72rem; letter-spacing: .3em; color: #c9ae6a; }
.snav { display: grid; gap: 8px; padding: 6px 14px; }
.snav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: #d8d2bd; font-family: var(--serif); font-size: 1.05rem; border: 1px solid transparent; }
.snav a svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.snav a.active { background: rgba(255,255,255,.08); border-color: rgba(215,181,106,.45); color: #fff; }
.side-art { margin-top: auto; }
.side-art img { display: block; width: 100%; height: auto; }

/* ---- shell ---- */
.shell { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px 10px; }
.word { font-family: var(--display); font-size: 1.05rem; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.word .bar { color: var(--gold); margin: 0 10px; }
.word b { color: var(--ink); font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.pill-soft { display: inline-flex; align-items: center; font-family: var(--serif); font-size: .95rem; color: var(--ink-2); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pill-soft .dot { background: var(--gold); }
.pill-soft.live .dot { background: var(--good); }
.pill-soft.off .dot { background: var(--bad); }
.btn-wallet { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1rem; color: #f3ecd8; background: var(--green); border: 1px solid #2a5a44; border-radius: 10px; padding: 10px 18px; cursor: pointer; }
.btn-wallet svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.btn-wallet:hover { background: var(--green-2); }
.providers { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.providers button { font-family: var(--serif); font-size: .9rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.providers button:hover { border-color: var(--gold); }
.account { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.acct-label { font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pill { background: var(--green); color: var(--green-ink); border-radius: 999px; padding: 4px 12px; font-size: .9rem; white-space: nowrap; }

main { padding: 6px 32px 40px; display: grid; gap: 18px; }

/* ---- hero ---- */
.hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 150px; border-radius: var(--radius); overflow: hidden; }
.hero-copy { padding: 18px 0; position: relative; z-index: 1; }
.hero .sub { font-size: 1.35rem; color: var(--ink-2); margin-top: 6px; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art img { position: absolute; right: 120px; top: 0; height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 92%, transparent), linear-gradient(180deg, #000 70%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 92%, transparent), linear-gradient(180deg, #000 70%, transparent); mask-composite: intersect; }
.hero-art .motto { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); line-height: 1.9; text-align: left; }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card-head { margin-bottom: 14px; }
.card-head.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h2 { margin-top: 2px; }
.card-head .muted { margin-top: 6px; max-width: 70ch; }
.sub-line { margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
body:not(.no-nft) .cards { grid-template-columns: repeat(4, 1fr); }
.stat-card h3 { margin-bottom: 14px; }
.big { font-family: var(--display); font-size: 2.6rem; font-weight: 500; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.big small { font-size: .55em; font-weight: 500; }
.stat-foot { margin-top: 12px; font-size: 1rem; color: var(--ink-2); }
.stat-foot b { color: var(--ink); font-weight: 600; }
.stat-sub { font-size: 1rem; color: var(--ink); margin-top: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split h3 { white-space: nowrap; }
.split-r { border-left: 1px solid var(--line); padding-left: 18px; align-self: end; }
.split-r .big { font-size: 2.1rem; }
.key-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.key-card img { width: 120px; height: auto; }

/* ---- chart ---- */
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.chart-card { position: relative; }
.hero-num { font-family: var(--display); font-size: 2.6rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-num small { font-size: .5em; color: var(--ink-2); }
.hero-sub { color: var(--good); font-size: 1.05rem; margin-top: 6px; }
.chart { height: 230px; margin-top: 14px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { font-family: var(--sans); font-size: 11px; fill: var(--ink-3); }
.chart .area { fill: url(#areaFill); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .pt.last { r: 5; }
.chart .hit { fill: transparent; }
.chart .cross { stroke: var(--ink-3); stroke-dasharray: 3 3; stroke-width: 1; }
.chart .empty { font-family: var(--serif); fill: var(--ink-3); font-size: 15px; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: .8rem; padding: 6px 10px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -115%); z-index: 3; }

/* ---- tables ---- */
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th { font-family: var(--sans); text-align: left; font-size: .78rem; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table th.num { text-align: right; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .muted { color: var(--ink-3); }
.holdings td:first-child { font-weight: 600; }
.asset { display: flex; align-items: center; gap: 12px; }
.asset .mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .04em; color: #fff; background: var(--green); flex: none; }
.mark { position: relative; overflow: hidden; }
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mark b { font-weight: 700; }
.asset .mark.eth { background: #3c3c5c; }
.asset .mark.gold { background: var(--gold); color: var(--gold-ink); }
.asset .sym { font-weight: 600; line-height: 1.1; }
.asset .nm { font-size: .85rem; color: var(--ink-3); }
.pos { color: var(--good); font-size: .9rem; }
.status-paid { color: var(--good); }
.status-pending { color: var(--warn); }
.status-failed { color: var(--bad); }

/* ---- coming soon ---- */
.soon-row { grid-template-columns: 1fr 1fr; }
.soon-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.soon-card h3 { margin-bottom: 10px; }
.soon-card .muted { max-width: 42ch; margin-bottom: 14px; }
.soon-card img { width: 120px; height: auto; }
.soon-card .soon-art { width: 150px; height: auto; }
body:not(.no-nft) .nft-soon { display: none; }
@media (max-width: 1280px) { .soon-row { grid-template-columns: 1fr; } }

/* ---- vote ---- */
.candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
.cand { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); position: relative; }
.cand:hover { border-color: var(--line-strong); }
.cand.selected { background: var(--gold-soft); border-color: var(--gold); }
.cand input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); margin: 0; display: grid; place-items: center; }
.cand input:checked { border-color: var(--gold); }
.cand input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.cand .mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: .72rem; color: #fff; background: var(--green); }
.cand .txt { line-height: 1.15; min-width: 0; }
.cand .sym { font-weight: 600; font-size: 1.1rem; }
.cand .kind { color: var(--ink-3); font-size: .9rem; }
.cand .tally { font-family: var(--sans); font-size: .72rem; color: var(--ink-3); margin-top: 3px; }
.cand.leader .tally { color: var(--good); font-weight: 600; }
.vote-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.btn-primary { font-family: var(--serif); font-size: 1rem; color: #f3ecd8; background: var(--green); border: 1px solid #2a5a44; border-radius: 10px; padding: 10px 22px; cursor: pointer; }
.btn-primary:hover:not(:disabled) { background: var(--green-2); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.msg { font-size: .95rem; color: var(--ink-2); }
.msg.ok { color: var(--good); }
.msg.err { color: var(--bad); }

/* ---- promo ---- */
.promo { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a1a12; color: #f3ecd8; min-height: 210px; }
.promo img { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; z-index: 0; }
.promo::before { content: ""; z-index: 1; position: absolute; inset: 0; background: linear-gradient(90deg, #06130d 0%, #06130d 38%, rgba(6,19,13,.6) 62%, rgba(6,19,13,0) 100%); }
.promo-copy { position: relative; z-index: 2; padding: 26px 28px; }
.promo .eyebrow { color: #d7b56a; }
.promo h2 { color: #fff; font-size: 2rem; }
.promo-lines { margin-top: 14px; font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; line-height: 2; color: #cfc6ad; }

/* ---- long sections ---- */
.section { scroll-margin-top: 16px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 0; }
.kv div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.kv dt { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { margin: 4px 0 0; font-size: 1.05rem; }
.empty { margin-top: 6px; }
.about { padding: 10px 4px; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.steps b { color: var(--ink); }
.registry { margin-top: 16px; word-break: break-all; }
.foot { border-top: 1px solid var(--line); padding-top: 22px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; font-size: .9rem; color: var(--ink-3); }
.foot-brand { font-family: var(--display); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }
.foot-head { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }

/* ---- responsive ---- */
@media (max-width: 1280px) {
  .cards, body:not(.no-nft) .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-art img { right: 60px; }
}
@media (max-width: 900px) {
  :root { --side-w: 0px; }
  .side { position: sticky; top: 0; inset: auto; width: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; overflow-x: auto; }
  .brand { padding: 4px 8px; grid-auto-flow: column; align-items: center; gap: 10px; text-align: left; }
  .brand img { width: 56px; }
  .brand-name { display: block; }
  .brand-name { font-size: .8rem; }
  .brand-tick { display: none; }
  .snav { grid-auto-flow: column; padding: 0; gap: 2px; }
  .snav a { padding: 8px 10px; font-size: .9rem; }
  .snav a svg { display: none; }
  .side-art { display: none; }
  .shell { margin-left: 0; }
  .top, main { padding-left: 16px; padding-right: 16px; }
  .word { display: none; }
  .hero-art .motto { display: none; }
  .hero-art img { right: -40px; opacity: .7; }
  .cards, body:not(.no-nft) .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-r { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .about-grid, .foot-grid, .kv { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}
