﻿/* ==========================================================
   LITTLE HERO COMMUNITY
   HERO
========================================================== */

body.community-page {

    background: #fffdf8;
    color: #20344b;
}


/* ==========================================================
   HERO SECTION
========================================================== */

body.community-page .community-hero {

    position: relative;

    overflow: hidden;

    padding:
        8rem 0 7rem;

    background:
        radial-gradient(circle at top left,
            rgba(255, 193, 92, .18),
            transparent 35%),

        radial-gradient(circle at bottom right,
            rgba(13, 44, 84, .10),
            transparent 40%),

        linear-gradient(180deg,
            #fffdf9 0%,
            #fff7ef 100%);
}


/* ==========================================================
   BACKGROUND GLOWS
========================================================== */

.community-hero-glow {

    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: .55;

    pointer-events: none;
}

.community-hero-glow-one {

    width: 420px;
    height: 420px;

    top: -120px;
    left: -140px;

    background: #ffd58d;
}

.community-hero-glow-two {

    width: 380px;
    height: 380px;

    bottom: -140px;
    right: -80px;

    background: #d9ebff;
}


/* ==========================================================
   GRID
========================================================== */

.community-hero-grid {

    display: grid;

    grid-template-columns:

        1.1fr .9fr;

    gap: 5rem;

    align-items: center;
}


/* ==========================================================
   COPY
========================================================== */

.community-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: .55rem;

    padding: .55rem 1rem;

    border-radius: 999px;

    background: #fff;

    color: #0d2c54;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    font-size: .78rem;

    box-shadow:

        0 10px 24px rgba(13, 44, 84, .08);
}


.community-hero-copy h1 {

    margin:

        1.4rem 0 1.4rem;

    font-size: clamp(2.9rem, 4vw, 4.6rem);

    line-height: 1.05;

    font-weight: 800;

    color: #12345a;
}


.community-hero-copy h1 span {

    display: block;

    color: #f4a327;
}


.community-hero-lead {

    font-size: 1.35rem;

    font-weight: 600;

    line-height: 1.7;

    color: #28415c;

    margin-bottom: 1.2rem;
}


.community-hero-description {

    max-width: 620px;

    line-height: 1.9;

    color: #5c6c7e;

    margin-bottom: 2rem;
}


/* ==========================================================
   BUTTONS
========================================================== */

.community-hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    margin-bottom: 2rem;
}


.community-primary-button {

    display: inline-flex;

    align-items: center;

    gap: .65rem;

    padding:

        .95rem 2rem;

    border: none;

    border-radius: 999px;

    background:

        linear-gradient(180deg,
            #2f69c8,
            #1d4e99);

    color: #fff;

    text-decoration: none;

    font-weight: 700;

    box-shadow:

        0 16px 34px rgba(29, 78, 153, .25);

    transition: .35s;
}

.community-primary-button:hover {

    transform: translateY(-4px);

    color: #fff;

    box-shadow:

        0 24px 46px rgba(29, 78, 153, .30);
}


.community-secondary-button {

    display: inline-flex;

    align-items: center;

    gap: .65rem;

    padding:

        .95rem 2rem;

    border-radius: 999px;

    border: 2px solid #d5e3f8;

    background: #fff;

    color: #12345a;

    text-decoration: none;

    font-weight: 700;

    transition: .35s;
}

.community-secondary-button:hover {

    transform: translateY(-4px);

    border-color: #2f69c8;

    color: #12345a;
}


/* ==========================================================
   NOTE
========================================================== */

.community-hero-note {

    display: flex;

    align-items: center;

    gap: .75rem;

    color: #5f7084;

    font-size: .95rem;
}

.community-hero-note i {

    color: #f4a327;
}


/* ==========================================================
   HERO BOOKS
========================================================== */

.community-hero-visual {

    position: relative;

    height: 640px;
}


/* Floating Books */
.community-hero-book {

    position: absolute;

    overflow: visible;

    background: transparent;

    border: none;

    box-shadow: none;

}


.community-hero-book img {

    display: block;

    width: 100%;

    filter:
        drop-shadow(0 22px 38px rgba(0, 0, 0, .22)) drop-shadow(0 8px 18px rgba(0, 0, 0, .14));

    transition: .35s;
}

.community-hero-book-marc {

    width: 250px;

    top: 40px;

    left: 20px;

    animation: floatMarc 7s ease-in-out infinite;
}

.community-hero-book-ballerina {

    width: 240px;

    right: 20px;

    top: 120px;

    animation: floatBallerina 7s ease-in-out infinite;

    animation-delay: 1.5s;
}

.community-hero-book-pep {

    width: 240px;

    bottom: 20px;

    left: 120px;

    animation: floatPep 7s ease-in-out infinite;

    animation-delay: 3s;
}

/* ==========================================================
   HEART
========================================================== */

.community-hero-symbol {

    position: absolute;

    right: 30px;

    bottom: 30px;

    width: 82px;

    height: 82px;

    border-radius: 50%;

    background: #fff;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 2rem;

    color: #cf3e4f;
    box-shadow:

        0 8px 18px rgba(255, 255, 255, .75) inset,

        0 -4px 8px rgba(0, 0, 0, .05) inset,

        0 18px 42px rgba(13, 44, 84, .18);
}

.community-hero-symbol::before {

    content: "";

    position: absolute;

    top: 10px;

    left: 14px;

    width: 54px;

    height: 18px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .55);

    filter: blur(2px);

    transform: rotate(-18deg);

    pointer-events: none;

}

.community-hero-symbol i {

    font-size: 2.2rem;

    background: linear-gradient(180deg,
            #ffb7c3 0%,
            #ff5c73 35%,
            #d92b45 70%,
            #a9122d 100%);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, .85)) drop-shadow(0 4px 6px rgba(185, 20, 49, .35));

    transform: translateY(-1px);

    transition: transform .35s ease,
        filter .35s ease;
}

.community-hero-symbol:hover i {

    transform: translateY(-2px) scale(1.08);

    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, .95)) drop-shadow(0 6px 10px rgba(185, 20, 49, .45));

}

/* ==========================================================
   FLOAT
========================================================== */
@keyframes floatMarc {

    0%,
    100% {
        transform: translateY(0) rotate(-6deg);
    }

    50% {
        transform: translateY(-16px) rotate(-6deg);
    }
}

@keyframes floatBallerina {

    0%,
    100% {
        transform: translateY(0) rotate(7deg);
    }

    50% {
        transform: translateY(-16px) rotate(7deg);
    }
}

@keyframes floatPep {

    0%,
    100% {
        transform: translateY(0) rotate(4deg);
    }

    50% {
        transform: translateY(-16px) rotate(4deg);
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media(max-width:991px) {

    .community-hero {

        padding: 6rem 0 5rem;
    }

    .community-hero-grid {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .community-hero-description {

        margin-inline: auto;
    }

    .community-hero-actions {

        justify-content: center;
    }

    .community-hero-visual {

        height: 560px;

        margin-top: 3rem;
    }

}


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

@media(max-width:767px) {

    .community-hero {

        padding: 5rem 0 4rem;
    }

    .community-hero-copy h1 {

        font-size: 2.6rem;
    }

    .community-hero-visual {

        height: 470px;
    }

    .community-hero-book-marc {

        width: 180px;
    }

    .community-hero-book-ballerina {

        width: 170px;
    }

    .community-hero-book-pep {

        width: 170px;
    }

    .community-primary-button,
    .community-secondary-button {

        width: 100%;

        justify-content: center;
    }

}

/* ==========================================================
   WHY THIS COMMUNITY EXISTS
========================================================== */

body.community-page .community-purpose {

    position: relative;

    padding: 6rem 0;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f7faf6 100%);

    overflow: hidden;
}


/* Soft olive glow */

body.community-page .community-purpose::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    right: -120px;

    border-radius: 50%;

    background:
        rgba(126, 143, 91, 0.12);

    filter: blur(12px);

    pointer-events: none;
}


/* ==========================================================
   PURPOSE CARD
========================================================== */

body.community-page .community-purpose-card {

    position: relative;
    z-index: 1;

    max-width: 1080px;

    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr);

    align-items: center;

    gap: 2rem;

    margin: 0 auto;

    padding:
        clamp(2.2rem, 4vw, 4rem);

    border:
        1px solid rgba(126, 143, 91, 0.18);

    border-radius: 32px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(243, 248, 238, 0.94) 100%);

    box-shadow:
        0 26px 60px rgba(13, 44, 84, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    overflow: hidden;
}


/* Top accent line */

body.community-page .community-purpose-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 68%;
    height: 3px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(126, 143, 91, 0.65) 50%,
            transparent 100%);
}


/* ==========================================================
   PURPOSE ICON
========================================================== */
body.community-page .community-purpose-icon {

    position: relative;

    width: 94px;
    height: 94px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    align-self: start;

    margin-top: 1rem;

    overflow: hidden;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .95),
        0 18px 36px rgba(13, 44, 84, .10);
}

body.community-page .community-purpose-icon img {

    width: 106px;

    height: 106px;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(0 4px 10px rgba(0, 0, 0, .16));

    transition: transform .35s ease;
}

body.community-page .community-purpose-icon:hover img {

    transform: scale(1.06);

}

/* ==========================================================
   SHARED SECTION EYEBROW
========================================================== */

body.community-page .community-section-eyebrow {

    display: inline-block;

    margin-bottom: 0.85rem;

    color: #7e8f5b;

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.14em;

    line-height: 1.4;

    text-transform: uppercase;
}


/* ==========================================================
   PURPOSE COPY
========================================================== */

body.community-page .community-purpose-copy h2 {

    max-width: 760px;

    margin:
        0 0 1.25rem;

    color: #0d2c54;

    font-size:
        clamp(2.2rem, 4vw, 3.6rem);

    font-weight: 900;

    letter-spacing: -0.04em;

    line-height: 1.08;
}


body.community-page .community-purpose-copy p {

    max-width: 790px;

    margin:
        0 0 1rem;

    color: #526578;

    font-size: 1.04rem;

    line-height: 1.85;
}


body.community-page .community-purpose-copy p:last-child {

    margin-bottom: 0;

    color: #334155;

    font-weight: 600;
}

/* ==========================================================
   THREE STORY WORLDS
========================================================== */

body.community-page .community-story-worlds {
    position: relative;
    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 8% 14%,
            rgba(244, 163, 39, 0.10),
            transparent 28%),
        radial-gradient(circle at 92% 86%,
            rgba(126, 143, 91, 0.10),
            transparent 30%),
        linear-gradient(180deg,
            #fffdf8 0%,
            #ffffff 100%);
}


/* ==========================================================
   SECTION HEADER
========================================================== */

body.community-page .community-story-worlds .community-section-header {
    width: min(880px, 100%);

    margin: 0 auto 4rem;

    text-align: center;
}

body.community-page .community-story-worlds .community-section-header h2 {
    margin: 0 0 1.25rem;

    color: #0d2c54;

    font-size: clamp(2.7rem, 5vw, 4.6rem);
    font-weight: 900;

    line-height: 1.04;
    letter-spacing: -0.045em;

    text-wrap: balance;
}

body.community-page .community-story-worlds .community-section-header p {
    width: min(740px, 100%);

    margin: 0 auto;

    color: #526578;

    font-size: 1.08rem;
    line-height: 1.85;
}


/* ==========================================================
   STORY GRID
========================================================== */

body.community-page .community-story-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 2rem;

    align-items: stretch;
}


/* ==========================================================
   STORY CARD
========================================================== */

body.community-page .community-story-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(13, 44, 84, 0.10);
    border-radius: 30px;

    background: #ffffff;

    box-shadow:
        0 18px 46px rgba(13, 44, 84, 0.10),
        0 6px 18px rgba(13, 44, 84, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

body.community-page .community-story-card:hover {
    transform: translateY(-8px);

    border-color: rgba(13, 44, 84, 0.16);

    box-shadow:
        0 30px 70px rgba(13, 44, 84, 0.16),
        0 10px 24px rgba(13, 44, 84, 0.08);
}


/* ==========================================================
   STORY MEDIA
========================================================== */

body.community-page .community-story-media {
    position: relative;

    min-height: 430px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 4.6rem 2rem 2.4rem;

    overflow: hidden;
}

body.community-page .community-story-media::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    opacity: 0.58;

    filter: blur(6px);

    pointer-events: none;
}


/* Marc background */

