/* ═══════════════════════════════════════════════════════════════
   LOCAL CASINO DEALS — Complete Custom Theme
   localcasinodeals.com
   Dark & Premium | v1.0
═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --bg:           #0d1b2a;
    --bg-card:      #111f30;
    --bg-raised:    #162840;
    --bg-section:   #0a1620;
    --bg-alt:       #0f2035;
    --bg-header:    #080f1a;
    --bg-footer:    #060e18;

    --gold:         #f0b429;
    --gold-dark:    #c99528;
    --gold-light:   #ffd97d;
    --gold-glow:    rgba(240,180,41,0.18);
    --gold-border:  rgba(240,180,41,0.35);

    --text:         #e8edf2;
    --text-muted:   #8fa3b8;
    --text-faint:   #566879;

    --border:       rgba(255,255,255,0.07);
    --border-light: rgba(255,255,255,0.12);

    --radius-sm:    8px;
    --radius:       18px;
    --radius-lg:    24px;
    --radius-pill:  999px;

    --shadow:       0 4px 20px rgba(0,0,0,0.4);
    --shadow-md:    0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg:    0 20px 60px rgba(0,0,0,0.6);
    --shadow-gold:  0 6px 24px rgba(240,180,41,0.28);

    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --transition:   0.22s var(--ease);

    --container:    1240px;
    --header-h:     68px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.cd-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Main content spacing ───────────────────────────────────── */
.cd-main {
    padding-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}

/* ══════════════════════════════════════════════ HEADER ══════ */
.cd-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cd-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

/* Logo */
.cd-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity var(--transition);
}
.cd-logo:hover { opacity: 0.85; }
.cd-logo-mark { font-size: 1.5rem; line-height: 1; }
.cd-logo-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.cd-logo-img {
    height: 36px;
    width: auto;
}

/* Desktop Nav */
.cd-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.cd-nav-regions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cd-region-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    white-space: nowrap;
}
.cd-region-pill:hover {
    background: var(--gold-glow);
    border-color: var(--gold-border);
    color: var(--gold-light);
}
.cd-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}
.cd-nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
}
.cd-nav-links a:hover { color: var(--gold); }

/* Hamburger */
.cd-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}
.cd-hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.cd-hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.cd-hamburger.is-open span:nth-child(2) { opacity: 0; }
.cd-hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Nav Drawer */
.cd-mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}
.cd-mobile-nav.is-open {
    max-height: 600px;
}
.cd-mobile-nav-section {
    margin-top: 12px;
}
.cd-mobile-nav-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    padding: 0 0 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.cd-mobile-nav a {
    display: block;
    padding: 9px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.cd-mobile-nav a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════ HERO ════════ */
.cd-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #060e1a 0%, #0d1b2a 40%, #122038 70%, #1a2d42 100%);
    padding: 100px 0 90px;
    text-align: center;
}

/* Decorative radial glow */
.cd-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(240,180,41,0.14) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 80%, rgba(15,60,100,0.4) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative dice */
.cd-hero-dice {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9rem;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    filter: blur(1px);
}

.cd-hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.cd-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: var(--gold-glow);
    border: 1px solid var(--gold-border);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
}

.cd-hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 22px;
}

.cd-hero-gold {
    color: var(--gold);
    display: inline-block;
    position: relative;
}

.cd-hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 40px;
}

.cd-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ══════════════════════════════════════════ BUTTONS ═════════ */
.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
    border: 2px solid transparent;
}

.cd-btn-gold {
    background: var(--gold);
    color: #0a1220;
    border-color: var(--gold);
}
.cd-btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: #0a1220;
}

.cd-btn-outline {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-muted);
}
.cd-btn-outline:hover {
    border-color: var(--gold-border);
    color: var(--gold);
    background: var(--gold-glow);
    transform: translateY(-2px);
}

/* ══════════════════════════════════ PROMO TYPE STRIP ════════ */
.cd-strip {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.cd-strip-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
}
.cd-strip-inner::-webkit-scrollbar { display: none; }

