/* html.msmg-html scroll override is in shell.css (natural-scroll opt-out) */

.msmg-body {

    background-color: var(--msmg-backdrop);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;

}

.msmg-container {

    width: 100%;
    margin: 0 auto;
    padding: 0 20px;

}

.msmg-container-story {

    width: 100%;
    margin: 0;
    padding: 0;

}

.msmg-header {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
}

.msmg-brand {

    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
    line-height: 1;

}

.msmg-brand:hover {

    color: #333;

}

.msmg-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-left: auto;
}

.msmg-nav a {

    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 0;

}

.msmg-nav a:hover {

    color: #000;

}

.msmg-nav a.active {
    color: #000;
    font-weight: 700;
}

.msmg-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.msmg-section {

    margin-bottom: 50px;

}

.msmg-section-title {

    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #111;
    display: flex;
    align-items: center;
    gap: 10px;

}

/* Beveled Panel Style */
.msmg-beveled {

    background-color: var(--msmg-surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
    width: 100%;
    padding: 0px 0px 0px 0px;

}

/* Feature Story Widget */
.msmg-feature-story {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 30px;
    text-decoration: none;
    color: inherit;

}

.msmg-content-class {

    padding: 0px 20px 0px 20px;

}

.msmg-feature-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    background-color: #eee;
}

.msmg-story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background-color: #eee;
}

.msmg-feature-content {
    padding: 40px 40px 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.msmg-feature-headline {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #000;
}

.feature-structure-class {
    display: flex;
}



/* Editor overlay and mode switch - added to ensure MSMG hub overlay displays */
.msmg-panel-launchers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.msmg-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.msmg-editor-panel {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: min(700px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    position: relative;
    top: auto;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.msmg-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.msmg-editor-overlay-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #cbd5e0;
    background: #f8fafc;
    color: #1f2937;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.msmg-editor-overlay-close:hover {
    background: #e2e8f0;
}

.msmg-editor-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.msmg-editor-mode-btn {
    border: 1px solid #cbd5e0;
    background: #ffffff;
    color: #4a5568;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.msmg-editor-mode-btn.active {
    background: #1b5edb;
    border-color: #1b5edb;
    color: #ffffff;
}

.msmg-editor-overlay[hidden],
.msmg-editor-panel[hidden],
.msmg-panel-form[hidden],
.msmg-add-menu[hidden],
.msmg-election-add-menu[hidden] {
    display: none !important;
}

body.msmg-editor-open {
    overflow: hidden;
}








.msmg-feature-headline {

    white-space: wrap;

}

.msmg-feature-excerpt {

    font-size: 17px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;

}

/* Standard Story Widget */
.msmg-stories-grid {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;

}

.msmg-story-card {

    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;

}

.msmg-story-card:hover {

    transform: translateY(-5px);

}

.msmg-story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background-color: #eee;
    margin-left: 0;
}

.msmg-story-content {

    padding: 20px;
    flex: 1;

}

.msmg-story-headline {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    margin-left: 0;
}

.msmg-story-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-left: 0;
}

.msmg-tag {

    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: var(--msmg-backdrop-soft);
    color: #7b7266;
    max-width: calc(100% - 0.8rem);

}

/* Story Detail Specific */
.msmg-story-header {

    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 30px;

}


.msmg-viewer-image {
    width: 450px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #eee;
    flex-shrink: 0;
}

.msmg-header-text {
    flex: 1;
    padding: 5px 0px 5px 0px;
}

.msmg-headline-main {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #000;
}

.msmg-meta {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msmg-excerpt-main {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.msmg-content {
    font-size: 18px;
    line-height: 1.6;
    color: #111;
    padding: 10px 20px 20px 20px;
}

.msmg-content p {
    margin-bottom: 20px;
}

.msmg-content-class {
    padding: 0px 20px 20px 20px;
}

.msmg-back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #7b7266;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.msmg-back-link:hover {
    color: #000;
}




/* Footer & Utilities */
.msmg-flex-container {

    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

}

main {

    flex: 1;

}

.msmg-scroll-container {
    padding-bottom: 0 !important;
}

.msmg-footer {

    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    margin-top: 40px;
    position: static !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none;
    z-index: 1;

}

.msmg-footer .msmg-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "brand links ."
        ". copy .";
    align-items: start;
}

.msmg-footer-brand {

    font-size: 24px;
    margin-bottom: 0;
    text-decoration: none;
    grid-area: brand;

}

.msmg-footer-links {

    display: flex;
    gap: 80px;
    margin-bottom: 30px;
    grid-area: links;

}

.msmg-footer-col {

    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;

}

.msmg-footer-heading {

    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;

}

.msmg-footer-link {

    text-decoration: none;
    color: #666;
    font-size: 14px;

}

.msmg-footer-link:hover {

    color: #000;

}

.msmg-footer-copy {

    color: #999;
    font-size: 12px;
    font-weight: 500;
    grid-area: copy;
    text-align: center;

}

@media (max-width: 768px) {
    .msmg-footer .msmg-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .msmg-footer-brand {
        margin-bottom: 30px;
    }

    .msmg-footer-links {
        flex-direction: column;
        gap: 40px;
    }
}

.msmg-sticky-spacer {

    height: 60px;

}

.msmg-no-image {

    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;

}

/* Live Election Button */
.msmg-live-banner {

    display: flex;
    justify-content: center;
    padding: 12px 0;
    background: transparent;
    border-bottom: none;
    position: sticky;
    top: 60px;
    /* height of header */
    z-index: 999;

}

.msmg-live-button {

    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: none;

}

.msmg-live-button:hover {

    transform: translateY(-1px);
    opacity: 0.88;

}

.msmg-pulse-dot {

    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    animation: msmg-pulse 1.5s infinite;

}

