/* =========================================================
   CANADIAN ACCOUNTABILITY
   Main Website Stylesheet
   ========================================================= */


/* =========================================================
   1. FONTS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================================================
   2. COLOUR VARIABLES
   ========================================================= */

:root {
    --navy: #14283d;
    --navy2: #1d3852;
    --red: #c83e45;
    --ink: #172433;
    --muted: #647386;
    --line: #e3e9ef;
    --paper: #f5f7fa;
    --white: #fff;
    --green: #247a60;

    --shadow: 0 14px 35px rgba(20, 40, 61, .08);
}


/* =========================================================
   3. GLOBAL STYLES
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: Manrope, Arial, sans-serif;
    line-height: 1.18;
    margin: 0 0 .7rem;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4.3rem);
    letter-spacing: -.045em;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -.03em;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: .4rem 0 1rem;
    color: #526174;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
   4. HEADER AND NAVIGATION
   ========================================================= */

.site-header {
    height: 82px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    letter-spacing: .07em;
    font-size: .78rem;
    line-height: 1.15;
}

.brand strong,
.brand b {
    display: block;
}

.brand b {
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    color: #526174;
    text-decoration: none;
    font-size: .92rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--red);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--navy);
}


/* =========================================================
   5. HOMEPAGE HERO
   ========================================================= */

.hero {
    background: linear-gradient(
        120deg,
        #14283d 0%,
        #1d3b57 70%,
        #244b68 100%
    );

    color: #fff;
    padding: 88px 0 82px;
    overflow: hidden;
    position: relative;
}

.hero:after {
    content: "";
    position: absolute;
    width: 530px;
    height: 530px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    right: -110px;
    top: -180px;

    box-shadow:
        0 0 0 55px rgba(255, 255, 255, .025),
        0 0 0 110px rgba(255, 255, 255, .02);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .72rem;
    font-weight: 700;
    color: #d9e5ef;
    margin-bottom: 20px;
}

.eyebrow:before {
    content: "";
    width: 24px;
    height: 2px;
    background: #e45b60;
}

.hero h1 {
    color: #fff;
    max-width: 760px;
}

.hero p {
    color: #d4e0eb;
    font-size: 1.12rem;
    max-width: 680px;
    margin: 22px 0 30px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* =========================================================
   6. BUTTONS AND LINKS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 19px;
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--red);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.btn:hover {
    filter: brightness(.95);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.btn-dark {
    background: var(--navy);
    border-color: var(--navy);
}

.btn-small {
    padding: 8px 13px;
    font-size: .88rem;
}

.text-link {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}


/* =========================================================
   7. GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 66px 0;
}

.section-soft {
    background: var(--paper);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}

.section-head p {
    max-width: 620px;
    margin: 0;
}


/* =========================================================
   8. CONTENT GRIDS
   ========================================================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


/* =========================================================
   9. CARDS
   ========================================================= */

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(20, 40, 61, .035);
}

.card-body {
    padding: 22px;
}

.card p {
    font-size: .94rem;
}

.card-image {
    height: 175px;
    background: linear-gradient(135deg, #dce5ed, #aebfce);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #456078;
    font-size: 2.5rem;
}

.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--red);
}


/* =========================================================
   10. TAGS AND LABELS
   ========================================================= */

.tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 4px;
    background: #eaf0f5;
    color: #38536b;
    text-transform: uppercase;
    font-size: .68rem;
    letter-spacing: .08em;
    font-weight: 800;
    margin-bottom: 12px;
}

.tag-red {
    background: #fbecee;
    color: #a62d36;
}

.tag-green {
    background: #e8f3ee;
    color: #236c54;
}


/* =========================================================
   11. METADATA
   ========================================================= */

.meta {
    font-size: .8rem;
    color: #7b8795;
}

.small {
    font-size: .82rem;
    color: var(--muted);
}


/* =========================================================
   12. FEATURE BAND
   ========================================================= */

.feature-band {
    background: #edf2f6;
    padding: 35px;
    border-radius: 14px;

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}

.feature-band h2 {
    font-size: 1.8rem;
}


/* =========================================================
   13. STATISTICS
   ========================================================= */

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    background: #fff;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.stat strong {
    display: block;
    color: var(--navy);
    font-size: 1.5rem;
    font-family: Manrope;
}

.stat span {
    font-size: .8rem;
    color: var(--muted);
}


/* =========================================================
   14. PAGE HEADERS
   ========================================================= */

.page-hero {
    background: var(--paper);
    padding: 55px 0;
}

.page-hero p {
    max-width: 720px;
    font-size: 1.05rem;
}