.cd-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 28px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    border-right: 1px solid var(--border);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.cd-strip-item:first-child { border-left: none; }
.cd-strip-item:last-child { border-right: none; }
.cd-strip-item:hover {
    background: var(--gold-glow);
    color: var(--gold);
}
.cd-strip-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* ══════════════════════════════════════════ SECTIONS ════════ */
.cd-section {
    padding: 72px 0;
}
.cd-section-alt {
    background: var(--bg-alt);
}

.cd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.cd-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    padding-left: 16px;
    border-left: 4px solid var(--gold);
    line-height: 1.2;
}

.cd-section-title-light {
    color: var(--text);
    border-left-color: var(--gold);
    margin-bottom: 36px;
}

.cd-see-all {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.cd-see-all:hover {
    color: var(--gold);
    border-color: var(--gold-border);
    background: var(--gold-glow);
}

/* ══════════════════════════════════════════ CARD GRID ═══════ */
.cd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.cd-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ══════════════════════════════════════ POST CARDS ══════════ */
.cd-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow);
}
.cd-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-border);
}

.cd-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card image */
.cd-card-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-raised);
    flex-shrink: 0;
    margin: 0;
}
.cd-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--ease);
}
.cd-card:hover .cd-card-img { transform: scale(1.05); }

/* Placeholder when no image */
.cd-card-img-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--bg-raised);
    color: var(--text-faint);
}

/* Card body */
.cd-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
    gap: 8px;
}

.cd-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin: 4px 0;
}
.cd-card:hover .cd-card-title { color: var(--gold-light); }

.cd-card-excerpt {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.cd-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.cd-card-meta-dot { opacity: 0.5; }

/* ══════════════════════════════════ FEATURED CARD ═══════════ */
.cd-card-featured {
    display: flex;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gold-border);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    transition: transform var(--transition), box-shadow var(--transition);
}
.cd-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(240,180,41,0.2);
}

.cd-card-featured-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.cd-card-featured-img-wrap {
    flex: 0 0 55%;
    max-width: 55%;
    overflow: hidden;
    background: var(--bg-raised);
    margin: 0;
}
.cd-card-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.cd-card-featured:hover .cd-card-featured-img { transform: scale(1.04); }

.cd-card-featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 36px 40px;
    justify-content: center;
}

.cd-card-featured-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.cd-card-featured-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
}

.cd-card-featured-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cd-card-featured-meta {
    font-size: 0.82rem;
    color: var(--text-faint);
    display: flex;
    gap: 8px;
}

.cd-card-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 4px;
    transition: gap var(--transition), color var(--transition);
}
.cd-card-featured:hover .cd-card-featured-cta {
    gap: 10px;
    color: var(--gold-light);
}

/* ══════════════════════════════════════════ BADGES ═════════ */
.cd-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    white-space: nowrap;
}
.cd-badge-gold {
    background: var(--gold-glow);
    border-color: var(--gold-border);
    color: var(--gold);
}
.cd-badge-lg {
    font-size: 0.85rem;
    padding: 7px 18px;
}

/* ═══════════════════════════════════════════ MAP ════════════ */
.cd-map-section {
    background: var(--bg-section);
}

.cd-map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    background: var(--bg-raised);
}
.cd-map-wrap iframe {
    display: block;
    width: 100%;
    height: 480px;
    border: none;
}

/* ══════════════════════════════ BROWSE BY CASINO ════════════ */
.cd-browse-section {
    background: linear-gradient(180deg, var(--bg-section) 0%, #060e18 100%);
    padding: 72px 0;
}

.cd-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.cd-casino-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 32px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cd-casino-card:hover {
    background: var(--gold-glow);
    border-color: var(--gold-border);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.cd-casino-icon {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    transition: transform var(--transition);
}
.cd-casino-card:hover .cd-casino-icon { transform: scale(1.12); }

.cd-casino-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}
.cd-casino-card:hover .cd-casino-name { color: var(--gold-light); }

.cd-casino-city {
    font-size: 0.75rem;
    color: var(--text-faint);
}

/* ════════════════════════════════ ARCHIVE HEADER ════════════ */
.cd-archive-header {
    padding: 56px 0 40px;
}
.cd-archive-hero {
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.cd-archive-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,0.8), transparent);
}
.cd-archive-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cd-archive-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
}
.cd-archive-count {
    font-size: 0.82rem;
    color: var(--text-faint);
}

