:root {
    --brand-navy: #233A89;
    --brand-navy-dark: #1A2C68;
    --accent-green: #36A466;
    --text-primary: #333333;
    --text-secondary: #5A5A5A;
    --muted: #A3A8B9;
    --bg-light: #F7F7F7;
    --bg-blue: #DFE8FF;
    --bg-soft: #FFFFFF;
    --surface: #FFFFFF;
    --rare-accent: #FF7253;
    --border: rgba(35, 58, 137, 0.12);
    --shadow-soft: 0 12px 30px rgba(26, 44, 104, 0.08);
    --shadow-subtle: 0 6px 18px rgba(35, 58, 137, 0.06);
    --radius-card: 18px;
    --radius-input: 14px;
    --radius-pill: 999px;
    --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

a {
    color: var(--brand-navy);
    text-decoration: none;
}

a:hover { color: var(--brand-navy-dark); }
img { max-width: 100%; }

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.narrow {
    width: min(calc(100% - 32px), 860px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(35, 58, 137, 0.08);
    box-shadow: 0 8px 24px rgba(26, 44, 104, 0.05);
}

.header-inner,
.footer-inner,
.hero-grid,
.panel-summary,
.status-row,
.form-grid,
.idea-meta-grid,
.admin-actions-grid {
    display: grid;
    gap: 20px;
}

.header-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
}
.brand strong {
    display: block;
    font-size: 1rem;
    color: var(--brand-navy-dark);
}
.brand small {
    display: block;
    color: var(--text-secondary);
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
}
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-navy), var(--accent-green));
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    box-shadow: var(--shadow-subtle);
}

.top-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.top-nav a {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--brand-navy-dark);
}
.top-nav a:hover { background: var(--bg-blue); }
.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(35, 58, 137, 0.12);
    border-radius: 14px;
    background: #fff;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-navy-dark);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.hero { padding: 64px 0 24px; }
.hero--soft {
    background: linear-gradient(135deg, rgba(223, 232, 255, 0.7) 0%, rgba(245, 248, 255, 0.95) 50%, rgba(255,255,255,1) 100%);
}
.hero--compact { padding-bottom: 10px; }
.hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    align-items: center;
}
.hero-grid--single { grid-template-columns: 1fr; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: rgba(54, 164, 102, 0.12);
    color: var(--accent-green);
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--brand-navy-dark);
    line-height: 1.15;
    margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

.lead {
    font-size: clamp(1rem, 2vw, 1.16rem);
    color: var(--text-secondary);
    max-width: 760px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.pill {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    color: var(--brand-navy-dark);
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    box-shadow: var(--shadow-subtle);
}

.info-card,
.card,
.summary-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.7);
}

.info-card {
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.info-card ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.section { padding: 28px 0 72px; }
.section--alt {
    background: linear-gradient(180deg, rgba(54, 164, 102, 0.06) 0%, rgba(245, 248, 255, 0.9) 100%);
}

.card { padding: 32px; }
.card--form { padding: 36px; }
.card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.card-header--stacked,
.card-header--stacked-mobile { align-items: center; }

.published-date {
    color: var(--text-secondary);
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 14px;
}

.idea-form,
.status-form,
.filters-form,
.delete-form,
.winner-form {
    display: grid;
    gap: 18px;
}

.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--filters { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }

.field {
    display: grid;
    gap: 8px;
}

label,
.meta-label {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-navy-dark);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-primary);
    border-radius: var(--radius-input);
    padding: 14px 16px;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(35, 58, 137, 0.45);
    box-shadow: 0 0 0 4px rgba(35, 58, 137, 0.08);
}

textarea {
    resize: vertical;
    min-height: 180px;
}

.form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-dark));
    color: #fff;
    box-shadow: 0 10px 24px rgba(35, 58, 137, 0.22);
}
.btn--primary:hover { box-shadow: 0 14px 28px rgba(35, 58, 137, 0.28); }
.btn--ghost {
    background: #fff;
    color: var(--brand-navy-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
}
.btn--danger {
    background: rgba(255, 114, 83, 0.12);
    color: #a44731;
    border: 1px solid rgba(255, 114, 83, 0.22);
    box-shadow: none;
}

.form-note,
.meta-date,
.idea-desc,
.site-footer p,
.footer-note,
.summary-card span,
.empty-state p,
.vote-score span,
.vote-score-inline span,
.vote-score small {
    color: var(--text-secondary);
}
.error {
    color: #c14f37;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
}

.alert {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
}
.alert--success {
    background: rgba(54, 164, 102, 0.12);
    color: #21613d;
    border: 1px solid rgba(54, 164, 102, 0.18);
}
.alert--danger {
    background: rgba(255, 114, 83, 0.12);
    color: #a44731;
    border: 1px solid rgba(255, 114, 83, 0.18);
}

.panel-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
}
.panel-summary--triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-card { padding: 24px; }
.summary-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    color: var(--brand-navy-dark);
}
.summary-card--accent {
    background: linear-gradient(135deg, rgba(223, 232, 255, 0.85), rgba(54, 164, 102, 0.1));
}