body.community-page .community-story-card-marc .community-story-media {
    background:
        linear-gradient(180deg,
            #fff9ed 0%,
            #fff3d8 100%);
}

body.community-page .community-story-card-marc .community-story-media::before {
    background:
        radial-gradient(circle,
            rgba(244, 163, 39, 0.24),
            transparent 68%);
}


/* Ballerina background */

body.community-page .community-story-card-ballerina .community-story-media {
    background:
        linear-gradient(180deg,
            #fff8fb 0%,
            #fcecf3 100%);
}

body.community-page .community-story-card-ballerina .community-story-media::before {
    background:
        radial-gradient(circle,
            rgba(219, 105, 145, 0.20),
            transparent 68%);
}


/* Pep background */

body.community-page .community-story-card-pep .community-story-media {
    background:
        linear-gradient(180deg,
            #f5f8ff 0%,
            #eaf1ff 100%);
}

body.community-page .community-story-card-pep .community-story-media::before {
    background:
        radial-gradient(circle,
            rgba(55, 105, 181, 0.20),
            transparent 68%);
}


/* ==========================================================
   STORY BADGE
========================================================== */

body.community-page .community-story-badge {
    position: absolute;

    top: 1.25rem;
    left: 50%;

    z-index: 2;

    transform: translateX(-50%);

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: max-content;
    max-width: calc(100% - 2rem);

    padding: 0.55rem 0.9rem;

    border: 1px solid rgba(13, 44, 84, 0.08);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.88);

    color: #0d2c54;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.10em;
    line-height: 1.4;

    text-align: center;
    white-space: nowrap;

    box-shadow:
        0 10px 24px rgba(13, 44, 84, 0.08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ==========================================================
   BOOK IMAGE
========================================================== */

body.community-page .community-story-media img {
    position: relative;

    z-index: 1;

    display: block;

    width: min(88%, 290px);
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 22px 28px rgba(13, 44, 84, 0.18)) drop-shadow(0 8px 12px rgba(13, 44, 84, 0.10));

    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

body.community-page .community-story-card:hover .community-story-media img {
    transform: translateY(-5px) scale(1.025);

    filter:
        drop-shadow(0 28px 34px rgba(13, 44, 84, 0.22)) drop-shadow(0 10px 16px rgba(13, 44, 84, 0.12));
}


/* ==========================================================
   STORY CONTENT
========================================================== */

body.community-page .community-story-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 2rem 1.8rem 2rem;
}

body.community-page .community-story-label {
    display: inline-block;

    margin-bottom: 0.75rem;

    color: #7e8f5b;

    font-size: 0.73rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    line-height: 1.4;

    text-transform: uppercase;
}

body.community-page .community-story-content h3 {
    margin: 0 0 1rem;

    color: #0d2c54;

    font-size: clamp(1.85rem, 2.5vw, 2.45rem);
    font-weight: 900;

    line-height: 1.08;
    letter-spacing: -0.035em;
}

body.community-page .community-story-content>p {
    margin: 0 0 1.35rem;

    color: #526578;

    font-size: 0.99rem;
    line-height: 1.75;
}


/* ==========================================================
   STORY VALUES
========================================================== */

body.community-page .community-story-values {
    display: flex;

    flex-wrap: wrap;

    gap: 0.55rem;

    margin-bottom: 1.6rem;
}

body.community-page .community-story-values span {
    display: inline-flex;

    align-items: center;

    gap: 0.42rem;

    padding: 0.48rem 0.72rem;

    border: 1px solid rgba(13, 44, 84, 0.08);
    border-radius: 999px;

    background: #f8fafc;

    color: #334155;

    font-size: 0.78rem;
    font-weight: 700;

    line-height: 1.2;
}

body.community-page .community-story-values i {
    color: #7e8f5b;

    font-size: 0.78rem;
}

/* ==========================================================
   QUICK STORY REACTIONS
   Placed directly beneath each book cover
========================================================== */

body.community-page .community-quick-reactions {
    position: relative;
    z-index: 4;

    width: calc(100% - 2.5rem);

    margin:
        -1.5rem auto 0;

    padding:
        0.8rem 1rem 0.9rem;

    border:
        1px solid rgba(13, 44, 84, 0.12);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.92),
        0 14px 30px rgba(13, 44, 84, 0.12);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* Prompt is available for accessibility and context,
   but visually hidden to preserve the clean reaction capsule */

body.community-page .community-reaction-prompt {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* Reaction Row */

body.community-page .community-quick-reaction-row {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: clamp(0.8rem, 2vw, 1.35rem);
}


/* Reaction Button */

body.community-page .community-quick-reaction-button {
    position: relative;

    width: 58px;
    height: 58px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    padding: 0;

    border:
        1px solid rgba(244, 163, 39, 0.52);

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #fffef5 0%,
            #fff5c9 50%,
            #ffd972 100%);

    cursor: pointer;

    box-shadow:
        inset 0 3px 2px rgba(255, 255, 255, 0.92),
        inset 0 -4px 6px rgba(211, 139, 16, 0.12),
        0 8px 18px rgba(13, 44, 84, 0.10);

    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}


/* Emoji */

body.community-page .community-quick-reaction-emoji {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 2rem;
    line-height: 1;

    transform: translateY(-1px);

    transition:
        transform 0.24s ease,
        filter 0.24s ease;
}


/* Small Count Badge */

body.community-page .community-quick-reaction-button strong {
    position: absolute;

    right: -5px;
    bottom: -4px;

    min-width: 23px;
    height: 23px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 0.35rem;

    border:
        2px solid #ffffff;

    border-radius: 999px;

    background:
        linear-gradient(180deg,
            #edf5fc 0%,
            #dbeaf7 100%);

    color: #0d2c54;

    font-size: 0.67rem;
    font-weight: 900;

    line-height: 1;

    box-shadow:
        0 5px 12px rgba(13, 44, 84, 0.14);
}


/* Hover Tooltip */

body.community-page .community-reaction-tooltip {
    position: absolute;

    left: 50%;
    bottom: calc(100% + 11px);

    z-index: 6;

    transform:
        translate(-50%, 6px);

    width: max-content;
    max-width: 150px;

    padding:
        0.45rem 0.7rem;

    border-radius: 999px;

    background: #0d2c54;

    color: #ffffff;

    font-size: 0.69rem;
    font-weight: 800;

    line-height: 1.2;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    box-shadow:
        0 8px 20px rgba(13, 44, 84, 0.20);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


/* Tooltip Triangle */

body.community-page .community-reaction-tooltip::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    border:
        5px solid transparent;

    border-top-color: #0d2c54;
}


/* Hover */

body.community-page .community-quick-reaction-button:hover {
    transform:
        translateY(-5px) scale(1.06);

    border-color:
        rgba(244, 163, 39, 0.82);

    box-shadow:
        inset 0 3px 2px rgba(255, 255, 255, 0.96),
        inset 0 -4px 6px rgba(211, 139, 16, 0.15),
        0 15px 27px rgba(13, 44, 84, 0.16);
}

body.community-page .community-quick-reaction-button:hover .community-quick-reaction-emoji {
    transform:
        translateY(-2px) scale(1.13);
}

body.community-page .community-quick-reaction-button:hover .community-reaction-tooltip,
body.community-page .community-quick-reaction-button:focus-visible .community-reaction-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* Selected Reaction */

body.community-page .community-quick-reaction-button[aria-pressed="true"] {
    border-color:
        rgba(207, 62, 79, 0.65);

    background:
        linear-gradient(180deg,
            #fff8fa 0%,
            #ffdbe1 52%,
            #ffb7c4 100%);

    box-shadow:
        inset 0 3px 2px rgba(255, 255, 255, 0.95),
        0 13px 26px rgba(207, 62, 79, 0.22);
}

body.community-page .community-quick-reaction-button[aria-pressed="true"] .community-quick-reaction-emoji {
    transform:
        translateY(-2px) scale(1.16);

    filter:
        drop-shadow(0 5px 7px rgba(207, 62, 79, 0.20));
}


/* Keyboard Focus */

body.community-page .community-quick-reaction-button:focus-visible {
    outline:
        3px solid rgba(13, 44, 84, 0.30);

    outline-offset: 4px;
}


/* ==========================================================
   STORY CONTENT SPACING AFTER REACTION CAPSULE
========================================================== */

body.community-page .community-story-content {
    padding-top: 1.75rem;
}


/* ==========================================================
   MOBILE QUICK REACTIONS
========================================================== */

@media (max-width: 767.98px) {

    body.community-page .community-quick-reactions {
        width: calc(100% - 1.8rem);

        margin-top: -1.2rem;

        padding:
            0.7rem 0.8rem 0.8rem;
    }

    body.community-page .community-quick-reaction-row {
        gap: 1rem;
    }

    body.community-page .community-quick-reaction-button {
        width: 54px;
        height: 54px;
    }

    body.community-page .community-quick-reaction-emoji {
        font-size: 1.8rem;
    }

}


/* ==========================================================
   CHOOSE STORY BUTTON
========================================================== */

body.community-page .community-vote-card-button {
    width: 100%;
    min-height: 54px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.6rem;

    margin-top: auto;
    padding: 0.9rem 1.15rem;

    border: 0;
    border-radius: 999px;

    background:
        linear-gradient(180deg,
            #3d78c7 0%,
            #2b61ad 48%,
            #1e4d91 100%);

    color: #ffffff;

    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.34),
        0 14px 28px rgba(29, 78, 153, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

body.community-page .community-vote-card-button:hover {
    transform: translateY(-3px);

    filter: brightness(1.05);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.40),
        0 20px 36px rgba(29, 78, 153, 0.30);
}

body.community-page .community-vote-card-button.is-selected {
    background:
        linear-gradient(180deg,
            #ee6170 0%,
            #d63d51 50%,
            #b82339 100%);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.38),
        0 16px 32px rgba(184, 35, 57, 0.28);
}


/* ==========================================================
   FOCUS STATES
========================================================== */

body.community-page .community-reaction-button:focus-visible,
body.community-page .community-vote-card-button:focus-visible {
    outline: 3px solid rgba(13, 44, 84, 0.28);
    outline-offset: 4px;
}


/* ==========================================================
   DESKTOP â€” SLIGHTLY NARROWER SCREENS
========================================================== */

@media (max-width: 1199.98px) {

    body.community-page .community-story-grid {
        gap: 1.5rem;
    }

    body.community-page .community-story-media {
        min-height: 400px;

        padding:
            4.4rem 1.5rem 2rem;
    }

    body.community-page .community-story-content {
        padding:
            1.8rem 1.45rem 1.8rem;
    }

    body.community-page .community-reaction-button {
        font-size: 0.70rem;
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-story-worlds {
        padding: 5.5rem 0;
    }

    body.community-page .community-story-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    body.community-page .community-story-card-pep {
        grid-column: 1 / -1;

        width: min(520px, 100%);

        justify-self: center;
    }

    body.community-page .community-story-worlds .community-section-header {
        margin-bottom: 3rem;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-story-worlds {
        padding:
            4.5rem 1rem;
    }

    body.community-page .community-story-grid {
        grid-template-columns: 1fr;

        gap: 1.5rem;
    }

    body.community-page .community-story-card-pep {
        grid-column: auto;

        width: 100%;
    }

    body.community-page .community-story-worlds .community-section-header {
        margin-bottom: 2.5rem;
    }

    body.community-page .community-story-worlds .community-section-header h2 {
        font-size:
            clamp(2.2rem, 10vw, 3.1rem);
    }

    body.community-page .community-story-worlds .community-section-header p {
        font-size: 1rem;
        line-height: 1.75;
    }

    body.community-page .community-story-media {
        min-height: 360px;

        padding:
            4.2rem 1.25rem 1.8rem;
    }

    body.community-page .community-story-media img {
        width: min(84%, 260px);
    }

    body.community-page .community-story-content {
        padding:
            1.7rem 1.25rem 1.6rem;
    }

    body.community-page .community-story-content h3 {
        font-size: 2rem;
    }

    body.community-page .community-story-badge {
        max-width: calc(100% - 1.4rem);

        padding:
            0.48rem 0.7rem;

        font-size: 0.61rem;

        white-space: normal;
    }

    body.community-page .community-reaction-row {
        display: grid;

        grid-template-columns: 1fr;
    }

    body.community-page .community-reaction-button {
        width: 100%;

        justify-content: flex-start;

        padding:
            0.65rem 0.85rem;

        font-size: 0.78rem;
    }

    body.community-page .community-reaction-button strong {
        margin-left: auto;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    body.community-page .community-story-worlds {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body.community-page .community-story-card {
        border-radius: 24px;
    }

    body.community-page .community-story-media {
        min-height: 330px;
    }

    body.community-page .community-story-media img {
        width: min(88%, 235px);
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.community-page .community-story-card,
    body.community-page .community-story-media img,
    body.community-page .community-reaction-button,
    body.community-page .community-vote-card-button {
        transition: none;
    }

}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-purpose {

        padding: 5rem 0;
    }

    body.community-page .community-purpose-card {

        max-width: 860px;

        grid-template-columns: 1fr;

        text-align: center;
    }

    body.community-page .community-purpose-icon {

        margin: 0 auto;
    }

    body.community-page .community-purpose-copy h2,
    body.community-page .community-purpose-copy p {

        margin-left: auto;
        margin-right: auto;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-purpose {

        padding: 4rem 1rem;
    }

    body.community-page .community-purpose-card {

        gap: 1.4rem;

        padding:
            2rem 1.35rem;

        border-radius: 24px;
    }

    body.community-page .community-purpose-icon {

        width: 78px;
        height: 78px;

        font-size: 1.65rem;
    }

    body.community-page .community-purpose-copy h2 {

        font-size:
            clamp(2rem, 9vw, 2.75rem);
    }

    body.community-page .community-purpose-copy p {

        font-size: 0.97rem;

        line-height: 1.75;
    }

}

/* ==========================================================
   THREE STORY WORLDS
========================================================== */

body.community-page .community-story-worlds {

    position: relative;

    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 12% 18%,
            rgba(244, 163, 39, 0.10),
            transparent 28%),
        radial-gradient(circle at 90% 82%,
            rgba(13, 44, 84, 0.08),
            transparent 30%),
        linear-gradient(180deg,
            #fffdf8 0%,
            #ffffff 100%);
}


/* ==========================================================
   SECTION HEADER
========================================================== */

body.community-page .community-section-header {

    width: min(860px, 100%);

    margin: 0 auto 4rem;

    text-align: center;
}


body.community-page .community-section-header h2 {

    margin: 0 0 1.25rem;

    color: #0d2c54;

    font-size:
        clamp(2.6rem, 5vw, 4.5rem);

    font-weight: 900;

    line-height: 1.04;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


body.community-page .community-section-header p {

    width: min(720px, 100%);

    margin: 0 auto;

    color: #526578;

    font-size: 1.08rem;

    line-height: 1.85;
}


/* ==========================================================
   STORY GRID
========================================================== */

body.community-page .community-story-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 2rem;

    align-items: stretch;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    body.community-page .community-story-grid {

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

}


@media (max-width: 991.98px) {

    body.community-page .community-story-worlds {

        padding: 5.5rem 0;
    }

    body.community-page .community-section-header {

        margin-bottom: 3rem;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-story-worlds {

        padding:
            4.5rem 1rem;
    }

    body.community-page .community-story-grid {

        grid-template-columns: 1fr;

        gap: 1.5rem;
    }

    body.community-page .community-section-header {

        margin-bottom: 2.5rem;
    }

    body.community-page .community-section-header h2 {

        font-size:
            clamp(2.2rem, 10vw, 3.1rem);
    }

    body.community-page .community-section-header p {

        font-size: 1rem;

        line-height: 1.75;
    }

}

/* ==========================================================
   LITTLE HERO VOTING PROMISE
========================================================== */

body.community-page .community-voting-promise {

    position: relative;

    overflow: hidden;

    padding: 6.5rem 0;

    background:
        radial-gradient(circle at 12% 20%,
            rgba(244, 163, 39, 0.12),
            transparent 30%),
        radial-gradient(circle at 88% 80%,
            rgba(207, 62, 79, 0.08),
            transparent 30%),
        linear-gradient(180deg,
            #ffffff 0%,
            #fffaf3 100%);
}


/* Soft decorative glow */

body.community-page .community-voting-promise::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    left: -130px;

    border-radius: 50%;

    background:
        rgba(244, 163, 39, 0.10);

    filter: blur(24px);

    pointer-events: none;
}


/* ==========================================================
   PROMISE CARD
========================================================== */

body.community-page .community-voting-promise-card {

    position: relative;
    z-index: 1;

    max-width: 1100px;

    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr);

    align-items: center;

    gap: 2.4rem;

    margin: 0 auto;

    padding:
        clamp(2.4rem, 4vw, 4.25rem);

    border:
        1px solid rgba(207, 62, 79, 0.14);

    border-radius: 34px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 248, 245, 0.96) 100%);

    box-shadow:
        0 28px 68px rgba(13, 44, 84, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);

    overflow: hidden;
}


/* Glossy top accent */

body.community-page .community-voting-promise-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 72%;
    height: 4px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent 0%,
            #f5a623 28%,
            #cf3e4f 50%,
            #f5a623 72%,
            transparent 100%);
}


/* ==========================================================
   COMPASS SYMBOL
========================================================== */

body.community-page .community-promise-symbol {

    position: relative;

    width: 104px;
    height: 104px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #fff9e9 0%,
            #ffe8b4 52%,
            #f4bd55 100%);

    color: #0d2c54;

    font-size: 2.45rem;

    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.95),
        inset 0 -5px 8px rgba(175, 108, 18, 0.12),
        0 18px 38px rgba(244, 163, 39, 0.22);

    overflow: hidden;
}


/* Gloss reflection */

body.community-page .community-promise-symbol::before {

    content: "";

    position: absolute;

    top: 10px;
    left: 15px;
    right: 15px;

    height: 22px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.48);

    pointer-events: none;
}


body.community-page .community-promise-symbol i {

    position: relative;
    z-index: 1;

    filter:
        drop-shadow(0 4px 7px rgba(13, 44, 84, 0.16));
}


/* ==========================================================
   PROMISE COPY
========================================================== */

body.community-page .community-promise-copy h2 {

    max-width: 800px;

    margin:
        0 0 1.35rem;

    color: #0d2c54;

    font-size:
        clamp(2.45rem, 4.5vw, 4rem);

    font-weight: 900;

    line-height: 1.06;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


body.community-page .community-promise-copy p {

    max-width: 820px;

    margin:
        0 0 1rem;

    color: #526578;

    font-size: 1.05rem;

    line-height: 1.85;
}


body.community-page .community-promise-copy strong {

    display: block;

    max-width: 820px;

    margin-top: 1.5rem;

    padding:
        1rem 1.2rem;

    border-left:
        4px solid #cf3e4f;

    border-radius:
        0 16px 16px 0;

    background:
        linear-gradient(90deg,
            rgba(207, 62, 79, 0.08) 0%,
            rgba(244, 163, 39, 0.05) 100%);

    color: #243d5a;

    font-size: 1.05rem;

    line-height: 1.7;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-voting-promise {

        padding: 5.25rem 0;
    }

    body.community-page .community-voting-promise-card {

        grid-template-columns: 1fr;

        text-align: center;
    }

    body.community-page .community-promise-symbol {

        margin: 0 auto;
    }

    body.community-page .community-promise-copy h2,
    body.community-page .community-promise-copy p,
    body.community-page .community-promise-copy strong {

        margin-left: auto;
        margin-right: auto;
    }

    body.community-page .community-promise-copy strong {

        border-left: 0;

        border-top:
            4px solid #cf3e4f;

        border-radius:
            0 0 16px 16px;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-voting-promise {

        padding:
            4.5rem 1rem;
    }

    body.community-page .community-voting-promise-card {

        gap: 1.6rem;

        padding:
            2.2rem 1.35rem;

        border-radius: 26px;
    }

    body.community-page .community-promise-symbol {

        width: 88px;
        height: 88px;

        font-size: 2rem;
    }

    body.community-page .community-promise-copy h2 {

        font-size:
            clamp(2.15rem, 10vw, 3rem);
    }

    body.community-page .community-promise-copy p {

        font-size: 0.98rem;

        line-height: 1.75;
    }

    body.community-page .community-promise-copy strong {

        padding:
            0.9rem 1rem;

        font-size: 0.98rem;
    }

}

/* ==========================================================
   OFFICIAL COMMUNITY VOTE
========================================================== */

body.community-page .community-official-vote {
    position: relative;

    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 8% 16%,
            rgba(47, 105, 200, 0.10),
            transparent 29%),
        radial-gradient(circle at 92% 84%,
            rgba(244, 163, 39, 0.10),
            transparent 30%),
        linear-gradient(180deg,
            #f8fbff 0%,
            #ffffff 100%);
}


/* ==========================================================
   VOTE LAYOUT
========================================================== */

body.community-page .community-vote-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr) minmax(420px, 1.08fr);

    gap: clamp(3rem, 6vw, 6rem);

    align-items: center;
}


/* ==========================================================
   VOTE COPY
========================================================== */

body.community-page .community-vote-copy h2 {
    max-width: 660px;

    margin:
        0 0 1.35rem;

    color: #0d2c54;

    font-size:
        clamp(2.7rem, 5vw, 4.7rem);

    font-weight: 900;

    line-height: 1.04;

    letter-spacing: -0.05em;

    text-wrap: balance;
}


body.community-page .community-vote-copy>p {
    max-width: 620px;

    margin:
        0 0 2rem;

    color: #526578;

    font-size: 1.08rem;

    line-height: 1.85;
}


/* ==========================================================
   TRUST POINTS
========================================================== */

body.community-page .community-vote-trust {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0.85rem;
}


body.community-page .community-vote-trust span {
    display: inline-flex;

    align-items: center;

    gap: 0.75rem;

    min-height: 46px;

    padding:
        0.65rem 1rem;

    border:
        1px solid rgba(13, 44, 84, 0.09);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.88);

    color: #334155;

    font-size: 0.9rem;

    font-weight: 750;

    box-shadow:
        0 9px 22px rgba(13, 44, 84, 0.07);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


body.community-page .community-vote-trust i {
    width: 29px;
    height: 29px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #edf5ff 0%,
            #d8e9ff 100%);

    color: #2f69c8;

    font-size: 0.8rem;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}


/* ==========================================================
   VOTING PANEL
========================================================== */

body.community-page .community-vote-panel {
    position: relative;

    min-height: 510px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        clamp(2rem, 4vw, 3.2rem);

    border:
        1px solid rgba(13, 44, 84, 0.11);

    border-radius: 34px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(244, 248, 253, 0.96) 100%);

    box-shadow:
        0 28px 68px rgba(13, 44, 84, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    overflow: hidden;
}


/* Blue top accent */

body.community-page .community-vote-panel::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 74%;
    height: 4px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent 0%,
            #2f69c8 32%,
            #6fa1e5 50%,
            #2f69c8 68%,
            transparent 100%);
}


/* Background glow */

body.community-page .community-vote-panel::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -120px;
    bottom: -130px;

    border-radius: 50%;

    background:
        rgba(47, 105, 200, 0.09);

    filter: blur(14px);

    pointer-events: none;
}


/* ==========================================================
   AUTH GATE
========================================================== */

body.community-page .community-auth-gate {
    position: relative;
    z-index: 2;

    width: min(520px, 100%);

    text-align: center;
}


/* ==========================================================
   LOCK ICON
========================================================== */

body.community-page .community-auth-icon {
    position: relative;

    width: 96px;
    height: 96px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 1.5rem;

    overflow: hidden;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #eff6ff 0%,
            #cfe3ff 52%,
            #9fc3f2 100%);

    color: #0d2c54;

    font-size: 2.15rem;

    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.92),
        inset 0 -5px 8px rgba(30, 77, 145, 0.10),
        0 18px 38px rgba(47, 105, 200, 0.22);
}


/* Gloss reflection */

body.community-page .community-auth-icon::before {
    content: "";

    position: absolute;

    top: 10px;
    left: 15px;
    right: 15px;

    height: 21px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.46);

    pointer-events: none;
}


body.community-page .community-auth-icon i {
    position: relative;
    z-index: 1;

    filter:
        drop-shadow(0 4px 7px rgba(13, 44, 84, 0.17));
}


/* ==========================================================
   AUTH COPY
========================================================== */

body.community-page .community-auth-gate h3 {
    margin:
        0 0 1rem;

    color: #0d2c54;

    font-size:
        clamp(2rem, 3vw, 2.75rem);

    font-weight: 900;

    line-height: 1.1;

    letter-spacing: -0.035em;
}


body.community-page .community-auth-gate>p {
    width: min(440px, 100%);

    margin:
        0 auto 1.8rem;

    color: #526578;

    font-size: 1rem;

    line-height: 1.75;
}


/* ==========================================================
   AUTH BUTTONS
========================================================== */

body.community-page .community-auth-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 0.9rem;
}


body.community-page .community-auth-actions button {
    min-width: 180px;

    justify-content: center;
}


/* ==========================================================
   SIGNED-IN VOTE FORM
========================================================== */

body.community-page .community-vote-form {
    position: relative;
    z-index: 2;

    width: 100%;
}


body.community-page .community-vote-form fieldset {
    margin: 0;
    padding: 0;

    border: 0;
}


body.community-page .community-vote-form legend {
    margin-bottom: 1.2rem;

    color: #0d2c54;

    font-size: 1.25rem;

    font-weight: 900;
}


/* ==========================================================
   VOTE OPTIONS
========================================================== */

body.community-page .community-vote-option {
    position: relative;

    display: grid;

    grid-template-columns:
        auto auto minmax(0, 1fr);

    align-items: center;

    gap: 0.85rem;

    width: 100%;

    margin-bottom: 0.85rem;

    padding:
        1rem 1.1rem;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 20px;

    background: #ffffff;

    color: #526578;

    cursor: pointer;

    box-shadow:
        0 9px 22px rgba(13, 44, 84, 0.06);

    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background 0.24s ease;
}


body.community-page .community-vote-option:hover {
    transform: translateY(-3px);

    border-color:
        rgba(47, 105, 200, 0.30);

    box-shadow:
        0 15px 30px rgba(13, 44, 84, 0.10);
}


body.community-page .community-vote-option input {
    width: 20px;
    height: 20px;

    accent-color: #2f69c8;

    cursor: pointer;
}


body.community-page .community-vote-option-icon {
    width: 48px;
    height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #fffdf4 0%,
            #ffe6a0 100%);

    font-size: 1.55rem;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.92),
        0 8px 18px rgba(13, 44, 84, 0.08);
}


body.community-page .community-vote-option strong {
    display: block;

    margin-bottom: 0.2rem;

    color: #0d2c54;

    font-size: 1rem;

    font-weight: 900;
}


body.community-page .community-vote-option:has(input:checked) {
    border-color:
        rgba(207, 62, 79, 0.42);

    background:
        linear-gradient(180deg,
            #fffafb 0%,
            #fff0f3 100%);

    box-shadow:
        0 15px 30px rgba(207, 62, 79, 0.13);
}


/* ==========================================================
   CAST VOTE BUTTON
========================================================== */

body.community-page .community-cast-vote-button {
    width: 100%;

    justify-content: center;

    margin-top: 1.2rem;
}


/* ==========================================================
   FORM STATUS
========================================================== */

body.community-page .community-form-status {
    min-height: 24px;

    margin:
        1rem 0 0;

    color: #526578;

    font-size: 0.88rem;

    font-weight: 700;

    text-align: center;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-official-vote {
        padding: 5.5rem 0;
    }

    body.community-page .community-vote-layout {
        grid-template-columns: 1fr;

        gap: 3.5rem;
    }

    body.community-page .community-vote-copy {
        text-align: center;
    }

    body.community-page .community-vote-copy h2,
    body.community-page .community-vote-copy>p {
        margin-left: auto;
        margin-right: auto;
    }

    body.community-page .community-vote-trust {
        align-items: center;
    }

    body.community-page .community-vote-panel {
        width: min(680px, 100%);

        margin: 0 auto;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-official-vote {
        padding:
            4.5rem 1rem;
    }

    body.community-page .community-vote-copy h2 {
        font-size:
            clamp(2.25rem, 10vw, 3.25rem);
    }

    body.community-page .community-vote-copy>p {
        font-size: 1rem;

        line-height: 1.75;
    }

    body.community-page .community-vote-trust span {
        width: 100%;

        justify-content: flex-start;
    }

    body.community-page .community-vote-panel {
        min-height: 470px;

        padding:
            2.1rem 1.25rem;

        border-radius: 27px;
    }

    body.community-page .community-auth-icon {
        width: 82px;
        height: 82px;

        font-size: 1.85rem;
    }

    body.community-page .community-auth-actions {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;
    }

    body.community-page .community-auth-actions button {
        width: 100%;
    }

    body.community-page .community-vote-option {
        grid-template-columns:
            auto auto minmax(0, 1fr);

        gap: 0.65rem;

        padding:
            0.85rem 0.8rem;
    }

    body.community-page .community-vote-option-icon {
        width: 42px;
        height: 42px;

        font-size: 1.35rem;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    body.community-page .community-official-vote {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body.community-page .community-vote-panel {
        padding:
            1.8rem 1rem;
    }

    body.community-page .community-vote-option {
        grid-template-columns:
            auto minmax(0, 1fr);
    }

    body.community-page .community-vote-option input {
        grid-row: 1 / 3;
    }

    body.community-page .community-vote-option-icon {
        display: none;
    }

}

/* ==========================================================
   CONTINUE THE CONVERSATION
========================================================== */

body.community-page .community-conversations {
    position: relative;

    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 10% 18%,
            rgba(244, 163, 39, 0.09),
            transparent 30%),
        radial-gradient(circle at 90% 82%,
            rgba(47, 105, 200, 0.08),
            transparent 30%),
        linear-gradient(180deg,
            #fffdf8 0%,
            #ffffff 100%);
}


/* ==========================================================
   MESSAGE CARD
========================================================== */

body.community-page .community-message-card {
    position: relative;

    max-width: 1140px;

    margin: 0 auto;

    padding:
        clamp(2rem, 4vw, 3.5rem);

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 34px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(248, 251, 255, 0.96) 100%);

    box-shadow:
        0 28px 68px rgba(13, 44, 84, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    overflow: hidden;
}


/* Soft top accent */

body.community-page .community-message-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 72%;
    height: 4px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent 0%,
            #f5a623 30%,
            #2f69c8 50%,
            #f5a623 70%,
            transparent 100%);
}


/* ==========================================================
   SIGNED-OUT CONVERSATION LAYOUT
========================================================== */

body.community-page .community-conversation-signed-out {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr) minmax(420px, 1.1fr);

    gap:
        clamp(2.5rem, 5vw, 5rem);

    align-items: center;
}


/* ==========================================================
   AUTH CONTENT
========================================================== */

body.community-page .community-conversation-auth {
    text-align: left;
}


body.community-page .community-conversation-auth .community-auth-icon {
    margin:
        0 0 1.5rem;
}


body.community-page .community-conversation-auth h3 {
    margin:
        0 0 1rem;

    color: #0d2c54;

    font-size:
        clamp(2.2rem, 3.7vw, 3.4rem);

    font-weight: 900;

    line-height: 1.07;

    letter-spacing: -0.045em;
}


body.community-page .community-conversation-auth>p {
    max-width: 520px;

    margin:
        0 0 1.8rem;

    color: #526578;

    font-size: 1.02rem;

    line-height: 1.82;
}


body.community-page .community-conversation-auth .community-auth-actions {
    justify-content: flex-start;
}


/* ==========================================================
   CONVERSATION ICON
========================================================== */

body.community-page .community-conversation-auth .community-auth-icon {
    position: relative;

    width: 96px;
    height: 96px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #eef6ff 0%,
            #cfe4ff 52%,
            #9fc5f2 100%);

    color: #0d2c54;

    font-size: 2.15rem;

    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.92),
        inset 0 -5px 8px rgba(30, 77, 145, 0.10),
        0 18px 38px rgba(47, 105, 200, 0.22);
}


/* Gloss highlight */

body.community-page .community-conversation-auth .community-auth-icon::before {
    content: "";

    position: absolute;

    top: 10px;
    left: 15px;
    right: 15px;

    height: 21px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.46);

    pointer-events: none;
}


