/* Civic redesign: colours remapped to the VOTARA Civic palette (see votara-civic.css). */
/* Shared VOTARA finish. Existing page layouts and Bootstrap behavior remain in place. */
:root { --vt-navy:#152038; --vt-blue:#255fb6; --vt-gold:#d7ac57; --vt-ink:#182440; --vt-muted:#52627b; --vt-line:#e9e7e2; --vt-bg:#f8f7f6; --vt-radius:12px; }
.votara-ui { --primary:var(--vt-blue); --text-muted:var(--vt-muted); color:var(--vt-ink); background:var(--vt-bg); }
.votara-ui :is(.btn,.form-control,.form-select,.card-header,h1,h2,h3,h4,h5,h6) { font-family:inherit; }
.votara-ui :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid #886520; outline-offset:3px; }
.votara-ui .card { border-color:var(--vt-line); border-radius:var(--vt-radius); box-shadow:0 3px 14px #15203807; }
.votara-ui .card-header { border-bottom-color:var(--vt-line); }
.votara-ui .btn { min-height:44px; font-size:14px; font-weight:600; border-radius:8px; transition:background-color .15s,border-color .15s,box-shadow .15s; }
.votara-ui .btn-primary { --bs-btn-bg:var(--vt-blue); --bs-btn-border-color:var(--vt-blue); background:var(--vt-blue); border-color:var(--vt-blue); color:#ffffff; }
.votara-ui .btn-primary:hover { background:#2256a5; border-color:#2256a5; }
.votara-ui .btn-outline-warning { color:#604817; border-color:#b18429; }
.votara-ui .btn-outline-warning:hover { background:#e3c486; color:#31240b; }
.votara-ui .form-control,.votara-ui .form-select { min-height:44px; border-color:#b7c5db; border-radius:8px; font-size:15px; }
.votara-ui .form-control:focus,.votara-ui .form-select:focus { border-color:#2b6ed2; box-shadow:0 0 0 3px #255fb617; }
.votara-ui .badge { line-height:1.45; }
.votara-ui .table { font-size:14px; }
.votara-ui .table th { font-size:12px; letter-spacing:.02em; color:#495f7f; background:#f9f8f7; }
.votara-ui .table td { padding:14px 16px; border-bottom-color:#ebf0f7; }
.votara-ui .table-responsive { overscroll-behavior-x:contain; }
.votara-ui .table-responsive:focus-visible { outline-offset:-3px; }
.votara-ui .top-nav { gap:16px; flex-wrap:wrap; }
.votara-ui .top-nav>h5 { font-size:clamp(24px,2vw,28px); line-height:1.3; }
.votara-ui .top-nav select { max-width:100%; }
.votara-ui .modal-content { border:1px solid var(--vt-line); border-radius:16px; box-shadow:0 16px 60px #15203830; }
.votara-ui .modal-title { font-size:19px; }
.votara-ui .modal-body { line-height:1.6; overflow-wrap:anywhere; }
.votara-ui .modal-footer { gap:8px; }
.vt-skip { position:fixed; top:8px; left:8px; z-index:2000; transform:translateY(-150%); padding:12px 18px; border-radius:8px; color:#ffffff; background:var(--vt-navy); }
.vt-skip:focus { transform:none; color:#ffffff; }
.vt-intro { color:var(--vt-muted); max-width:75ch; margin:-8px 0 20px; font-size:14px; }
.vt-filterbar { display:flex; flex-wrap:wrap; gap:14px; align-items:end; padding:18px; margin-bottom:18px; background:#ffffff; border:1px solid var(--vt-line); border-radius:12px; }
.vt-filterbar label { flex:1 1 155px; min-width:0; color:#314768; font-size:13px; font-weight:600; }
.vt-filterbar .vt-search { flex:2 1 240px; }
.vt-filterbar :is(input,select) { width:100%; margin-top:6px; }
.vt-filterbar .vt-filter-actions { display:flex; flex-wrap:wrap; gap:8px; }
.vt-results-count { font-size:13px; color:var(--vt-muted); margin:0 0 12px; }
.vt-empty { padding:28px; text-align:center; border:1px dashed #b7c5db; border-radius:12px; background:#ffffff; color:var(--vt-muted); }
.vt-field-error { color:#a52e25; font-size:13px; line-height:1.5; margin-top:6px; }
.votara-ui [aria-invalid=true],.login-bg [aria-invalid=true] { border-color:#b1342b!important; }
.votara-ui .vt-chart-link { color:inherit; text-decoration:none; border-radius:8px; }
.votara-ui .vt-chart-link:hover { background:#f7f6f5; box-shadow:0 0 0 5px #f7f6f5; }
.votara-ui .de-activity-card { transition:border-color .15s,box-shadow .15s; }
.votara-ui .de-activity-card:hover,.votara-ui .de-activity-card:focus-within { border-color:#9ab7e2; box-shadow:0 6px 20px #1520380e; }
.votara-ui [hidden] { display:none!important; }
/* Bring regular voting/candidacy pages into the same student workspace. */
.votara-ui.vt-student-secondary { --sidebar-w:244px; font:15px/1.55 Inter,'Segoe UI',sans-serif; }
.vt-student-secondary .main-content { padding:24px; width:auto; max-width:none; overflow:visible; }
.vt-student-secondary .top-nav { padding:0; border:0; box-shadow:none; background:transparent; margin-bottom:22px; }
.vt-student-secondary #mainSidebar { background:var(--vt-navy)!important; }
.vt-student-secondary .voter-brand-copy strong { font-size:22px; }
.vt-student-secondary .voter-brand-copy small { font-size:12px; }
.vt-student-secondary .sidebar-link { font-size:14px; min-height:44px; }
.vt-student-secondary .card-header-primary { background:#f8f7f5; color:#24365f; border-bottom:1px solid var(--vt-line); }
.vt-ballot-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center; margin-bottom:18px; padding:16px 18px; border:1px solid #d6e0f0; border-radius:12px; background:#f8f7f5; }
.vt-ballot-head p { color:var(--vt-muted); margin:4px 0 0; font-size:13px; }
.vt-position legend { font-size:16px; font-weight:700; margin:0; float:none; width:auto; }
.vt-position { min-width:0; }
.vt-position .card-header { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.vt-choice { display:flex; flex-direction:column; }
.vt-choice .ballot-card { position:relative; flex:1; border-radius:12px; border:2px solid #e9e7e2; padding:18px; cursor:pointer; background:white; }
.vt-choice .ballot-card:hover { border-color:#7ea3da; }
.vt-choice .ballot-card:focus-within { outline:3px solid #886520; outline-offset:3px; }
.vt-choice .ballot-card.selected { border-color:var(--vt-blue); background:#f9f8f7; box-shadow:0 0 0 1px var(--vt-blue); }
.vt-choice .ballot-card.selected::after { display:none; }
.vt-choice .ballot-card input { display:block!important; position:absolute; top:12px; right:12px; width:20px; height:20px; opacity:1; accent-color:var(--vt-blue); }
.vt-choice .candidate-photo { width:104px; height:120px; object-fit:cover; border-radius:12px; }
.vt-choice .vt-preview { margin-top:8px; width:100%; }
.vt-choice .vt-candidate-name { font-size:15px; display:block; margin:8px 0; }
.vt-choice .vt-candidate-detail { font-size:13px; color:var(--vt-muted); margin:4px 0; }
.vt-review-list { margin:0; }
.vt-review-list dt { font-size:14px; padding-top:14px; color:#24365f; }
.vt-review-list dd { margin:4px 0 0; padding-bottom:14px; border-bottom:1px solid var(--vt-line); }
.vt-preview-photo { width:100px; height:120px; object-fit:cover; border-radius:12px; }
.vt-preview-platform { white-space:pre-wrap; }
.vt-ballot-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:18px; border:1px solid var(--vt-line); background:white; border-radius:12px; }
.vt-ballot-actions p { font-size:13px; color:var(--vt-muted); margin:0; max-width:45ch; }
@media(max-width:768px) { .votara-ui .form-control,.votara-ui .form-select { font-size:16px; } .vt-filterbar { padding:14px; } .vt-filterbar label,.vt-filterbar .vt-search { flex-basis:100%; } .vt-student-secondary .main-content { padding:18px 14px; } .votara-ui .top-nav>.d-flex { flex-wrap:wrap; min-width:0; } .vt-ballot-actions>.btn { width:100%; } }
@media(prefers-reduced-motion:reduce) { .votara-ui *, .login-bg * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media print { .vt-skip,.vt-filterbar,.vt-preview { display:none!important; } }

.vt-student-secondary #otp-inputs { gap:6px!important; }
.vt-student-secondary #otp-inputs .otp-digit { flex:1 1 0; min-width:0; width:0!important; max-width:52px; padding:4px; }
.vt-position .card-header>.d-flex { width:100%; gap:12px; flex-wrap:wrap; }
