/* =============================================================================
   SPPAG Command Center — Design System Overlay
   Premium Legislative Command Center: navy command sections blended with clean
   white content sections, legislative gold accents, sparing cyan.

   FRONT-END ONLY. Non-destructive: this stylesheet is layered LAST so it refines
   the shared shell (masthead, nav, sections, cards, tables, forms, buttons,
   badges) without altering any PHP/JS behaviour. Shell rules are scoped to
   body:not(.spcc-home-active) so the dark command-center home is left untouched.
   ============================================================================= */

:root {
    /* Primary dark navy */
    --sp-navy:        #0C1526;
    --sp-navy-2:      #101B2E;
    --sp-navy-3:      #16233A;
    /* Secondary dark blue */
    --sp-blue:        #173A63;
    --sp-blue-soft:   #1E4D7A;
    /* White / off-white content */
    --sp-white:       #FFFFFF;
    --sp-offwhite:    #F8FAFC;
    --sp-offwhite-2:  #F5F7FA;
    /* Soft grey */
    --sp-grey:        #E5E7EB;
    --sp-grey-2:      #CBD5E1;
    --sp-grey-3:      #94A3B8;
    /* Text */
    --sp-text:        #111827;
    --sp-muted:       #475569;      /* darker than spec #64748B for AA contrast */
    /* Legislative gold */
    --sp-gold:        #D8B368;
    --sp-gold-dark:   #B98A2C;
    --sp-gold-soft:   #E7C67E;
    /* Accent cyan (used sparingly) */
    --sp-cyan:        #38BDF8;

    --sp-shadow:      0 18px 45px rgba(15, 23, 42, 0.12);
    --sp-shadow-sm:   0 6px 18px rgba(15, 23, 42, 0.08);
    --sp-radius:      16px;
    --sp-radius-sm:   11px;

    /* Motion tokens */
    --sp-fast:   120ms;
    --sp-ui:     180ms;
    --sp-medium: 240ms;
    --sp-ease:        cubic-bezier(0.2, 0.8, 0.2, 1);
    --sp-ease-emph:   cubic-bezier(0.2, 0, 0, 1);
}

/* -----------------------------------------------------------------------------
   1. FONT + GLOBAL RHYTHM  (light shell only)
   -------------------------------------------------------------------------- */
body:not(.spcc-home-active) {
    font-family: "Libre Franklin", "Public Sans", system-ui, -apple-system,
                 "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--sp-text);
}

/* Soft off-white canvas behind the content tabs for the navy↔white blend.
   Scoped away from the home command-center. */
body:not(.spcc-home-active) .tab-content,
body:not(.spcc-home-active) main,
body:not(.spcc-home-active) #main-content {
    background: linear-gradient(180deg, var(--sp-offwhite) 0%, var(--sp-white) 640px);
}

/* -----------------------------------------------------------------------------
   2. MASTHEAD — official + premium (enhances the existing navy+building bg)
   -------------------------------------------------------------------------- */
.site-masthead {
    border-bottom: 2px solid rgba(216, 179, 104, 0.55) !important;
    box-shadow: 0 14px 34px rgba(12, 21, 38, 0.28);
    position: relative;
}
/* Gold hairline + soft radial glow overlay for depth */
.site-masthead::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 0%, rgba(216, 179, 104, 0.16), transparent 34%);
}
.site-masthead .container { position: relative; z-index: 1; }

