﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600;1,700&display=swap");
/* ============================================================
   SURVEYOURS — HOMEPAGE CLEAN CSS  (from scratch, single file)
   ============================================================
   HOW TO USE — READ THIS FIRST
   This is the homepage file — muse_styling (formerly
   homepages_styling). It is being rebuilt SECTION BY
      SECTION BY
   SECTION against the Opinion Poll mockup. This update
   puts the shadow back on the map card and the
   footer, clipped at the seam: the card's shadow
   is cut off at its bottom edge, and the footer's
   at its top edge, so the two read as one
   shadowed box with no line across the join.
   Everything else is unchanged in it.
   1. Back up your current muse_styling.css BEFORE replacing.
   2. Replace the ENTIRE contents of muse_styling.css with
      this file. Do not paste this on top of the old file.
   3. In _StartupNewLayout.cshtml keep ONLY these in <head>:
        remixicon.css, the favicon, bootstrap.min.css and the
        bootstrap-icons CDN — plus this file (linked from
        Index.cshtml). The nine commented-out sheets stay
        commented out.
   4. HEADER + FOOTER styles are NOT in this file any more.
      They live in the separate shared stylesheet
      (surveyours-header-footer.css), linked from BOTH
      _StartupNewLayout.cshtml and LoginLayout.cshtml —
      the header/footer sections that used to be Sections
      15-16 here have been removed so nothing loads twice.
      Note: us-voting-map.js still drives the map, and the
      Letter Getter HUD script/partial still run — these
      files only replace CSS, not JavaScript.
   5. Razor change for this update: the Explore Topics
      heading/search row is now two Bootstrap columns
      (heading col-lg-7, search col-lg-5, with
      id="explore-topics" on the row) — the CSS in
      Section 7 is written for that markup, and the old
      absolute positioning that fought it is removed.
   6. Hard-refresh (Ctrl+F5) after replacing, so the browser
      does not keep serving the old cached stylesheet.

   DESIGN RULES BAKED IN
   - Page background: #EDF0F3 — ONE colour, top to bottom.
     FIX FOR THE SPLIT BACKGROUND: in the screenshot the top
     half was #EDF0F3 and the bottom half (from about halfway
     down the Explore Topics cards, through the Live Voting
     Map) was white / off-white. That is a wrapper or section
     background ending/changing part-way down the page. So
     Section 1 now paints html AND body #EDF0F3 (html is the
     backstop — nothing white is left to show through below
     or behind anything), makes <main>, the Index .container,
     the Explore Topics area and the Live Voting Map section
     transparent over that backstop, and keeps ONLY the cards
     themselves white. No wrapper in this file paints the page
     white, and no background gradient/image is used.
   - Cards: white. Text/structure: navy.
   - Brand red #D01C03 is for ACTIONS ONLY: Submit/Vote, Logout,
     View Topics / View More / Go Back, and hover/selected vote.
     Results bars, headings, labels and stats are navy — never red.
   - HERO (Sections 3-4, this update — matched to the
     mockup): the left side is now a WHITE CARD, like the
     mockup — it was bare text on the grey background, with
     a red kicker and a red "you think?", which is what
     looked different. Now: navy kicker with a short bar,
     heading ALL navy ("you think?" italic, not red), muted
     lede. The Hot Topics arrows move to the top-right of
     the card, in the header row, as round navy outlines —
     no longer over the image or the title. The hero row
     itself is still left to Bootstrap (no display/gap
     override — that was the earlier "card drops below"
     bug); only the column widths are set to the mockup's
     ~50/50 at desktop size, scoped to the hero row only.
   - BLUE BAR (Section 5, this update): in the live
     screenshot the navy "Vote. See the results…" bar sat
     far below the hero, with a large grey void under the
     Hot Topics card. Two causes, both fixed here: (1) the
     hero had a 24px bottom margin stacking on top of the
     strip's own spacing — the mockup banner sits exactly
     20px below the hero, so the hero bottom margin is now
     0 and that 20px is the whole gap; (2) the hero row was
     top-aligned, so the shorter Hot Topics card ended
     early and left grey space beneath it while the left
     column (hero card + the 450x350 ad below it) ran on —
     the row now stretches, as the mockup hero does, so
     both hero cards share one bottom edge and the bar
     sits tight under both. The bar also gains the
     mockup's right-hand pill, "Real Votes. Real Results.
     Real-Time.", generated in CSS (::after) because the
     Index.cshtml strip has no element for it — delete
     that one rule if a real Razor element is ever added.
     The Explore Topics head / category-card layout shown
     below the bar in the mockup is the NEXT section and
     is not rebuilt in this update.
   - EXPLORE TOPICS (Sections 7-8): the section under
     the navy bar follows the mockup's .explore-head +
     .grid. Heading LEFT at 27px, all navy ("Topics"
     italic navy, not red — it was centred and red),
     subtitle under it, search pill on the RIGHT of the
     same row (320px, light border — it was centred
     underneath at 560px with a navy border). SEARCH
     POSITION, THIRD FIX (this update): the Razor row is
     now two real columns, so Section 7 no longer
     positions the search absolutely and no longer caps
     the heading block at calc(100% - 352px) — that cap
     squeezed the intro to ~350px inside the 7/12
     heading column and wrapped the subtitle onto two
     lines. The intro now fills its column and the
     subtitle fits on one line.
     Cards go THREE across at desktop (two at tablet,
     stacked on phones), media on top at the unchanged
     1208x840 ratio, Total Views as a dark badge over
     the media's bottom-right, a VIDEO badge over the
     top-left when the active slide is a video, title
     with a 9px navy dot (the 32px icon images are
     hidden), and the old navy stats strip restyled as
     the mockup's plain bottom stats row. The stats
     boxes section (Section 6) is untouched — you are
     commenting that section out in the Razor, and the
     mockup has no such section, so the page will run
     bar -> Explore Topics once it is out.
   - FONT (fixed in this update): the live page was NOT
     using the mockup's font. This file named "Poppins"
     but nothing ever LOADED it — the layouts keep only
     remixicon.css, bootstrap.min.css and bootstrap-icons,
     with no Google Fonts link — so the browser fell back
     to Segoe UI / Arial, which is the different-looking
     font in the screenshots. The mockup loads Poppins
     from Google Fonts. Fixes in Section 1: (1) the
     @import on line 1 of this file loads Poppins with
     the mockup's exact weights (400-800 + italics) —
     it MUST stay the first line, or browsers ignore it;
     (2) the font stack now matches the mockup's stack;
     (3) the family is applied with !important to body
     and every descendant (icon-font classes excluded),
     because Bootstrap's reboot sets its own body font
     and headings / buttons / inputs do not reliably
     inherit — a plain body rule was not enough.
     PERMANENT OPTION: @import works, but the faster,
     preferred route is the mockup's two <link> tags in
     the <head> of BOTH layouts (preconnect +
     fonts.googleapis.com/css2?family=Poppins…). If you
     add those links, the @import line can be deleted.
     Note the separate header/footer file names Poppins
     the same way — on non-homepage pages it needs the
     layout <link> tags (or its own @import) too; on the
     homepage this file's @import loads the font for the
     header and footer as well.
   - BLUE BAR, SECOND FIX (this update): the bar was
     STILL too far down because the first fix silently
     lost a specificity fight: the hero row in the Razor
     is <div class="row align-items-start">, and
     Bootstrap's align-items-start utility is !important,
     so this file's plain align-items:stretch never
     applied — the row stayed top-aligned and the gap
     stayed. Now: stretch is !important (and this
     selector outranks the utility), EVERY bottom
     margin/padding under the hero — hero, row, columns,
     both cards — is zeroed with !important, and the
     strip's 20px top margin is !important, so no
     Bootstrap margin utility or stray rule can push
     the bar down. The 20px is once again the whole gap.
   - Category media is 1208 x 840 (aspect-ratio: 1208 / 840).
     Image and video share ONE identical slot at that ratio.
   - The Live Voting Map stays and stays interactive. Only its
     wrapper, heading and footer are styled here.
   - Ads are NOT hidden by this file (see the Ads section).
   ============================================================ */