body.community-page .community-conversation-auth .community-auth-icon i {
    position: relative;
    z-index: 1;

    filter:
        drop-shadow(0 4px 7px rgba(13, 44, 84, 0.17));
}


/* ==========================================================
   EDITORIAL IMAGE
========================================================== */

body.community-page .community-conversation-visual {
    position: relative;

    min-height: 430px;

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(180deg,
            #fff8ef 0%,
            #eef5ff 100%);

    box-shadow:
        0 24px 58px rgba(13, 44, 84, 0.14);
}


body.community-page .community-conversation-visual::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 55%,
            rgba(13, 44, 84, 0.10) 100%);

    pointer-events: none;
}


body.community-page .community-conversation-visual img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 430px;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


body.community-page .community-conversation-visual:hover img {
    transform: scale(1.025);

    filter: saturate(1.03);
}


/* ==========================================================
   AUTH BUTTONS IN THIS SECTION
========================================================== */

body.community-page .community-conversation-auth .community-auth-actions button {
    min-width: 180px;

    justify-content: center;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-conversations {
        padding: 5.5rem 0;
    }

    body.community-page .community-conversation-signed-out {
        grid-template-columns: 1fr;

        gap: 3rem;
    }

    body.community-page .community-conversation-auth {
        text-align: center;
    }

    body.community-page .community-conversation-auth .community-auth-icon {
        margin-left: auto;
        margin-right: auto;
    }

    body.community-page .community-conversation-auth>p {
        margin-left: auto;
        margin-right: auto;
    }

    body.community-page .community-conversation-auth .community-auth-actions {
        justify-content: center;
    }

    body.community-page .community-conversation-visual {
        min-height: 380px;
    }

    body.community-page .community-conversation-visual img {
        min-height: 380px;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-conversations {
        padding:
            4.5rem 1rem;
    }

    body.community-page .community-message-card {
        padding:
            2rem 1.25rem;

        border-radius: 26px;
    }

    body.community-page .community-conversation-signed-out {
        gap: 2rem;
    }

    body.community-page .community-conversation-auth h3 {
        font-size:
            clamp(2rem, 9vw, 2.8rem);
    }

    body.community-page .community-conversation-auth>p {
        font-size: 0.98rem;

        line-height: 1.75;
    }

    body.community-page .community-conversation-auth .community-auth-actions {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;
    }

    body.community-page .community-conversation-auth .community-auth-actions button {
        width: 100%;
    }

    body.community-page .community-conversation-visual {
        min-height: 300px;

        border-radius: 24px;
    }

    body.community-page .community-conversation-visual img {
        min-height: 300px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    body.community-page .community-conversations {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body.community-page .community-message-card {
        padding:
            1.7rem 1rem;
    }

}

/* ==========================================================
   ENCOURAGEMENT WALL
========================================================== */

body.community-page .community-encouragement-wall {
    position: relative;
    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 10% 16%,
            rgba(126, 143, 91, 0.10),
            transparent 30%),
        radial-gradient(circle at 90% 84%,
            rgba(244, 163, 39, 0.09),
            transparent 30%),
        linear-gradient(180deg,
            #f8fbf7 0%,
            #ffffff 100%);
}


/* ==========================================================
   POST GRID
========================================================== */

body.community-page .community-post-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 2rem;

    align-items: stretch;
}


/* ==========================================================
   COMMUNITY POST CARD
========================================================== */

body.community-page .community-post-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding:
        1.8rem 1.6rem 1.55rem;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 28px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(248, 251, 255, 0.96) 100%);

    box-shadow:
        0 20px 50px rgba(13, 44, 84, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    overflow: visible;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* Soft accent line */

body.community-page .community-post-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 70%;
    height: 3px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent 0%,
            #7e8f5b 35%,
            #f5a623 50%,
            #7e8f5b 65%,
            transparent 100%);
}


