/* Rust Hub voting: scoped to the new views and directory voting actions. */
.rh-vote-page {
    --vote-line: #263239;
    --vote-muted: #98aab4;
    --vote-orange: #f04a24;
    box-sizing: border-box;
    width: min(1040px, calc(100% - 40px));
    min-height: 65vh;
    margin: 40px auto 64px;
    color: #f4f7f8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
.rh-vote-page *, .rh-card-voting * { box-sizing: border-box; }
.rh-vote-page h1, .rh-vote-page h2, .rh-vote-page p { margin: 0; }
.rh-vote-page h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.8px; margin: 8px 0 12px; }
.rh-vote-page h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.3px; overflow-wrap: anywhere; }
.rh-vote-page p { color: var(--vote-muted); }
.rh-vote-page a { color: inherit; text-decoration: none; }
.rh-vote-back { display: inline-block; margin-bottom: 28px; color: var(--vote-muted) !important; font-size: 13px; }
.rh-vote-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #ff633d; }
.rh-vote-intro { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.rh-vote-button, .rh-card-vote-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; min-height: 44px; border: 1px solid #34434b; border-radius: 6px;
    font: 700 13px/1.3 Arial, sans-serif; text-decoration: none; cursor: pointer;
    color: #f4f7f8; background: #0d151a; white-space: normal; text-align: center;
}
.rh-vote-button.primary, .rh-card-vote-button { background: #ed431e; border-color: #ed431e; color: #fff; }
.rh-vote-button:hover, .rh-card-vote-button:hover { filter: brightness(1.13); }
.rh-vote-button:disabled { background: #15362a; border-color: #23553f; color: #86dcb2; cursor: default; }
.rh-vote-button:focus-visible, .rh-vote-page a:focus-visible, .rh-vote-page input:focus-visible, .rh-card-vote-button:focus-visible { outline: 2px solid #ff825e; outline-offset: 3px; }
.rh-vote-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.rh-vote-server, .rh-vote-action, .rh-vote-wallet, .rh-vote-empty { background: #0d1418; border: 1px solid var(--vote-line); border-radius: 10px; overflow: hidden; }
.rh-vote-banner { width: 100%; aspect-ratio: 2/1; display: block; object-fit: cover; }
.rh-vote-server-copy { padding: 26px; }
.rh-vote-server-copy h2 { margin: 8px 0 20px; }
.rh-vote-metrics { display: flex; flex-wrap: wrap; gap: 24px 44px; margin: 22px 0; }
.rh-vote-metrics strong { display: block; font-size: 28px; line-height: 1.2; }
.rh-vote-metrics span { display: block; margin-top: 8px; font-size: 12px; color: var(--vote-muted); }
.rh-vote-text-link { font-size: 13px; color: #b5c8d2 !important; text-decoration: underline !important; text-underline-offset: 4px; }
.rh-vote-action { padding: 30px; }
.rh-vote-action h2 { margin: 8px 0 12px; }
.rh-vote-action > .rh-vote-button { margin-top: 32px; width: 100%; }
.rh-vote-account { display: flex; align-items: center; gap: 14px; padding: 22px 0; }
.rh-vote-account img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.rh-vote-account strong, .rh-vote-account span { display: block; overflow-wrap: anywhere; }
.rh-vote-account span { font-size: 12px; color: var(--vote-muted); margin-top: 2px; }
.rh-vote-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--vote-line); margin-bottom: 12px; }
.rh-vote-balance span { color: var(--vote-muted); font-size: 13px; }
.rh-vote-balance strong { font-size: 26px; }
.rh-vote-action form > button { width: 100%; }
.rh-vote-countdown { font-size: 12px; text-align: center; padding: 12px 0; min-height: 42px; }
.rh-vote-footnote { font-size: 12px; border-top: 1px solid var(--vote-line); margin-top: 24px !important; padding-top: 18px; }
.rh-vote-small { font-size: 12px; margin: 12px 0 !important; }
.rh-vote-explainer { display: flex; gap: 32px; margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--vote-line); font-size: 13px; }
.rh-vote-explainer strong { min-width: 160px; }
.rh-vote-notice { padding: 14px 18px; border: 1px solid #25553f; background: #10231b; color: #9ae1b9 !important; border-radius: 6px; margin-bottom: 22px !important; }
.rh-vote-notice.error { border-color: #76372c; background: #2b1714; color: #ffc2b6 !important; }
.rh-vote-wallets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.rh-vote-wallet, .rh-vote-empty { padding: 28px; }
.rh-vote-wallet h2 { font-size: 19px; }
.rh-vote-empty p { margin: 14px 0 24px; }
.rh-vote-owner-layout { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 36px; border-top: 1px solid var(--vote-line); padding-top: 28px; }
.rh-vote-owner-layout aside { display: flex; flex-direction: column; align-items: start; gap: 16px; font-size: 13px; }
.rh-vote-owner-layout aside strong { margin-bottom: 6px; color: var(--vote-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.rh-vote-owner-layout aside a { padding: 8px 0; }
.rh-vote-owner-section { scroll-margin-top: 25px; padding-bottom: 34px; margin-bottom: 32px; border-bottom: 1px solid var(--vote-line); }
.rh-vote-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rh-vote-pill { border: 1px solid #3b454b; padding: 4px 9px; border-radius: 20px; color: #becbd1; font-size: 11px; }
.rh-vote-pill.connected { border-color: #245a42; color: #66dea5; }
.rh-vote-label { display: block; margin: 24px 0 8px; font-size: 13px; font-weight: bold; }
.rh-vote-copy { display: flex; gap: 10px; }
.rh-vote-copy input { flex: 1; min-width: 0; background: #0d161b; color: #cbd7de; border: 1px solid var(--vote-line); border-radius: 5px; padding: 12px; font: 13px Arial, sans-serif; }
.rh-vote-steps { list-style: none; counter-reset: setup; margin: 25px 0 0; padding: 0; }
.rh-vote-steps li { position: relative; padding: 0 0 26px 44px; margin-top: 26px; counter-increment: setup; }
.rh-vote-steps li::before { content: counter(setup); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border: 1px solid #78351f; background: #281b16; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: bold; color: #ff825e; }
.rh-vote-steps li p { margin: 8px 0 16px; font-size: 14px; }
.rh-vote-page code { color: #d6e0e4; font: 12px/1.7 monospace; overflow-wrap: anywhere; }
.rh-vote-commands { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 12px 16px; gap: 8px; background: #0c1418; border: 1px solid var(--vote-line); border-radius: 6px; }
.rh-vote-commands span { font-size: 11px; color: var(--vote-muted); }
.rh-vote-disclosure summary { cursor: pointer; color: var(--vote-muted); font-size: 13px; margin: 24px 0 18px; }
.rh-card-voting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #27333a; }
.rh-card-voting-count strong { display: inline; font: 700 17px Arial, sans-serif; color: #f3f6f7; }
.rh-card-voting-count span { font: 11px Arial, sans-serif; color: #9fb0b9; }
.rh-card-vote-button { min-height: 38px; font-size: 12px; padding: 8px 16px; }
.rh-vote-nav-link { color: #dce6eb; text-decoration: none; font: 700 12px Arial,sans-serif; white-space: nowrap; padding: 9px 10px; border: 1px solid #34434b; border-radius: 5px; }
.rh-vote-signin { display: inline-flex !important; align-items: center; gap: 8px; text-decoration: none; }
.rh-vote-signin-label { color: #dce6eb; font: 700 12px Arial,sans-serif; white-space: nowrap; }
.rh-vote-detail-link { margin-top: 14px; }
@media (max-width: 760px) {
    .rh-vote-page { margin-top: 26px; width: calc(100% - 32px); }
    .rh-vote-grid { grid-template-columns: 1fr; gap: 18px; }
    .rh-vote-intro { align-items: start; gap: 16px; }
    .rh-vote-intro > .rh-vote-button { padding: 10px 13px; white-space: nowrap; }
    .rh-vote-explainer { flex-direction: column; gap: 10px; }
    .rh-vote-wallets { grid-template-columns: 1fr; }
    .rh-vote-owner-layout { grid-template-columns: 1fr; gap: 24px; }
    .rh-vote-owner-layout aside { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
    .rh-vote-owner-layout aside strong { display: none; }
    .rh-vote-signin-label { display: none; }
}
@media (max-width: 430px) {
    .rh-vote-page { width: calc(100% - 24px); }
    .rh-vote-intro { flex-wrap: wrap; }
    .rh-vote-action, .rh-vote-server-copy { padding: 22px; }
    .rh-vote-steps li { padding-left: 38px; }
    .rh-vote-copy { flex-wrap: wrap; }
    .rh-vote-copy input { flex-basis: 100%; }
    .rh-vote-commands { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rh-vote-page * { scroll-behavior: auto; } }
@media (max-width: 900px) {
    .site-header .steam-account { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
}
@media (max-width: 600px) {
    .site-header .header-inner { width: calc(100% - 24px); column-gap: 12px; }
    .site-header .steam-avatar { width: 32px; height: 32px; }
    .site-header .steam-auth-image { height: 34px; }
    .site-header .main-nav { gap: 20px; }
    .site-header .main-nav a { font-size: 12px; }
}

.rh-directory-vote-order { color: #94a7b2; font: 12px/1.5 Arial,sans-serif; margin: 0 0 18px; }
@media (max-width: 600px) {
    .site-header .header-inner { grid-template-columns: 1fr; grid-template-areas: "brand" "nav" "account"; gap: 10px; }
    .site-header .brand, .site-header .header-account { justify-self: center; }
    .site-header .brand-logo { width: 180px; }
    .site-header .steam-account { flex-wrap: nowrap; justify-content: center; }
}