/* =========================================================
   15. MAIN CONTENT AREA
   ========================================================= */

.content {
    padding: 45px 0 75px;
}


/* =========================================================
   16. LISTS AND LIST CARDS
   ========================================================= */

.list-stack {
    display: grid;
    gap: 15px;
}

.list-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.list-card h3 {
    margin-bottom: 6px;
}

.list-card p {
    margin: 0;
}

.list-card .right {
    white-space: nowrap;
}


/* =========================================================
   17. FORMS
   ========================================================= */

.form-card {
    max-width: 700px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    margin: 15px 0 6px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #ccd6df;
    border-radius: 7px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

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


/* =========================================================
   18. NOTICES AND MESSAGES
   ========================================================= */

.notice {
    padding: 13px 16px;
    border-radius: 8px;
    background: #edf4f8;
    border-left: 4px solid #537a99;
    margin: 15px 0;
}

.notice.error {
    background: #fff0f0;
    border-color: #c83e45;
}

.notice.success {
    background: #edf7f1;
    border-color: #27845d;
}

.empty {
    padding: 28px;
    border: 1px dashed #cbd5df;
    border-radius: 10px;
    color: var(--muted);
    background: #fafbfd;
}


/* =========================================================
   19. ARTICLE PAGES
   ========================================================= */

.article {
    max-width: 820px;
}

.article h2 {
    margin-top: 30px;
}

.article-body {
    font-size: 1.03rem;
    line-height: 1.8;
}

.article-body a {
    color: var(--red);
}


/* =========================================================
   20. ADMINISTRATION
   ========================================================= */

.admin-shell {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.admin-nav a {
    padding: 9px 12px;
    background: #edf2f6;
    border-radius: 6px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
}


/* =========================================================
   21. FOOTER
   ========================================================= */

.site-footer {
    background: #102235;
    color: #d9e3eb;
    padding: 48px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 35px;
}

.brand-light {
    color: #fff;
}

.brand-light .brand-mark {
    background: #fff;
    color: var(--navy);
}

.site-footer p {
    color: #aebdca;
}

.site-footer a:not(.brand) {
    display: block;
    color: #c5d1dc;
    text-decoration: none;
    margin: 7px 0;
    font-size: .9rem;
}

.site-footer strong {
    display: block;
    margin-bottom: 12px;
    color: #fff;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .13);
    margin-top: 35px;
    padding-top: 18px;
    color: #91a2b1;
    font-size: .8rem;
}


/* =========================================================
   22. TABLET RESPONSIVE STYLES
   ========================================================= */

@media (max-width: 850px) {

    .main-nav {
        display: none;
        position: absolute;
        top: 81px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 18px 25px;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-open .main-nav {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-band {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   23. MOBILE RESPONSIVE STYLES
   ========================================================= */

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1160px);
    }

    .hero {
        padding: 65px 0;
    }

    .section {
        padding: 48px 0;
    }

    .grid-3,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .section-head .text-link {
        display: inline-block;
        margin-top: 12px;
    }

    .list-card {
        display: block;
    }

    .list-card .right {
        margin-top: 15px;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .site-header {
        height: 72px;
    }

    .main-nav {
        top: 71px;
    }
}


/* =========================================================
   24. FINAL SECTION OVERRIDES
   These intentionally override the earlier .section rules.
   ========================================================= */

.section {
    background-color: #F5F7FA;
    width: 100%;
    outline-width: 40px;
    outline-color: #F5F7FA;
    outline-style: solid;
}

@media (max-width: 600px) {
    .section {
    background-color: #F5F7FA;
    width: 100%;
    outline-width: 28px;
    outline-color: #F5F7FA;
    outline-style: solid;
}
}

/* =========================================================
   FOLLOW THE MONEY - PROJECT OVERVIEW CARDS
========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    border-color: #a43a42;
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.project-open {
    color: #a43a42;
    font-size: 13px;
    font-weight: 700;
}

.project-card h3 {
    font-size: 23px;
    margin: 0 0 10px;
}

.project-summary {
    color: #647080;
    line-height: 1.6;
    margin: 0 0 20px;
}

.project-card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #536171;
    margin-bottom: 20px;
}

.project-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #c18a35;
}

.project-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.project-mini-stat {
    min-width: 0;
    padding: 13px 11px;
    background: #f4f6f8;
    border-radius: 8px;
}

.project-mini-stat span {
    display: block;
    color: #6d7885;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 7px;
}

.project-mini-stat strong {
    display: block;
    color: #202a35;
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.project-card-pending {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #f4f6f8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
}

.project-pending-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #e7eaee;
    color: #586575;
    font-size: 22px;
}

.project-card-pending strong,
.project-card-pending span {
    display: block;
}

.project-card-pending strong {
    font-size: 13px;
    margin-bottom: 4px;
}

.project-card-pending span {
    color: #6d7885;
    font-size: 12px;
    line-height: 1.5;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #edf0f2;
    margin-top: auto;
    font-size: 12px;
    color: #77818c;
}

.project-card-footer strong {
    color: #46515e;
}


/* =========================================================
   FOLLOW THE MONEY - PROJECT DETAIL PAGE
========================================================= */

.project-detail-hero {
    padding: 65px 0 55px;
    background: #f1f3f6;
    border-bottom: 1px solid #e2e6eb;
}

.project-detail-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 14px 0;
}

.project-detail-hero > .container > p {
    max-width: 780px;
    color: #586575;
    font-size: 17px;
    line-height: 1.7;
}

.project-back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: #a43a42;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.project-back-link:hover {
    text-decoration: underline;
}

.project-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
    color: #647080;
    font-size: 13px;
}

.project-meta-divider {
    color: #b3bbc4;
}

.project-research-note {
    padding: 20px 22px;
    background: #fff8eb;
    border-left: 4px solid #c18a35;
    border-radius: 6px;
    margin-bottom: 42px;
}

.project-research-note strong {
    display: block;
    margin-bottom: 6px;
}

.project-research-note p {
    color: #6e6049;
    margin: 0;
    line-height: 1.6;
}

.project-section {
    margin-bottom: 55px;
}

.project-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.project-section-heading h2 {
    margin: 6px 0 0;
    font-size: 28px;
}

.project-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 23px;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
}