body.community-page .community-post-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(13, 44, 84, 0.16);

    box-shadow:
        0 30px 70px rgba(13, 44, 84, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}


/* ==========================================================
   POST HEADER
========================================================== */

body.community-page .community-post-header {
    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr);

    align-items: center;

    gap: 0.9rem;

    margin-bottom: 1.35rem;
}


/* ==========================================================
   AVATAR
========================================================== */

body.community-page .community-post-avatar {
    width: 54px;
    height: 54px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    grid-row: 1 / 3;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #fff7dc 0%,
            #f5c765 55%,
            #d89a25 100%);

    color: #0d2c54;

    font-size: 1.2rem;
    font-weight: 900;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        0 10px 22px rgba(244, 163, 39, 0.22);
}


/* ==========================================================
   POST NAME AND TOPIC
========================================================== */

body.community-page .community-post-header h3 {
    margin: 0;

    color: #0d2c54;

    font-size: 1.08rem;
    font-weight: 900;

    line-height: 1.2;
}


body.community-page .community-post-header>div:nth-child(2)>span {
    display: inline-block;

    margin-top: 0.18rem;

    color: #6b7d8e;

    font-size: 0.78rem;
    font-weight: 700;

    line-height: 1.3;
}


/* ==========================================================
   PRIVACY LABEL
========================================================== */