.site-masthead .title-section h1 {
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    font-weight: 800;
}
.site-masthead .city-tagline { color: var(--sp-gold-soft); font-weight: 600; }
.site-masthead .subtitle {
    color: var(--sp-gold);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.site-masthead .sub-subtitle,
.site-masthead .official-subtitle { color: #E7ECF5; }

/* Official institutionalization banner → gold-edged glass strip */
.site-masthead .official-banner {
    background: rgba(9, 18, 34, 0.55);
    border: 1px solid rgba(216, 179, 104, 0.45);
    border-left: 3px solid var(--sp-gold);
    border-radius: 10px;
    padding: 9px 14px;
    backdrop-filter: blur(3px);
}
.site-masthead .official-banner .official-text { color: #EAF0FA; }
.site-masthead .official-banner .resolution-link {
    color: var(--sp-gold-soft);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Government-links section title + glass buttons */
.site-masthead .government-links-title {
    color: var(--sp-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}
.site-masthead .external-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(216, 179, 104, 0.32);
    color: #F1F5FC;
    border-radius: 10px;
    padding: 7px 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--sp-ui) var(--sp-ease),
                border-color var(--sp-ui), background var(--sp-ui);
}
.site-masthead .external-link-btn:hover {
    transform: translateY(-2px);
    background: rgba(216, 179, 104, 0.16);
    border-color: var(--sp-gold);
}

/* -----------------------------------------------------------------------------
   3. MAIN NAV — clean navy bar, gold active indicator
   -------------------------------------------------------------------------- */
body:not(.spcc-home-active) .main-nav {
    background: linear-gradient(180deg, var(--sp-navy-2), var(--sp-navy)) !important;
    border-top: 1px solid rgba(216, 179, 104, 0.30);
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 26px rgba(12, 21, 38, 0.22);
}
body:not(.spcc-home-active) .main-nav .nav-btn,
body:not(.spcc-home-active) .main-nav a.nav-link,
body:not(.spcc-home-active) .main-nav button {
    color: #DCE5F2;
    border-radius: 10px;
    transition: color var(--sp-ui), background var(--sp-ui),
                box-shadow var(--sp-ui), transform var(--sp-ui);
}
body:not(.spcc-home-active) .main-nav .nav-btn:hover,
body:not(.spcc-home-active) .main-nav button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
/* Active tab: white text + gold underline bar */
body:not(.spcc-home-active) .main-nav .nav-btn.active,
body:not(.spcc-home-active) .main-nav .nav-btn[aria-selected="true"],
body:not(.spcc-home-active) .main-nav button.active {
    color: #fff;
    background: rgba(216, 179, 104, 0.14);
    box-shadow: inset 0 -3px 0 0 var(--sp-gold);
}

/* -----------------------------------------------------------------------------
   4. SECTION UTILITIES (opt-in classes matching the design brief)
   -------------------------------------------------------------------------- */
.sp-section-light {
    background: linear-gradient(180deg, var(--sp-white), var(--sp-offwhite));
    color: var(--sp-text);
}
.sp-section-dark {
    background:
        linear-gradient(135deg, var(--sp-navy), var(--sp-navy-2)),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 35%);
    color: #fff;
}
.sp-section-dark h1, .sp-section-dark h2, .sp-section-dark h3 { color: #fff; }
.sp-gold { color: var(--sp-gold); }
.sp-rule-gold {
    height: 3px; width: 64px; border: 0; border-radius: 3px;
    background: linear-gradient(90deg, var(--sp-gold), transparent);
}

/* -----------------------------------------------------------------------------
   5. CARDS — white surface, soft grey border, hover lift
   -------------------------------------------------------------------------- */
.sp-content-card,
body:not(.spcc-home-active) .card,
body:not(.spcc-home-active) .stat-card,
body:not(.spcc-home-active) .module-card,
body:not(.spcc-home-active) .record-card {
    background: var(--sp-white);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-sm);
    transition: transform var(--sp-medium) var(--sp-ease),
                box-shadow var(--sp-medium) var(--sp-ease),
                border-color var(--sp-medium);
}
.sp-content-card:hover,
body:not(.spcc-home-active) .card:hover,
body:not(.spcc-home-active) .stat-card:hover,
body:not(.spcc-home-active) .module-card:hover,
body:not(.spcc-home-active) .record-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sp-shadow);
    border-color: rgba(216, 179, 104, 0.45);
}
/* Command-summary card variant (navy) */
.sp-card-command {
    background: linear-gradient(135deg, var(--sp-navy), var(--sp-navy-3) 60%, var(--sp-blue));
    color: #fff;
    border: 1px solid rgba(216, 179, 104, 0.30);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
}
.sp-card-command .sp-stat-value { color: var(--sp-gold-soft); }

/* -----------------------------------------------------------------------------
   6. TABLES — scannable records
   -------------------------------------------------------------------------- */