/* ---------- 1. VARIABLES & BASE ---------- */
:root {
    --sv-bg: #EDF0F3;
    --sv-card: #FFFFFF;
    --sv-navy: #08284E;
    --sv-navy-soft: #E8EEF4;
    --sv-red: #D01C03;
    --sv-red-dark: #A81502;
    --sv-text: #1E2A36;
    --sv-muted: #5B6B7A;
    --sv-border: #D8DEE5;
    --sv-radius: 16px;
    --sv-radius-sm: 10px;
    --sv-shadow: 0 2px 10px rgba(8,40,78,.08);
    --sv-media-ratio: 1208 / 840;
    /* Same stack as the mockup: Poppins first (loaded by
     the @import on line 1), then the mockup's fallbacks. */
    --sv-font: "Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    /* Backstop for the WHOLE page, including below the fold:
     if html stayed white, the bottom half shows white the
     moment any shorter wrapper above it ends. */
    background: var(--sv-bg) !important;
    background-color: var(--sv-bg) !important;
    background-image: none !important;
    min-height: 100%;
}

body, body.body {
    margin: 0 !important;
    background: var(--sv-bg) !important;
    background-color: var(--sv-bg) !important;
    background-image: none !important;
    min-height: 100vh;
    color: var(--sv-text);
    font-family: var(--sv-font) !important;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
    /* FONT — force Poppins everywhere on the page.
   A body-only rule was not enough: Bootstrap's reboot
   sets its own font on body, and headings, buttons,
   inputs and links do not reliably inherit through the
   Razor's nested markup, so parts of the page rendered
   in Bootstrap's sans while others fell back to Segoe
   UI. This rule covers body and every descendant —
   including the layout header and footer on this page.
   Icon fonts are excluded by class: .bi (Bootstrap
   Icons) and ri-* (Remix Icon) must keep their own
   icon font, and their ::before rules are untouched. */
    body,
    body *:not(.bi):not([class^="ri-"]):not([class*=" ri-"]) {
        font-family: var(--sv-font) !important;
    }

img, video {
    max-width: 100%
}

a {
    color: var(--sv-navy);
    text-decoration: none
}

    a:hover {
        color: var(--sv-red);
        text-decoration: underline
    }

:focus-visible {
    outline: 3px solid var(--sv-navy);
    outline-offset: 2px
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    background: transparent;
}

#guestIdentity {
    display: none !important
}

/* ---------- 1B. ONE BACKGROUND, TOP TO BOTTOM ---------- */
/* Every structural wrapper between <body> and the cards is
   transparent, so it can never paint half the page white —
   and if a wrapper ends early, the #EDF0F3 html/body behind
   it is the same colour, so no split line can appear.
   Only the cards in Section 2 are white. The footer card
   (.footer-redesign — styled by the separate shared
   header/footer stylesheet) is excluded by name below,
   so this rule can never wash it transparent. */
main, main.homepage, main.main-content {
    background: var(--sv-bg) !important;
    background-color: var(--sv-bg) !important;
    background-image: none !important;
}

    main > .container:not(.footer-redesign),
    .homepage-hero, .homepage-action-strip-wrapper,
    .homepage-section-intro, .explore-topic-bg,
    .homepage-explore-card, #accordionFlushExample,
    #accordionFlushExample .row,
    .live-voting-map-section, .live-voting-map-header,
    .live-map-footer, .peel-away-section, .vault-header {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
    }

/* ---------- 2. SHARED CARD SURFACE ---------- */
/* One surface for every major block — this is the cohesion. */
.homepage-question-card,
.statsbox,
.category-card,
.live-map-wrapper,
.peel-away-stage {
    background: var(--sv-card) !important;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow);
}

/* ---------- 3. HERO — matched to the mockup ---------- */
/* Target: the Opinion Poll mockup, top of page.
   LEFT = a WHITE CARD. In the live screenshot the hero text
   sat bare on the grey background — that was the difference.
   Inside the card: navy kicker with a short bar before it,
   "What do" navy / "you think?" navy ITALIC (not red),
   muted lede. RIGHT = the Hot Topics card (Section 4).
   The mockup's two cards are ~50/50, so at desktop the
   Bootstrap col-lg-5 / col-lg-7 are overridden to halves —
   scoped to the hero row only. Do NOT set display:flex /
   flex-wrap / gap on the row itself: Bootstrap's gutters
   provide the spacing, and an added gap was the earlier
   bug that dropped the Hot Topics card below the hero.
   NOT DONE BY CSS — the mockup's stats row (183 / 671 /
   68.8K) and "Most viewed right now" pills have NO markup
   in the Index.cshtml hero, and no numbers are hard-coded
   in CSS. Ready-made styles for them are at the end of
   this section, marked OPTIONAL: they do nothing until a
   small Razor block uses them. The 450x350 hero ad stays
   where it is — below the card, contained (Section 13). */
@media (min-width:992px) {
    .homepage-hero .row > .col-lg-5,
    .homepage-hero .row > .col-lg-7 {
        flex: 0 0 auto;
        width: 50%;
        max-width: 50%;
    }
}
/* NO bottom margin or padding anywhere under the hero:
   the action strip below it carries the mockup's exact
   20px top margin, and anything here stacks on top of
   it and pushes the blue bar down — so all of it is
   zeroed with !important. The row STRETCHES (mockup:
   align-items:stretch) instead of top-aligning, so the
   Hot Topics card reaches the same bottom edge as the
   left column — no grey void under the shorter card.
   The !important is REQUIRED: the Razor row is
   class="row align-items-start", and Bootstrap's
   align-items-start utility is itself !important — the
   plain stretch rule in the previous version silently
   never applied, which is why the bar stayed low. The
   columns are flex columns so the card inside each one
   can stretch; the left column's card keeps its natural
   height and the hero ad still sits below it. */
.homepage-hero {
    margin: 8px 0 0 !important;
    padding-bottom: 0 !important
}

    .homepage-hero .row {
        align-items: stretch !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

        .homepage-hero .row > [class*="col-"] {
            display: flex;
            flex-direction: column;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

.homepage-hero-left {
    background: var(--sv-card);
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    box-shadow: var(--sv-shadow);
    padding: 30px 30px 26px;
    margin-bottom: 0 !important;
}

.homepage-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sv-navy);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

    .homepage-kicker::before {
        content: "";
        flex-shrink: 0;
        width: 22px;
        height: 3px;
        border-radius: 2px;
        background: var(--sv-navy);
    }

.homepage-hero-heading,
.homepage-hero .div-2 {
    margin: 0 0 12px;
    color: var(--sv-navy);
    font-size: clamp(1.9rem,4.4vw,2.75rem);
    font-weight: 800;
    line-height: 1.12;
}

    .homepage-hero-heading .text-wrapper-3,
    .homepage-hero .text-wrapper-3 {
        color: var(--sv-navy);
        font-style: normal;
        font-weight: 800;
    }

.homepage-hero-subtitle {
    margin: 0;
    max-width: 44ch;
    color: var(--sv-muted);
    font-size: 1.03rem;
    line-height: 1.6;
}

.hero-subtitle-second-line {
    display: block
}
/* OPTIONAL — mockup stats row + most-viewed pills.
   No Index.cshtml hero markup uses these classes yet, so
   these rules are inert until that Razor block is added.
   Mockup markup shape:
     <div class="hero-stats"><div><b>…</b><span>Active
     Topics</span></div> … </div>
     <p class="most-viewed-label">Most viewed right now</p>
     <div class="most-viewed-pills"><span class="chip">…
     </span> … </div>                                  */
.hero-stats {
    display: flex;
    border-top: 1px solid var(--sv-border);
    border-bottom: 1px solid var(--sv-border);
    padding: 14px 0;
    margin: 22px 0 24px;
}

    .hero-stats > div {
        flex: 1;
        text-align: center
    }

        .hero-stats > div + div {
            border-left: 1px solid var(--sv-border)
        }

    .hero-stats b {
        display: block;
        font-size: 1.45rem;
        line-height: 1.15;
        color: var(--sv-navy);
        font-weight: 700;
    }

    .hero-stats span {
        font-size: .75rem;
        color: var(--sv-muted)
    }
    /* Same stats row, written with explicit classes
       instead of the <b>/<span> shape above — the
       OpinionPoll stats markup uses these:
         <div class="hero-stats"><div class="hero-stat">
         <span class="hero-stat-num">…</span>
         <span class="hero-stat-label">…</span></div> … </div>
       Scoped under .hero-stats so they outrank the
       plain `.hero-stats span` rule above. */
    .hero-stats > .hero-stat {
        flex: 1;
        text-align: center
    }

        .hero-stats > .hero-stat + .hero-stat {
            border-left: 1px solid var(--sv-border)
        }

    .hero-stats .hero-stat-num {
        display: block;
        font-size: 1.45rem;
        line-height: 1.15;
        color: var(--sv-navy);
        font-weight: 700;
    }

    .hero-stats .hero-stat-label {
        display: block;
        font-size: .75rem;
        color: var(--sv-muted)
    }

.most-viewed-label {
    margin: 0 0 9px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sv-muted);
}

.most-viewed-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