/* ═══════════════════════════════════ PAGINATION ════════════ */
.cd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 0;
}
.cd-pagination-info {
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* ══════════════════════════════════ POST PAGE ═══════════════ */
.cd-post-main { padding-top: var(--header-h); }

.cd-post-hero {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    background: var(--bg-raised);
    margin: 0;
}
.cd-post-hero img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.cd-post-container {
    max-width: 780px;
    padding-top: 48px;
    padding-bottom: 80px;
}

.cd-post-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cd-post-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
}

.cd-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-faint);
}
.cd-post-meta-sep { opacity: 0.5; }

.cd-post-deck {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 20px 24px;
    border-left: 4px solid var(--gold);
    background: var(--gold-glow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Post body content */
.cd-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}
.cd-post-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.5em 0 1em;
    color: var(--text);
    letter-spacing: -0.02em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.cd-post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2em 0 0.8em;
    color: var(--gold-light);
}
.cd-post-content p { margin-bottom: 1.4em; }
.cd-post-content a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: var(--gold-border);
    transition: color var(--transition);
}
.cd-post-content a:hover { color: var(--gold-light); }
.cd-post-content ul, .cd-post-content ol {
    margin: 0 0 1.4em 1.5em;
    color: var(--text-muted);
}
.cd-post-content li { margin-bottom: 0.4em; }
.cd-post-content blockquote {
    margin: 2em 0;
    padding: 20px 28px;
    border-left: 4px solid var(--gold);
    background: var(--bg-raised);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
}
.cd-post-content img {
    border-radius: var(--radius);
    margin: 2em 0;
    width: 100%;
    box-shadow: var(--shadow-md);
}
.cd-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.9rem;
}
.cd-post-content th {
    background: var(--bg-raised);
    color: var(--gold);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--gold-border);
}
.cd-post-content td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.cd-post-content tr:hover td { background: var(--bg-raised); }

.cd-post-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.cd-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cd-tag-pill {
    padding: 6px 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.cd-tag-pill:hover {
    border-color: var(--gold-border);
    color: var(--gold);
    background: var(--gold-glow);
}

/* Related posts */
.cd-related {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    padding: 60px 0;
}
.cd-related-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 4px solid var(--gold);
}

/* ══════════════════════════════════════════ FOOTER ══════════ */
.cd-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.cd-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.cd-footer-brand { display: flex; flex-direction: column; gap: 16px; }

.cd-footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    text-decoration: none;
}

.cd-footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.cd-footer-responsible {
    font-size: 0.78rem;
    color: var(--text-faint);
    line-height: 1.55;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.cd-footer-responsible a { color: var(--gold); text-decoration: underline; }

.cd-footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--gold);
    margin-bottom: 4px;
}

.cd-footer-col a {
    font-size: 0.88rem;
    color: var(--text-faint);
    text-decoration: none;
    transition: color var(--transition);
}
.cd-footer-col a:hover { color: var(--text); }

.cd-footer-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    font-size: 0.78rem;
    color: var(--text-faint);
    flex-wrap: wrap;
}
.cd-footer-dot { opacity: 0.4; }