body:not(.spcc-home-active) table.records-table,
body:not(.spcc-home-active) table.data-table,
.sp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--sp-white);
    border: 1px solid var(--sp-grey);
    border-radius: var(--sp-radius-sm);
    overflow: hidden;
}
body:not(.spcc-home-active) table.records-table thead th,
body:not(.spcc-home-active) table.data-table thead th,
.sp-table thead th {
    background: linear-gradient(180deg, var(--sp-navy-3), var(--sp-navy-2));
    color: #F2F6FC;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.74rem;
    padding: 12px 14px;
    border-bottom: 2px solid var(--sp-gold);
}
body:not(.spcc-home-active) table.records-table tbody td,
body:not(.spcc-home-active) table.data-table tbody td,
.sp-table tbody td {
    padding: 11px 14px;
    color: var(--sp-text);
    border-bottom: 1px solid var(--sp-grey);
}
body:not(.spcc-home-active) table.records-table tbody tr:nth-child(even),
.sp-table tbody tr:nth-child(even) { background: var(--sp-offwhite-2); }
body:not(.spcc-home-active) table.records-table tbody tr:hover,
.sp-table tbody tr:hover { background: rgba(216, 179, 104, 0.10); }

/* -----------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform var(--sp-ui) var(--sp-ease),
                box-shadow var(--sp-ui), background var(--sp-ui), filter var(--sp-ui);
}
.sp-btn-primary {
    background: linear-gradient(135deg, var(--sp-blue), var(--sp-blue-soft));
    color: #fff;
    box-shadow: 0 10px 22px rgba(23, 58, 99, 0.28);
}
.sp-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.sp-btn-gold {
    background: linear-gradient(135deg, var(--sp-gold), var(--sp-gold-dark));
    color: #241a05;
    box-shadow: 0 10px 22px rgba(185, 138, 44, 0.30);
}
.sp-btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sp-btn-ghost {
    background: transparent;
    border-color: var(--sp-grey-2);
    color: var(--sp-text);
}
.sp-btn-ghost:hover { border-color: var(--sp-blue); background: var(--sp-offwhite); }

/* -----------------------------------------------------------------------------
   8. BADGES — status / type
   -------------------------------------------------------------------------- */
.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}
.sp-badge-gold   { background: rgba(216, 179, 104, 0.16); color: var(--sp-gold-dark); border-color: rgba(185, 138, 44, 0.35); }
.sp-badge-navy   { background: rgba(23, 58, 99, 0.12);    color: var(--sp-blue);      border-color: rgba(23, 58, 99, 0.28); }
.sp-badge-cyan   { background: rgba(56, 189, 248, 0.12);  color: #0369A1;             border-color: rgba(56, 189, 248, 0.35); }
.sp-badge-muted  { background: var(--sp-offwhite-2);      color: var(--sp-muted);     border-color: var(--sp-grey); }

/* -----------------------------------------------------------------------------
   9. FORMS + SEARCH — clear, readable
   -------------------------------------------------------------------------- */
body:not(.spcc-home-active) input[type="text"],
body:not(.spcc-home-active) input[type="search"],
body:not(.spcc-home-active) input[type="email"],
body:not(.spcc-home-active) select,
body:not(.spcc-home-active) textarea,
.sp-input {
    background: var(--sp-white);
    border: 1px solid var(--sp-grey-2);
    border-radius: 11px;
    color: var(--sp-text);
    padding: 10px 13px;
    transition: border-color var(--sp-ui), box-shadow var(--sp-ui);
}
body:not(.spcc-home-active) input[type="text"]:focus,
body:not(.spcc-home-active) input[type="search"]:focus,
body:not(.spcc-home-active) select:focus,
body:not(.spcc-home-active) textarea:focus,
.sp-input:focus {
    outline: none;
    border-color: var(--sp-blue-soft);
    box-shadow: 0 0 0 3px rgba(30, 77, 122, 0.16);
}
.sp-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sp-white);
    border: 1px solid var(--sp-grey-2);
    border-radius: 14px;
    padding: 6px 8px 6px 14px;
    box-shadow: var(--sp-shadow-sm);
}