/* Most-viewed categories list (OpinionPoll left box) —
   the ViewBag.TopViewedCategories markup: a small
   uppercase heading, then one row per category with
   the name on the left and the view count on
   the right. */
.top-viewed-section {
    margin-top: 20px;
}

.top-viewed-heading {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sv-muted);
}

.top-viewed-list {
    display: grid;
}

.top-viewed-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--sv-border);
}

    .top-viewed-item:first-child {
        border-top: 0;
        padding-top: 0;
    }

.top-viewed-topic-title {
    color: var(--sv-navy);
    font-weight: 600;
    font-size: 15px;
}

.top-viewed-views {
    color: var(--sv-muted);
    font-size: 13px;
    white-space: nowrap;
}

    .top-viewed-views i {
        margin-right: 4px;
    }
/* Hero buttons (OpinionPoll left box) — mockup:
   red Browse Topics, outline Create a Topic. */
.hero-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-btn-browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sv-red);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
}

    .hero-btn-browse:hover {
        background: var(--sv-red-dark);
        color: #fff;
        text-decoration: none;
    }

.hero-btn-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--sv-navy);
    border: 2px solid var(--sv-navy);
    font-weight: 700;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}

    .hero-btn-create:hover {
        background: var(--sv-navy-soft);
        color: var(--sv-navy);
        text-decoration: none;
    }


    .most-viewed-pills .chip {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        background: var(--sv-card);
        color: var(--sv-navy);
        border: 1.5px solid var(--sv-border);
        border-radius: 999px;
        padding: 8px 14px;
        font-size: .84rem;
        font-weight: 600;
        text-decoration: none;
    }

        .most-viewed-pills .chip:hover {
            border-color: var(--sv-navy);
            background: var(--sv-navy-soft);
            text-decoration: none;
        }

/* ---------- 4. HOT TOPICS SLIDER — matched to the mockup ---------- */
/* Mockup header row: flame + HOT TOPICS label top-left in
   plain navy (NO pill background), and the two arrows at
   the top-RIGHT of the card as round navy outlines. In the
   Razor the arrows sit inside .homepage-topic-slider, so
   the slider is made static and the arrows are positioned
   against the CARD instead — no Razor change. The mockup's
   "1 / 3" counter and its vote-option rows have no markup
   in the Index.cshtml slider, so they are not faked here:
   the counter needs the slider JS, and vote rows are the
   instant-voting work, not a styling section. */
.homepage-question-card {
    padding: 22px 24px 24px;
    overflow: hidden;
    position: relative;
    border-radius: 14px;
    margin-bottom: 0 !important;
    /* Fill the stretched hero column, so this card's
     bottom edge is the hero's bottom edge and the
     blue bar below sits tight under it. */
    flex: 1 1 auto;
    width: 100%;
}

.homepage-question-header {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 6px;
    padding-right: 96px; /* room for the two arrows */
}

.homepage-question-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    color: var(--sv-navy);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
}

.hot-topics-flame {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    line-height: 1
}

    .hot-topics-flame svg {
        display: block
    }

.homepage-topic-slider {
    position: static
}

.homepage-topic-slide {
    display: none
}

    .homepage-topic-slide.active {
        display: block
    }

.homepage-question-title {
    margin: 4px 0 14px;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 54px; /* mockup reserves two title lines */
}

    .homepage-question-title a {
        color: var(--sv-text)
    }

        .homepage-question-title a:hover {
            color: var(--sv-navy)
        }

.homepage-question-description {
    color: var(--sv-muted);
    margin: 0 0 12px
}

.homepage-featured-image {
    border-radius: var(--sv-radius-sm);
    overflow: hidden;
    line-height: 0;
    /* Same 1208x840 slot as the category media — the image
     fills it, no size change and no distortion. */
    aspect-ratio: var(--sv-media-ratio);
    background: var(--sv-navy-soft);
}

.homepage-featured-topic-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-slider-arrow {
    position: absolute;
    top: 22px;
    transform: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--sv-navy);
    background: transparent;
    color: var(--sv-navy);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 2;
}

.homepage-slider-prev {
    left: auto;
    right: 66px
}

.homepage-slider-next {
    right: 24px
}

.homepage-slider-arrow:hover {
    background: var(--sv-navy);
    color: #fff;
    border-color: var(--sv-navy)
}

/* ---------- 5. ACTION STRIP (the one navy band) ---------- */
/* Matched to the mockup's .banner, which sits DIRECTLY
   under the hero: margin-top 20px, radius 14px, padding
   20px 26px, title 18.5px, sub-text 13.5px in #B9CBDE,
   and a "Real Votes. Real Results. Real-Time." pill at
   the right. The hero above now has NO bottom margin,
   so the 20px here is the entire hero-to-bar gap — that
   stacked spacing, plus the top-aligned hero row, was
   why the bar sat too far down in the live screenshot.
   The strip is a flex row so the pill can sit at the
   right of the text block; the pill is CSS-generated
   (::after) because the Razor strip has no element for
   it — remove that rule if one is ever added in Razor.
   The 20px top margin is !important in this revision,
   and the strip's wrapper (when the Razor uses one) is
   zeroed too — between the hero's zeroed bottom spacing
   (Section 3) and this, the 20px is guaranteed to be
   the whole hero-to-bar gap, whatever Bootstrap margin
   utilities or stray rules the live markup carries. */
