/* /volunteer/ page styles (v2). Tokens and base components come from /assets/eotm.css. */

/* hero shortcuts */
.v-jump { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s8); }
@media (max-width: 480px) { .v-jump .btn { flex: 1 1 100%; } }

/* section cards */
.v-sec { margin-top: var(--s8); }
.v-card { padding: clamp(20px, 4vw, 40px); }
@media (max-width: 640px) { .v-card { padding: var(--s5) var(--s4); border-radius: var(--r-lg); } }
.v-card h2 { margin: 0; }
.v-card > * + * { margin-top: var(--s4); }
.v-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.v-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); }
.v-p { color: var(--text-2); line-height: 1.65; max-width: 72ch; }
.v-p strong { color: var(--text); font-weight: 600; }
.v-label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.v-label.accent { color: var(--accent-text); }
.v-label-gap { margin-top: var(--s6); }
.v-step { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 2px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; }
.v-fine { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.6; border-top: 1px solid var(--hairline); padding-top: var(--s4); }

/* role list: Uniswap-like rows */
.rlist { list-style: none; margin: var(--s5) 0 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.rlist li + li { border-top: 1px solid var(--hairline); }
.role { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 4px var(--s4); align-items: center; min-height: 64px; padding: var(--s3) var(--s4); color: var(--text); }
.role .rn { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.role .rt { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.014em; min-width: 0; }
.role .rp { color: var(--text-2); font-weight: 500; }
.role .rw { font-size: var(--fs-sm); color: var(--text-3); }
.role .rs { justify-self: end; white-space: nowrap; }
a.role { transition: background var(--dur-2) var(--ease); }
a.role:hover { background: var(--bg-elev-2); }
a.role:hover .rt { color: var(--accent-text); }
a.role:focus-visible { outline-offset: -2px; border-radius: var(--r-lg); }
.role.soon .rt { color: var(--text-2); font-weight: 500; }
@media (max-width: 640px) {
  .role { grid-template-columns: 28px minmax(0, 1fr) auto; padding: var(--s3); }
  .role .rt { font-size: var(--fs-base); }
  .role .rw { grid-column: 2; grid-row: 2; font-size: var(--fs-xs); }
  .role .rs { grid-column: 3; grid-row: 1 / span 2; }
}

/* #pool: the token-of-thanks note (anchor kept so old /volunteer/#pool links still land here) */
.pool { margin-top: var(--s6); padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); background: var(--bg-elev-2); border: 1px solid var(--hairline); }
.pool > * + * { margin-top: var(--s3); }
.pool h3 { font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -0.02em; max-width: 32ch; margin-top: var(--s2); }
@media (max-width: 640px) { .pool { padding: var(--s4); margin-left: calc(-1 * var(--s1)); margin-right: calc(-1 * var(--s1)); } }
.pterms, .crit { list-style: none; margin: var(--s3) 0 0; padding: 0; counter-reset: none; }
.pterms li, .crit li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--hairline); color: var(--text-2); line-height: 1.6; }
.pterms li:first-child, .crit li:first-child { border-top: 0; }
.pterms li > span, .crit li > span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent-text); padding-top: 3px; font-variant-numeric: tabular-nums; }
.crit { margin-top: var(--s2); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 0 var(--s4); background: var(--bg); }
.crit li { color: var(--text); }

.v-warn { line-height: 1.6; font-size: var(--fs-base); }
.v-warn-t { display: block; margin-bottom: var(--s1); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn); }

/* minimums accordion */
.sops { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; margin-top: var(--s2); }
.sops details + details { border-top: 1px solid var(--hairline); }
.sops summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; gap: var(--s2); align-items: center; min-height: 52px; padding: var(--s2) var(--s4); transition: background var(--dur-1) var(--ease); }
.sops summary::-webkit-details-marker { display: none; }
.sops summary:hover { background: var(--bg-elev-2); }
.sops summary:focus-visible { outline-offset: -2px; }
.sops .sn { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); }
.sops .st { font-weight: 600; }
.sops .st em { font-style: normal; font-weight: 500; color: var(--text-3); font-size: var(--fs-sm); }
.sops .chev { width: 20px; height: 20px; position: relative; }
.sops .chev::before, .sops .chev::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 1.6px; border-radius: 1px; background: var(--text-2); transition: transform var(--dur-2) var(--ease); }
.sops .chev::after { transform: rotate(90deg); }
.sops details[open] .chev::after { transform: rotate(0deg); }
.sops ul { margin: 0; padding: 0 var(--s4) var(--s4) calc(var(--s4) + 40px); color: var(--text-2); line-height: 1.6; }
.sops li + li { margin-top: var(--s1); }
@media (max-width: 640px) { .sops ul { padding-left: calc(var(--s4) + 18px); } }
.pnote { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }

/* share row */
.v-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.v-share-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.v-share .btn-sm { min-height: var(--tap); }
@media (max-width: 480px) { .v-share-btns { width: 100%; } .v-share-btns .btn { flex: 1 1 auto; } }

/* forms */
.apply { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin-top: var(--s6); }
.apply .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .apply { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }
.apply[hidden] { display: none; }
.apply .field label { color: var(--text); font-weight: 600; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238a847c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.select option { background: var(--bg-elev); color: var(--text); }
.input[aria-invalid="true"] { border-color: var(--down); background: var(--down-soft); }
.input[aria-invalid="true"]:focus { border-color: var(--down); }
.input[aria-invalid="false"] { border-color: color-mix(in srgb, var(--up) 55%, transparent); }
.fhint { font-size: var(--fs-sm); color: var(--down); font-weight: 500; line-height: 1.4; }
.fhint:empty { display: none; }
.fhint::before { content: "! "; font-weight: 700; }
.apply .check { color: var(--text-2); line-height: 1.55; font-size: var(--fs-base); padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--hairline); background: var(--bg); transition: border-color var(--dur-2) var(--ease); }
.apply .check:hover { border-color: var(--hairline-strong); }
.apply .check input { width: 24px; height: 24px; margin-top: 1px; }
.apply .check.bad { border-color: var(--down); background: var(--down-soft); }
.apply .wide > .fhint { display: block; margin-top: 6px; }
.apply .wide > .fhint:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s2); }
@media (max-width: 640px) { .go .btn { width: 100%; } }

/* status messages and results */
.msg { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; flex: 1 1 260px; min-width: 0; }
.msg:empty { display: none; }
.msg.ok { color: var(--text); }
.msg.err { color: var(--down); font-weight: 500; }
.msg .btn { margin-top: var(--s3); }
.result { margin-top: var(--s3); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.result .ok-t { position: relative; padding: var(--s3) var(--s4) var(--s3) calc(var(--s4) + 18px); border-radius: var(--r-md); background: var(--up-soft); color: var(--text); line-height: 1.55; }
.result .ok-t::before { content: ""; position: absolute; left: var(--s4); top: 1.2em; width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
img.tcard { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--r-lg); border: 1px solid var(--hairline); background: var(--bg-elev-2); box-shadow: var(--shadow-2); }

/* step 2: signing info, wallet buttons, chains */
.info { margin-top: var(--s3); }
.info-btn { padding: 0 14px 0 8px; min-height: var(--tap); color: var(--text-2); }
.info-i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hairline-strong); font: italic 600 13px/1 Georgia, serif; }
.info-btn[aria-expanded="true"] { background: var(--bg-elev-2); color: var(--text); }
.tip { margin-top: var(--s2); padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--hairline-strong); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; max-width: 640px; animation: rise var(--dur-2) var(--ease) both; }
.tip[hidden] { display: none; }
.tip b { display: block; margin-bottom: var(--s2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.tip .msgpre { display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin: var(--s2) 0; padding: var(--s3); border-radius: var(--r-sm); background: var(--bg-elev-2); color: var(--text); font-size: 12px; line-height: 1.55; }
.v-connect { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s5); }
.wallets { display: flex; flex-wrap: wrap; gap: var(--s2); }
.wallets .btn img { width: 22px; height: 22px; border-radius: 6px; }
.wallets .none { display: block; width: 100%; padding: var(--s4); border-radius: var(--r-md); border: 1px dashed var(--hairline-strong); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 640px) { .wallets .btn { width: 100%; white-space: normal; text-align: center; min-height: 52px; } }
.v-addr { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text); padding: 10px 14px; border-radius: var(--r-md); background: var(--up-soft); overflow-wrap: anywhere; }
.v-chains { display: flex; flex-direction: column; gap: var(--s2); }
.v-chain-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 480px) { .v-chain-row .btn { flex: 1 1 0; } }
.v-ticks { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tick { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--bg-elev-2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.tick.on { background: var(--up-soft); color: var(--up); }
.tick.off { background: var(--down-soft); color: var(--down); }

@media (prefers-reduced-motion: reduce) { .tip { animation: none; } }
