
/* ========================================
   THE STUDENT VOICE
   Clean, friendly school portal
   ======================================== */

/* 1. GLOBAL SETTINGS */

* {
    box-sizing: border-box;
}

:root {
    --blue: #2457a7;
    --blue-dark: #173d78;
    --blue-light: #edf4ff;
    --text: #263445;
    --text-muted: #64748b;
    --background: #ffffff;
    --border: #e2e8f0;
    --card-background: #ffffff;
    --shadow: 0 4px 16px rgba(23, 61, 120, 0.07);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Comic Sans MS", "Comic Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* 2. HEADINGS AND TEXT */

h1,
h2,
h3 {
    color: var(--blue-dark);
    line-height: 1.3;
    margin-top: 0;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    margin-top: 0;
}

small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 3. WEBSITE HEADER */

header {
    background: var(--background);
    padding: 30px 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

header h1 {
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 4. NAVIGATION BAR */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(23, 61, 120, 0.04);
}

nav a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

nav a:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
    text-decoration: none;
}

nav a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

/* 5. MAIN PAGE LAYOUT */

main {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
    padding: 36px 0 60px;
}

section {
    margin-bottom: 48px;
    scroll-margin-top: 90px;
}

/* 6. WELCOME SECTION */

#welcome {
    padding: clamp(26px, 5vw, 48px);
    background: var(--blue-light);
    border: 1px solid #dce8fc;
    border-radius: 18px;
    text-align: center;
}

#welcome h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 14px;
}

#welcome p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: #42536b;
}

/* 7. BUTTONS AND CALLS TO ACTION */

#welcome > a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--blue);
    color: #ffffff;
    border: 2px solid var(--blue);
    border-radius: 9px;
    font-weight: bold;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#welcome > a:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

#welcome > a:focus-visible {
    outline: 3px solid var(--blue-dark);
    outline-offset: 4px;
}

/* 8. LATEST NEWS SECTION */

#news > h2 {
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

#news article {
    padding: 24px;
    margin-bottom: 18px;
    background: var(--card-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

#news article:hover {
    border-color: #b7cdf0;
    transform: translateY(-2px);
}

#news article h3 {
    margin-bottom: 10px;
}

#news article p {
    margin-bottom: 12px;
}

#news article p:last-child {
    margin-bottom: 0;
}

/* 9. FOOTER */

footer {
    padding: 24px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 10. GENERAL LINKS */

a {
    color: var(--blue);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--blue-dark);
}

/* 11. TEXT SELECTION */

::selection {
    background: #cfe0ff;
    color: var(--blue-dark);
}

/* 12. MOBILE RESPONSIVENESS */

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    header {
        padding: 24px 16px 20px;
    }

    nav {
        gap: 4px;
        padding: 10px 8px;
    }

    nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    main {
        width: calc(100% - 28px);
        padding-top: 24px;
        padding-bottom: 40px;
    }

    section {
        margin-bottom: 36px;
    }

    #welcome {
        padding: 28px 20px;
        border-radius: 14px;
    }

    #news article {
        padding: 19px;
    }

    footer {
        padding: 22px 16px;
    }
}

/* 13. ACCESSIBILITY: REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ========================================
   SUGGESTIONS PAGE
   ======================================== */

#suggestion-form {
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-background);
    box-shadow: var(--shadow);
}

#suggestion-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#suggestion-form label {
    margin-top: 8px;
    font-weight: bold;
    color: var(--blue-dark);
}

#suggestion-form select,
#suggestion-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

#suggestion-form textarea {
    resize: vertical;
    min-height: 140px;
}

#suggestion-form select:focus-visible,
#suggestion-form textarea:focus-visible {
    outline: 3px solid #b7cdf0;
    border-color: var(--blue);
}

#suggestion-form button {
    align-self: flex-start;
    margin-top: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#suggestion-form button:hover {
    background: var(--blue-dark);
}

#suggestion-form button:focus-visible {
    outline: 3px solid var(--blue-dark);
    outline-offset: 3px;
}

#suggestion-form .form-note {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    #suggestion-form {
        padding: 20px;
    }

    #suggestion-form button {
        width: 100%;
    }
}


/* HOME BUTTON */
.home-buttonlol {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-buttonlol:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.home-buttonlol:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}


/* =========================================
   ANIMATED NEWS REACTIONS — HOMEPAGE
   ========================================= */

.reaction-heading {
    margin: 20px 0 8px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: bold;
}

.reaction-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.reaction-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transform-origin: center;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.reaction-button:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #93b4ef;
    transform: translateY(-2px);
}

.reaction-button.is-selected {
    background: #dbeafe;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 0 0 1px #2563eb;
}

.reaction-button.is-popping {
    animation: reaction-pop 320ms cubic-bezier(.18, .89, .32, 1.5);
}

@keyframes reaction-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.22); }
    65%  { transform: scale(0.94); }
    100% { transform: scale(1); }
}

