/* Shared styles for every page of GreenNewDealPlan.com: colors, type, top bar, footer. */

:root {
    --bg: #f7f8f5;
    --surface: #ffffff;
    --text: #1c2420;
    --muted: #5b6660;
    --line: #dfe4df;
    --link: #0b6b3a;
    --brand: #0f3d2e;
    --brand-text: #ffffff;
    --brand-accent: #5fe07a;

    /* Sector colors (refined versions of the original palette) */
    --energy: #e0a800;
    --buildings: #2f9e55;
    --transportation: #139fb3;
    --environment: #4c70bd;
    --manufacturing: #dc5f59;
    --education: #e5822a;
    --security: #8a63c9;
    --pay: #2d8a8a;

    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 20, .06), 0 4px 16px rgba(16, 24, 20, .06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111714;
        --surface: #18201c;
        --text: #e6ebe7;
        --muted: #9aa7a0;
        --line: #2b3530;
        --link: #6fdc95;
        --brand: #0b2a20;
        --shadow: none;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---- Top bar ---- */
.topbar {
    background: var(--brand);
    color: var(--brand-text);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    flex-wrap: wrap;
}
.topbar .brand {
    color: inherit;
    font-weight: 800;
    letter-spacing: -.01em;
    text-decoration: none;
}
.topbar .brand span { color: var(--brand-accent); }
.topbar nav {
    display: flex;
    gap: 1.25rem;
    font-size: .9rem;
    overflow-x: auto;
}
.topbar nav a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    white-space: nowrap;
}
.topbar nav a:hover { color: #fff; }

/* ---- Footer ---- */
.site-foot {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 2rem;
    font-size: .9rem;
    color: var(--muted);
}

@media (max-width: 760px) {
    .topbar nav { gap: .9rem; }
}