/* -----------------------------------------------------------------------------
   10. MOTION — lightweight, purposeful
   -------------------------------------------------------------------------- */
@keyframes spFadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sp-fade-in { animation: spFadeInUp var(--sp-medium) var(--sp-ease-emph) both; }
.sp-hover-lift { transition: transform var(--sp-medium) var(--sp-ease), box-shadow var(--sp-medium); }
.sp-hover-lift:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow); }

@media (prefers-reduced-motion: reduce) {
    .sp-fade-in { animation: none; }
    .sp-btn, .sp-hover-lift,
    .site-masthead .external-link-btn,
    body:not(.spcc-home-active) .card,
    body:not(.spcc-home-active) .stat-card,
    body:not(.spcc-home-active) .module-card { transition: none !important; }
    .sp-btn:hover, .sp-hover-lift:hover,
    body:not(.spcc-home-active) .card:hover { transform: none !important; }
}

/* -----------------------------------------------------------------------------
   11. RESPONSIVE — tablet + mobile (sidebar/nav must not cover content)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .site-masthead .gov-links-grid { gap: 6px; }
    .site-masthead .external-link-btn { padding: 6px 10px; font-size: 0.82rem; }
}
@media (max-width: 768px) {
    .site-masthead .title-section h1 { font-size: 1.5rem; }
    .site-masthead .external-links-header { margin-top: 10px; }
    .site-masthead .gov-links-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    body:not(.spcc-home-active) .main-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    body:not(.spcc-home-active) table.records-table,
    body:not(.spcc-home-active) table.data-table,
    .sp-table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 480px) {
    .site-masthead .title-section h1 { font-size: 1.28rem; }
    .site-masthead .gov-links-grid { grid-template-columns: 1fr; }
    .sp-btn { width: 100%; justify-content: center; }
}

/* =============================================================================
   12. COMMAND CENTER HOME — navy hero + WHITE content blend
   The command-center's own styles are inline in the page <body>, which renders
   AFTER this linked stylesheet, so equal-specificity rules lose. These overrides
   use the body.spcc-home-active scope + !important to reliably win.
   Sidebar (.spcc-rail) and the top masthead stay navy; the whole content column
   below becomes an off-white canvas with white cards and dark, readable text.
   ============================================================================= */

/* Kill the dark base background so no navy bleeds into the white content zone.
   Only the sidebar (.spcc-rail) and the top masthead stay navy — clean dual-tone. */
body.spcc-home-active,
body.spcc-home-active #home-page-tab,
body.spcc-home-active #home-page-tab .spcc-shell,
body.spcc-home-active #home-page-tab .spcc-wrap {
    background: var(--sp-offwhite) !important;
}
/* Belt-and-braces: some builds paint the dark on ::before/::after or the shell
   image layer — neutralize those so no navy band splits the bottom. */
body.spcc-home-active #home-page-tab .spcc-shell::before,
body.spcc-home-active #home-page-tab .spcc-shell::after,
body.spcc-home-active #home-page-tab .spcc-wrap::before,
body.spcc-home-active #home-page-tab .spcc-wrap::after { background: transparent !important; }
/* Fade out the fixed dark particle canvas on the home (it tinted everything blue). */
body.spcc-home-active .spcc-bg-fx { opacity: 0 !important; }

/* Content column → off-white canvas. */
body.spcc-home-active #home-page-tab .spcc-main {
    background: var(--sp-offwhite) !important;
}

/* Keep the top masthead navy (it is a transparent child of the now-white main). */
body.spcc-home-active #home-page-tab .spcc-masthead {
    background:
        radial-gradient(circle at 12% 0%, rgba(216,179,104,.16), transparent 34%),
        linear-gradient(135deg, var(--sp-navy) 0%, var(--sp-navy-3) 55%, var(--sp-blue) 100%) !important;
    border-bottom: 2px solid rgba(216,179,104,.5);
}