.reaction-button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.reaction-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 600px) {
    .reaction-bar {
        gap: 7px;
    }

    .reaction-button {
        min-height: 40px;
        padding: 8px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reaction-button,
    .reaction-button.is-popping {
        animation: none;
        transition: none;
    }
}


/* =========================================
   STUDENT VOICE — WELCOME DASHBOARD
   ========================================= */

.welcome-dashboard {
    padding: 36px 24px;
    text-align: center;
}

.welcome-label {
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.welcome-dashboard h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 14px;
}

.welcome-description {
    max-width: 620px;
    margin: 0 auto 30px;
    line-height: 1.8;
    color: #475569;
}

/* Dashboard cards */
.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.dashboard-card:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 4px;
}

.news-action {
    border-top: 4px solid #2563eb;
}

.ideas-action {
    border-top: 4px solid #16a34a;
}

.updates-action {
    border-top: 4px solid #d97706;
}

.dashboard-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #eff6ff;
    font-size: 1.8rem;
}

.ideas-action .dashboard-icon {
    background: #dcfce7;
}

.updates-action .dashboard-icon {
    background: #fef3c7;
}

.dashboard-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
}

.dashboard-card-description {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
}

.dashboard-card-link {
    margin-top: auto;
    padding-top: 4px;
    color: #2563eb;
    font-weight: 750;
}

/* News section */
#news {
    scroll-margin-top: 20px;
}

.news-intro {
    color: #64748b;
    line-height: 1.6;
}

/* Responsive layout */
@media (max-width: 760px) {
    .dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dashboard-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .welcome-dashboard {
        padding: 28px 16px;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .dashboard-card {
        transition: none;
    }

    .dashboard-card:hover {
        transform: none;
    }
}


/* ========================================
   DARK MODE — THE STUDENT VOICE
   ======================================== */

/* Shared theme variables */
:root {
    color-scheme: light;
    --page-background: #ffffff;
    --surface-muted: #f8fafc;
    --heading: var(--blue-dark);
    --welcome-text: #42536b;
    --card-border: #e2e8f0;
    --field-background: #ffffff;
    --field-border: #cbd5e1;
}

/* Dark theme palette */
html[data-theme="dark"] {
    color-scheme: dark;

    --blue: #7ba7ff;
    --blue-dark: #b5ceff;
    --blue-light: #1d2c45;

    --text: #e2e8f0;
    --text-muted: #a6b4c8;
    --background: #0b1120;
    --page-background: #0b1120;
    --surface-muted: #111a2b;
    --card-background: #151f32;
    --border: #2a3850;
    --heading: #c2d7ff;
    --welcome-text: #c1cde0;
    --card-border: #2a3850;
    --field-background: #111a2b;
    --field-border: #394a64;

    --shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

/* Smooth page-wide colour changes */
body,
header,
nav,
main,
section,
footer,
#news article,
.dashboard-card,
#suggestion-form,
#suggestion-form select,
#suggestion-form textarea,
.reaction-button {
    transition:
        background-color 350ms ease,
        color 350ms ease,
        border-color 350ms ease,
        box-shadow 350ms ease;
}

body {
    background: var(--page-background);
}

h1,
h2,
h3 {
    color: var(--heading);
}

#welcome p,
.welcome-description {
    color: var(--welcome-text);
}

footer {
    background: var(--surface-muted);
}

#suggestion-form label {
    color: var(--heading);
}

#suggestion-form select,
#suggestion-form textarea {
    background: var(--field-background);
    color: var(--text);
    border-color: var(--field-border);
}

.dashboard-card {
    background: var(--card-background);
    color: var(--text);
    border-color: var(--card-border);
}

.dashboard-card-description,
.news-intro {
    color: var(--text-muted);
}

.dashboard-card-link {
    color: var(--blue);
}

html[data-theme="dark"] #welcome {
    background: #14223a;
    border-color: #2b4164;
}

html[data-theme="dark"] #welcome p {
    color: #c1cde0;
}

html[data-theme="dark"] .dashboard-icon {
    background: #203555;
}

html[data-theme="dark"] .ideas-action .dashboard-icon {
    background: #183b32;
}

html[data-theme="dark"] .updates-action .dashboard-icon {
    background: #41321d;
}

html[data-theme="dark"] .reaction-button {
    background: #1a263a;
    color: #e2e8f0;
    border-color: #35445c;
}

html[data-theme="dark"] .reaction-button:hover:not(:disabled) {
    background: #263957;
    border-color: #7298db;
}

html[data-theme="dark"] .reaction-button.is-selected {
    background: #233e68;
    color: #c7dcff;
    border-color: #7ba7ff;
}

html[data-theme="dark"] .reaction-heading {
    color: var(--text-muted);
}

/* Toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition:
        background-color 250ms ease,
        border-color 250ms ease,
        transform 200ms ease,
        box-shadow 250ms ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.theme-toggle-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 62px;
    height: 32px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle-icon {
    z-index: 1;
    font-size: 13px;
    line-height: 1;
    transition: opacity 250ms ease;
}

.moon-icon {
    opacity: 0.55;
}

.theme-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition:
        transform 350ms cubic-bezier(.2, .8, .2, 1.2),
        background-color 250ms ease;
}

html[data-theme="dark"] .theme-toggle {
    background: #182338;
    border-color: #35445c;
}

html[data-theme="dark"] .theme-toggle-track {
    background: #344565;
}

html[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(30px);
    background: #dbeafe;
}

html[data-theme="dark"] .sun-icon {
    opacity: 0.55;
}

html[data-theme="dark"] .moon-icon {
    opacity: 1;
}

@media (max-width: 600px) {
    .theme-toggle {
        padding: 7px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    header,
    nav,
    main,
    section,
    footer,
    #news article,
    .dashboard-card,
    #suggestion-form,
    #suggestion-form select,
    #suggestion-form textarea,
    .reaction-button,
    .theme-toggle,
    .theme-toggle-knob,
    .theme-toggle-icon {
        transition: none !important;
    }
}


/* Standalone sliding theme switch */
.theme-toggle {
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 999px;
    line-height: 0;
}

.theme-toggle:hover {
    transform: scale(1.06);
    box-shadow: none;
}

.theme-toggle:active {
    transform: scale(0.94);
}

.theme-toggle-track {
    width: 70px;
    height: 38px;
    padding: 0 7px;
    background: #cbdcf8;
    border: 2px solid #a9c2ed;
    transition: background-color 300ms ease, border-color 300ms ease;
}

.theme-toggle-knob {
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    transition: transform 350ms cubic-bezier(.2, .8, .2, 1.3),
                background-color 250ms ease;
}

html[data-theme="dark"] .theme-toggle-track {
    background: #263957;
    border-color: #526b91;
}

html[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(32px);
}


/* =========================================
   STUDENT POLLS
   ========================================= */

.polls-section {
    margin: 48px 0;
    padding: 28px;
    border: 1px solid var(--border-color, #d8d8d8);
    border-radius: 20px;
    background: var(--card-background, transparent);
}

.polls-eyebrow {
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.7;
}

.polls-section > h2 {
    margin-top: 0;
}

.polls-intro {
    margin-bottom: 24px;
    opacity: 0.8;
}

#polls-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.poll-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border-color, #d8d8d8);
    border-radius: 16px;
    background: var(--card-background, transparent);
}

.poll-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.poll-question {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.2rem;
}

.poll-description {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.75;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--border-color, #d8d8d8);
    border-radius: 10px;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.poll-option:hover {
    border-color: #668cff;
    transform: translateY(-1px);
}

.poll-option input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #668cff;
    cursor: pointer;
}

.poll-option input:disabled {
    cursor: not-allowed;
}

.poll-option-text {
    min-width: 0;
}

.poll-submit-button {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 10px;
    background: #466cff;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.poll-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.poll-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.poll-feedback {
    min-height: 1.4em;
    margin: 0;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .polls-section {
        margin: 28px 0;
        padding: 18px;
    }

    .poll-card {
        padding: 16px;
    }
}


/* =========================================
   THE STUDENT VOICE — POLL INTERACTIONS
   ========================================= */

.poll-card {
    overflow: hidden;
}

.poll-option {
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.poll-option:hover {
    transform: translateY(-1px);
}

.poll-option.is-selected {
    border-color: var(--accent-color, #2563eb);
    background: var(--selected-option-bg, rgba(37, 99, 235, 0.09));
    box-shadow: inset 0 0 0 1px var(--accent-color, #2563eb);
}

.poll-option input {
    accent-color: var(--accent-color, #2563eb);
}

.poll-countdown {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color, #2563eb);
}

.poll-countdown.is-ending-soon {
    color: #b45309;
}

.poll-countdown.is-expired {
    color: #b91c1c;
}

.poll-countdown.is-no-deadline {
    color: var(--muted-color, #777);
    font-weight: 500;
}

.poll-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.poll-results {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #d8d8d8);
    animation: poll-results-enter 350ms ease both;
}

.poll-results[hidden] {
    display: none;
}

.poll-results-heading {
    margin: 0 0 0.5rem;
}

.poll-results-total,
.poll-results-note {
    color: var(--muted-color, #777);
    font-size: 0.85rem;
}

.poll-result-row {
    margin: 1rem 0;
}

.poll-result-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.poll-result-option {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.poll-result-value {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.poll-result-track {
    width: 100%;
    height: 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-color, #d8d8d8);
}

.poll-result-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--accent-color, #2563eb);
    transition: width 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.poll-results-note {
    line-height: 1.5;
}

@keyframes poll-results-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .poll-option,
    .poll-result-fill,
    .poll-results {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .poll-result-topline {
        gap: 0.5rem;
    }

    .poll-result-value {
        font-size: 0.8rem;
    }
}