.filters-card,
.login-card,
.voting-control-card { margin-bottom: 24px; }
.narrow-panel {
    width: min(100%, 620px);
    margin: 0 auto;
}

.status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--brand-navy-dark);
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.voting-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.voting-toggle-badge {
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
}
.voting-toggle-badge.is-on {
    background: rgba(54, 164, 102, 0.12);
    color: #21613d;
}
.voting-toggle-badge.is-off {
    background: rgba(163, 168, 185, 0.16);
    color: #67708b;
}

.ideas-list,
.vote-list {
    display: grid;
    gap: 22px;
}
.idea-card,
.vote-card { padding: 28px; }
.idea-card__body {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(35, 58, 137, 0.08);
}
.meta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 8px 12px;
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    font-weight: 700;
}
.badge--success { background: rgba(54, 164, 102, 0.12); color: #21613d; }
.badge--info { background: rgba(35, 58, 137, 0.12); color: var(--brand-navy-dark); }
.badge--primary { background: rgba(223, 232, 255, 1); color: var(--brand-navy-dark); }
.badge--danger { background: rgba(255, 114, 83, 0.12); color: #aa4f3a; }
.badge--muted { background: rgba(163, 168, 185, 0.16); color: #67708b; }
.badge--warning { background: rgba(255, 209, 102, 0.18); color: #8d6b11; }
.badge--voting { background: rgba(54, 164, 102, 0.14); color: #21613d; }
.badge--winner { background: rgba(255, 114, 83, 0.12); color: #b6543d; }

.idea-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}
.idea-meta-grid strong {
    display: block;
    margin-top: 6px;
}

.admin-actions-grid {
    grid-template-columns: 1.3fr 1fr 0.8fr;
    align-items: start;
}
.action-box {
    padding: 18px;
    border-radius: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.action-box--compact { gap: 14px; }
.status-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
.delete-row,
.vote-score-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.delete-row--compact { margin-top: 6px; }
.vote-score-inline strong {
    font-size: 1.5rem;
    color: var(--brand-navy-dark);
}

.empty-state {
    text-align: center;
    padding: 48px 32px;
}
.vote-empty { padding: 56px 38px; }

.vote-wrap { max-width: 1440px; }
.vote-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 24px;
    align-items: center;
}
.vote-box {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 20px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(223, 232, 255, 0.78), rgba(245, 248, 255, 0.98));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.vote-button-form { margin: 0; }
.vote-button {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-dark));
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(35, 58, 137, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease, color .18s ease;
}
.vote-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(35, 58, 137, 0.24);
}
.vote-button:disabled {
    cursor: not-allowed;
}
.vote-button--down {
    background: #fff;
    color: var(--brand-navy-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
}
.vote-button.is-active {
    background: linear-gradient(135deg, var(--accent-green), #2d8d56);
    color: #fff;
}
.vote-button.is-disabled {
    opacity: 0.52;
    box-shadow: none;
    transform: none;
}
.vote-score {
    width: 100%;
    text-align: center;
    padding: 14px 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(35, 58, 137, 0.1);
    box-shadow: 0 8px 22px rgba(35, 58, 137, 0.06);
}
.vote-score strong {
    display: block;
    font-size: 2.2rem;
    color: var(--brand-navy-dark);
    line-height: 1.05;
    margin-top: 8px;
}
.vote-score small {
    display: block;
    margin-top: 8px;
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    font-weight: 700;
}
.vote-score-inline--panel {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(35, 58, 137, 0.08);
}
.vote-score-inline--panel strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(223,232,255,0.9), rgba(245,248,255,1));
    border: 1px solid rgba(35,58,137,0.1);
}

.pagination {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
}
.pagination__arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    color: var(--brand-navy-dark);
}
.pagination__arrow.is-disabled {
    pointer-events: none;
    color: var(--muted);
}
.pagination__info {
    color: var(--text-secondary);
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
}

.site-footer {
    background: linear-gradient(135deg, var(--brand-navy-dark), var(--brand-navy));
    color: #fff;
    margin-top: 32px;
}
.footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 28px 0;
}
.site-footer p,
.footer-note { color: rgba(255,255,255,0.8); }

@media (max-width: 980px) {
    .admin-actions-grid,
    .vote-card {
        grid-template-columns: 1fr;
    }

    .vote-box {
        grid-auto-flow: column;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .form-grid,
    .panel-summary,
    .idea-meta-grid,
    .footer-inner,
    .status-row,
    .form-grid--filters {
        grid-template-columns: 1fr;
    }

    .header-inner {
        grid-template-columns: auto auto;
        align-items: center;
        justify-content: space-between;
    }

    .card-header {
        flex-direction: column;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .top-nav {
        display: none;
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(35, 58, 137, 0.08);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        grid-column: 1 / -1;
    }

    .top-nav.is-open {
        display: flex;
    }

    .top-nav a,
    .top-nav__cta {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .hero { padding-top: 40px; }
    .card,
    .card--form,
    .info-card,
    .summary-card,
    .idea-card,
    .vote-card { padding: 22px; }
    .btn,
    .vote-button { width: 100%; }
    .form-actions,
    .voting-control-row,
    .delete-row,
    .vote-score-inline,
    .pagination {
        flex-direction: column;
        align-items: stretch;
    }
    .vote-box {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }
}


body.embed-page {
    background: #fff;
}

.embed-main {
    min-height: auto;
}

.section--plain,
.embed-page .section,
.embed-page .section--alt {
    background: #fff;
}

.embed-section {
    padding: 24px 0 28px;
}

.card--embed {
    padding: 36px;
    box-shadow: 0 10px 30px rgba(26, 44, 104, 0.06);
    border: 1px solid rgba(35, 58, 137, 0.1);
}

.card-header--embed {
    align-items: flex-start;
    margin-bottom: 30px;
}

.lead--compact {
    margin: 0;
    max-width: 720px;
}

.embed-intro {
    margin-bottom: 24px;
}

.embed-intro--vote {
    padding: 6px 2px 4px;
}

.embed-page .vote-wrap {
    max-width: 1440px;
}

.embed-page .vote-card {
    border: 1px solid rgba(35, 58, 137, 0.1);
    box-shadow: 0 10px 30px rgba(26, 44, 104, 0.06);
}

@media (max-width: 900px) {
    .card-header--embed {
        flex-direction: column;
    }
}


.badge--planned { background: rgba(35, 58, 137, 0.08); color: var(--brand-navy-dark); }

.roadmap-embed {
    width: min(calc(100% - 8px), 1440px);
}

.embed-intro--roadmap {
    padding: 6px 2px 10px;
}

.roadmap-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.roadmap-column {
    min-height: 100%;
    border: 1px solid rgba(35, 58, 137, 0.1);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 28px rgba(26, 44, 104, 0.05);
    overflow: hidden;
}

.roadmap-column__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(35, 58, 137, 0.08);
    background: rgba(245, 248, 255, 0.72);
}

.roadmap-column__header strong {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
}

.roadmap-column__body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.roadmap-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(35, 58, 137, 0.08);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(26, 44, 104, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.roadmap-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(26, 44, 104, 0.09);
    border-color: rgba(35, 58, 137, 0.16);
}

.roadmap-item__title {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-navy-dark);
    font-weight: 700;
    font-size: 1rem;
}

.roadmap-item__desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.roadmap-empty {
    padding: 18px 16px;
    border-radius: 16px;
    background: rgba(245, 248, 255, 0.9);
    border: 1px dashed rgba(35, 58, 137, 0.12);
    color: var(--text-secondary);
    text-align: center;
}

.roadmap-modal[hidden] {
    display: none;
}

.roadmap-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.roadmap-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.45);
    backdrop-filter: blur(3px);
}