.homepage-action-strip-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.homepage-action-strip {
    background: var(--sv-navy);
    color: #fff;
    border-radius: 14px;
    padding: 20px 26px;
    margin: 20px 0 28px !important;
    box-shadow: var(--sv-shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

    .homepage-action-strip > .row {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
    }

    .homepage-action-strip::after {
        content: "Real Votes. Real Results. Real-Time.";
        margin-left: auto;
        flex-shrink: 0;
        font-size: .8125rem;
        font-weight: 600;
        letter-spacing: .04em;
        color: #fff;
        white-space: nowrap;
        border: 1px solid rgba(255,255,255,.35);
        padding: 8px 14px;
        border-radius: 999px;
    }

.homepage-action-strip-title {
    font-size: 1.15625rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.homepage-action-strip-text {
    margin: 2px 0 0;
    color: #B9CBDE;
    font-size: .84375rem;
}

.looking-eyes {
    margin-left: 6px
}

/* ---------- 6. STATS / DEMO-VOTE BOXES ---------- */
/* Explicitly NOT pink — the pink came from an old stylesheet. */
.statsbox, .thumbs-vote-card {
    background: var(--sv-card) !important;
    padding: 20px;
    height: 100%;
}

.survey-box-slider {
    position: relative
}

.survey-slide {
    display: none
}

    .survey-slide.active {
        display: block
    }

.survey-box {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.survey-heading, .statsbox-topic-link {
    color: var(--sv-navy);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
}

.statsbox-heading-text {
    color: var(--sv-navy)
}

.survey-text {
    color: var(--sv-navy) !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
/* Image stage: thumbs sit on the image, as in the Razor. */
.statsbox-image-stage {
    position: relative;
    border-radius: var(--sv-radius-sm);
    overflow: hidden;
    line-height: 0
}

.statsbox-topic-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover
}

.icon-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 8px 0
}

.demo-vote-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--sv-navy);
    background: var(--sv-card);
    color: var(--sv-navy);
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease,color .15s ease,transform .15s ease;
}

    .demo-vote-button:hover, .demo-vote-button:focus-visible {
        background: var(--sv-red);
        border-color: var(--sv-red);
        color: #fff;
    }

    .demo-vote-button.selected,
    .demo-vote-button[aria-pressed="true"] {
        background: var(--sv-red);
        border-color: var(--sv-red);
        color: #fff;
    }

.statsbox-image-vote {
    position: absolute;
    bottom: 12px;
    background: rgba(255,255,255,.95);
    box-shadow: var(--sv-shadow);
}

.statsbox-vote-yes {
    left: 12px
}

.statsbox-vote-no {
    right: 12px
}
/* Percentages: visible navy result text/bars — never hidden, never red. */
.statsbox-hidden-percentages {
    display: flex !important;
    gap: 16px;
    align-items: center;
    visibility: visible !important;
    height: auto !important;
}

    .statsbox-hidden-percentages .percentage,
    .demo-yes-percent, .demo-no-percent {
        display: inline-block;
        background: var(--sv-navy-soft);
        color: var(--sv-navy);
        font-weight: 800;
        font-size: 1rem;
        padding: 4px 12px;
        border-radius: 999px;
    }

/* ---------- 6B. HOT TOPICS VOTE CARD ---------- */
/* The repurposed statsbox: the old thumbs-over-the-image block is
   replaced by the mockup's Hot Topics card — header row with the
   HOT TOPICS label, "1 / N" counter and round arrows, then the
   topic title, image, and full-width Yes / No option rows. After
   a vote the same card shows the results in place: navy bars,
   real percentages, a "Your vote" tag on the visitor's pick.
   Yes fill is navy, No fill is light steel-blue — the same
   colours as _VotesPercentagePartial, so results match
   everywhere on the site. */
.hot-vote-card {
    margin-bottom: 16px
}

.hot-vote {
    padding: 22px 24px 24px;
    overflow: hidden;
    position: relative;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

.hot-vote-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.hot-vote-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sv-navy);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hot-vote-count {
    margin-left: auto;
    font-size: .8125rem;
    color: var(--sv-muted);
    font-weight: 500;
}

.hot-vote-nav {
    display: flex;
    gap: 8px
}

    .hot-vote-nav button {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 2px solid var(--sv-navy);
        background: transparent;
        color: var(--sv-navy);
        font-size: 1.0625rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

        .hot-vote-nav button:hover {
            background: var(--sv-navy);
            color: #fff
        }

.hot-vote-title {
    margin: 4px 0 14px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 54px;
}

    .hot-vote-title a {
        color: var(--sv-text)
    }

        .hot-vote-title a:hover {
            color: var(--sv-navy)
        }

.hot-vote-img {
    border-radius: var(--sv-radius-sm);
    overflow: hidden;
    line-height: 0;
    aspect-ratio: var(--sv-media-ratio);
    background: var(--sv-navy-soft);
    margin-bottom: 16px;
}

    .hot-vote-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover
    }
/* Vote rows and results — these rules cover the vote controls
   wherever they live on the homepage: the standalone vote card
   (.hot-vote), the Hot Topics card (.homepage-question-card),
   and the vote panel in the left hero box
   (.homepage-hero-left). */
.hot-vote .vote-options,
.homepage-question-card .vote-options,
.homepage-hero-left .vote-options {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.hot-vote .vote-opt,
.homepage-question-card .vote-opt,
.homepage-hero-left .vote-opt {
    font: inherit;
    text-align: left;
    background: var(--sv-card);
    border: 2px solid var(--sv-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--sv-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
}

    .hot-vote .vote-opt:hover,
    .homepage-question-card .vote-opt:hover,
    .homepage-hero-left .vote-opt:hover {
        border-color: var(--sv-navy);
        background: #EEF3F8
    }

    .hot-vote .vote-opt:disabled,
    .homepage-question-card .vote-opt:disabled,
    .homepage-hero-left .vote-opt:disabled {
        cursor: default;
        opacity: .65
    }

    .hot-vote .vote-opt .thumb,
    .homepage-question-card .vote-opt .thumb,
    .homepage-hero-left .vote-opt .thumb {
        margin-left: auto;
        color: var(--sv-navy);
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #EEF3F8;
    }

    .hot-vote .vote-opt:hover .thumb,
    .homepage-question-card .vote-opt:hover .thumb,
    .homepage-hero-left .vote-opt:hover .thumb {
        background: #fff
    }

.hot-vote .results,
.homepage-question-card .results,
.homepage-hero-left .results {
    display: grid;
    gap: 12px;
    margin-top: 16px
}

.hot-vote .result-row .r-top,
.homepage-question-card .result-row .r-top,
.homepage-hero-left .result-row .r-top {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 5px;
}

    .hot-vote .result-row .r-top .pct,
    .homepage-question-card .result-row .r-top .pct,
    .homepage-hero-left .result-row .r-top .pct {
        color: var(--sv-navy)
    }

.hot-vote .result-row.picked .r-top,
.homepage-question-card .result-row.picked .r-top,
.homepage-hero-left .result-row.picked .r-top {
    justify-content: flex-start
}

    .hot-vote .result-row.picked .r-top::after,
    .homepage-question-card .result-row.picked .r-top::after,
    .homepage-hero-left .result-row.picked .r-top::after {
        content: "Your vote";
        font-size: 11px;
        font-weight: 700;
        color: var(--sv-red);
        letter-spacing: .06em;
        margin-left: 8px;
    }

    .hot-vote .result-row.picked .r-top .pct,
    .homepage-question-card .result-row.picked .r-top .pct,
    .homepage-hero-left .result-row.picked .r-top .pct {
        margin-left: auto
    }

.hot-vote .result-row .bar,
.homepage-question-card .result-row .bar,
.homepage-hero-left .result-row .bar {
    height: 12px;
    border-radius: 6px;
    background: #E4EAF0;
    overflow: hidden;
}

    .hot-vote .result-row .bar i,
    .homepage-question-card .result-row .bar i,
    .homepage-hero-left .result-row .bar i {
        display: block;
        height: 100%;
        border-radius: 6px;
        transition: width .6s ease;
    }

.hot-vote .result-yes .bar i,
.homepage-question-card .result-yes .bar i,
.homepage-hero-left .result-yes .bar i {
    background: var(--sv-navy)
}

.hot-vote .result-no .bar i,
.homepage-question-card .result-no .bar i,
.homepage-hero-left .result-no .bar i {
    background: #8AA5BF
}

.hot-vote .vote-meta,
.homepage-question-card .vote-meta,
.homepage-hero-left .vote-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 13px;
    color: var(--sv-muted);
}

    .hot-vote .vote-meta .recorded,
    .homepage-question-card .vote-meta .recorded,
    .homepage-hero-left .vote-meta .recorded {
        color: var(--sv-red);
        font-weight: 700
    }

.hot-vote .change-vote,
.homepage-question-card .change-vote,
.homepage-hero-left .change-vote {
    background: none;
    border: 0;
    color: var(--sv-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px 4px;
    min-height: 36px;
}

.hot-vote .vote-note,
.homepage-question-card .vote-note,
.homepage-hero-left .vote-note {
    font-size: 12.5px;
    color: var(--sv-muted)
}

/* ---------- 6C. HERO VOTE PANEL (LEFT BOX) ---------- */
/* The vote panel inside the left hero box. One panel per
   Hot Topic; only the active one shows, and the slider's
   hotTopicChanged event switches it. Separated from the
   heading by a hairline, so the vote reads as its own
   block inside the card. */
.hero-vote-panel {
    margin-top: 22px !important;
    border-top: 1px solid var(--sv-border) !important;
    padding-top: 18px !important;
}

.hero-vote-topic {
    display: none
}

    .hero-vote-topic.active {
        display: block
    }

.hero-vote-label {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: var(--sv-muted) !important;
}

.hero-vote-question {
    margin: 0 0 12px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--sv-navy) !important;
    /* Reserve room for two lines, so the left box stays the
     same height whether the question wraps or not. */
    min-height: 2.7em !important;
}

    .hero-vote-question a {
        color: var(--sv-navy) !important
    }

.hero-vote-panel .vote-options {
    margin-top: 0 !important
}
/* "Linked to Hot Topics" pill + counter, as in the mockup.
   Sits above the vote panels, inside the vote zone. The
   counter is rendered by Razor (Topic 1 of N); the slider
   script updates it as topics change. */
.hero-vote-panel .link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.hero-vote-panel .link-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #EEF3F8;
    color: var(--sv-navy);
    border: 1px solid var(--sv-border);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

    .hero-vote-panel .link-badge .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #1D9D61;
        flex: none;
    }

.hero-vote-panel .link-count {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sv-muted);
    white-space: nowrap;
}

/* ---------- 6D. OPINION POLL CARD — counter, dots, votes line ---------- */
/* The mockup's "1 / 3" counter sits left of the arrows. The
   arrows are absolute against the card (right:66px/24px),
   so the counter is absolute too, just left of them. */
.hot-count {
    position: absolute;
    top: 32px;
    right: 112px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sv-muted);
    white-space: nowrap;
    z-index: 2;
}
/* Dots under the card, as in the mockup: the active dot is
   a navy pill, the rest are small grey dots. */
.homepage-question-card .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.homepage-question-card .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: #C6D2DE;
    padding: 0;
    cursor: pointer;
}

    .homepage-question-card .slider-dot.active {
        width: 22px;
        border-radius: 999px;
        background: var(--sv-navy);
    }
/* "212 votes so far — tap an option to vote in place." */
.homepage-question-card .vote-count {
    margin: 14px 0 0;
    font-size: 13.5px;
    color: var(--sv-muted);
}

.hot-vote .dots {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 16px
}

    .hot-vote .dots button {
        width: 10px;
        height: 10px;
        min-height: 10px;
        border-radius: 50%;
        border: 0;
        background: var(--sv-border);
        cursor: pointer;
        padding: 0;
    }

        .hot-vote .dots button.on {
            background: var(--sv-navy);
            width: 26px;
            border-radius: 5px
        }