.project-stat-card > span {
    color: #687482;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 13px;
}

.project-stat-card > strong {
    color: #202a35;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.project-stat-card p {
    color: #687482;
    font-size: 13px;
    line-height: 1.5;
    margin: 10px 0;
}

.project-stat-card small {
    color: #89929d;
    font-size: 11px;
    margin-top: auto;
    padding-top: 8px;
}

.project-stat-card a,
.project-breakdown-item a,
.project-update a {
    display: inline-block;
    color: #a43a42;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 12px;
}

.project-stat-card a:hover,
.project-breakdown-item a:hover,
.project-update a:hover {
    text-decoration: underline;
}

.project-empty-panel {
    padding: 28px;
    background: #f4f6f8;
    border: 1px dashed #cbd2da;
    border-radius: 10px;
}

.project-empty-panel strong {
    display: block;
    margin-bottom: 8px;
}

.project-empty-panel p {
    color: #687482;
    line-height: 1.6;
    margin: 0;
}


/* =========================================================
   SPENDING BREAKDOWN
========================================================= */

.project-breakdown-list {
    display: grid;
    gap: 12px;
}

.project-breakdown-item {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 9px;
}

.project-breakdown-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.project-breakdown-heading strong {
    font-size: 15px;
}

.project-breakdown-heading span {
    font-size: 17px;
    font-weight: 700;
}

.project-breakdown-item p {
    color: #687482;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 0;
}


/* =========================================================
   PROJECT TIMELINE
========================================================= */

.project-timeline {
    border-left: 2px solid #e0e5ea;
    margin-left: 8px;
    padding-left: 28px;
}

.project-timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.project-timeline-item:last-child {
    padding-bottom: 0;
}

.project-timeline-marker {
    position: absolute;
    top: 3px;
    left: -36px;
    width: 14px;
    height: 14px;
    background: #a43a42;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #a43a42;
}

.project-timeline-date {
    color: #89929d;
    font-size: 12px;
}

.project-timeline-item h3 {
    margin: 7px 0;
    font-size: 18px;
}

.project-timeline-item p {
    color: #687482;
    line-height: 1.6;
    margin: 10px 0 0;
}


/* =========================================================
   PROJECT UPDATES
========================================================= */

.project-updates {
    display: grid;
    gap: 16px;
}

.project-update {
    padding: 22px;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 9px;
}

.project-update-date {
    color: #a43a42;
    font-size: 12px;
    font-weight: 700;
}

.project-update h3 {
    font-size: 19px;
    margin: 8px 0;
}

.project-update p {
    color: #687482;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   PROJECT SOURCES
========================================================= */

.project-sources {
    border-top: 1px solid #e1e5ea;
}

.project-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid #e1e5ea;
}

.project-source strong,
.project-source span,
.project-source small {
    display: block;
}

.project-source strong {
    font-size: 14px;
}

.project-source span,
.project-source small {
    color: #788390;
    font-size: 12px;
    margin-top: 4px;
}