.roadmap-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), 760px);
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(16, 24, 40, 0.22);
    border: 1px solid rgba(35, 58, 137, 0.08);
}

.roadmap-modal__content {
    padding: 30px;
}

.roadmap-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(35, 58, 137, 0.08);
    background: #fff;
    color: var(--brand-navy-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.roadmap-modal__description {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
}

.roadmap-modal__stats {
    margin-top: 24px;
}

.modal-stat {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(223, 232, 255, 0.72), rgba(245, 248, 255, 0.98));
    border: 1px solid rgba(35, 58, 137, 0.1);
}

.modal-stat span {
    display: block;
    color: var(--text-secondary);
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.modal-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    color: var(--brand-navy-dark);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .roadmap-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .roadmap-board {
        grid-template-columns: 1fr;
    }

    .roadmap-modal__dialog {
        width: min(calc(100% - 20px), 760px);
        margin-top: 16px;
    }

    .roadmap-modal__content {
        padding: 24px 20px;
    }
}


body.embed-page {
    background: #fff;
}

.roadmap-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
}

.roadmap-column__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -4px;
}

.roadmap-page-indicator {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.roadmap-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(35, 58, 137, 0.12);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-navy-dark);
    box-shadow: var(--shadow-subtle);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.roadmap-nav:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.roadmap-nav:disabled {
    cursor: default;
    opacity: 0.45;
    box-shadow: none;
}