/* ---------- 7. EXPLORE TOPICS HEAD + SEARCH — matched to the mockup ---------- */
/* Target: the mockup's .explore-head, directly under the
   navy bar. LEFT: "Explore Topics" — 27px, weight 800,
   ALL navy ("Topics" italic navy, NOT red) — with the
   subtitle under it. RIGHT: the search pill, on the
   SAME row as the heading.
   THIRD FIX (this update) — the Razor markup changed,
   so the CSS changed to match it. The heading and the
   search are now two real Bootstrap columns in one row:
   heading col-lg-7 (left), search col-lg-5 (right),
   with id="explore-topics" on the row itself. The old
   absolute positioning is GONE — it was fighting the
   new markup, and it is what made the subtitle wrap:
   the old rule capped .homepage-section-intro at
   calc(100% - 352px), but 100% was now the narrow
   7/12 heading column, so the intro was squeezed to
   about 350px wide and "Search categories and find
   what matters to you." broke onto two lines. Now the
   intro simply fills its own column, and the subtitle
   fits on one line at desktop width. The row's own
   Bootstrap columns do the layout; this section only
   styles the heading, the subtitle and the pill, and
   keeps the search at the mockup's 320px, right
   aligned. At 620px and under the columns stack and
   the search goes full width under the heading.
   #searchResults sits AFTER the row, full width, and
   opens under the heading when the search script
   shows it. */
#explore-topics {
    margin: 34px 4px 16px !important;
    scroll-margin-top: 80px;
    text-align: left !important;
}

.homepage-section-intro {
    text-align: left !important;
    margin: 0 !important;
    background: transparent !important;
}

    .homepage-section-intro .div-2 {
        margin: 0 !important;
        color: var(--sv-navy);
        font-size: 27px;
        font-weight: 800;
        line-height: 1.2;
    }

    .homepage-section-intro .text-wrapper-3 {
        color: var(--sv-navy);
        font-style: normal;
        font-weight: 700;
    }

.text-wrapper-9 {
    color: var(--sv-muted);
    margin: 3px 0 0 !important;
    font-size: 14.5px;
    white-space: nowrap;
}

.component-3 {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--sv-card) !important;
    border: 2px solid var(--sv-border);
    border-radius: 999px;
    padding: 0 16px 0 15px;
    width: 320px !important;
    max-width: 100%;
    min-height: 46px;
    margin: 0;
}

    .component-3:focus-within {
        border-color: var(--sv-navy)
    }

    .component-3 .icon-button {
        background: none;
        border: 0;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .component-3 .frame-17 {
        width: 17px;
        height: 17px;
        display: block
    }

.search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--sv-text);
    min-width: 0;
    min-height: 44px;
}

    .search-input::placeholder {
        color: var(--sv-muted)
    }

.search-results-inside-card {
    width: 100%;
    background: var(--sv-card);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow);
    padding: 16px;
    text-align: left;
}

/* ---------- 8. CATEGORY CARDS — matched to the mockup ---------- */
/* Target: the mockup's .grid + .cat-card — THREE across,
   media ON TOP filling the card width, a views badge
   over the media's bottom-right, a VIDEO badge over
   its top-left when the showing slide is a video, then
   a navy-dot title, the description, and a plain stats
   row at the bottom (number over label, top border).
   The live cards were TWO across with the image on the
   LEFT and the title/description on the right, a navy
   stats strip under the image, and Total Views in its
   own row under the card body.
   HOW THIS IS DONE WITH CSS ONLY — no Razor change:
   - The grid: #accordionFlushExample's column wrappers
     go from col-lg-6 (50%) to a third at >=992px. At
     768-991px Bootstrap's col-md-6 already gives the
     mockup's two-across, and below that they stack.
     The accordion's inline margin-top:40px is beaten
     with !important — the explore head above now
     carries the spacing (its 16px bottom margin).
   - The card layout: .card-content-wrapper, its .row,
     its two columns, .frame-26/.frame-3, .category-
     image, .image-wrapper and the total-views .row are
     all display:contents, so the media slider, the
     views row, the title, the description and the
     stats become direct flex children of .category-
     card and are put in mockup order with `order`.
     The elements stay in the DOM, so the card-click
     handler, handleImageClick and arrangeCategoryCards
     () keep working — that mobile script's DOM move of
     the title simply no longer changes the visuals,
     because `order` decides them at every width.
   - Views badge: .category-total-views is the flex
     item right after the media; a negative top margin
     pulls it up over the media's bottom-right corner,
     and its bottom margin cancels the shift so the
     title still starts exactly at the media's bottom
     edge. Its text stays the Razor's own ("9.4K Total
     Views") — CSS cannot reword it to the mockup's
     "9.4K views", and no numbers are faked here.
   - VIDEO badge: generated on the slider when the
     ACTIVE slide is a <video> (:has). Browsers without
     :has simply show no badge — nothing else breaks.
   - Title icon: the mockup has a 9px navy dot, not the
     32px category icon image, so the img is hidden and
     the dot is generated. Delete those two rules to
     bring the icon images back.
   - Stats: the navy .category-stats strip is restyled
     into the mockup's bottom row — transparent, top
     border, icons and divider hidden, number over
     label — and margin-top:auto pins it to the bottom
     so cards in a row share one stats line.
   - Media size is NOT changed: the mockup's fixed
     150px height is deliberately not used — the slot
     keeps the 1208x840 ratio, per your instruction.
   - The mockup's red "Browse Topics" link per card has
     no element in the Razor (the whole card is the
     link), so it is not faked here.
   All rules are scoped to #accordionFlushExample: the
   Vault card further down also uses .category-card and
   must keep the Section 8 layout it already has. */
#accordionFlushExample {
    margin-top: 0 !important
}

@media (min-width:992px) {
    #accordionFlushExample > .col-lg-6 {
        flex: 0 0 auto;
        width: 33.333333%;
        max-width: 33.333333%;
    }
}

#accordionFlushExample .category-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    #accordionFlushExample .card-content-wrapper,
    #accordionFlushExample .card-content-wrapper > .row,
    #accordionFlushExample .card-content-wrapper > .row > [class*="col-"],
    #accordionFlushExample .frame-26,
    #accordionFlushExample .frame-3,
    #accordionFlushExample .category-image,
    #accordionFlushExample .image-wrapper,
    #accordionFlushExample .category-card > .row,
    #accordionFlushExample .category-card > .row > [class*="col-"] {
        display: contents;
    }

.category-card-clickable {
    cursor: pointer
}

    .category-card-clickable:hover {
        border-color: var(--sv-navy);
        box-shadow: 0 6px 20px rgba(8,40,78,.14);
    }

.category-card.card-flash {
    animation: sv-flash .25s ease
}

@keyframes sv-flash {
    0% {
        background: var(--sv-navy-soft)
    }

    100% {
        background: var(--sv-card)
    }
}

#accordionFlushExample .category-video-wrapper {
    display: none !important
}
/* Media — order 1, on top, full card width, same slot. */
#accordionFlushExample .image-slider {
    order: 1;
    position: relative;
    width: 100%;
    aspect-ratio: var(--sv-media-ratio);
    overflow: hidden;
    border-radius: 0;
    background: var(--sv-navy-soft);
}

#accordionFlushExample .slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

    #accordionFlushExample .slider-image.active {
        opacity: 1;
        pointer-events: auto
    }

#accordionFlushExample .image-slider:has(>video.slider-image.active)::after {
    content: "\25B6  VIDEO";
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    background: rgba(8,40,78,.88);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    padding: 5px 10px;
    border-radius: 999px;
    line-height: 1.4;
}
/* Views badge — order 2, pulled up over the media. */
#accordionFlushExample .category-total-views {
    order: 2;
    align-self: flex-end;
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(8,40,78,.88);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 5px 10px;
    margin: -35px 10px 10px 0;
    font-size: 12px;
    line-height: 1.4;
}

    #accordionFlushExample .category-total-views i {
        display: none
    }

#accordionFlushExample .category-total-views-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

#accordionFlushExample .category-total-views-number {
    font-weight: 600;
    font-size: 12px;
    color: #fff;
}

#accordionFlushExample .category-total-views-label {
    color: #fff;
    font-size: 12px;
}
/* Title — order 3: navy dot + name, no icon image. */
#accordionFlushExample .category-title-row,
#accordionFlushExample .text-wrapper-13 {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sv-navy) !important;
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding: 16px 18px 0;
}

    #accordionFlushExample .category-title-row::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--sv-navy);
        flex: none;
    }

    #accordionFlushExample .category-title-row img {
        display: none !important
    }