/* --- Search & Records hero card → white --- */
body.spcc-home-active #home-page-tab .spcc-hero-card {
    background: var(--sp-white) !important;
    border: 1px solid rgba(148,163,184,.28) !important;
    box-shadow: var(--sp-shadow) !important;
}
body.spcc-home-active #home-page-tab .spcc-kicker { color: var(--sp-gold-dark) !important; }
body.spcc-home-active #home-page-tab .spcc-title {
    background: none !important;
    -webkit-text-fill-color: var(--sp-navy) !important;
    color: var(--sp-navy) !important;
    filter: none !important;
}
body.spcc-home-active #home-page-tab .spcc-subtitle { color: var(--sp-muted) !important; }

/* Search pill → white with dark text, steel-blue focus (drop the neon glow). */
body.spcc-home-active #home-page-tab .spcc-search {
    background: var(--sp-white) !important;
    border: 1.6px solid var(--sp-grey-2) !important;
    box-shadow: var(--sp-shadow-sm) !important;
    animation: none !important;
}
body.spcc-home-active #home-page-tab .spcc-search:focus-within {
    border-color: var(--sp-blue-soft) !important;
    box-shadow: 0 0 0 3px rgba(30,77,122,.16) !important;
    animation: none !important;
}
body.spcc-home-active #home-page-tab .spcc-search input { color: var(--sp-text) !important; }
body.spcc-home-active #home-page-tab .spcc-search input::placeholder { color: var(--sp-grey-3) !important; }

/* --- Stat cards → white --- */
body.spcc-home-active #home-page-tab .spcc-stat {
    background: var(--sp-white) !important;
    border: 1px solid rgba(148,163,184,.26) !important;
    box-shadow: var(--sp-shadow-sm) !important;
}
body.spcc-home-active #home-page-tab .spcc-stat:hover {
    box-shadow: var(--sp-shadow) !important;
    border-color: rgba(216,179,104,.5) !important;
}
body.spcc-home-active #home-page-tab .spcc-stat strong { color: var(--sp-navy) !important; }
body.spcc-home-active #home-page-tab .spcc-stat > div > span { color: var(--sp-gold-dark) !important; }
body.spcc-home-active #home-page-tab .spcc-stat small { color: var(--sp-muted) !important; }

/* --- Modules panel + module cards → white --- */
body.spcc-home-active #home-page-tab .spcc-panel {
    background: var(--sp-white) !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    box-shadow: var(--sp-shadow-sm) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.spcc-home-active #home-page-tab .spcc-panel-title { color: var(--sp-navy) !important; }
body.spcc-home-active #home-page-tab .spcc-panel-symbol { color: var(--sp-gold-dark) !important; }
body.spcc-home-active #home-page-tab .spcc-module {
    background: var(--sp-white) !important;
    border: 1px solid rgba(148,163,184,.26) !important;
    box-shadow: var(--sp-shadow-sm) !important;
    color: var(--sp-text) !important;
}
body.spcc-home-active #home-page-tab .spcc-module:hover {
    box-shadow: var(--sp-shadow) !important;
    border-color: rgba(216,179,104,.5) !important;
}
body.spcc-home-active #home-page-tab .spcc-module h3 { color: var(--sp-navy) !important; }
body.spcc-home-active #home-page-tab .spcc-module p  { color: var(--sp-muted) !important; }