body.community-page .community-post-privacy {
    grid-column: 1 / -1;

    display: inline-flex;

    align-items: center;

    gap: 0.4rem;

    width: fit-content;

    margin-top: 0.55rem;

    padding:
        0.38rem 0.65rem;

    border:
        1px solid rgba(126, 143, 91, 0.18);

    border-radius: 999px;

    background:
        rgba(243, 248, 238, 0.90);

    color: #6d7d4e;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.03em;
    line-height: 1.2;
}


body.community-page .community-post-privacy i {
    font-size: 0.65rem;
}


/* ==========================================================
   STORY QUOTE
========================================================== */

body.community-page .community-post-card blockquote {
    position: relative;

    flex: 1;

    margin:
        0 0 1.5rem;

    padding:
        1.25rem 1.2rem 1.25rem 1.45rem;

    border-left:
        4px solid rgba(207, 62, 79, 0.72);

    border-radius:
        0 18px 18px 0;

    background:
        linear-gradient(90deg,
            rgba(207, 62, 79, 0.06) 0%,
            rgba(244, 163, 39, 0.04) 100%);

    color: #41546a;

    font-size: 0.98rem;
    line-height: 1.75;
}


body.community-page .community-post-card blockquote::before {
    content: "\201C";

    position: absolute;

    top: 0.2rem;
    left: 0.45rem;

    color:
        rgba(207, 62, 79, 0.20);

    font-family:
        Georgia,
        serif;

    font-size: 2.6rem;
    line-height: 1;
}

/* ==========================================================
   COMMUNITY RESPONSE COMPOSER
========================================================== */

body.community-page .community-post-response {
    position: relative;

    margin-top: auto;
    padding-top: 1.15rem;

    border-top:
        1px solid rgba(13, 44, 84, 0.08);
}


body.community-page .community-post-response-bar {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;

    gap: 0.7rem;
}


/* ==========================================================
   RESPONSE FIELD
========================================================== */

body.community-page .community-post-response-input {
    width: 100%;
    min-width: 0;
    min-height: 50px;

    padding:
        0.76rem 1rem;

    border:
        1px solid rgba(13, 44, 84, 0.12);

    border-radius: 999px;

    background:
        #f5f7fa;

    color: #0d2c54;

    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;

    outline: none;

    box-shadow:
        inset 0 1px 3px rgba(13, 44, 84, 0.05);

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}


body.community-page .community-post-response-input::placeholder {
    color: #7b8998;

    opacity: 1;
}


body.community-page .community-post-response-input:focus {
    border-color:
        rgba(47, 105, 200, 0.42);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(47, 105, 200, 0.10);
}


/* ==========================================================
   BLUE PLUS BUTTON
========================================================== */

body.community-page .community-post-add-button {
    width: 50px;
    height: 50px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #56a0ff 0%,
            #2f75dc 48%,
            #1c55aa 100%);

    color: #ffffff;

    font-size: 1.25rem;

    cursor: pointer;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.42),
        inset 0 -4px 7px rgba(13, 44, 84, 0.12),
        0 11px 24px rgba(47, 105, 200, 0.28);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}


body.community-page .community-post-add-button:hover {
    transform:
        translateY(-2px) scale(1.05);

    filter: brightness(1.04);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.48),
        inset 0 -4px 7px rgba(13, 44, 84, 0.14),
        0 16px 30px rgba(47, 105, 200, 0.35);
}


body.community-page .community-post-add-button[aria-expanded="true"] {
    transform:
        rotate(45deg);

    background:
        linear-gradient(180deg,
            #ef6170 0%,
            #cf3e4f 52%,
            #a82338 100%);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.40),
        0 13px 28px rgba(207, 62, 79, 0.30);
}


/* ==========================================================
   EMOJI AND STICKER MENU
========================================================== */

body.community-page .community-post-sticker-menu {
    position: absolute;

    left: 0;
    right: 0;
    bottom:
        calc(100% + 0.85rem);

    z-index: 20;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 0.55rem;

    padding:
        0.8rem;

    border:
        1px solid rgba(13, 44, 84, 0.12);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.98);

    box-shadow:
        0 24px 54px rgba(13, 44, 84, 0.20);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


body.community-page .community-post-sticker-menu[hidden] {
    display: none;
}


/* ==========================================================
   MENU OPTIONS
========================================================== */

body.community-page .community-post-sticker-menu button {
    min-width: 0;
    min-height: 72px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 0.3rem;

    padding:
        0.55rem 0.35rem;

    border:
        1px solid rgba(13, 44, 84, 0.08);

    border-radius: 16px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f4f7fa 100%);

    color: #0d2c54;

    font-family: inherit;

    cursor: pointer;

    box-shadow:
        0 6px 14px rgba(13, 44, 84, 0.05);

    transition:
        transform 0.20s ease,
        background 0.20s ease,
        box-shadow 0.20s ease,
        border-color 0.20s ease;
}


body.community-page .community-post-sticker-menu button:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(47, 105, 200, 0.20);

    background:
        #ffffff;

    box-shadow:
        0 12px 24px rgba(13, 44, 84, 0.11);
}


body.community-page .community-post-sticker-menu button>span {
    font-size: 1.65rem;
    line-height: 1;
}


body.community-page .community-post-sticker-menu button small {
    display: block;

    max-width: 100%;

    color: #526578;

    font-size: 0.58rem;
    font-weight: 800;

    line-height: 1.15;

    text-align: center;
}


/* ==========================================================
   FUTURE STICKER LIBRARY BUTTON
========================================================== */

body.community-page .community-open-sticker-library {
    background:
        linear-gradient(180deg,
            #eef6ff 0%,
            #d9eaff 100%) !important;

    color: #2f69c8 !important;
}


body.community-page .community-open-sticker-library i {
    font-size: 1.5rem;
}


/* ==========================================================
   PREVIEW NOTICE
========================================================== */

body.community-page .community-preview-notice {
    width:
        min(860px, 100%);

    display: flex;

    align-items: flex-start;

    gap: 0.75rem;

    margin:
        2.5rem auto 0;

    padding:
        1rem 1.2rem;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.90);

    color: #5a6d80;

    font-size: 0.9rem;
    font-weight: 650;

    line-height: 1.65;

    box-shadow:
        0 12px 28px rgba(13, 44, 84, 0.07);
}


body.community-page .community-preview-notice i {
    flex:
        0 0 auto;

    margin-top: 0.2rem;

    color: #2f69c8;

    font-size: 1rem;
}


/* ==========================================================
   KEYBOARD FOCUS
========================================================== */