/* Description — order 4. */
#accordionFlushExample .text-wrapper-14 {
    order: 4;
    color: var(--sv-muted);
    font-size: 13.8px;
    line-height: 1.55;
    margin: 0;
    padding: 6px 18px 16px;
}
/* Stats — order 5, bottom row, pinned to the bottom. */
#accordionFlushExample .category-stats {
    order: 5;
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: transparent !important;
    color: var(--sv-muted);
    border-top: 1px solid var(--sv-border);
    border-radius: 0;
    margin-left: 18px;
    margin-right: 18px;
    padding: 12px 0 16px;
    position: relative;
}

#accordionFlushExample .category-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

#accordionFlushExample .category-stat-icon {
    display: none
}

#accordionFlushExample .category-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

#accordionFlushExample .category-stat-number {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--sv-text);
}

#accordionFlushExample .category-stat-label {
    font-size: 12.5px;
    color: var(--sv-muted);
    text-transform: none;
    letter-spacing: 0;
}

#accordionFlushExample .category-stat-divider {
    display: none
}


/* ---------- 9. LIVE VOTING MAP — kept, interactive ---------- */
/* The REAL map stays — you love it, and it is not
   replaced by the mockup's tile grid. The DB-IP credit
   ("Map powered by dbip") and the paid Elfsight
   weather widget in the footer also stay, untouched.
   This update is CSS-only tidying, to match the
   mockup's card system:
   - The section itself has NO background of its own —
     the map sits on the same #EDF0F3 as the rest of
     the page (this was part of the white bottom half).
     Only .live-map-wrapper, the white map card, is
     white. Its radius is now 14px, like the hero and
     category cards, with a little more padding.
   - The heading is the same 27px navy heading as
     "Explore Topics", with the subtitle at the same
     14.5px muted size — in the live screenshot the
     heading was already close; this just locks it in.
   - The "Someone in … just voted" notice under the
     map was plain small text, lost in the white space
     at the bottom of the card. It is now a mockup-
     style feed row: a soft-navy strip, full width,
     under the map — the element right after
     #usVotingMapContainer inside the wrapper. The
     map itself, its JS, the weather widget and the
     credit are not touched by any rule here. */
.live-voting-map-section {
    margin: 40px 0 8px;
    background: transparent !important;
    background-image: none !important;
}

.live-voting-map-header {
    margin-bottom: 16px
}

.live-voting-map-heading {
    display: flex;
    align-items: center;
    gap: 14px
}
/* Globe icon next to "Live Voting Map" —
   the user wants it gone, and it's not in
   the page markup (it comes from a shared
   layout/partial), so hide it in CSS
   instead of hunting the markup. */
.live-voting-map-icon {
    display: none !important
}

.live-voting-map-heading h2 {
    margin: 0;
    color: var(--sv-navy);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
}

.live-voting-map-heading p {
    margin: 3px 0 0;
    color: var(--sv-muted);
    font-size: 14.5px
}

.live-map-wrapper {
    padding: 20px 20px 16px;
    overflow: hidden;
    border-radius: 14px;
    /* Fixed height: 560px + 170px = 730px, so there
     is enough space to move the map down and fit
     the two-line "Live Voting Map / Explore voting
     activity across the United States" statement
     at the top of the card, like the mockup. */
    position: relative;
    min-height: 730px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* The footer below is NOT moved inside the card
     — the map JavaScript interferes with the
     weather widget if they share the container.
     Instead the card's bottom corners are squared
     off here, so the footer strip below can join
     onto it and look like one card. See the
     .live-map-footer rule below. */
    border-radius: 14px 14px 0 0 !important;
    /* No line between the card and the footer:
     the card's bottom border is removed, so the
     two join seamlessly. The shadow is back on
     the card, but clipped at the bottom, so it
     does not fall across the join and show as
     a line — see the footer rule, which is
     clipped at the top the same way. Together
     they read as one shadowed box. */
    border-bottom: 0 !important;
    box-shadow: var(--sv-shadow) !important;
    clip-path: inset(-20px -20px 0 -20px);
}
    /* Red live beacon, inside the white card like the
   mockup: a small red dot at the top left of the
   card, with "Live Voting Map" next to it. The
   heading outside the card stays as it is. */
    .live-map-wrapper::before {
        content: "";
        position: absolute;
        top: 26px;
        left: 20px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--sv-red);
        z-index: 2;
        animation: sv-live-pulse 2s infinite;
    }

.live-map-title {
    position: absolute;
    top: 20px;
    left: 38px;
    margin: 0;
    white-space: nowrap;
    color: var(--sv-navy);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    z-index: 2;
}

    .live-map-title strong {
        font-weight: 800;
    }

@keyframes sv-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(208,28,3,.45)
    }

    70% {
        box-shadow: 0 0 0 8px rgba(208,28,3,0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(208,28,3,0)
    }
}

.us-voting-map-container {
    width: 100%;
    max-width: 800px;
    margin: 48px auto 0;
    min-height: 320px;
}

    .us-voting-map-container svg,
    .us-voting-map-container img {
        display: block;
        width: 100%;
        height: auto
    }
/* Live-vote notice — the element directly under the
   map inside the wrapper. Mockup-style feed row. */
#usVotingMapContainer + * {
    display: block;
    margin: 14px 0 0;
    background: var(--sv-navy-soft);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--sv-navy);
    font-size: 14px;
    line-height: 1.5;
}

.live-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    /* Illusion that the footer is inside the card,
     without moving it in the Razor — the map
     JavaScript interferes with the weather widget
     if they share the container, so the footer
     stays where it is in the markup. This styles
     it as the bottom strip of the same card: white,
     same width, no top border, rounded only at
     the bottom, pulled up by 1px so it joins onto
     the card above with no seam. Weather on the
     left, dbip credit on the right. */
    margin-top: -1px;
    background: var(--sv-card) !important;
    border: 1px solid var(--sv-border);
    border-top: 0 !important;
    /* Shadow is back on the footer too, clipped
     at the top, so it does not show across the
     join with the card above. */
    box-shadow: var(--sv-shadow) !important;
    clip-path: inset(0 -20px -20px -20px);
    border-radius: 0 0 14px 14px;
    padding: 12px 20px;
    box-sizing: border-box;
}

.weather-wrapper {
    flex: 0 0 auto;
    min-width: 220px
}

.us-voting-map-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--sv-muted);
    font-size: .85rem;
}

    .us-voting-map-credit img {
        height: 20px;
        width: auto
    }

/* ---------- 10. PEEL-AWAY ---------- */
/* DO NOT rename or remove these — the JavaScript
   relies on them, and it stops entirely if any are
   missing: .peel-away-stage, #peelCanvas,
   #peelAdPanel (with a .adsbygoogle inside it),
   #peelMessage and #peelMessageText.
   How it works: the ad panel shows first. If AdSense
   fills it, the slideshow never runs. If it is
   unfilled, the fallback slideshow runs on the
   canvas — 4 images, 7 seconds each, with a slow
   zoom and a 1.2s slide-out — and the message under
   it changes with each image ("Engaging content!",
   "Explore something new!", "What do you think?",
   "Your opinion matters!").
   WHY IT COLLAPSED — the markup you shared shows
   it: the stage has NO in-flow content to give it
   height. The ad panel is empty when AdSense is
   unfilled, the canvas is positioned on top of the
   stage (so it gives it no height), and the message
   is positioned on top too. So the stage's height
   was just its padding: 20px top + 20px bottom =
   the thin bar you saw. Setting padding to 0 made
   it just a line. A height on the stage alone did
   not stick in the browser, so this version puts
   the height on the AD PANEL as well — the ad panel
   IS in the flow, so its height forces the stage
   tall. The stage is now a 360px strip, the canvas
   fills it (the JS sizes its drawing from the
   canvas's on-screen size), and the message is the
   mockup's navy pill centred at the bottom, sliding
   in with .show. No JavaScript change, no id
   changes. If this still shows as a line after a
   hard refresh, the new file is not reaching the
   browser at all, and that is the next thing to
   check — not more CSS.
   FIX THAT WORKED (this update): the red diagnostic
   showed the file IS loading, and the stage stayed
   tall once a spacer was added inside it. So the
   spacer stays: it is in the flow and 350px tall,
   and the stage cannot collapse below it. The red
   is gone — the stage is back to white.
   SIZING (this update): the stage is now the
   mockup's size — 580px wide, centred, 350px
   tall — instead of full width. The photo is
   drawn on the canvas by the JavaScript, so the
   image itself is a script issue to come back
   to; this update only gets the box right. */