/* --- Live search results panel + result cards → white --- */
body.spcc-home-active #home-page-tab .spcc-live-results {
    background: var(--sp-white) !important;
    border: 1px solid rgba(148,163,184,.24) !important;
    box-shadow: var(--sp-shadow-sm) !important;
}
body.spcc-home-active #home-page-tab .spcc-live-kicker { color: var(--sp-gold-dark) !important; }
body.spcc-home-active #home-page-tab #spccLiveSummary,
body.spcc-home-active #home-page-tab .spcc-live-head strong { color: var(--sp-navy) !important; }
/* Result card → white surface, soft grey border. */
body.spcc-home-active #home-page-tab .spcc-live-item {
    background: var(--sp-white) !important;
    border: 1px solid rgba(148,163,184,.32) !important;
    box-shadow: var(--sp-shadow-sm) !important;
}
/* Type badge — SOLID, high-contrast, colour-coded: ordinance=amber, resolution=green. */
body.spcc-home-active #home-page-tab .spcc-live-type {
    background: rgba(185,138,44,.18) !important;
    color: var(--sp-gold-dark) !important;
    border: 1px solid rgba(185,138,44,.5) !important;
}
body.spcc-home-active #home-page-tab .spcc-live-item[data-type="resolution"] .spcc-live-type {
    background: rgba(21,128,61,.14) !important;
    color: #15803D !important;
    border-color: rgba(21,128,61,.45) !important;
}
/* Heading + number → navy; title strong dark. */
body.spcc-home-active #home-page-tab .spcc-live-open strong,
body.spcc-home-active #home-page-tab .spcc-live-item strong { color: var(--sp-navy) !important; }
body.spcc-home-active #home-page-tab .spcc-live-title { color: var(--sp-text) !important; font-weight: 700 !important; }
/* Meta (year | category) — was washed-out gold-soft → readable amber-dark. */
body.spcc-home-active #home-page-tab .spcc-live-meta { color: var(--sp-gold-dark) !important; font-weight: 700 !important; }
body.spcc-home-active #home-page-tab .spcc-live-snippet { color: var(--sp-muted) !important; }
/* Hover accent tinted by type. */
body.spcc-home-active #home-page-tab .spcc-live-item:hover { border-color: rgba(185,138,44,.6) !important; box-shadow: var(--sp-shadow) !important; }
body.spcc-home-active #home-page-tab .spcc-live-item[data-type="resolution"]:hover { border-color: rgba(21,128,61,.55) !important; }
/* View PDF / Print buttons — readable on white (were faint gold-on-white). */
body.spcc-home-active #home-page-tab .spcc-live-pdf,
body.spcc-home-active #home-page-tab .spcc-live-print {
    background: rgba(185,138,44,.14) !important;
    color: var(--sp-gold-dark) !important;
    border: 1px solid rgba(185,138,44,.5) !important;
}
body.spcc-home-active #home-page-tab .spcc-live-pdf:hover,
body.spcc-home-active #home-page-tab .spcc-live-print:hover {
    background: rgba(185,138,44,.24) !important;
    border-color: var(--sp-gold-dark) !important;
}
body.spcc-home-active #home-page-tab .spcc-live-item[data-type="resolution"] .spcc-live-pdf,
body.spcc-home-active #home-page-tab .spcc-live-item[data-type="resolution"] .spcc-live-print {
    background: rgba(21,128,61,.12) !important;
    color: #15803D !important;
    border-color: rgba(21,128,61,.45) !important;
}

/* -----------------------------------------------------------------------------
   13. GOOD VIBES floating launcher → tiny (was padding 10/6, font 10, icon 18)
   -------------------------------------------------------------------------- */
.gv-dock__toggle {
    padding: 5px 3px !important;
    gap: 2px !important;
    font-size: 8px !important;
    letter-spacing: .04em !important;
    border-radius: 8px 0 0 8px !important;
}
.gv-dock__toggle .gv-dock__icon { font-size: 11px !important; }

/* =============================================================================
   14. PREMIUM POLISH — disciplined legislative-archive luxury pass (front-end only)
   Restraint: one gold "official" signature (hero card) + the masthead edge = the
   only two accent moments. No colored-left-border cliché, no gimmick motion.
   ============================================================================= */

/* Unify the major white surfaces: consistent radius + a refined two-layer shadow
   (contact + soft drop) for real depth instead of a flat grey box-shadow. */
body.spcc-home-active #home-page-tab .spcc-hero-card,
body.spcc-home-active #home-page-tab .spcc-panel,
body.spcc-home-active #home-page-tab .spcc-live-results,
body.spcc-home-active #home-page-tab .spcc-stat,
body.spcc-home-active #home-page-tab .spcc-module {
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 30px rgba(15,23,42,.06) !important;
}

/* Hero search card = the centerpiece: gold signature hairline on top + a soft
   white→off-white wash so it reads as the primary surface of the page. */