body.community-page .community-post-add-button:focus-visible,
body.community-page .community-post-sticker-menu button:focus-visible {
    outline:
        3px solid rgba(13, 44, 84, 0.28);

    outline-offset: 4px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-encouragement-wall {
        padding:
            5.5rem 0;
    }

    body.community-page .community-post-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    body.community-page .community-post-card:last-child {
        grid-column:
            1 / -1;

        width:
            min(520px, 100%);

        justify-self: center;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-encouragement-wall {
        padding:
            4.5rem 1rem;
    }

    body.community-page .community-post-grid {
        grid-template-columns:
            1fr;

        gap: 1.5rem;
    }

    body.community-page .community-post-card:last-child {
        grid-column:
            auto;

        width: 100%;
    }

    body.community-page .community-post-card {
        padding:
            1.55rem 1.25rem 1.35rem;

        border-radius: 24px;
    }

    body.community-page .community-post-response-input {
        min-height: 48px;

        font-size: 0.78rem;
    }

    body.community-page .community-post-add-button {
        width: 48px;
        height: 48px;
    }

    body.community-page .community-post-sticker-menu {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 0.45rem;

        border-radius: 20px;
    }

    body.community-page .community-post-sticker-menu button {
        min-height: 68px;
    }

    body.community-page .community-preview-notice {
        padding:
            0.9rem 1rem;

        font-size: 0.84rem;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    body.community-page .community-encouragement-wall {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body.community-page .community-post-header {
        gap: 0.75rem;
    }

    body.community-page .community-post-avatar {
        width: 48px;
        height: 48px;

        font-size: 1.05rem;
    }

    body.community-page .community-post-response-bar {
        grid-template-columns:
            minmax(0, 1fr) 44px;

        gap: 0.5rem;
    }

    body.community-page .community-post-add-button {
        width: 44px;
        height: 44px;

        font-size: 1.05rem;
    }

    body.community-page .community-post-response-input {
        min-height: 44px;

        padding:
            0.65rem 0.8rem;

        font-size: 0.72rem;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.community-page .community-post-card,
    body.community-page .community-post-add-button,
    body.community-page .community-post-sticker-menu button {
        transition: none;
    }

}

/* ==========================================================
   COMMUNITY VALUES
========================================================== */

body.community-page .community-values {
    position: relative;

    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 10% 18%,
            rgba(244, 163, 39, 0.09),
            transparent 30%),
        radial-gradient(circle at 90% 82%,
            rgba(126, 143, 91, 0.10),
            transparent 30%),
        linear-gradient(180deg,
            #fffdf8 0%,
            #ffffff 100%);
}


/* ==========================================================
   VALUES GRID
========================================================== */

body.community-page .community-values-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1.6rem;

    align-items: stretch;
}


/* ==========================================================
   VALUE CARD
========================================================== */

body.community-page .community-value-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding:
        2rem 1.6rem 1.8rem;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 28px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(248, 251, 255, 0.96) 100%);

    box-shadow:
        0 18px 46px rgba(13, 44, 84, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* Soft top accent */

body.community-page .community-value-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 64%;
    height: 3px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent 0%,
            #f5a623 35%,
            #7e8f5b 50%,
            #f5a623 65%,
            transparent 100%);
}


body.community-page .community-value-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(13, 44, 84, 0.16);

    box-shadow:
        0 28px 64px rgba(13, 44, 84, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}


/* ==========================================================
   VALUE ICON
========================================================== */

body.community-page .community-value-card>span {
    width: 76px;
    height: 76px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 1.25rem;

    border:
        1px solid rgba(244, 163, 39, 0.34);

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #fffdf4 0%,
            #fff2bf 52%,
            #ffd86d 100%);

    font-size: 2.2rem;
    line-height: 1;

    box-shadow:
        inset 0 3px 2px rgba(255, 255, 255, 0.94),
        inset 0 -4px 7px rgba(197, 129, 17, 0.10),
        0 14px 28px rgba(244, 163, 39, 0.18);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}


body.community-page .community-value-card:hover>span {
    transform:
        translateY(-3px) scale(1.05);

    box-shadow:
        inset 0 3px 2px rgba(255, 255, 255, 0.98),
        inset 0 -4px 7px rgba(197, 129, 17, 0.12),
        0 20px 36px rgba(244, 163, 39, 0.24);
}


/* ==========================================================
   VALUE TITLE
========================================================== */

body.community-page .community-value-card h3 {
    margin:
        0 0 0.8rem;

    color: #0d2c54;

    font-size: 1.45rem;
    font-weight: 900;

    line-height: 1.15;

    letter-spacing: -0.025em;
}


/* ==========================================================
   VALUE COPY
========================================================== */

body.community-page .community-value-card p {
    margin: 0;

    color: #526578;

    font-size: 0.98rem;
    line-height: 1.75;
}


/* ==========================================================
   OPTIONAL CARD PERSONALITY
========================================================== */

/* Kindness */

body.community-page .community-value-card:nth-child(1)>span {
    background:
        linear-gradient(180deg,
            #fff8fa 0%,
            #ffdce3 52%,
            #ffb7c5 100%);

    border-color:
        rgba(207, 62, 79, 0.28);
}


/* Listening */

body.community-page .community-value-card:nth-child(2)>span {
    background:
        linear-gradient(180deg,
            #f5faff 0%,
            #dceeff 52%,
            #b8d8f7 100%);

    border-color:
        rgba(47, 105, 200, 0.24);
}


/* Respect */

body.community-page .community-value-card:nth-child(3)>span {
    background:
        linear-gradient(180deg,
            #fffdf4 0%,
            #fff2bf 52%,
            #ffd86d 100%);
}


/* Growth */

body.community-page .community-value-card:nth-child(4)>span {
    background:
        linear-gradient(180deg,
            #f7fbf2 0%,
            #e5efd9 52%,
            #c6d9aa 100%);

    border-color:
        rgba(126, 143, 91, 0.28);
}


/* Safety */

body.community-page .community-value-card:nth-child(5)>span {
    background:
        linear-gradient(180deg,
            #f3f7ff 0%,
            #dce6fb 52%,
            #b9cdf2 100%);

    border-color:
        rgba(29, 78, 153, 0.24);
}


/* Belonging */

body.community-page .community-value-card:nth-child(6)>span {
    background:
        linear-gradient(180deg,
            #fff9f0 0%,
            #ffe6c8 52%,
            #f8c98e 100%);

    border-color:
        rgba(199, 132, 47, 0.26);
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-values {
        padding: 5.5rem 0;
    }

    body.community-page .community-values-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-values {
        padding:
            4.5rem 1rem;
    }

    body.community-page .community-values-grid {
        grid-template-columns: 1fr;

        gap: 1.4rem;
    }

    body.community-page .community-value-card {
        padding:
            1.7rem 1.3rem 1.55rem;

        border-radius: 24px;
    }

    body.community-page .community-value-card>span {
        width: 68px;
        height: 68px;

        font-size: 2rem;
    }

    body.community-page .community-value-card h3 {
        font-size: 1.35rem;
    }

    body.community-page .community-value-card p {
        font-size: 0.95rem;

        line-height: 1.7;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    body.community-page .community-values {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.community-page .community-value-card,
    body.community-page .community-value-card>span {
        transition: none;
    }

}

/* ==========================================================
   FUTURE COMMUNITY
========================================================== */

body.community-page .community-future {

    position: relative;

    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 12% 18%,
            rgba(245, 166, 35, 0.08),
            transparent 34%),

        radial-gradient(circle at 88% 82%,
            rgba(47, 105, 200, 0.08),
            transparent 32%),

        linear-gradient(180deg,
            #fffdf8 0%,
            #ffffff 100%);
}



/* ==========================================================
   FUTURE CARD
========================================================== */

body.community-page .community-future-card {

    position: relative;

    max-width: 1140px;

    margin: 0 auto;

    padding:
        clamp(2.5rem, 4vw, 4rem);

    border:
        1px solid rgba(13, 44, 84, .10);

    border-radius: 34px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .98) 0%,
            rgba(248, 251, 255, .95) 100%);

    box-shadow:
        0 28px 70px rgba(13, 44, 84, .10),
        inset 0 1px 0 rgba(255, 255, 255, .95);

    overflow: hidden;
}



/* Accent line */

body.community-page .community-future-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 72%;
    height: 4px;

    background:
        linear-gradient(90deg,
            transparent,
            #f5a623,
            #2f69c8,
            #f5a623,
            transparent);

}



/* ==========================================================
   COPY
========================================================== */

body.community-page .community-future-copy {

    text-align: center;

    max-width: 760px;

    margin: 0 auto 3.5rem;

}



body.community-page .community-future-copy h2 {

    margin:
        .6rem 0 1.25rem;

    color: #0d2c54;

    font-size:
        clamp(2.5rem, 5vw, 4.3rem);

    font-weight: 900;

    line-height: 1.05;

    letter-spacing: -.04em;

}



body.community-page .community-future-copy p {

    margin: 0;

    color: #586b7d;

    font-size: 1.08rem;

    line-height: 1.9;

}



/* ==========================================================
   GRID
========================================================== */

body.community-page .community-future-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1.75rem;

}



/* ==========================================================
   FEATURE CARD
========================================================== */

body.community-page .community-future-grid>div {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: .65rem;

    padding: 2rem 1.5rem;

    border:
        1px solid rgba(13, 44, 84, .08);

    border-radius: 24px;

    background:
        linear-gradient(180deg,
            #ffffff,
            #f9fbff);

    box-shadow:
        0 16px 34px rgba(13, 44, 84, .08);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}



body.community-page .community-future-grid>div:hover {

    transform:
        translateY(-10px);

    border-color:
        rgba(47, 105, 200, .18);

    box-shadow:
        0 24px 48px rgba(13, 44, 84, .14);

}



/* ==========================================================
   ICON
========================================================== */

body.community-page .community-future-grid i {

    width: 76px;
    height: 76px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #eef6ff,
            #cfe4ff);

    color: #0d2c54;

    font-size: 2rem;

    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, .9),
        0 14px 28px rgba(47, 105, 200, .16);

    transition:
        transform .35s ease;

}



body.community-page .community-future-grid>div:hover i {

    transform:
        scale(1.08) rotate(-6deg);

}



/* ==========================================================
   TITLE
========================================================== */

body.community-page .community-future-grid span {

    color: #0d2c54;

    font-size: 1.15rem;

    font-weight: 800;

}



/* ==========================================================
   LABEL
========================================================== */

body.community-page .community-future-grid small {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: .45rem .95rem;

    border-radius: 999px;

    background:
        rgba(126, 143, 91, .10);

    color: #7e8f5b;

    font-size: .78rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

}



/* ==========================================================
   TABLET
========================================================== */

@media (max-width:991px) {

    body.community-page .community-future {

        padding: 5.5rem 0;

    }

    body.community-page .community-future-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}



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

@media (max-width:767px) {

    body.community-page .community-future {

        padding: 4.5rem 0;

    }

    body.community-page .community-future-card {

        padding: 2rem 1.5rem;

    }

    body.community-page .community-future-grid {

        grid-template-columns: 1fr;

    }

    body.community-page .community-future-copy {

        margin-bottom: 2.5rem;

    }

    body.community-page .community-future-copy h2 {

        font-size:
            clamp(2.2rem, 9vw, 3rem);

    }

}

/* ==========================================================
   FINAL COMMUNITY INVITATION
========================================================== */

body.community-page .community-final-cta {
    position: relative;

    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 14% 20%,
            rgba(244, 163, 39, 0.12),
            transparent 30%),
        radial-gradient(circle at 86% 82%,
            rgba(207, 62, 79, 0.10),
            transparent 32%),
        linear-gradient(180deg,
            #fffaf3 0%,
            #ffffff 100%);
}


/* ==========================================================
   FINAL CTA CONTAINER
========================================================== */

body.community-page .community-final-cta-inner {
    position: relative;
    z-index: 1;

    max-width: 980px;

    display: flex;
    flex-direction: column;

    align-items: center;

    margin: 0 auto;

    padding:
        clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);

    overflow: hidden;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 38px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 247, 243, 0.96) 100%);

    text-align: center;

    box-shadow:
        0 30px 76px rgba(13, 44, 84, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}


/* Premium top accent */

body.community-page .community-final-cta-inner::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 74%;
    height: 4px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent 0%,
            #f5a623 30%,
            #cf3e4f 50%,
            #f5a623 70%,
            transparent 100%);
}


/* Soft background glow */

body.community-page .community-final-cta-inner::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    right: -120px;
    bottom: -145px;

    border-radius: 50%;

    background:
        rgba(207, 62, 79, 0.08);

    filter: blur(18px);

    pointer-events: none;
}


/* ==========================================================
   FINAL HEART SYMBOL
========================================================== */

body.community-page .community-final-symbol {
    position: relative;
    z-index: 1;

    width: 94px;
    height: 94px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 1.4rem;

    overflow: hidden;

    border:
        1px solid rgba(207, 62, 79, 0.24);

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #fff8fa 0%,
            #ffd9e0 52%,
            #ffadbb 100%);

    font-size: 2.5rem;
    line-height: 1;

    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.94),
        inset 0 -5px 8px rgba(207, 62, 79, 0.10),
        0 18px 38px rgba(207, 62, 79, 0.20);

    transition:
        transform 0.32s ease,
        box-shadow 0.32s ease;
}


/* Gloss reflection */

body.community-page .community-final-symbol::before {
    content: "";

    position: absolute;

    top: 10px;
    left: 15px;
    right: 15px;

    height: 21px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.48);

    pointer-events: none;
}


body.community-page .community-final-cta-inner:hover .community-final-symbol {
    transform:
        translateY(-4px) scale(1.05);

    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.98),
        inset 0 -5px 8px rgba(207, 62, 79, 0.12),
        0 24px 48px rgba(207, 62, 79, 0.27);
}


/* ==========================================================
   FINAL CTA COPY
========================================================== */

body.community-page .community-final-cta-inner .community-section-eyebrow {
    margin-bottom: 0.9rem;
}


body.community-page .community-final-cta-inner h2 {
    max-width: 820px;

    margin:
        0 auto 1.4rem;

    color: #0d2c54;

    font-size:
        clamp(2.7rem, 5vw, 4.8rem);

    font-weight: 900;

    line-height: 1.04;

    letter-spacing: -0.05em;

    text-wrap: balance;
}


body.community-page .community-final-cta-inner p {
    max-width: 700px;

    margin:
        0 auto 2rem;

    color: #526578;

    font-size: 1.08rem;

    line-height: 1.85;
}


/* ==========================================================
   FINAL CTA BUTTON
========================================================== */

body.community-page .community-final-cta-inner .community-primary-button {
    position: relative;
    z-index: 1;

    min-height: 56px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.7rem;

    padding:
        0.95rem 1.5rem;

    border: 0;

    border-radius: 999px;

    background:
        linear-gradient(180deg,
            #ef6170 0%,
            #cf3e4f 52%,
            #aa263a 100%);

    color: #ffffff;

    font-size: 0.96rem;
    font-weight: 850;

    text-decoration: none;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.38),
        0 16px 32px rgba(207, 62, 79, 0.28);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}


body.community-page .community-final-cta-inner .community-primary-button:hover {
    transform: translateY(-3px);

    filter: brightness(1.05);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.44),
        0 22px 42px rgba(207, 62, 79, 0.36);
}


body.community-page .community-final-cta-inner .community-primary-button i {
    font-size: 0.95rem;
}


/* ==========================================================
   KEYBOARD FOCUS
========================================================== */

body.community-page .community-final-cta-inner .community-primary-button:focus-visible {
    outline:
        3px solid rgba(13, 44, 84, 0.30);

    outline-offset: 5px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-final-cta {
        padding: 5.5rem 0;
    }

    body.community-page .community-final-cta-inner {
        border-radius: 32px;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-final-cta {
        padding:
            4.5rem 1rem;
    }

    body.community-page .community-final-cta-inner {
        padding:
            2.8rem 1.3rem;

        border-radius: 26px;
    }

    body.community-page .community-final-symbol {
        width: 82px;
        height: 82px;

        font-size: 2.15rem;
    }

    body.community-page .community-final-cta-inner h2 {
        font-size:
            clamp(2.2rem, 10vw, 3.2rem);
    }

    body.community-page .community-final-cta-inner p {
        font-size: 0.98rem;

        line-height: 1.75;
    }

    body.community-page .community-final-cta-inner .community-primary-button {
        width: 100%;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    body.community-page .community-final-cta {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body.community-page .community-final-cta-inner {
        padding:
            2.4rem 1rem;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.community-page .community-final-symbol,
    body.community-page .community-final-cta-inner .community-primary-button {
        transition: none;
    }

}

/* ==========================================================
   COMMUNITY PARTICIPATION
   Combined Conversation + Voting Section
========================================================== */

body.community-page .community-participation {
    position: relative;

    overflow: hidden;

    padding: 7rem 0;

    background:
        radial-gradient(circle at 10% 18%,
            rgba(244, 163, 39, 0.09),
            transparent 31%),
        radial-gradient(circle at 90% 82%,
            rgba(47, 105, 200, 0.09),
            transparent 31%),
        linear-gradient(180deg,
            #fffdf8 0%,
            #f8fbff 48%,
            #ffffff 100%);
}


/* ==========================================================
   SECTION ANCHOR
========================================================== */

body.community-page .community-section-anchor {
    position: absolute;

    top: 0;
    left: 0;

    width: 1px;
    height: 1px;

    pointer-events: none;
}


/* ==========================================================
   MAIN PARTICIPATION CARD
========================================================== */

body.community-page .community-participation-card {
    position: relative;

    max-width: 1160px;

    margin: 0 auto;

    overflow: hidden;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 36px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(247, 250, 255, 0.97) 100%);

    box-shadow:
        0 30px 76px rgba(13, 44, 84, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}


/* Premium accent line */

body.community-page .community-participation-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 76%;
    height: 4px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent 0%,
            #f5a623 27%,
            #2f69c8 50%,
            #cf3e4f 73%,
            transparent 100%);

    z-index: 3;
}


/* ==========================================================
   SIGNED-OUT LAYOUT
========================================================== */

body.community-page .community-participation-signed-out {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr) minmax(420px, 1.08fr);

    align-items: stretch;

    gap: 0;

    min-height: 560px;
}


/* ==========================================================
   SIGN-IN COPY
========================================================== */

body.community-page .community-participation-auth {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding:
        clamp(2.6rem, 5vw, 4.8rem);

    text-align: left;
}


body.community-page .community-participation-auth .community-auth-icon {
    margin:
        0 0 1.5rem;
}


body.community-page .community-participation-auth .community-section-eyebrow {
    margin-bottom: 0.8rem;
}


body.community-page .community-participation-auth h3 {
    max-width: 560px;

    margin:
        0 0 1rem;

    color: #0d2c54;

    font-size:
        clamp(2.35rem, 4.4vw, 4rem);

    font-weight: 900;

    line-height: 1.05;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


body.community-page .community-participation-auth>p {
    max-width: 550px;

    margin:
        0 0 1.7rem;

    color: #526578;

    font-size: 1.02rem;

    line-height: 1.8;
}


/* ==========================================================
   PARTICIPATION BENEFITS
========================================================== */

body.community-page .community-participation-benefits {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 0.75rem;

    margin-bottom: 2rem;
}


body.community-page .community-participation-benefits span {
    display: inline-flex;

    align-items: center;

    gap: 0.75rem;

    color: #3f5268;

    font-size: 0.92rem;
    font-weight: 750;
}


body.community-page .community-participation-benefits i {
    width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #eef6ff 0%,
            #d8e8ff 100%);

    color: #2f69c8;

    font-size: 0.82rem;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 18px rgba(47, 105, 200, 0.12);
}


/* ==========================================================
   SIGN-IN ACTIONS
========================================================== */

body.community-page .community-participation-auth .community-auth-actions {
    justify-content: flex-start;
}


body.community-page .community-participation-auth .community-auth-actions button {
    min-width: 180px;

    justify-content: center;
}


/* ==========================================================
   EDITORIAL IMAGE
========================================================== */

body.community-page .community-participation-card .community-conversation-visual {
    position: relative;

    min-height: 560px;

    overflow: hidden;

    border-radius:
        0 36px 36px 0;

    background:
        linear-gradient(180deg,
            #fff8ef 0%,
            #eef5ff 100%);
}


body.community-page .community-participation-card .community-conversation-visual::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.12) 0%,
            transparent 28%);

    pointer-events: none;
}


body.community-page .community-participation-card .community-conversation-visual::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(180deg,
            transparent 58%,
            rgba(13, 44, 84, 0.13) 100%);

    pointer-events: none;
}