/* ══════════════════════════════════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
    .cd-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .cd-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .cd-card-featured-link { flex-direction: column; }
    .cd-card-featured-img-wrap { flex: 0 0 auto; max-width: 100%; max-height: 260px; }
    .cd-card-featured-body { padding: 28px 28px 32px; }
    .cd-card-featured-title { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .cd-nav { display: none; }
    .cd-hamburger { display: flex; }
    .cd-mobile-nav { display: flex; }

    .cd-hero { padding: 72px 0 64px; }
    .cd-hero-title { font-size: 2.2rem; }
    .cd-hero-dice { display: none; }

    .cd-section { padding: 52px 0; }
    .cd-browse-section { padding: 52px 0; }

    .cd-strip-item { padding: 16px 18px; }

    .cd-grid { grid-template-columns: 1fr; }
    .cd-grid-3 { grid-template-columns: 1fr; }

    .cd-browse-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cd-map-wrap iframe { height: 340px; }

    .cd-post-hero img { height: 280px; }
    .cd-post-container { padding-top: 32px; padding-bottom: 56px; }
    .cd-post-title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .cd-hero-btns { flex-direction: column; align-items: stretch; }
    .cd-hero-btns .cd-btn { justify-content: center; }

    .cd-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cd-footer-brand { grid-column: auto; }

    .cd-browse-grid { grid-template-columns: repeat(2, 1fr); }

    .cd-section-header { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════ STATE LANDING PAGE ═════ */

/* Override header on landing page — hide region pills */
.page-home .cd-nav-regions { display: none; }

.cd-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 24px 32px;
    background: linear-gradient(160deg, #060e1a 0%, #0d1b2a 45%, #122038 75%, #1a2d42 100%);
}

/* Background radial glows */
.cd-landing-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(240,180,41,0.11) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 90%, rgba(15,60,120,0.35) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 90% 80%, rgba(15,60,120,0.25) 0%, transparent 50%);
    pointer-events: none;
}

.cd-landing-inner {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding-top: var(--header-h);
}

/* Brand block */
.cd-landing-brand {
    text-align: center;
}
.cd-landing-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 24px rgba(240,180,41,0.4));
    animation: cd-spin-slow 8s linear infinite;
}
@keyframes cd-spin-slow {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(-5deg); }
    75%  { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}
.cd-landing-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    line-height: 1.1;
}
.cd-landing-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
}

/* State picker */
.cd-state-picker {
    width: 100%;
}
.cd-state-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 20px;
}
.cd-state-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* State card */
.cd-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    cursor: pointer;
    position: relative;
}
/* Active state (Minnesota) */
.cd-state-active {
    border-color: var(--gold-border);
    background: var(--gold-glow);
    box-shadow: 0 0 40px rgba(240,180,41,0.12), var(--shadow);
}
.cd-state-active:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(240,180,41,0.2), var(--shadow-lg);
    border-color: var(--gold);
}
/* Coming soon states */
.cd-state-soon {
    opacity: 0.45;
    cursor: default;
}

.cd-state-flag {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.cd-state-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}
.cd-state-active .cd-state-name { color: var(--gold-light); }

.cd-state-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.cd-state-live {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}
.cd-state-coming {
    background: rgba(255,255,255,0.06);
    color: var(--text-faint);
    border: 1px solid var(--border);
}

/* Legal note */
.cd-landing-legal {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-faint);
    line-height: 1.55;
}
.cd-landing-legal a { color: var(--gold); }

/* Author page additions */
.cd-author-header { display: flex; align-items: flex-start; gap: 24px; }
.cd-author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-border); flex-shrink: 0; margin-top: 4px; }
.cd-author-name { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.cd-author-location { font-size: 0.85rem; color: var(--text-faint); }
.cd-author-social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cd-author-social-link { font-size: 0.82rem; font-weight: 600; color: var(--gold); text-decoration: none; padding: 4px 12px; border: 1px solid var(--gold-border); border-radius: var(--radius-pill); transition: background var(--transition); }
.cd-author-social-link:hover { background: var(--gold-glow); }

/* Responsive landing page */
@media (max-width: 640px) {
    .cd-state-grid { grid-template-columns: repeat(2, 1fr); }
    .cd-landing-inner { gap: 36px; }
    .cd-landing-icon { font-size: 3rem; }
}
@media (max-width: 380px) {
    .cd-state-grid { grid-template-columns: 1fr 1fr; }
}