body.spcc-home-active #home-page-tab .spcc-hero-card {
    background: linear-gradient(165deg, #ffffff 0%, var(--sp-offwhite-2) 100%) !important;
    border: 1px solid rgba(148,163,184,.28) !important;
    border-top: 3px solid var(--sp-gold) !important;
    box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 20px 46px rgba(15,23,42,.10) !important;
}
body.spcc-home-active #home-page-tab .spcc-title { letter-spacing: -0.02em !important; }

/* Statistics read as data: display-weight, tabular, tighter tracking. */
body.spcc-home-active #home-page-tab .spcc-stat strong {
    font-size: 32px !important;
    letter-spacing: -0.01em !important;
    font-variant-numeric: tabular-nums !important;
}

/* Uppercase eyebrows/section titles get correct positive tracking (per type rules). */
body.spcc-home-active #home-page-tab .spcc-panel-title,
body.spcc-home-active #home-page-tab .spcc-kicker,
body.spcc-home-active #home-page-tab .spcc-live-kicker { letter-spacing: .12em !important; }

/* One consistent, purposeful hover lift across interactive cards. */
body.spcc-home-active #home-page-tab .spcc-module,
body.spcc-home-active #home-page-tab .spcc-stat,
body.spcc-home-active #home-page-tab .spcc-live-item {
    transition: transform .2s var(--sp-ease), box-shadow .2s var(--sp-ease), border-color .2s !important;
}
body.spcc-home-active #home-page-tab .spcc-module:hover,
body.spcc-home-active #home-page-tab .spcc-stat:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 20px 42px rgba(15,23,42,.12) !important;
}

/* "View Agenda & Session Data" wide button → premium navy with a gold edge. */
body.spcc-home-active #home-page-tab .spcc-wide-link {
    border: 1px solid rgba(216,179,104,.42) !important;
}

@media (prefers-reduced-motion: reduce) {
    body.spcc-home-active #home-page-tab .spcc-module,
    body.spcc-home-active #home-page-tab .spcc-stat { transition: none !important; }
    body.spcc-home-active #home-page-tab .spcc-module:hover,
    body.spcc-home-active #home-page-tab .spcc-stat:hover { transform: none !important; }
}

/* --- Lower zone (quick links / announcements) → readable on white --- */
body.spcc-home-active #home-page-tab .spcc-lower .spcc-panel { background: var(--sp-white) !important; }
body.spcc-home-active #home-page-tab .spcc-quick,
body.spcc-home-active #home-page-tab .spcc-announce {
    background: var(--sp-offwhite) !important;
    border: 1px solid rgba(148,163,184,.26) !important;
    color: var(--sp-text) !important;
}
body.spcc-home-active #home-page-tab .spcc-quick *,
body.spcc-home-active #home-page-tab .spcc-announce * { color: var(--sp-text) !important; }
body.spcc-home-active #home-page-tab .spcc-announce time,
body.spcc-home-active #home-page-tab .spcc-announce .spcc-date { color: var(--sp-gold-dark) !important; }

/* Section eyebrows/titles in the content zone read navy on white. */
body.spcc-home-active #home-page-tab .spcc-grid .spcc-kicker,
body.spcc-home-active #home-page-tab .spcc-lower .spcc-panel-title { color: var(--sp-navy) !important; }

/* --- Upcoming Session panel: was light-on-dark, now dark-on-white --- */
body.spcc-home-active #home-page-tab .spcc-session h3 { color: var(--sp-navy) !important; }
body.spcc-home-active #home-page-tab .spcc-session p  { color: var(--sp-text) !important; }
body.spcc-home-active #home-page-tab .spcc-session li { color: var(--sp-muted) !important; }
/* Footnote under Recent Announcements. */
body.spcc-home-active #home-page-tab .spcc-footnote { color: var(--sp-muted) !important; }
/* Row arrows readable on white. */
body.spcc-home-active #home-page-tab .spcc-arrow,
body.spcc-home-active #home-page-tab .spcc-quick .spcc-arrow { color: var(--sp-grey-3) !important; }
/* Quick-access row labels dark. */
body.spcc-home-active #home-page-tab .spcc-quick > span:nth-child(2) { color: var(--sp-text) !important; }