.roadmap-column__body {
    flex: 1;
}

.roadmap-page {
    display: none;
    grid-template-columns: 1fr;
    gap: 14px;
}

.roadmap-page.is-active {
    display: grid;
}

.roadmap-item {
    width: 100%;
    text-align: left;
    padding: 18px 18px 16px;
    border: 1px solid rgba(35, 58, 137, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    appearance: none;
}

.roadmap-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(35, 58, 137, 0.18);
}

.roadmap-item__title {
    display: block;
    margin: 0 0 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--brand-navy-dark);
}

.roadmap-item__desc {
    display: block;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .roadmap-column__controls {
        justify-content: flex-start;
    }
}


.roadmap-column__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px 18px;
    margin-top: 0;
}

.roadmap-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(35, 58, 137, 0.12);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-navy-dark);
    box-shadow: var(--shadow-subtle);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.roadmap-item__title {
    display: block;
    margin: 0 0 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.02rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--brand-navy-dark);
}

.roadmap-item__desc {
    display: -webkit-box;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--text-secondary);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-actions-grid {
    align-items: start;
}

.action-box--wide {
    grid-column: 1 / -1;
}

.field--admin-inline {
    margin-bottom: 14px;
}

.field--admin-inline .meta-label {
    display: inline-block;
    margin-bottom: 8px;
}

.edit-idea-form textarea,
.edit-idea-form input[type="text"] {
    width: 100%;
}

.form-actions--inline-end {
    justify-content: flex-end;
}


/* Admin panel compact action layout */
.admin-actions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.action-box {
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(35, 58, 137, 0.08);
    box-shadow: 0 10px 28px rgba(35, 58, 137, 0.05);
}

.action-box label {
    display: block;
    margin-bottom: 12px;
    font-family: 'Mulish', sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--brand-navy-dark);
}

.action-box--wide {
    grid-column: 1;
    align-self: stretch;
}

.edit-idea-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field--admin-inline {
    margin-bottom: 0;
}

.field--admin-inline .meta-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.edit-idea-form input[type="text"],
.edit-idea-form textarea,
.status-form select {
    background: #fff;
    border: 1px solid rgba(35, 58, 137, 0.14);
    box-shadow: inset 0 1px 2px rgba(35, 58, 137, 0.04);
}

.edit-idea-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-actions--inline-end {
    justify-content: flex-start;
    margin-top: 2px;
}

.status-form,
.winner-form,
.delete-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.delete-row,
.vote-score-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vote-score-inline--panel {
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(245,248,255,0.95), rgba(255,255,255,1));
    border: 1px solid rgba(35, 58, 137, 0.08);
}

.vote-score-inline--panel .meta-label {
    margin: 0;
    font-size: 0.78rem;
}

.vote-score-inline--panel strong {
    min-width: 54px;
    padding: 8px 12px;
    font-size: 1.3rem;
}

.action-box--compact {
    gap: 12px;
}

.action-box--compact .btn {
    width: 100%;
}

.winner-form .btn--ghost,
.delete-form .btn--danger {
    min-height: 46px;
    border-radius: 14px;
}

.delete-form .btn--danger {
    background: rgba(255, 114, 83, 0.08);
    color: #bf563d;
    border: 1px solid rgba(255, 114, 83, 0.22);
    box-shadow: none;
}

.delete-form .btn--danger:hover {
    background: rgba(255, 114, 83, 0.14);
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .admin-actions-grid {
        grid-template-columns: 1fr;
    }

    .action-box--wide {
        grid-column: auto;
    }
}