.project-source a {
    flex: 0 0 auto;
    color: #a43a42;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================================
   MOBILE RESPONSIVENESS
========================================================= */

@media (max-width: 800px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .project-card {
        padding: 20px;
    }

    .project-card-metrics {
        grid-template-columns: 1fr;
    }

    .project-stat-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-hero {
        padding: 45px 0 38px;
    }

    .project-section-heading h2 {
        font-size: 24px;
    }

    .project-source {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .project-breakdown-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}


/* =========================================================
   PUBLIC POLLS
   ========================================================= */

.poll-intro {
    max-width: 900px;
    margin: 0 0 34px;
}

.poll-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 18px 0 34px;
}

.poll-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 23px;
    box-shadow: 0 5px 18px rgba(20, 40, 61, .035);
    display: flex;
    flex-direction: column;
}

.poll-card h3 {
    margin: 4px 0 9px;
}

.poll-card h3 a {
    color: var(--navy);
    text-decoration: none;
}

.poll-card h3 a:hover {
    color: var(--red);
}

.poll-card p {
    color: var(--muted);
    margin: 0 0 18px;
}

.poll-card-top,
.poll-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.poll-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.poll-section-heading {
    margin-top: 42px;
}

.poll-card-closed {
    background: #fafbfd;
}

.poll-detail-layout {
    align-items: start;
}

.poll-vote-panel {
    max-width: none;
}

.poll-options-preview {
    display: grid;
    gap: 9px;
    margin: 15px 0 25px;
}

.poll-option-preview {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
}

@media (max-width: 700px) {
    .poll-grid {
        grid-template-columns: 1fr;
    }
}

/* Canada at a Glance */
.canada-glance {
    background: #f5f6f7;
}

.glance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.glance-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    min-width: 0;
}

.glance-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #a43a42;
    margin-bottom: 12px;
}

.glance-value {
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    color: #202b38;
    line-height: 1.15;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.glance-card p {
    color: #59636e;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.glance-period {
    font-size: 12px;
    color: #737d87;
    margin-bottom: 12px;
}

.glance-card .text-link {
    font-size: 13px;
}

.glance-source-pending {
    font-size: 12px;
    color: #89919a;
}

.glance-updated {
    font-size: 12px;
    color: #737d87;
    margin-top: 18px;
}

.glance-disclaimer {
    font-size: 12px;
    color: #737d87;
    margin-top: 10px;
}

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

@media (max-width: 520px) {
    .glance-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   CANADA AT A GLANCE - FEDERAL DEBT FEATURE
   ========================================================= */

.federal-debt-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 34px 38px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: linear-gradient(120deg, #14283d, #1d3b57 75%, #244b68);
    color: #fff;
    box-shadow: 0 8px 24px rgba(20, 40, 61, .10);
}

.federal-debt-content {
    min-width: 0;
}

.federal-debt-label {
    color: #f0a2a6;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.federal-debt-value {
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.federal-debt-content p {
    color: #d4e0eb;
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0 0;
    max-width: 720px;
}

.federal-debt-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    color: #d4e0eb;
    font-size: 13px;
}

.federal-debt-details span,
.federal-debt-details strong {
    display: block;
}

.federal-debt-details strong {
    color: #fff;
    font-size: 15px;
    margin-top: 3px;
}

.federal-debt-details a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.federal-debt-details a:hover {
    text-decoration: underline;
}

@media (max-width: 650px) {
    .federal-debt-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
        gap: 22px;
    }

    .federal-debt-details {
        align-items: flex-start;
    }
}
/* Poll voting option alignment */
.poll-voting-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 12px;
}

.poll-voting-option input[type="radio"] {
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto;
    margin: 0;
}

.poll-voting-option span {
    display: inline-block;
}

/* Citizenship checkbox alignment */
.poll-vote-panel .form-group label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    cursor: pointer;
}

.poll-vote-panel .form-group input[type="checkbox"] {
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto;
    margin: 0;
}
/* Public poll result bars */

.poll-result {
    margin: 20px 0;
}

.poll-result strong {
    display: block;
    margin-bottom: 8px;
}

.poll-result-bar {
    width: 100%;
    height: 12px;
    background: #e9edf2;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 7px;
}

.poll-result-fill {
    height: 100%;
    background: linear-gradient(90deg, #2878c8, #55a6ed);
    border-radius: 20px;
    transition: width 0.5s ease;
    box-sizing: border-box;
}

.poll-result .meta {
    font-size: 0.85rem;
}

.poll-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.poll-share .small {
    color: var(--muted);
}