/* --- MESEC styling (ported from mesec-v2 main.css) --- */

:root {
    --bs-font-sans-serif: Switzer-Regular, system-ui;
    --bs-body-color: black;
    --bs-border-radius-sm: 1rem !important;
    --bs-border-radius: 1.5rem !important;
    --bs-body-font-family: Switzer-Regular, system-ui;
}

body {
    font-family: Switzer-Regular, system-ui;
}

.nav-link:hover {
    color: var(--bs-nav-link-hover-color);
    background-color: var(--bs-gray-300);
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
}

header nav {
    position: relative;
}

#mesec-name-nav {
    font-size: 1em;
    width: 300px;
    white-space: unset;
    line-height: 1.2;
}

/* --- Forum-specific components --- */

/* Fixed proposal comparison panel: stays in view while the voter scrolls
   through the questions, so proposals can be compared side by side. */
.proposal-panel {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    overflow: hidden;
}

.proposal-viewer {
    height: 70vh;
    background: #f8f9fa;
}

.proposal-viewer object {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.proposal-name {
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

.proposal-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.6rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

.proposal-author-sep {
    color: #6c757d;
    font-size: 0.8rem;
}

.proposal-author-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.proposal-author-link {
    font-size: 0.85rem;
    text-decoration: none;
}

.proposal-author-link:hover {
    text-decoration: underline;
}

.question-text p {
    margin-bottom: 0.2rem;
}

.question-text ul {
    margin-bottom: 0.4rem;
    padding-left: 1.1rem;
}

.grade-input {
    cursor: pointer;
}

#save-status {
    transition: color 0.2s, background 0.2s;
}

#save-status.saving {
    background: #fff3cd;
    color: #664d03;
}

#save-status.saved {
    background: #d1e7dd;
    color: #0f5132;
}

#save-status.error {
    background: #f8d7da;
    color: #842029;
}

footer {
    border-top: solid #333333 1px;
    padding-top: 1rem;
    margin-top: 3rem;
}