.peel-away-section {
    margin: 36px 0
}

.peel-away-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    min-height: 350px !important;
    height: 350px !important;
    padding: 0 !important;
    display: block;
    background: var(--sv-card) !important;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    box-shadow: var(--sv-shadow);
}
    /* DIAGNOSTIC 2: a spacer inside the stage that
   nothing in the JavaScript can hide — the ad
   panel can be hidden by the script, the canvas
   and message are positioned on top, but this
   spacer is in the flow and is 350px tall, so
   the stage cannot collapse below 350px unless
   the stage itself is being hidden or resized
   after load. */
    .peel-away-stage::before {
        content: "";
        display: block;
        height: 350px;
    }

.peel-ad-panel {
    width: 100%;
    height: 350px !important;
    min-height: 350px !important;
    text-align: center;
}

#peelCanvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer;
}

.peel-message {
    position: absolute;
    left: 50%;
    bottom: 20px;
    background: var(--sv-navy);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(8,40,78,.35);
    white-space: nowrap;
    max-width: calc(100% - 32px);
    opacity: 0;
    transform: translate(-50%,8px);
    transition: opacity .45s ease,transform .45s ease;
    z-index: 3;
}

    .peel-message.show {
        opacity: 1;
        transform: translate(-50%,0);
    }

/* ---------- 11. THE VAULT ---------- */
/* Last section on the page, matched to the mockup.
   The mockup's Vault card is full width with the
   image on the left, the title and description on
   the right, and the red "View Topics" button under
   them. The live card starts at half width on
   purpose — it is a category card, and clicking
   "View Topics" expands it to full width, swaps
   the image from the closed vault to the open one,
   and shows the topics list. So nothing here forces
   it full width permanently, and nothing hides the
   question list — the JavaScript owns both of
   those. This update only tidies what is already
   there:
   - The heading above the card is now the same
     27px navy heading as "Explore Topics" and
     "Live Voting Map" (it was 32px), with a little
     more room under it.
   - The card's corners are 14px, like the other
     cards, and the image is clipped to them.
   - The image column and the text column stretch
     to the same height, so the vault photo fills
     the left side of the card instead of ending
     early.
   - The title inside the card is 20px navy, the
     description is the same muted 14.5px as the
     other section subtitles, and the red button
     keeps its place under the text.
   - The expanded topics list keeps the styles it
     already had — navy heading, white list items,
     red only on the buttons. */
.vault-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 16px;
    text-align: center;
}

.vault-lock {
    font-size: 1.6rem;
    line-height: 1
}

.vault-title {
    color: var(--sv-navy);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
}

.category-card:has(.image-wrapper_2[data-category-id="expired"]) {
    overflow: hidden;
    border-radius: 14px;
}

.vault-layout-row {
    align-items: stretch
}
    /* Make the Vault card shorter and sleeker, like the
   mockup: the photo column is 300px wide instead
   of half the card, and the photo is square, so
   the card is about 300px tall instead of 450px.
   This does NOT touch the opening and closing
   effect — that is the same <img> swapping its
   source between VaultClosed and VaultOpened, and
   both photos are the same size, so the swap
   works exactly as before, just displayed smaller.
   On phones the photo goes back to full width. */
    .vault-layout-row > .vault-image-column {
        flex: 0 0 300px;
        max-width: 300px;
    }

    .vault-layout-row > .vault-description-column {
        flex: 1 1 auto;
        max-width: none;
    }

.vault-image-column .image-slider {
    aspect-ratio: 1 / 1
}

.vault-image-column {
    display: flex;
    flex-direction: column
}

    .vault-image-column .image-wrapper_2 {
        flex: 1;
        display: flex;
        flex-direction: column
    }

    .vault-image-column .image-slider {
        flex: 1
    }

.vault-image {
    position: relative !important;
    opacity: 1 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-wrapper_2 {
    position: relative
}

    .image-wrapper_2 .image-slider {
        aspect-ratio: var(--sv-media-ratio)
    }

.vault-description-column {
    display: flex;
    flex-direction: column;
    justify-content: center
}

    .vault-description-column .frame-26 {
        padding: 24px 24px 24px 6px
    }

    .vault-description-column .text-wrapper-13 {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .vault-description-column .text-wrapper-14 {
        color: var(--sv-muted);
        font-size: 14.5px;
        line-height: 1.6;
        margin: 0 0 16px;
    }

.question-list {
    margin-top: 16px
}
/* When the Vault is open, the topics list should
   use the full width of the card, in two columns,
   instead of sitting in the left half with empty
   white space on the right. The "View More" and
   "Go Back" buttons stay under the list. */
.category-card.expanded .vault-layout-row > div:has(#expand-expired) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.category-card.expanded #expand-expired {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100%;
}

    .category-card.expanded #expand-expired .list-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
    }

.question-list h6 {
    color: var(--sv-navy) !important;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 0 10px
}

.list-group {
    list-style: none;
    margin: 0;
    padding: 0
}

.list-group-item {
    background: var(--sv-card);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-sm);
    padding: 10px 14px;
    margin-bottom: 8px;
}
/* Open Vault topics — each topic should be
   totally outlined, all the way round. The
   border was a very pale grey, so on white
   it read as faint / incomplete, especially
   at the bottom. Give the Vault items a
   slightly stronger, complete outline, on
   mobile and desktop alike. */
.category-card.expanded #expand-expired .list-group-item {
    border: 1.5px solid #CBD5E1 !important;
    box-sizing: border-box !important;
    /* First topic's top was squared off — Bootstrap
     gives .list-group-item:first-child its own
     radius rules, which were flattening the top
     corners. Give every Vault topic the same
     rounded corners, first one included. */
    border-radius: 10px !important;
}
/* "View More" / "Go Back" on desktop — their
   bottoms sat a little lower than the last
   topic's bottom. The topic items carry an
   8px bottom margin, the buttons didn't, so
   give the buttons the same 8px and the
   bottoms line up even. */
.category-card.expanded #expand-expired #vaulttopicviewmore,
.category-card.expanded #expand-expired #vaultgobackbutton {
    margin-bottom: 8px !important;
}

.question-color {
    color: var(--sv-navy);
    font-weight: 600
}

    .question-color:hover {
        color: var(--sv-red)
    }
/* Open Vault buttons: kept red, because red is
   for actions. Only their shape is matched to
   the buttons already in use on the page — the
   header's "Log In" / "Sign Up" and the mockup's
   "View Topics" — which are rectangles with
   small rounded corners, not pills. This rule
   covers both buttons by id and by class, so
   "View More" (a link) gets the same shape as
   "Go Back" (a button). */
#vaulttopicviewbutton,
#vaulttopicviewmore,
#vaultgobackbutton,
.category-card.expanded .buttons {
    border-radius: 8px !important;
}
/* The open Vault buttons were sitting right on
   the bottom edge of the card. This adds white
   space under them — and, on desktop too, the
   "Topics" heading and the list were hugging
   the left edge of the card, so the expanded
   area now gets breathing room on the sides
   and top as well, not just at the bottom. */
.category-card.expanded #expand-expired {
    padding: 20px 24px 24px;
}

    .category-card.expanded #expand-expired .question-list h6 {
        margin-top: 8px;
    }

/* ---------- 12. BUTTONS — red is for actions ---------- */
.buttons, .toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sv-red);
    color: #fff !important;
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none !important;
}

    .buttons:hover, .toggle-btn:hover {
        background: var(--sv-red-dark);
        color: #fff
    }

    .buttons .text {
        color: #fff
    }

.arrow-arrow-right-MD {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1)
}

/* ---------- 13. ADS — kept visible, just contained ---------- */
/* This clean file does NOT hide any ad. The old 450x350 hero
   unit collapsed to a thin line when AdSense did not fill it;
   the rules below only stop an unfilled slot from breaking
   the layout. If you remove an ad in Razor, remove its rule. */
.hero-ad-test {
    margin-top: 12px;
    line-height: 0;
    max-width: 100%;
    overflow: hidden
}

    .hero-ad-test .adsbygoogle {
        display: inline-block;
        max-width: 100% !important
    }

.banner-ad-wrapperr {
    height: 100px;
    max-height: 100px;
    width: 100%;
    overflow: hidden;
    margin-top: 32px;
}

.peel-ad-panel .adsbygoogle {
    display: block
}

/* ---------- 15. RESPONSIVE ---------- */
/* Header/footer responsive rules live with the header/
   footer styles in the separate shared stylesheet. */