@keyframes msmg-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Election Page Styles */
.msmg-election-header {
    margin: 10px 0 30px;
    text-align: center;
}

.msmg-election-tabs {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--msmg-edge-mid);
    margin-top: 3rem;
}

.msmg-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
}

.msmg-tab-btn.active {

    color: #000;

}

.msmg-tab-btn.active::after {

    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;

}

.msmg-tab-content {

    display: none;

}

.msmg-tab-content.active {

    display: block;

}

.msmg-beveled p {

    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0px 0px 0px 0px;

}

.msmg-home-beveled {
    background-color: var(--msmg-surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
    width: 100%;
    padding: 0;
}

.msmg-candidate-grid {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;

}

.msmg-candidate-card {

    background: var(--msmg-surface);
    border: 1px solid var(--msmg-edge-mid);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;

}

.msmg-candidate-card:hover {

    transform: translateY(-4px);

}

.msmg-candidate-img-row {

    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;

}

.msmg-candidate-img-row img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;

}

.msmg-candidate-img-fallback {

    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #efe7da 0%, #ddd2bf 100%);
    color: #4f4437;
    font-weight: 700;

}

.msmg-candidate-info {

    padding: 20px;

}

.msmg-candidate-name {

    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;

}

.msmg-candidate-party {

    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;

}

.msmg-party-tag {

    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;

}

.msmg-party-D {

    color: #0044cc;
    background: #e6eeff;

}

.msmg-party-R {

    color: #cc0000;
    background: #ffe6e6;

}

.msmg-party-I {

    color: #666;
    background: #eee;

}

.msmg-candidate-race {

    font-size: 14px;
    font-weight: 600;

}

/* Info Pages (TOS {

    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px var(--msmg-shadow);

}

Privacy {

    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px var(--msmg-shadow);

}

About {

    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px var(--msmg-shadow);

}

Contact) */
.msmg-info-page {

    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px var(--msmg-shadow);

}

.msmg-info-title {

    font-size: 48px;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -2px;
    line-height: 1;

}

.msmg-info-content {

    font-size: 18px;
    line-height: 1.7;
    color: #333;

}

.msmg-info-content h1 {

    color: #000;
    margin-top: 40px;
    margin-bottom: 20px;

}

.msmg-info-content h2 {

    color: #000;
    margin-top: 40px;
    margin-bottom: 20px;

}

.msmg-info-content h3 {

    color: #000;
    margin-top: 40px;
    margin-bottom: 20px;

}

.msmg-info-content h1 {
    font-size: 32px;
    font-weight: 800;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.msmg-info-content h2 {
    font-size: 24px;
    font-weight: 800;
}

.msmg-info-content h3 {
    font-size: 20px;
    font-weight: 700;
}

.msmg-info-content p {

    margin-bottom: 24px;

}

.msmg-info-content hr {

    margin: 40px 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);

}

.msmg-contact-grid {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;

}





/* Homepage Sidebar & Grid Layout */
.msmg-home-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 5px;
}

@media (max-width: 1400px) {
    .msmg-home-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .msmg-feature-story {
        grid-template-columns: 1fr;
    }
    .msmg-feature-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.msmg-home-main {
    min-width: 0;
    /* Prevents flex/grid blowouts */
}

.msmg-sidebar {
    background-color: var(--msmg-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--msmg-shadow);
}

.msmg-sidebar-secondary {
    margin-top: 26px;
}

.msmg-sidebar-title {
    font-size: 16px !important;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msmg-tech-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #0070f3;
    /* Rich blue modern tech accent */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 112, 243, 0.8);
    animation: msmg-pulse-blue 2s infinite;
}

@keyframes msmg-pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 112, 243, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 112, 243, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 112, 243, 0);
    }
}

.msmg-ent-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #7928ca;
    /* Rich violet modern entertainment accent */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(121, 40, 202, 0.8);
    animation: msmg-pulse-violet 2s infinite;
}

@keyframes msmg-pulse-violet {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(121, 40, 202, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(121, 40, 202, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(121, 40, 202, 0);
    }
}


.msmg-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.msmg-sidebar-card {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
}

.msmg-sidebar-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.msmg-sidebar-card:hover {
    transform: translateX(4px);
    opacity: 0.9;
}

.msmg-sidebar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #eee;
    flex-shrink: 0;
}

.msmg-sidebar-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.msmg-sidebar-headline {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    margin: 0;
}

.msmg-sidebar-preview {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.msmg-sidebar-date {
    font-size: 10px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msmg-sidebar-empty {
    font-size: 13px;
    color: #888;
    text-align: center;
    padding: 24px 0;
    font-style: italic;
}

/* Responsive Grid Collapsing */


.msmg-feature-date,
.msmg-story-date {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
    display: inline-block;
}

.msmg-story-content {
    display: flex;
    flex-direction: column;
}

.msmg-story-date {
    margin-top: auto;
    padding-top: 10px;
}

.msmg-feature-text-group {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: auto;
}



/* Sidebar carousel rotation styles */
.msmg-sidebar-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.msmg-sidebar-list.rotating {
    will-change: transform;
}

.msmg-sidebar-list.rotating .msmg-sidebar-card {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-bottom: 20px !important;
}

/* Custom Flatpickr styles matching corporate branding */
.msmg-flatpickr-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #1e293b;
    transition: all 0.2s ease;
    min-height: 44px;
    cursor: pointer;
}

.msmg-flatpickr-input:focus {
    outline: none;
    border-color: #2978F0;
    box-shadow: 0 0 0 3px rgba(41, 120, 240, 0.1);
}

.msmg-modal {
    z-index: 1400 !important;
}

.ic-msmg {
    font-family: "Outfit", sans-serif;
}