﻿/* ============================================================
   SURVEYOURS — SHARED CSS
   ============================================================
   The one general stylesheet, for every page.

   This is the answer to "a different stylesheet for
   every page": put the styles that are the same on
   every page here, once, and let each page keep only
   the styles that are unique to that page.

   What lives here:
   - Tokens: colours, radius, shadow, Poppins
   - Base: page background, font, container, links
   - Shared card surface: white cards, one look
   - Hero: the white hero card, heading, description
   - Pills: the non-clickable descriptive pills
   - Buttons: red is for actions

   What does NOT live here:
   - Header and footer — new-css/surveyours-header-footer.css
   - Homepage-only sections (Hot Topics slider, Explore
     Topics cards, Live Voting Map, peel-away, Vault)
     — muse_styling.css
   - Topics-only sections (topic cards, results bars)
     — new-css/surveyours-topics.css

   How to use it:
   1. Save this file as new-css/surveyours-shared.css
   2. Link it in BOTH layouts, BEFORE the page file:
        _StartupNewLayout.cshtml (homepage):
          <link href="~/new-css/surveyours-shared.css" rel="stylesheet" />
          <link href="~/updated_css/muse_styling.css" rel="stylesheet" />
        _LoginLayout.cshtml (every other page):
          <link href="~/new-css/surveyours-shared.css" rel="stylesheet" />
          <link href="~/new-css/surveyours-topics.css" rel="stylesheet" />
   3. The page file loads second, so it wins where
      a page needs something different.
   4. Do NOT delete the same rules from muse_styling
      or surveyours-topics.css yet — they still work
      as they are, and this file is the new single
      source to copy from when those files are next
      cleaned up. Removing the duplicates is a
      separate, careful pass, section by section.

   Note: the tokens here are the homepage ones, which
   are now the canonical ones. The Topics file was
   built with slightly different values (navy-soft
   #3E6390, radius 14px, a heavier shadow) — those
   will be lined up with these in that cleanup pass.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&display=swap');

/* ---------- 1. TOKENS ---------- */
:root {
    --sv-bg: #EDF0F3;
    --sv-page: #EDF0F3;
    --sv-card: #FFFFFF;
    --sv-navy: #08284E;
    --sv-navy-soft: #E8EEF4;
    --sv-navy-mid: #3E6390;
    --sv-red: #D01C03;
    --sv-red-dark: #A81502;
    --sv-text: #1E2A36;
    --sv-ink: #22364C;
    --sv-muted: #5B6B7A;
    --sv-border: #D8DEE5;
    --sv-track: #E4EAF0;
    --sv-radius: 16px;
    --sv-radius-sm: 10px;
    --sv-shadow: 0 2px 10px rgba(8,40,78,.08);
    --sv-font: "Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    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;
}
    /* Poppins everywhere, except icon fonts (.bi and ri-*
   must keep their own icon font). */
    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
}

h1, h2, h3, h6 {
    font-family: var(--sv-font) !important;
    color: var(--sv-navy);
}

/* Container — the same width and padding on
   every page. */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    background: transparent;
}

#guestIdentity {
    display: none !important
}

/* One background, top to bottom — every structural
   wrapper between <body> and the cards is
   transparent, so it can never paint half the
   page white. Only the cards below are white. */
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;
    }

/* ---------- 3. SHARED CARD SURFACE ---------- */
/* One surface for every major block — this is the
   cohesion. Homepage cards, topic cards, the map
   card and the hero all use this. */
.homepage-question-card,
.statsbox,
.category-card,
.live-map-wrapper,
.peel-away-stage,
.hero-section,
.qcard,
.qcard.topic-qcard {
    background: var(--sv-card) !important;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow);
}

/* ---------- 4. HERO ---------- */
/* A white hero card: heading + description on the
   left, image or video on the right. The homepage
   and Topics heroes both use this shape; their
   page files only set the column widths. */
.hero-section {
    padding: 26px 28px !important;
    margin-top: 16px;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    column-gap: 28px;
    align-items: center;
}

.description-block h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--sv-navy);
    line-height: 1.15;
}

.description-block p {
    margin: 8px 0 0;
    max-width: 52ch;
    color: var(--sv-ink);
    font-size: 1.02rem;
    line-height: 1.55;
}

/* ---------- 5. PILLS ---------- */
/* Non-clickable, decorative, informational pills.
   White, navy border and text, all identical. */
.category-theme-pill,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    color: var(--sv-navy);
    border: 1.5px solid var(--sv-navy-mid);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

.category-theme-pills,
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-theme-heading {
    color: var(--sv-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* ---------- 6. 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
    }

/* ---------- 7. MOBILE ---------- */
@media (max-width:767px) {
    .container {
        padding: 16px 12px 36px
    }

    .description-block h1 {
        font-size: 1.65rem
    }
}
