:root {
    --rtv-ink: #0c1e3a;
    --rtv-ink-2: #13294e;
    --rtv-paper: #f6f4ee;
    --rtv-surface: #ffffff;
    --rtv-accent: #c8102e;        /* civic red */
    --rtv-accent-2: #0a7d6b;      /* verified teal */
    --rtv-gold: #c9a227;
    --rtv-line: #e3ddd0;
    --rtv-muted: #5d6b80;
    --bs-primary: #0c1e3a;
    --bs-primary-rgb: 12, 30, 58;
}

* { -webkit-font-smoothing: antialiased; }

body {
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    color: var(--rtv-ink);
    background-color: var(--rtv-paper);
    background-image:
        radial-gradient(circle at 12% -5%, rgba(12,30,58,.06), transparent 45%),
        radial-gradient(circle at 95% 0%, rgba(200,16,46,.05), transparent 40%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .rtv-display {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    letter-spacing: -.01em;
}

/* Header */
.rtv-header {
    background: linear-gradient(120deg, var(--rtv-ink) 0%, var(--rtv-ink-2) 100%);
    border-bottom: 3px solid var(--rtv-gold);
}
.rtv-header .navbar { padding-top: .7rem; padding-bottom: .7rem; }
.rtv-header .nav-link { color: rgba(255,255,255,.82) !important; font-weight: 500; }
.rtv-header .nav-link:hover { color: #fff !important; }
.rtv-wordmark { font-family: "Fraunces", serif; font-size: 1.35rem; color: #fff; font-weight: 600; }
.rtv-wordmark span { color: var(--rtv-gold); }
.rtv-mark {
    width: 36px; height: 36px; display: inline-grid; place-items: center;
    background: var(--rtv-accent); color: #fff; border-radius: 9px; font-size: 1.1rem;
}
.rtv-avatar {
    width: 30px; height: 30px; display: inline-grid; place-items: center;
    background: var(--rtv-gold); color: var(--rtv-ink); border-radius: 50%;
    font-weight: 700; font-size: .85rem;
}
.rtv-name {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navbar-toggler { border-color: rgba(255,255,255,.3); }

.rtv-main { flex: 1 0 auto; }

/* Cards & surfaces */
.rtv-card {
    background: var(--rtv-surface);
    border: 1px solid var(--rtv-line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(12,30,58,.04), 0 12px 30px -18px rgba(12,30,58,.25);
}
.rtv-card .card-body { padding: 1.5rem; }

.rtv-page-title { margin-bottom: .25rem; }
.rtv-subtitle { color: var(--rtv-muted); margin-bottom: 1.5rem; }

/* Buttons */
.btn-primary {
    background: var(--rtv-ink); border-color: var(--rtv-ink);
}
.btn-primary:hover { background: var(--rtv-ink-2); border-color: var(--rtv-ink-2); }
.btn-accent { background: var(--rtv-accent); border-color: var(--rtv-accent); color:#fff; }
.btn-accent:hover { background:#a60d26; color:#fff; }

/* Tables */
.rtv-table { background: var(--rtv-surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--rtv-line); }
.rtv-table thead th { background: #f0ece1; color: var(--rtv-muted); text-transform: uppercase; font-size: .73rem; letter-spacing: .06em; border-bottom: 1px solid var(--rtv-line); }
.rtv-table td { vertical-align: middle; }

/* Badges */
.badge-role { background: rgba(12,30,58,.08); color: var(--rtv-ink); font-weight: 600; border-radius: 6px; }
.status-draft { background: #ece9df; color: #6b6450; }
.status-open  { background: rgba(10,125,107,.14); color: var(--rtv-accent-2); }
.status-closed{ background: rgba(200,16,46,.12); color: var(--rtv-accent); }

/* Alerts */
.rtv-alert { border: none; border-left: 4px solid currentColor; border-radius: 10px; }

/* Auth split */
.rtv-auth-wrap { min-height: 70vh; display: grid; place-items: center; }
.rtv-auth-card { width: 100%; max-width: 440px; }

/* Vote choice tiles */
.choice-tile {
    border: 1.5px solid var(--rtv-line); border-radius: 12px; padding: 1rem 1.1rem;
    cursor: pointer; transition: all .15s ease; background: var(--rtv-surface);
}
.choice-tile:hover { border-color: var(--rtv-ink); }
.choice-tile.is-checked { border-color: var(--rtv-accent-2); box-shadow: 0 0 0 3px rgba(10,125,107,.12); }
.choice-tile input { margin-right: .6rem; }

/* Hero */
.rtv-hero {
    background: linear-gradient(135deg, var(--rtv-ink), var(--rtv-ink-2));
    color: #fff; border-radius: 20px; padding: 3.2rem; position: relative; overflow: hidden;
}
.rtv-hero::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%);
}
.rtv-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.rtv-hero .lead { color: rgba(255,255,255,.85); max-width: 46ch; }

.feature-icon {
    width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(12,30,58,.07); color: var(--rtv-ink); font-size: 1.25rem;
}

/* Result bars */
.result-bar { background: #eee8db; border-radius: 8px; height: 30px; overflow: hidden; }
.result-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--rtv-ink), var(--rtv-accent-2)); }

/* Footer */
.rtv-footer {
    flex-shrink: 0; background: var(--rtv-ink); color: rgba(255,255,255,.7);
    padding: 1.1rem 0; font-size: .85rem; margin-top: 3rem;
}
.rtv-footer .text-uppercase { color: var(--rtv-gold); letter-spacing: .08em; font-size: .72rem; }
.rtv-footer-link { color: rgba(255,255,255,.85); text-decoration: none; }
.rtv-footer-link:hover { color: #fff; text-decoration: underline; }

/* Group landing-page custom HTML, rendered directly in the page body. */
.rtv-group-content img { max-width: 100%; height: auto; }
.rtv-group-content table { max-width: 100%; }

.form-label { font-weight: 600; font-size: .9rem; }
.text-accent { color: var(--rtv-accent); }
a { color: var(--rtv-ink-2); }

/* Print: hide chrome and interactive controls so only the report content prints */
@media print {
  .rtv-header, .rtv-footer, .btn, form, .alert { display: none !important; }
  .rtv-main { padding: 0 !important; }
  .rtv-card { box-shadow: none !important; border: 1px solid #ccc !important; }
  a[href]:after { content: ""; }
  body { background: #fff !important; }
}
.d-print-none-keepbtn { }