/* Admin sidebar compact stacking */
.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-box--wide {
    grid-column: 1;
    min-width: 0;
}

.admin-sidebar .action-box {
    width: 100%;
}

@media (min-width: 981px) {
    .admin-actions-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
        align-items: start;
    }

    .admin-sidebar {
        grid-column: 2;
        align-self: start;
    }
}

@media (max-width: 980px) {
    .admin-sidebar {
        gap: 14px;
    }
}


/* Meeting update: simplified statuses and refined voting cards */
.roadmap-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vote-card {
    align-items: start;
    gap: 18px;
}

.vote-card__content {
    align-self: start;
}

.vote-card__title {
    margin: 10px 0 8px;
    color: var(--brand-navy-dark);
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: left;
}

.vote-card__desc,
.vote-card .idea-desc {
    margin: 0;
    text-align: left;
    align-self: start;
}

.vote-box {
    width: 180px;
    min-width: 180px;
    align-self: start;
    justify-self: end;
    gap: 10px;
}

.vote-button {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(35, 58, 137, 0.14);
}

.vote-score {
    padding: 12px 10px;
    border-radius: 16px;
}

.vote-score span {
    font-size: 11px;
    line-height: 1.35;
}

.vote-score strong {
    margin-top: 6px;
    font-size: 1.7rem;
}

.vote-score small {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 1200px) {
    .roadmap-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .vote-card {
        grid-template-columns: 1fr;
    }

    .vote-box {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        grid-auto-flow: column;
        grid-template-columns: auto 1fr auto;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .vote-box {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }

    .vote-button {
        width: 100%;
    }
}

/* Voting login modal and vote review */
.alert--error {
    background: rgba(255, 114, 83, 0.10);
    border: 1px solid rgba(255, 114, 83, 0.22);
    color: #9a4a39;
}

.vote-card {
    align-items: start;
}

.vote-card__content {
    align-self: start;
}

.vote-card__title,
.vote-card__desc {
    align-self: start;
}

.vote-box {
    align-self: start;
}

.vote-button {
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.vote-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.vote-modal[hidden] {
    display: none;
}

.vote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 31, 75, 0.45);
    backdrop-filter: blur(2px);
}

.vote-modal__dialog {
    position: relative;
    width: min(520px, calc(100% - 32px));
    margin: 8vh auto 0;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 29, 73, 0.20);
    z-index: 1;
}

.vote-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(35, 58, 137, 0.08);
    color: var(--brand-navy-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.vote-modal__idea {
    margin: 8px 0 6px;
    font-size: 1.08rem;
    line-height: 1.45;
    font-weight: 700;
    color: var(--brand-navy-dark);
}

.vote-modal__hint {
    margin: 0 0 18px;
    color: var(--text-secondary);
}

.vote-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-modal__actions {
    justify-content: flex-end;
}

body.modal-open {
    overflow: hidden;
}

.votes-review-card {
    margin-top: 34px;
}

.votes-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(223, 232, 255, 0.9);
    color: var(--brand-navy-dark);
    font-family: 'Mulish', sans-serif;
    font-weight: 800;
}

.filters-form--votes {
    margin-top: 16px;
}

.votes-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
}

.votes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.votes-table th,
.votes-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(35, 58, 137, 0.08);
}

.votes-table th {
    font-family: 'Mulish', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-secondary);
    background: rgba(245, 248, 255, 0.92);
}

.votes-table__idea {
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--brand-navy-dark);
}

.vote-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 38px;
    border-radius: 999px;
    font-family: 'Mulish', sans-serif;
    font-weight: 800;
}

.vote-direction.is-up {
    background: rgba(54, 164, 102, 0.12);
    color: #22784a;
}

.vote-direction.is-down {
    background: rgba(255, 114, 83, 0.12);
    color: #b95741;
}