body.community-page .community-participation-card .community-conversation-visual img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 560px;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.55s ease,
        filter 0.55s ease;
}


body.community-page .community-participation-card .community-conversation-visual:hover img {
    transform: scale(1.025);

    filter: saturate(1.04);
}


/* ==========================================================
   SIGNED-IN AREA
========================================================== */

body.community-page .community-participation-signed-in {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(360px, 0.82fr);

    gap: 2rem;

    padding:
        clamp(2rem, 4vw, 3.5rem);

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(247, 250, 255, 0.96) 100%);
}


/* ==========================================================
   SHARED SIGNED-IN FORM CARD
========================================================== */

body.community-page .community-participation-signed-in .community-message-form,
body.community-page .community-participation-signed-in .community-vote-form {
    position: relative;

    min-width: 0;

    padding:
        clamp(1.6rem, 3vw, 2.4rem);

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 28px;

    background:
        linear-gradient(145deg,
            #ffffff 0%,
            #f8fbff 100%);

    box-shadow:
        0 20px 48px rgba(13, 44, 84, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* ==========================================================
   FORM HEADINGS
========================================================== */

body.community-page .community-form-heading,
body.community-page .community-vote-form-heading {
    margin-bottom: 1.8rem;
}


body.community-page .community-form-heading h3,
body.community-page .community-vote-form-heading h3 {
    margin:
        0.45rem 0 0.8rem;

    color: #0d2c54;

    font-size:
        clamp(1.85rem, 3vw, 2.75rem);

    font-weight: 900;

    line-height: 1.08;

    letter-spacing: -0.035em;
}


body.community-page .community-form-heading p,
body.community-page .community-vote-form-heading p {
    margin: 0;

    color: #5b6e80;

    font-size: 0.96rem;

    line-height: 1.7;
}


/* ==========================================================
   MESSAGE FORM
========================================================== */

body.community-page .community-form-section {
    margin-bottom: 1.7rem;
}


body.community-page .community-form-label {
    display: block;

    margin-bottom: 0.8rem;

    color: #0d2c54;

    font-size: 1rem;
    font-weight: 850;
}


body.community-page .community-topic-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 0.7rem;
}


body.community-page .community-topic-option {
    display: flex;

    align-items: center;

    gap: 0.55rem;

    min-height: 48px;

    padding:
        0.7rem 0.8rem;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 15px;

    background: #ffffff;

    color: #465a70;

    font-size: 0.8rem;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}


body.community-page .community-topic-option:hover {
    transform: translateY(-2px);

    border-color:
        rgba(47, 105, 200, 0.24);

    box-shadow:
        0 10px 20px rgba(13, 44, 84, 0.07);
}


body.community-page .community-topic-option:has(input:checked) {
    border-color:
        rgba(47, 105, 200, 0.40);

    background:
        linear-gradient(180deg,
            #f6faff 0%,
            #eaf3ff 100%);

    box-shadow:
        0 10px 22px rgba(47, 105, 200, 0.11);
}


body.community-page .community-topic-option input {
    accent-color: #2f69c8;
}


body.community-page #communityMessage {
    width: 100%;

    min-height: 190px;

    resize: vertical;

    padding:
        1rem 1.05rem;

    border:
        1px solid rgba(13, 44, 84, 0.12);

    border-radius: 18px;

    background: #f8fafc;

    color: #0d2c54;

    font-family: inherit;
    font-size: 0.95rem;

    line-height: 1.7;

    outline: none;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}


body.community-page #communityMessage:focus {
    border-color:
        rgba(47, 105, 200, 0.42);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(47, 105, 200, 0.10);
}


body.community-page .community-character-count {
    margin-top: 0.55rem;

    color: #718096;

    font-size: 0.78rem;
    font-weight: 700;

    text-align: right;
}


/* ==========================================================
   PRIVACY OPTIONS
========================================================== */

body.community-page .community-privacy-section {
    margin:
        0 0 1.7rem;

    padding: 0;

    border: 0;
}


body.community-page .community-privacy-section legend {
    margin-bottom: 0.9rem;

    color: #0d2c54;

    font-size: 1rem;
    font-weight: 850;
}


body.community-page .community-privacy-option {
    display: grid;

    grid-template-columns:
        auto auto minmax(0, 1fr);

    align-items: start;

    gap: 0.8rem;

    margin-bottom: 0.75rem;

    padding:
        0.9rem 1rem;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 17px;

    background: #ffffff;

    color: #526578;

    cursor: pointer;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}


body.community-page .community-privacy-option:hover {
    transform: translateY(-2px);

    border-color:
        rgba(47, 105, 200, 0.24);

    box-shadow:
        0 10px 22px rgba(13, 44, 84, 0.07);
}


body.community-page .community-privacy-option:has(input:checked) {
    border-color:
        rgba(126, 143, 91, 0.38);

    background:
        linear-gradient(180deg,
            #fbfdf8 0%,
            #f1f7eb 100%);
}


body.community-page .community-privacy-option input {
    margin-top: 0.35rem;

    accent-color: #7e8f5b;
}


body.community-page .community-privacy-icon {
    font-size: 1.35rem;

    line-height: 1;
}


body.community-page .community-privacy-option strong {
    display: block;

    margin-bottom: 0.22rem;

    color: #0d2c54;

    font-size: 0.9rem;
    font-weight: 850;
}


/* ==========================================================
   SEND MESSAGE BUTTON
========================================================== */

body.community-page .community-send-message-button {
    width: 100%;

    justify-content: center;
}


/* ==========================================================
   VOTE FORM
========================================================== */

body.community-page .community-participation-signed-in .community-vote-trust {
    margin-bottom: 1.5rem;
}


body.community-page .community-participation-signed-in .community-vote-trust span {
    width: 100%;

    justify-content: flex-start;
}


body.community-page .community-participation-signed-in .community-vote-form fieldset {
    margin: 0;
    padding: 0;

    border: 0;
}


body.community-page .community-participation-signed-in .community-vote-form legend {
    margin-bottom: 1rem;

    color: #0d2c54;

    font-size: 1rem;
    font-weight: 850;
}


/* ==========================================================
   AUTH HIGHLIGHT
========================================================== */

body.community-page .community-participation-signed-out.community-auth-highlight {
    box-shadow:
        inset 0 0 0 5px rgba(47, 105, 200, 0.11);

    animation:
        communityParticipationHighlight 1.45s ease;
}


@keyframes communityParticipationHighlight {

    0% {
        box-shadow:
            inset 0 0 0 0 rgba(47, 105, 200, 0);
    }

    45% {
        box-shadow:
            inset 0 0 0 7px rgba(47, 105, 200, 0.15);
    }

    100% {
        box-shadow:
            inset 0 0 0 5px rgba(47, 105, 200, 0.11);
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    body.community-page .community-participation {
        padding: 5.5rem 0;
    }

    body.community-page .community-participation-signed-out {
        grid-template-columns: 1fr;

        min-height: 0;
    }

    body.community-page .community-participation-auth {
        text-align: center;
    }

    body.community-page .community-participation-auth .community-auth-icon {
        margin-left: auto;
        margin-right: auto;
    }

    body.community-page .community-participation-auth>p {
        margin-left: auto;
        margin-right: auto;
    }

    body.community-page .community-participation-benefits {
        align-items: center;
    }

    body.community-page .community-participation-auth .community-auth-actions {
        justify-content: center;
    }

    body.community-page .community-participation-card .community-conversation-visual {
        min-height: 420px;

        border-radius:
            0 0 36px 36px;
    }

    body.community-page .community-participation-card .community-conversation-visual img {
        min-height: 420px;
    }

    body.community-page .community-participation-signed-in {
        grid-template-columns: 1fr;
    }

}


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

@media (max-width: 767.98px) {

    body.community-page .community-participation {
        padding:
            4.5rem 1rem;
    }

    body.community-page .community-participation-card {
        border-radius: 27px;
    }

    body.community-page .community-participation-auth {
        padding:
            2.3rem 1.25rem;
    }

    body.community-page .community-participation-auth h3 {
        font-size:
            clamp(2.1rem, 10vw, 3rem);
    }

    body.community-page .community-participation-auth .community-auth-actions {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;
    }

    body.community-page .community-participation-auth .community-auth-actions button {
        width: 100%;
        min-width: 0;
    }

    body.community-page .community-participation-benefits {
        align-items: stretch;

        width: 100%;
    }

    body.community-page .community-participation-benefits span {
        align-items: flex-start;

        text-align: left;
    }

    body.community-page .community-participation-card .community-conversation-visual {
        min-height: 320px;

        border-radius:
            0 0 27px 27px;
    }

    body.community-page .community-participation-card .community-conversation-visual img {
        min-height: 320px;
    }

    body.community-page .community-participation-signed-in {
        padding:
            1.25rem;

        gap: 1.25rem;
    }

    body.community-page .community-participation-signed-in .community-message-form,
    body.community-page .community-participation-signed-in .community-vote-form {
        padding:
            1.35rem;

        border-radius: 22px;
    }

    body.community-page .community-topic-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    body.community-page .community-participation {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body.community-page .community-participation-auth {
        padding:
            2rem 1rem;
    }

    body.community-page .community-topic-grid {
        grid-template-columns: 1fr;
    }

    body.community-page .community-privacy-option {
        grid-template-columns:
            auto minmax(0, 1fr);
    }

    body.community-page .community-privacy-option input {
        grid-row:
            1 / 3;
    }

    body.community-page .community-privacy-icon {
        display: none;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.community-page .community-participation-card .community-conversation-visual img,
    body.community-page .community-topic-option,
    body.community-page .community-privacy-option {
        transition: none;
    }

    body.community-page .community-participation-signed-out.community-auth-highlight {
        animation: none;
    }

}

/* ==========================================================
   COMMUNITY DESTINATION MODAL
========================================================== */

/* ==========================================================
   MODAL CARD
========================================================== */
/* Premium top accent */
/* Soft decorative glow */
/* ==========================================================
   CLOSE BUTTON
========================================================== */


/* ==========================================================
   COMPASS ICON
========================================================== */
/* Gloss reflection */

/* ==========================================================
   MODAL COPY
========================================================== */


/* ==========================================================
   DESTINATION OPTIONS
========================================================== */



/* ==========================================================
   OPTION ICON
========================================================== */

/* Conversations option receives a warm variation */
/* ==========================================================
   OPTION TEXT
========================================================== */


/* Right arrow */

/* ==========================================================
   SAFETY NOTE
========================================================== */

/* ==========================================================
   BOOTSTRAP BACKDROP
========================================================== */

body.community-page .modal-backdrop.show {
    opacity: 0.58;
}


body.community-page .modal-backdrop {
    background-color: #081b33;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 767.98px) {}


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

@media (max-width: 520px) {}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {}

/* ==========================================================
   CURRENT COMMUNITY VOTE
========================================================== */

body.community-page .community-story-card-selected {
    border-color: rgba(47, 105, 200, 0.32);

    box-shadow:
        0 28px 60px rgba(13, 44, 84, 0.14),
        0 0 0 4px rgba(47, 105, 200, 0.06);
}


body.community-page .community-vote-selected {
    cursor: default;

    background:
        linear-gradient(135deg,
            #1f58ad 0%,
            #3477d5 100%);

    box-shadow:
        0 16px 32px rgba(31, 88, 173, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}


/* ==========================================================
   CHANGE VOTE ACTION
========================================================== */

body.community-page .community-change-vote-button {
    width: fit-content;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.5rem;

    margin:
        0.75rem auto 0;

    padding:
        0.55rem 0.9rem;

    border: 0;

    border-radius: 999px;

    background:
        rgba(47, 105, 200, 0.07);

    color: #46627f;

    font-size: 0.82rem;
    font-weight: 800;

    line-height: 1.2;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


body.community-page .community-change-vote-button:hover {
    transform: translateY(-2px);

    background:
        rgba(47, 105, 200, 0.13);

    color: #1f58ad;

    box-shadow:
        0 10px 22px rgba(13, 44, 84, 0.10);
}


body.community-page .community-change-vote-button:focus-visible {
    outline:
        3px solid rgba(47, 105, 200, 0.26);

    outline-offset: 3px;
}


body.community-page .community-change-vote-button i {
    font-size: 0.76rem;

    transition:
        transform 0.3s ease;
}


body.community-page .community-change-vote-button:hover i {
    transform: rotate(-35deg);
}


/* Keep the selected vote controls centered */

body.community-page .community-story-content .community-vote-card-button+.community-change-vote-button {
    align-self: center;
}

/* ==========================================================
   CHANGE VOTE CONFIRMATION MODAL
========================================================== */

body.community-page #communityChangeVoteModal {
    --bs-modal-width: 570px;
}


body.community-page #communityChangeVoteModal .modal-dialog {
    max-width: 570px;

    margin:
        1.25rem auto;

    padding:
        0 1rem;
}


/* ==========================================================
   MODAL CARD
========================================================== */

body.community-page .community-change-vote-modal-content {
    position: relative;

    overflow: hidden;

    padding:
        clamp(2.25rem, 5vw, 3.25rem);

    border:
        1px solid rgba(13, 44, 84, 0.11);

    border-radius: 30px;

    background:
        radial-gradient(circle at 8% 10%,
            rgba(245, 166, 35, 0.11),
            transparent 32%),
        radial-gradient(circle at 92% 92%,
            rgba(47, 105, 200, 0.11),
            transparent 34%),
        linear-gradient(145deg,
            #ffffff 0%,
            #fbfdff 100%);

    text-align: center;

    box-shadow:
        0 34px 85px rgba(13, 44, 84, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}


/* Premium top accent */

body.community-page .community-change-vote-modal-content::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 70%;
    height: 4px;

    transform:
        translateX(-50%);

    border-radius:
        0 0 999px 999px;

    background:
        linear-gradient(90deg,
            transparent 0%,
            #f5a623 32%,
            #2f69c8 68%,
            transparent 100%);
}


/* Soft decorative glow */

body.community-page .community-change-vote-modal-content::after {
    content: "";

    position: absolute;

    right: -110px;
    bottom: -125px;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        rgba(47, 105, 200, 0.07);

    filter:
        blur(16px);

    pointer-events: none;
}


/* ==========================================================
   CLOSE BUTTON
========================================================== */

body.community-page .community-change-vote-close {
    position: absolute;

    top: 1rem;
    right: 1rem;

    z-index: 5;

    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid rgba(13, 44, 84, 0.10);

    border-radius: 50%;

    background-color:
        rgba(255, 255, 255, 0.94);

    background-size: 11px;

    opacity: 0.78;

    box-shadow:
        0 8px 18px rgba(13, 44, 84, 0.08);

    transition:
        transform 0.22s ease,
        opacity 0.22s ease,
        box-shadow 0.22s ease;
}


body.community-page .community-change-vote-close:hover {
    transform:
        rotate(6deg) scale(1.05);

    opacity: 1;

    box-shadow:
        0 12px 24px rgba(13, 44, 84, 0.13);
}


body.community-page .community-change-vote-close:focus-visible {
    outline:
        3px solid rgba(47, 105, 200, 0.28);

    outline-offset: 3px;
}


/* ==========================================================
   MODAL ICON
========================================================== */

body.community-page .community-change-vote-icon {
    position: relative;
    z-index: 1;

    width: 82px;
    height: 82px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 1.35rem;

    overflow: hidden;

    border:
        1px solid rgba(47, 105, 200, 0.16);

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #f4f9ff 0%,
            #d7eaff 100%);

    color: #1f58ad;

    font-size: 1.85rem;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        0 16px 34px rgba(47, 105, 200, 0.18);
}


/* Gloss reflection */

body.community-page .community-change-vote-icon::before {
    content: "";

    position: absolute;

    top: 9px;
    left: 14px;
    right: 14px;

    height: 19px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.48);

    pointer-events: none;
}


body.community-page .community-change-vote-icon i {
    position: relative;
    z-index: 1;

    filter:
        drop-shadow(0 4px 7px rgba(13, 44, 84, 0.15));
}


/* ==========================================================
   MODAL COPY
========================================================== */

body.community-page .community-change-vote-modal-content .community-section-eyebrow {
    position: relative;
    z-index: 1;

    display: block;

    margin-bottom: 0.75rem;

    color: #cf3e4f;

    font-size: 0.75rem;
    font-weight: 900;

    line-height: 1.45;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


body.community-page .community-change-vote-modal-content h2 {
    position: relative;
    z-index: 1;

    max-width: 470px;

    margin:
        0 auto 1rem;

    color: #0d2c54;

    font-size:
        clamp(2rem, 5vw, 2.75rem);

    font-weight: 900;

    line-height: 1.08;

    letter-spacing: -0.04em;

    text-wrap: balance;
}


body.community-page .community-change-vote-modal-content>p {
    position: relative;
    z-index: 1;

    max-width: 470px;

    margin:
        0 auto 1rem;

    color: #5d7084;

    font-size: 0.98rem;

    line-height: 1.7;
}


body.community-page .community-change-vote-modal-content #communityCurrentVoteName {
    color: #0d2c54;

    font-weight: 900;
}


/* ==========================================================
   REASSURANCE NOTE
========================================================== */

body.community-page .community-change-vote-reassurance {
    position: relative;
    z-index: 1;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.55rem;

    max-width: 430px;

    margin:
        0 auto;

    padding:
        0.72rem 1rem;

    border:
        1px solid rgba(126, 143, 91, 0.20);

    border-radius: 999px;

    background:
        rgba(242, 247, 235, 0.86);

    color: #607246 !important;

    font-size: 0.8rem;
    font-weight: 750;

    line-height: 1.45;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}


body.community-page .community-change-vote-reassurance i {
    flex: 0 0 auto;

    color: #7e8f5b;
}


/* ==========================================================
   MODAL ACTIONS
========================================================== */

body.community-page .community-change-vote-actions {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr 1.2fr;

    gap: 0.85rem;

    margin-top: 1.75rem;
}


body.community-page .community-change-vote-actions button {
    min-height: 54px;

    margin: 0;

    border-radius: 999px;

    font-size: 0.88rem;
    font-weight: 850;

    line-height: 1.25;
}


body.community-page .community-change-vote-actions .community-secondary-button {
    border:
        1px solid rgba(47, 105, 200, 0.20);

    background:
        rgba(255, 255, 255, 0.88);

    color: #315478;
}


body.community-page .community-change-vote-actions .community-secondary-button:hover {
    background:
        rgba(47, 105, 200, 0.07);

    border-color:
        rgba(47, 105, 200, 0.30);

    color: #1f58ad;
}


body.community-page .community-change-vote-actions .community-primary-button {
    box-shadow:
        0 14px 30px rgba(31, 88, 173, 0.22);
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 767.98px) {

    body.community-page #communityChangeVoteModal .modal-dialog {
        margin:
            1rem auto;

        padding:
            0 0.85rem;
    }

    body.community-page .community-change-vote-modal-content {
        padding:
            2.4rem 1.35rem 1.6rem;

        border-radius: 27px;
    }

    body.community-page .community-change-vote-icon {
        width: 76px;
        height: 76px;

        font-size: 1.7rem;
    }

}


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

@media (max-width: 575.98px) {

    body.community-page #communityChangeVoteModal .modal-dialog {
        margin:
            0.7rem auto;

        padding:
            0 0.55rem;
    }

    body.community-page .community-change-vote-modal-content {
        padding:
            2.25rem 1rem 1.35rem;

        border-radius: 24px;
    }

    body.community-page .community-change-vote-close {
        top: 0.85rem;
        right: 0.85rem;

        width: 34px;
        height: 34px;
    }

    body.community-page .community-change-vote-modal-content h2 {
        font-size:
            clamp(1.9rem, 10vw, 2.45rem);
    }

    body.community-page .community-change-vote-modal-content>p {
        font-size: 0.92rem;

        line-height: 1.65;
    }

    body.community-page .community-change-vote-actions {
        grid-template-columns: 1fr;

        gap: 0.7rem;

        margin-top: 1.4rem;
    }

    body.community-page .community-change-vote-reassurance {
        align-items: flex-start;

        border-radius: 18px;

        font-size: 0.74rem;

        text-align: left;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.community-page .community-change-vote-close,
    body.community-page .community-change-vote-button,
    body.community-page .community-change-vote-button i {
        transition: none;
    }

}

/* ==========================================================
   COMMUNITY PREVIEW INVITATION
========================================================== */

body.community-page .community-preview-cta {

    max-width: 900px;

    margin:
        2.75rem auto 2rem;

    padding:
        clamp(2rem, 5vw, 3rem);

    border:
        1px solid rgba(13, 44, 84, 0.08);

    border-radius: 30px;

    background:
        linear-gradient(135deg,
            #fffdf8 0%,
            #ffffff 45%,
            #f8fbff 100%);

    text-align: center;

    box-shadow:
        0 22px 55px rgba(13, 44, 84, 0.10);

}


body.community-page .community-preview-cta h3 {

    margin:
        0 0 1rem;

    color: #0d2c54;

    font-size:
        clamp(2rem, 5vw, 2.7rem);

    font-weight: 900;

    line-height: 1.1;

    letter-spacing: -0.04em;

}


body.community-page .community-preview-cta p {

    max-width: 760px;

    margin:
        0 auto 1.5rem;

    color: #5d7084;

    font-size: 1.05rem;

    line-height: 1.9;

}


body.community-page .community-preview-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 0.7rem;

    min-width: 270px;

    min-height: 58px;

    padding:
        0 2rem;

    border: none;

    border-radius: 999px;

    background:
        linear-gradient(135deg,
            #7d8ca4,
            #62728d);

    color: #ffffff;

    font-size: 1rem;

    font-weight: 800;

    cursor: not-allowed;

    opacity: 1;

    box-shadow:
        0 16px 32px rgba(13, 44, 84, 0.18);

}


body.community-page .community-preview-button:disabled {

    color: #ffffff;

    background:
        linear-gradient(135deg,
            #8b99af,
            #6f7f99);

    opacity: 1;

}


body.community-page .community-preview-button i {

    font-size: 1rem;

}


@media (max-width: 767px) {

    body.community-page .community-preview-cta {

        padding:
            2rem 1.4rem;

        border-radius: 24px;

    }

    body.community-page .community-preview-button {

        width: 100%;

        max-width: 320px;

    }

}