@media (max-width:991px) {
    /* Below lg the hero columns return to full width and
     stack (Bootstrap col-12) — text card first, Hot
     Topics card below it. */
    .homepage-hero-left {
        padding: 24px 22px 22px
    }

    .us-voting-map-container {
        min-height: 360px
    }
}

@media (max-width:767px) {
    .container {
        padding: 16px 12px 36px
    }
    /* Hero stacks: text first, Hot Topics card below it.
     The Razor columns are already col-12 on mobile, so
     Bootstrap stacks them — no flex-direction override
     here (see the warning in Section 3). */
    .homepage-hero .row > * {
        width: 100%
    }

    .homepage-hero-heading {
        font-size: 2.3rem
    }

    .homepage-question-card {
        padding: 18px
    }

    .homepage-question-header {
        padding-right: 88px
    }

    .homepage-question-title {
        font-size: 1.15rem;
        min-height: 2.7em !important;
    }

    .homepage-slider-arrow {
        top: 18px
    }

    .homepage-slider-prev {
        right: 60px
    }

    .homepage-slider-next {
        right: 18px
    }
    /* Stats boxes stack full-width */
    .statsbox, .thumbs-vote-card {
        margin-bottom: 16px
    }
    /* Category cards stack (the column wrappers are
     col-12 here); media keeps the SAME 1208/840 ratio.
     The card's inner rows are display:contents now, so
     there is no inner-row display rule to change. */
    #accordionFlushExample .category-card {
        margin-bottom: 0
    }

    #accordionFlushExample .image-slider {
        aspect-ratio: var(--sv-media-ratio)
    }

    #accordionFlushExample .category-stats {
        flex-wrap: wrap
    }
    /* Vault columns stack */
    .vault-layout-row {
        display: block
    }

    .vault-image-column, .vault-description-column,
    .vault-topics-column {
        width: 100%;
        margin-bottom: 16px
    }
    /* Vault image on mobile — it was sitting on
     the left, only 300px wide, because the
     desktop rule caps the photo column at
     max-width:300px, and that cap was still
     applying when the columns stacked. Lift
     the cap on mobile so the photo fills the
     full width of the card, at the same
     1208/840 ratio as the other cards. */
    .vault-layout-row > .vault-image-column {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .vault-image-column .image-slider,
    .vault-image-column .image-wrapper_2 .image-slider {
        aspect-ratio: var(--sv-media-ratio) !important;
        width: 100% !important;
    }

    .vault-image-column .vault-image {
        width: 100% !important;
        height: auto !important;
    }
    /* Vault title/description on mobile — they
     were sitting a long way below the photo,
     and too close to the card's left edge.
     The description's inner padding was
     24px top / 6px left, and the photo column
     carried a 16px bottom margin on top of
     that. Tighten both on mobile: no gap
     under the photo, less top padding, and
     16px on the sides so the text sits
     inside the card. */
    .vault-image-column {
        margin-bottom: 0 !important
    }

    .vault-description-column {
        margin-bottom: 0 !important
    }

        .vault-description-column .frame-26 {
            padding: 12px 16px 8px !important;
        }

        .vault-description-column .text-wrapper-13 {
            margin-top: 0 !important;
        }
    /* Open Vault on mobile — the topics list was
     still in two columns, so each topic was a
     narrow strip with the text wrapping every
     few words, and "View More" / "Go Back" were
     squeezed into the same grid as big red
     squares. On a phone the list goes to one
     column, full width, and the two buttons sit
     side by side underneath it, on one line each. */
    .category-card.expanded #expand-expired .list-group {
        grid-template-columns: 1fr !important;
    }

    .category-card.expanded #expand-expired .buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        margin-top: 12px !important;
    }

    #vaulttopicviewmore,
    #vaultgobackbutton {
        flex: 1 1 0 !important;
        white-space: nowrap !important;
        justify-content: center !important;
        min-height: 50px !important;
    }
    /* "Topics" heading and the buttons were still
     hugging the edges of the open Vault — the
     expanded area had padding at the bottom
     only, none on the sides or top. Give it
     breathing room all round on mobile, so
     the heading and the buttons sit inside
     the card instead of touching its edges. */
    .category-card.expanded #expand-expired {
        padding: 20px 16px 24px !important;
    }

        .category-card.expanded #expand-expired .question-list h6 {
            margin-top: 8px !important;
        }

    .vault-title {
        font-size: 1.6rem
    }
    /* Live Voting Map on mobile — the card was
     730px tall on desktop, with the map moved
     down 48px, so on a phone it was a long
     empty white box with a small map in the
     middle, and the beacon title was cut off
     ("…Explore voting activi…"). On mobile
     the card shrinks to fit the map, the map
     sits at the top, and the title wraps to
     two lines instead of running off the edge. */
    .live-map-wrapper {
        min-height: 0 !important;
        padding: 56px 12px 16px !important;
        justify-content: flex-start !important;
    }

        .live-map-wrapper::before {
            top: 18px !important;
            left: 14px !important
        }

        .live-map-wrapper::after {
            top: 12px !important;
            left: 32px !important;
            right: 12px !important;
            white-space: normal !important;
            font-size: 14px !important;
            line-height: 1.3 !important;
        }

    .us-voting-map-container {
        min-height: 0 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    /* Live Voting Map footer on mobile — the
     weather widget and the "Map powered by
     dbip" credit were stacking, one on top
     of the other. Keep them on one row,
     weather left, dbip right, even on a
     phone, with the dbip text smaller so
     they both fit. */
    .live-map-footer {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 12px !important;
    }

    .live-map-footer {
        padding: 12px 14px !important;
    }

    .weather-wrapper {
        min-width: 0 !important;
    }

    .us-voting-map-credit {
        font-size: 12px !important;
        white-space: nowrap !important;
        align-self: flex-end !important;
    }

        .us-voting-map-credit img {
            height: 18px !important;
        }

    .peel-away-stage {
        min-height: 220px !important;
        height: 220px !important
    }

    .peel-ad-panel {
        height: 220px !important;
        min-height: 220px !important
    }

    .peel-message {
        font-size: .95rem;
        bottom: 12px;
        padding: 10px 16px;
        white-space: normal;
        text-align: center
    }
}

@media (max-width:620px) {
    /* Mockup small screens: the search drops below the
     heading and goes full width. The subtitle is
     allowed to wrap again here — the nowrap is a
     desktop-only rule, and a narrow phone column
     could not hold the whole line. */
    #explore-topics {
        margin: 26px 2px 14px !important
    }

        #explore-topics .text-wrapper-9 {
            white-space: normal
        }

    .component-3 {
        width: 100% !important;
        max-width: 100%
    }

    .homepage-section-intro .div-2 {
        font-size: 24px
    }
}

@media (max-width:575px) {
    .homepage-action-strip {
        padding: 18px
    }

    .homepage-action-strip-title {
        font-size: 1.1rem
    }
    /* Mockup small-screen banner: the pill drops below
     the text and aligns left, instead of staying right. */
    .homepage-action-strip::after {
        margin-left: 0;
        white-space: normal
    }

    .demo-vote-button {
        width: 46px;
        height: 46px;
        font-size: 1.1rem
    }

    .homepage-slider-arrow {
        width: 36px;
        height: 36px
    }

    .us-voting-map-container {
        min-height: 0 !important
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .slider-image, .demo-vote-button {
        transition: none
    }

    .category-card.card-flash {
        animation: none
    }
}
/* End of Surveyours Homepage Clean CSS */
/*Voting map popup*/
.us-voting-message {
    position: absolute;
    right: 5%;
    bottom: 5%;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 390px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    padding: 18px 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.10);
    color: #08284E;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

    .us-voting-message.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .us-voting-message::before {
        content: "";
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        margin-top: 1px;
        border-radius: 50%;
        background: #ff4b4b;
        box-shadow: 0 0 5px rgba(255, 75, 75, 0.90), 0 0 12px rgba(255, 75, 75, 0.60), 0 0 20px rgba(255, 75, 75, 0.35);
    }

.voting-message-text {
    display: block;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    color: #08284E;
}

    .voting-message-text > div {
        display: block;
    }

    .voting-message-text .state-name {
        font-weight: 700;
    }

@media (max-width: 767px) {
    .us-voting-message {
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: calc(100% - 16px);
        padding: 12px 14px;
        border-radius: 12px;
    }

        .us-voting-message::before {
            flex: 0 0 12px;
            width: 12px;
            height: 12px;
        }

    .voting-message-text {
        font-size: 13px;
        line-height: 1.3;
    }

    .live-map-wrapper {
        padding: 72px 12px 16px !important;
    }

    .live-map-title {
        top: 12px !important;
        left: 32px !important;
        right: 12px !important;
        white-space: normal !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
}