.btn--small {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.empty-state--embedded {
    margin-top: 16px;
}

@media (max-width: 640px) {
    .vote-modal__dialog {
        padding: 22px 18px;
        margin-top: 4vh;
    }

    .vote-modal__actions {
        flex-direction: column-reverse;
    }

    .vote-modal__actions .btn {
        width: 100%;
    }
}


/* Admin vote control modals */
.admin-votes-modal__dialog {
    width: min(940px, calc(100% - 32px));
    max-height: 84vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.votes-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.votes-table-wrap--modal {
    margin-top: 0;
    overflow: auto;
    max-height: 56vh;
    padding-right: 4px;
}

.votes-table--compact {
    min-width: 640px;
}

.votes-table--compact th,
.votes-table--compact td {
    padding: 12px 14px;
}

@media (max-width: 720px) {
    .admin-votes-modal__dialog {
        width: min(100% - 20px, 940px);
        padding: 22px;
    }

    .votes-summary-row {
        align-items: flex-start;
    }
}


/* Updates */
.updates-embed {
    width: min(calc(100% - 8px), 1440px);
}

.embed-intro--updates {
    padding: 6px 2px 10px;
}

.updates-list {
    display: grid;
    gap: 20px;
}

.update-card__content {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.65fr);
    gap: 22px;
    align-items: start;
}

.update-card__main h2 {
    margin-bottom: 18px;
}

.update-richtext {
    color: var(--text-primary);
    font-size: 1.03rem;
}

.update-richtext > *:first-child {
    margin-top: 0;
}

.update-richtext p,
.update-richtext ul,
.update-richtext ol,
.update-richtext blockquote,
.update-richtext h3 {
    margin: 0 0 16px;
}

.update-richtext ul,
.update-richtext ol {
    padding-left: 22px;
}

.update-richtext strong,
.update-richtext b {
    color: var(--brand-navy-dark);
}

.update-richtext a {
    color: var(--brand-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.update-richtext blockquote {
    padding: 14px 18px;
    border-left: 4px solid rgba(54, 164, 102, 0.8);
    background: rgba(245, 248, 255, 0.9);
    border-radius: 0 14px 14px 0;
    color: var(--text-secondary);
}

.update-card__meta {
    padding: 24px;
    display: grid;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: 20px;
}

.update-meta-block {
    display: grid;
    gap: 6px;
}

.update-meta-block span {
    color: var(--text-secondary);
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.update-meta-block strong {
    font-size: 1.15rem;
    color: var(--brand-navy-dark);
}

.admin-updates-layout {
    display: grid;
    gap: 18px;
}

.admin-updates-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-updates-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.admin-update-list,
.admin-update-editor {
    height: 100%;
}

.admin-update-items {
    display: grid;
    gap: 14px;
}

.admin-update-item {
    padding: 18px;
    border: 1px solid rgba(35, 58, 137, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.admin-update-item__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.admin-update-item__head h3 {
    margin: 0 0 8px;
    font-size: 1.06rem;
}

.admin-update-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.admin-update-excerpt {
    margin: 12px 0 0;
    color: var(--text-secondary);
}

.admin-update-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-update-actions form {
    margin: 0;
}

@media (max-width: 980px) {
    .update-card__content,
    .admin-updates-grid {
        grid-template-columns: 1fr;
    }

    .update-card__meta {
        position: static;
    }
}


.brand {
    min-width: 0;
}

.brand-logo {
    display: block;
    width: clamp(180px, 20vw, 200px);
    height: auto;
}

.top-nav {
    justify-content: flex-end;
    align-items: center;
}

.top-nav a {
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.top-nav a.is-active {
    background: var(--bg-blue);
    color: var(--brand-navy);
    box-shadow: inset 0 0 0 1px rgba(35, 58, 137, 0.08);
}

.top-nav__cta {
    background: var(--brand-navy);
    color: #fff !important;
    box-shadow: var(--shadow-subtle);
}

.top-nav__cta:hover {
    background: var(--brand-navy-dark);
}

.site-footer {
    margin-top: 56px;
    background: var(--brand-navy-dark);
    color: rgba(255,255,255,0.92);
}

.footer-inner {
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
    padding: 28px 0;
}

.footer-brand p {
    margin: 12px 0 0;
    color: rgba(255,255,255,0.8);
}

.footer-logo {
    width: clamp(170px, 18vw, 240px);
    display: block;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-nav a {
    color: rgba(255,255,255,0.9);
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
}

.footer-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.footer-home-link {
    background: rgba(255,255,255,0.12);
}

.field--checkbox {
    gap: 10px;
}

.checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-navy);
    flex: 0 0 18px;
}

.checkbox-label a {
    font-weight: 700;
}

.embed-intro, .updates-embed, .roadmap-embed, .vote-wrap {
    padding-top: 18px;
}

@media (max-width: 980px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}


.recaptcha-wrap {
    margin-top: 0.25rem;
}

.recaptcha-wrap .g-recaptcha {
    display: inline-block;
}

@media (max-width: 520px) {
    .recaptcha-wrap .g-recaptcha {
        transform: scale(0.92);
        transform-origin: left top;
    }
}
