/* ==========================================================================
   SilverMU /vote-rewards on the Silver Codex (css/silver-inner-vote.css, batch 2, 2026-11-07).
   vote-rewards.php sets $bodyClass = 'svp-inner svp-inner--vote' and appends '/css/silver-inner.css' then
   this sheet to $pageStyles BEFORE header.php (the page's old inline <style> is gone).
   Markup (Codex components except .svp-vote-*):
     masthead   div.white-box.page-header-box > .page-header-copy > span.page-kicker, h1.page-title,
                p.page-subtitle, div.svp-mast-row > a.sv-btn--fire + a.sv-btn--steel (by login state)
     pays       section.white-box > h2.svp-h2 + div.svp-stats > div.svp-stat*
     steps      section.white-box > h2.svp-h2 + ol.svp-vote-steps > li > h3.svp-h3 + p
     shop+faq   div.svp-vote-grid > section.white-box (h2, p.svp-lead, div.svp-scroller > table.svp-table)
                                  + section.white-box (h2, div.svp-faq > details.svp-qa*, p.svp-vote-more)
   Same mechanic as the other inner sheets: @layer sv-inner, every declaration !important, selectors under
   body.svp-inner--vote. The container (section.svvote) keeps the Codex shell's centring: no margin rule here.
   The panels belong to fx.js: no opacity/transform/transition on them.
   ========================================================================== */
@layer sv-inner {

/* 1. The shop and the questions side by side from 1100px; the grid owns the gap between its panels -------- */
body.svp-inner--vote :where(.svp-vote-grid) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--svp-5) !important;
  align-items: start !important;
  margin: 0 0 var(--svp-5) !important;
}
body.svp-inner--vote :where(.svp-vote-grid > .white-box) {
  margin: 0 !important;
}
@media (min-width: 1100px) {
  body.svp-inner--vote :where(.svp-vote-grid) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  /* the VIP shop switched off in vote-settings.php: the questions take the whole row (no empty half) */
  body.svp-inner--vote :where(.svp-vote-grid:not(:has(> .white-box + .white-box))) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
@media (max-width: 760px) {
  body.svp-inner--vote :where(.svp-vote-grid) {
    gap: var(--svp-4) !important;
    margin-bottom: var(--svp-4) !important;
  }
  /* the Home crumb is a 44px-wide target like the rest of the touch targets (as silver-inner-legal.css) */
  body.svp-inner--vote .breadcrumb-nav a {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 44px !important;
  }
}

/* 2. Steps: four equal cards with ember numerals (the chrome discs read as buttons), a list on phones ------ */
body.svp-inner--vote :where(.svp-vote-steps) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--svp-4) !important;
  max-width: none !important; /* silver.css caps .white-box > ol at 44rem */
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: svpvote !important;
}
@media (min-width: 700px) {
  body.svp-inner--vote :where(.svp-vote-steps) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1100px) {
  body.svp-inner--vote :where(.svp-vote-steps) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
body.svp-inner--vote :where(.svp-vote-steps > li) {
  position: relative !important;
  display: grid !important;
  align-content: start !important;
  gap: var(--svp-2) !important;
  max-width: none !important;
  margin: 0 !important;
  padding: var(--svp-5) var(--svp-5) var(--svp-5) !important;
  border: 1px solid var(--svp-line) !important;
  border-radius: var(--svp-r-sm) !important;
  background: var(--svp-well) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  counter-increment: svpvote !important;
}
body.svp-inner--vote :where(.svp-vote-steps > li)::before {
  content: counter(svpvote) !important;
  position: static !important;
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 0 var(--svp-1) !important;
  border: 1px solid rgba(255, 138, 43, 0.55) !important;
  border-radius: 50% !important;
  background: rgba(255, 138, 43, 0.12) !important;
  box-shadow: none !important;
  color: var(--svp-ember-ink) !important;
  font-family: var(--sv-font-ui) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  font-variant-numeric: lining-nums tabular-nums !important;
}
body.svp-inner--vote :where(.svp-vote-steps .svp-h3) {
  margin: 0 !important;
  font-size: 20px !important;
}
body.svp-inner--vote :where(.svp-vote-steps p) {
  max-width: none !important;
  margin: 0 !important;
  color: var(--svp-ink) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
}
/* Phones: a plain numbered list (four framed cards would add about 500px of scrolling) */
@media (max-width: 699px) {
  body.svp-inner--vote :where(.svp-vote-steps > li) {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: var(--svp-3) !important;
    row-gap: var(--svp-1) !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  body.svp-inner--vote :where(.svp-vote-steps > li)::before {
    grid-row: span 2 !important;
    margin: 0 !important;
  }
  body.svp-inner--vote :where(.svp-vote-steps .svp-h3) {
    align-self: center !important;
    font-size: 19px !important;
  }
}

/* 3. The VIP table: the lead sits 16px over the table; prices right-aligned (.svp-num) ------------------ */
body.svp-inner--vote :where(.svp-vote-grid .svp-lead) {
  margin-bottom: var(--svp-4) !important;
}

/* 4. Questions: one column in the half-width panel, answers at the prose measure ------------------------- */
body.svp-inner--vote :where(.svp-faq) {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.svp-inner--vote :where(.svp-faq details.svp-qa .svp-qa__a) {
  max-width: 62ch !important;
}
body.svp-inner--vote :where(.svp-vote-more) {
  max-width: none !important;
  margin: var(--svp-5) 0 0 !important;
  color: var(--svp-ink-muted) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
}

}
